Skip to content

Migrate to Kotlin Multiplatform, modernize build and add CI/CD - #1

Merged
rinekri merged 3 commits into
masterfrom
kmp-migration
Nov 8, 2026
Merged

rinekri merged 3 commits into
masterfrom
kmp-migration

Conversation

@rinekri

@rinekri rinekri commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Kotlin 1.7.20 → 2.3.20, Gradle 7.4.2 → 9.4.1, AGP 9.0.1, coroutines 1.10.2 (build setup copied from way / unicorn)
  • KMP targets: jvm, android, iosArm64, iosSimulatorArm64, iosX64
  • unicorn ru.dimsuz:unicorn2:2.2.0 → ru.kode:unicorn2:2.3.0 (new groupId)
  • amvi-component-compose: depends on Compose runtime only (was Compose Desktop). New common rememberViewIntents(factory); reified no-arg rememberViewIntents() kept on JVM and Android
  • JVM-only calls replaced: UUID → kotlin.uuid.Uuid, System.currentTimeMillis() → kotlin.time.Clock
  • Publishing: vanniktech Maven Central Portal (s01 OSSRH is shut down); dokka dropped
  • GitHub Actions: ci.yml (spotless, JVM tests, Android assemble) and release.yml (on v* tags, checks tag matches versionName)
  • Version 0.10.0, CHANGELOG updated

Tests

  • New: IntentFactoryTest, ViewIntentsTest, ViewModelLifecycleTest (common) and MviComponentTest (JVM, headless Compose composition: attach/detach, ViewModel swap, state rendering, rememberViewIntents)
  • Fixed a race in the existing "continue to execute transitions … after detach" test (event emitted before the machine subscribed)
  • Local: spotlessCheck, build (all targets) and publishToMavenLocal pass; JVM tests pass 3/3 reruns. iOS test binaries compile and link; not run (no simulator runtime locally, CI does not run them either)

Before merge / release

  • Release ru.kode:unicorn2:2.3.0 to Maven Central, then remove the temporary mavenLocal() from settings.gradle.kts. CI fails to resolve unicorn until then.
  • Create the release environment with secrets NEXUS_USERTOKEN_NAME, NEXUS_USERTOKEN_PASSWORD, SIGNING_KEY_ID, SIGNING_PASSWORD, SIGNING_SECRET_KEY_RING_FILE_BASE64

- Kotlin 2.3.20, Gradle 9.4.1, AGP 9.0.1, coroutines 1.10.2
- Targets: jvm, android, iosArm64, iosSimulatorArm64, iosX64
- unicorn ru.kode:unicorn2:2.3.0 (temporary mavenLocal until it is on Central)
- Common rememberViewIntents(factory); reified variant kept on jvm/android
- vanniktech Central Portal publishing, GitHub Actions CI and release
- Tests for intent factories, ViewIntents, ViewModel lifecycle and MviComponent
@rinekri
rinekri merged commit 029c5ac into master Nov 8, 2026
2 checks passed

This branch was successfully deployed

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