Skip to content

fix(knoi): add missing JVM target - #51

Closed
tonycoder-hub wants to merge 1 commit into
Tencent-TDS:masterfrom
tonycoder-hub:cursor/knoi-missing-jvm-target-c6eb
Closed

tonycoder-hub wants to merge 1 commit into
Tencent-TDS:masterfrom
tonycoder-hub:cursor/knoi-missing-jvm-target-c6eb

Conversation

@tonycoder-hub

Copy link
Copy Markdown

Summary

  • knoi runtime only published Android / iOS / OHOS, so KMP modules that declare jvm() (not androidTarget()) could not depend on it. knoi-annotation and knoi-processor already had jvm().
  • Add a jvm() target (jvmTarget = 1.8) plus jvmMain actuals for trace, logger, and notFindService.
  • Include KotlinPlatformType.jvm in the knoi Gradle plugin KSP injection set.

Fixes #39

Test plan

  • :knoi:compileKotlinJvm succeeds
  • A KMP module with only jvm() resolves knoi
  • Android / iOS / OHOS source sets unchanged

Knoi only published Android/iOS/OHOS variants, so modules with jvm()
could not resolve the library. Add a jvm() target with stub actuals
matching the existing Android/Apple fallbacks, and let the Gradle
plugin inject KSP for JVM consumers.

Co-authored-by: Tony Jin <407243179@qq.com>
@tencent-adm

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tonycoder-hub

Copy link
Copy Markdown
Author

Closing; we will not complete the required contributor agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Knoi缺少JVM Target

3 participants