Skip to content

Commit

Permalink
release: 0.0.1 (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: adamglin <dev@adamglin>
  • Loading branch information
adamglin0 and adamglin authored Oct 13, 2024
1 parent 03434f5 commit 75be525
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compose-shadow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 75be525

Please sign in to comment.