Skip to content

Publish way and way-compose for Android and iOS (0.12.0) - #15

Merged
rinekri merged 3 commits into
masterfrom
feat/kmp-ios
Nov 8, 2026
Merged

rinekri merged 3 commits into
masterfrom
feat/kmp-ios

Conversation

@rinekri

@rinekri rinekri commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • :way: Android target (AGP com.android.kotlin.multiplatform.library) and iosArm64 / iosSimulatorArm64 / iosX64 next to jvm. Same coordinates ru.kode:way; Gradle metadata routes each consumer to its variant.
  • way-compose: now KMP. Android keeps androidx Compose 1.10.6 (unchanged for Android users); iOS uses Compose Multiplatform 1.10.3. CMP's Android variants carry no files and only redirect to androidx, so the Android runtime classpath stays pure androidx 1.10.6.
  • NodeHost platform bits (Log, debuggable check) moved to expect/actual in Platform.kt.
  • Tests: Kotest runs on native via the Kotest Gradle plugin + KSP. Reflection-based dispose tests moved to jvmTest; the nav-service12 test schema uses a test enum instead of java.nio.charset.Charset.
  • way-compose sets JVM 11 bytecode on the Android target instead of jvmToolchain(11): Robolectric host tests need JDK 17.
  • README, plugin tags, version 0.12.0.

Verification

  • :way:jvmTest: 354 passed
  • :way:linkDebugTestIosSimulatorArm64: links; iosSimulatorArm64Test not run (no iOS simulator runtime on the build machine)
  • :way-compose:testAndroidHostTest: passed
  • :way-compose:compileKotlinIosSimulatorArm64, compileAndroidMain: ok
  • publishToMavenLocal: -jvm, -android, -iosarm64, -iossimulatorarm64, -iosx64 + .module for both libraries
  • ./gradlew build (incl. sample-compose), spotlessCheck: ok

:way adds an Android target (AGP KMP library plugin) and iosArm64,
iosSimulatorArm64, iosX64 next to jvm. Kotest runs on native through
the Kotest Gradle plugin + KSP. Common tests no longer use JVM-only
APIs: reflection-based dispose tests moved to jvmTest, and the
nav-service12 schema uses a test enum instead of java.nio Charset.

way-compose becomes a KMP module. Android keeps androidx Compose
1.10.6; iOS uses Compose Multiplatform 1.10.3, whose Android variants
only redirect to androidx. Log and debuggable checks in NodeHost are
expect/actual. JVM 11 bytecode is set on the Android target instead of
jvmToolchain(11), since Robolectric host tests need JDK 17.
KMP Android libraries have no debug variant, so :way-compose:assembleDebug
no longer exists; use assembleAndroidMain. Release runs on macOS so the
iOS publications are built instead of skipped.
@rinekri
rinekri merged commit f4aa8fe into master Nov 8, 2026
3 checks passed
@rinekri
rinekri deleted the feat/kmp-ios branch November 9, 2026 15:16

This branch was successfully deployed

1 active deployment
release — e710e074 Deployed Nov 8, 2026 by rinekri via publish-libraries #10
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.

1 participant