Repository navigation
Publish way and way-compose for Android and iOS (0.12.0) - #15
Merged
Merged
Conversation
: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.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
:way: Android target (AGPcom.android.kotlin.multiplatform.library) andiosArm64/iosSimulatorArm64/iosX64next tojvm. Same coordinatesru.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.NodeHostplatform bits (Log, debuggable check) moved toexpect/actualinPlatform.kt.jvmTest; thenav-service12test schema uses a test enum instead ofjava.nio.charset.Charset.way-composesets JVM 11 bytecode on the Android target instead ofjvmToolchain(11): Robolectric host tests need JDK 17.Verification
:way:jvmTest: 354 passed:way:linkDebugTestIosSimulatorArm64: links;iosSimulatorArm64Testnot run (no iOS simulator runtime on the build machine):way-compose:testAndroidHostTest: passed:way-compose:compileKotlinIosSimulatorArm64,compileAndroidMain: okpublishToMavenLocal:-jvm,-android,-iosarm64,-iossimulatorarm64,-iosx64+.modulefor both libraries./gradlew build(incl.sample-compose),spotlessCheck: ok