Skip to content

Migrate uikit to Kotlin Multiplatform - #22

Merged
rinekri merged 3 commits into
masterfrom
kmp
Nov 9, 2026
Merged

rinekri merged 3 commits into
masterfrom
kmp

Conversation

@rinekri

@rinekri rinekri commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Publishes uikit-core, uikit-components and uikit-components-foundation as KMP libraries for android, iosArm64, iosSimulatorArm64, jvm, js and wasmJs. Artifact ids unchanged.

Changes

  • Material3 backend: androidx material3 1.4.0 on Android, Compose Multiplatform material3 1.9.0 elsewhere. Foundation backend has no material3 on any target.
  • Breaking: dates are kotlinx.datetime.LocalDate; date picker *Res: Int config fields are composable lambdas ({ painterResource(R.drawable.x) } or CMP Res). Migration snippet in CHANGELOG.
  • PlatformDates expect/actual in core (@InternalUikitApi) for localized date text: java.time (android/jvm), NSDateFormatter (iOS), Intl (js/wasmJs).
  • Foundation sheet window setup and includeFontPadding moved behind expect/actual.
  • AGP 9 com.android.kotlin.multiplatform.library, CMP 1.11.1, kotlinx-datetime 0.7.1, vanniktech KMP publishing.
  • CI: release runs on macOS; pre-merge adds jvmTest and a macOS iOS job.
  • Android consumers with minSdk < 26 need core library desugaring.

Not done / deviations

  • iosX64 dropped: CMP 1.11 doesn't publish it.
  • org.jetbrains.compose Gradle plugin not applied — explicit coordinates are enough.
  • iOS tests not run locally (no simulator runtime); test binary links, CI macOS job runs them.

Verification

  • spotlessCheck assemble green; all modules compile for every target.
  • :uikit-core:jvmTest 5/5.
  • Roborazzi 17/17 for both Material3 and Foundation flavors against unchanged goldens.
  • Dependency classpaths checked; publishToMavenLocal emits root .module + per-target variants.
  • Both backends in one app still fail with duplicate classes.

Publish uikit-core, uikit-components and uikit-components-foundation for
android, iosArm64, iosSimulatorArm64, jvm, js and wasmJs.

- Material3 backend: androidx material3 1.4.0 on Android, Compose
  Multiplatform material3 elsewhere; foundation backend stays pure Foundation.
- Breaking: dates use kotlinx.datetime.LocalDate; date picker *Res: Int
  config fields become composable lambdas.
- PlatformDates expect/actual (@InternalUikitApi) for localized date text;
  foundation sheet window setup moved behind expect/actual.
- AGP 9 KMP library plugin, CMP 1.11.1; iosX64 dropped (not published by CMP).
- CI: release on macOS, pre-merge adds macOS iOS job and jvmTest.
@rinekri rinekri changed the title Migrate uikit to Kotlin Multiplatform (0.4.0) Migrate uikit to Kotlin Multiplatform Nov 9, 2026
@rinekri
rinekri merged commit e33befa into master Nov 9, 2026
3 checks passed
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