From 75be525f096dc154b0a6f94f35fe29d4493464e3 Mon Sep 17 00:00:00 2001 From: Adamglin <149357973+adamglin0@users.noreply.github.com> Date: Sun, 13 Oct 2024 11:43:32 +0800 Subject: [PATCH] release: 0.0.1 (#19) Co-authored-by: adamglin --- README.md | 26 ++++++++++++------- compose-shadow/build.gradle.kts | 2 +- .../com/adamglin/composeshadow/DropShadow.kt | 2 +- gradle/libs.versions.toml | 10 +++---- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 24cdc9c..5bc1058 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,37 @@ # Compose Shadow -a kotlin platform library for show drop shadow in compose. +a kotlin platform library for show drop shadow in compose. This library will continue to be actively updated until the +official implementation of a complete shadow in Compose. ![Maven Central Version](https://img.shields.io/maven-central/v/com.adamglin/compose-shadow) --- -## Install +## Version -compose-shadow supports platforms below. +| compose-shadow | cmp | kotlin | +|----------------|---------------|--------| +| 1.0.0 | 1.7.0-rc01 | 2.0.21 | +| 0.0.1 | 1.7.0-dev1743 | 2.0.0 | -1. [x] android -2. [x] ios -3. [x] desktop(jvm) - -#### in your kotlin module +## Install -```kotlin +```kts implementation("com.adamglin:compose-shadow:$version") ``` +## Support + +compose-shadow supports platforms below. + +1. [x] android > 28 +2. [x] ios +3. [x] desktop(jvm) ## Using add dropShadow by `Modifier`. + ```kotlin Box( Modifier diff --git a/compose-shadow/build.gradle.kts b/compose-shadow/build.gradle.kts index 0bf0765..e125e9e 100644 --- a/compose-shadow/build.gradle.kts +++ b/compose-shadow/build.gradle.kts @@ -72,7 +72,7 @@ mavenPublishing { coordinates( groupId = "com.adamglin", artifactId = "compose-shadow", - version = "0.0.2-beta05" + version = "1.0.0" ) pom { name.set("compose-shadow") diff --git a/compose-shadow/src/commonMain/kotlin/com/adamglin/composeshadow/DropShadow.kt b/compose-shadow/src/commonMain/kotlin/com/adamglin/composeshadow/DropShadow.kt index 1697afb..fe137d3 100644 --- a/compose-shadow/src/commonMain/kotlin/com/adamglin/composeshadow/DropShadow.kt +++ b/compose-shadow/src/commonMain/kotlin/com/adamglin/composeshadow/DropShadow.kt @@ -41,7 +41,7 @@ fun Modifier.dropShadow( offsetX: Dp = 0.dp, offsetY: Dp = 4.dp, blur: Dp = 4.dp, - spread: Dp = 0.dp + spread: Dp = 0.dp, ): Modifier { return this then DropShadowNodeElement(shape, color, offsetX, offsetY, blur, spread) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 48ea932..8981992 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,18 +1,18 @@ [versions] #android androidCompileSdk = "35" -androidMinSdk = "21" +androidMinSdk = "28" androidTargetSdk = "35" androidGradlePlugin = "8.6.1" #androidx androidxActivity = "1.9.2" androidxAppCompat = "1.7.0" -androidxMacroBenchmark = "1.3.1" -androidxAnnotation = "1.9.0-beta01" +androidxMacroBenchmark = "1.3.2" +androidxAnnotation = "1.9.0-rc01" #kotlin -kotlin = "2.0.20" +kotlin = "2.0.21" #compose -composeMultiplatform = "1.7.0-beta02" +composeMultiplatform = "1.7.0-rc01" #other detekt = "1.23.5" dokka = "1.9.20"