Releases: nowjordanhappy/sketch-kmp
Releases · nowjordanhappy/sketch-kmp
Release list
v0.4.0
First release under io.github.nowjordanhappy:sketch-kmp. Versions up to 0.3.0 are
upstream's Android-only releases; 0.4.0 is the Compose Multiplatform port of that code.
Added
- Kotlin Multiplatform targets: Android, Desktop (JVM), iosX64, iosArm64, iosSimulatorArm64
TextFieldgains anerrorMessage: Stringparameter (default"Invalid input"), so the
accessibility error announcement stays localisable
Changed
- Published as
io.github.nowjordanhappy:sketch-kmp— Maven Central verifies namespace
ownership, so a fork cannot publish undercom.mitteloupe.sketch - Package renamed to
io.github.nowjordanhappy.sketchkmp, sources moved tocommonMain - Depends on the
org.jetbrains.composeartifacts instead of the androidx Compose BOM SketchRectangleShape,SketchCapsuleShapeandSketchCircleShapeare now data classes — they previously inherited identity equality,
making Compose miss itsOutlinecache and regenerate the sketched path every recomposition
(Modifier.hachureallocates one inline by default, so this sat on a hot path)
Fixed
RangeSlider's end thumb was wired to the start thumb'sMutableInteractionSource, so
pressing the end thumb showed no ripple and pressing the start thumb animated both. The
bug is present upstream too.java.lang.Mathreplaced withkotlin.mathinPathSketcher,HachureModifierand
ProgressIndicator— it does not resolve incommonMainon any target
Removed
SketchUnderlineShapeandSketchVerticalLineShape. A ComposeShapedescribes an area,
but these described a zero-area line, so every standard consumer mishandled them —
backgrounddrew an invisible wisp,borderflattened the wobble, andSurfaceclipped
its content away entirely. They were referenced nowhere, including upstream.
HorizontalDividerandVerticalDivideralready draw these lines correctly.TextField's internalStringsvalue class and itsandroidx.compose.ui.Rlookup, which has
no Compose Multiplatform equivalent- The private
PreviewRangeSliderand itsandroidx.compose.ui.tooling.previewimport - Empty
consumer-rules.pro/proguard-rules.proand the libraryAndroidManifest.xml