Repository navigation
Releases
Releases · appKODE/uikit
0.3.0
Added
- The library is split into three artifacts. Pick one backend; both depend on
uikit-coreand expose the
same API inru.kode.uikit.components, so switching is a one-line dependency change:uikit-core: configuration (UikitConfiguration, all*Configurationclasses), shared state types and the
Material3-free components (TextField,TextFieldArea,PageIndicator, shimmer).uikit-components: the Material3 backend (same artifact id as before, so existing apps just bump the version).uikit-components-foundation: a Compose Foundation backend with no Material3 or Accompanist dependency.
Adding both backends fails the build with duplicate classes.
- Slots for overriding a component's visual part on either backend:
Checkbox(box = { state: CheckboxSlotState -> … }),RadioButton(indicator = { state: RadioButtonSlotState -> … }),
Button(loadingIndicator = { … }),ModalBottomSheet(dragHandle = { … } or null),
TextFieldDatePicker(title = { configuration -> … }, headline = { date -> … }).
Defaults live inUikitCheckboxDefaults,UikitRadioButtonDefaults,UikitButtonDefaults,
UikitBottomSheetDefaultsandUikitDatePickerDefaults.Title/.Headline. - Both backends render pixel-identically; CI verifies each against the same screenshot goldens.
- Kotlin Multiplatform: all three artifacts now publish for Android, iOS (
iosArm64,iosSimulatorArm64),
JVM desktop,jsandwasmJs. Android consumers keep the same coordinates; Gradle module metadata picks the
Android variant. - The Material3 backend uses androidx Material3 1.4.0 on Android (unchanged) and JetBrains Compose
Multiplatform Material3 on the other targets. The foundation backend is pure Compose Foundation everywhere.
Changed (breaking)
Slider: thethumb/track/startThumb/endThumbslot lambdas now receive the library's own
UikitSliderState/UikitRangeSliderStateinstead of Material3SliderState/RangeSliderState.DatePicker:rememberDatePickerState(selectableDates = …)andDatePickerState.selectableDatesnow use
the library's ownSelectableDatesinterface (withUikitDatePickerDefaults.AllDates/.YearRange)
instead of Material3'sSelectableDates/DatePickerDefaults.- Dates are
kotlinx.datetime.LocalDateinstead ofjava.time.LocalDate:rememberDatePickerState,
DatePickerState.selectedDate,onDateConfirm, theheadlineslot andUikitDatePickerDefaults.Headline. - Android resource ids in the date picker configuration are replaced by composable lambdas:
TextFieldDatePickerConfiguration.leadingIcon/trailingIcon/errorIcon,InlineDatePickerConfiguration.icon
(@Composable () -> Painter) andModalDatePickerConfiguration.title/confirmButtonText/cancelButtonText
(@Composable () -> String). Migration:// before TextFieldDatePickerConfiguration(leadingIconRes = R.drawable.ic_calendar, /* … */) ModalDatePickerConfiguration(titleRes = R.string.pick_date, /* … */) rememberDatePickerState(initialSelectedDate = java.time.LocalDate.of(2026, 1, 15)) // after TextFieldDatePickerConfiguration(leadingIcon = { painterResource(R.drawable.ic_calendar) }, /* … */) ModalDatePickerConfiguration(title = { stringResource(R.string.pick_date) }, /* … */) rememberDatePickerState(initialSelectedDate = kotlinx.datetime.LocalDate(2026, 1, 15))
Deprecated
ModalBottomSheet(showHandle = …): usedragHandle(nullhides the handle).
Known differences
- The foundation
ModalBottomSheetdoes not provide Material3'sLocalContentColor, so Material3Textwithout
an explicit color renders black inside it. - The foundation sliders size the thumb gap from
SliderConfiguration, not from a customthumbslot, and draw
no step ticks (the Material3 backend draws none with the current configuration either).
Notes
- The libraries no longer enable core library desugaring themselves. kotlinx-datetime uses
java.timeon
Android, so apps withminSdk < 26needcoreLibraryDesugaringenabled. - No
iosX64(Intel simulator) target: Compose Multiplatform 1.11 no longer publishes it.
0.2.0
Added
- GitHub Actions CI/CD:
release.yml(publishes to Maven Central on a git tag push),
pre-merge.yaml(Spotless check + release assembly on PRs andmaster), and
gradle-wrapper-validation.yml. CHANGELOG.md.
Changed
- Migrated publishing from the built-in
maven-publish/signingplugins (Sonatype OSSRHs01, now
shut down) to the vanniktech maven-publish plugin
targeting the Maven Central Portal (publishAndReleaseToMavenCentral). - Updated dependencies: Kotlin
2.0.0→2.4.0, Android Gradle Plugin8.3.2→9.2.1,
Gradle8.9→9.6.1, Compose1.7.4→1.11.4, Material31.3.0→1.4.0,
Coroutines1.9.0→1.11.0, Accompanist0.32.0→0.36.0, Spotless6.25.0→8.8.0,
ktlint0.49.1→1.8.0, desugar_jdk_libs2.1.3→2.1.5. - Bumped
compileSdkfrom34to36. - Migrated the build to AGP 9 (Kotlin support is now built in — the
org.jetbrains.kotlin.android
plugin is no longer applied). - Rewrote the README in English and documented the publishing/release flow.
Removed
- Orphaned version-catalog entries: the standalone
compose-compilerlibrary (superseded by the
Kotlin Compose compiler plugin) and the unusedktlintlibrary.
0.1.2
Добавлен компонент DatePicker.
Исправлен баг со staticCompositionLocal.
0.1.1
Добавлены компоненты:
- Button
- Checkbox
- RadioButton
- ModalBottomSheet
- ModalBottomSheet
- Slider
- TextField
- TextFieldArea
- PageIndicator
- Shimmer(компонент и модификатор)