Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 0e120b8

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/new-sample-app
# Conflicts: # sample/compose-app/src/androidMain/AndroidManifest.xml
2 parents 416c7a9 + 896ca1f commit 0e120b8

File tree

7 files changed

+69
-40
lines changed

7 files changed

+69
-40
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Adamglin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Compose Shadow
22

3-
A Kotlin Multiplatform implementation of drop shadows for Compose Multiplatform.
3+
A Kotlin Multiplatform implementation of drop/inner shadows for Compose Multiplatform.
44

55
This library will continue to be maintained until this is officially supported in Compose.
66

@@ -12,8 +12,9 @@ This library will continue to be maintained until this is officially supported i
1212

1313
| `compose-shadow` | CMP | Kotlin |
1414
|------------------|---------------|--------|
15+
| 2.0.1 | 1.7.1 | 2.1.0 |
16+
| 2.0.0 | 1.7.1 | 2.0.21 |
1517
| 1.0.0 | 1.7.0-rc01 | 2.0.21 |
16-
| 0.0.1 | 1.7.0-dev1743 | 2.0.0 |
1718

1819
## Installation
1920

@@ -28,15 +29,16 @@ implementation("com.adamglin:compose-shadow:$version")
2829
1. [x] Android (SDK > 28)
2930
2. [x] iOS
3031
3. [x] Desktop (JVM)
32+
4. [x] JS/Wasm
3133

3234
## Usage
3335

3436
Apply and customize shadow using the `dropShadow` Modifier:
3537

38+
### Drop Shadow
3639
```kotlin
3740
Box(
3841
Modifier
39-
.size(50.dp)
4042
.dropShadow(
4143
shape = RectangleShape,
4244
color = Color.Black.copy(.5f),
@@ -48,8 +50,24 @@ Box(
4850
.background(Color.White),
4951
)
5052
```
53+
### Inner Shadow
54+
```kotlin
55+
Box(
56+
Modifier
57+
.innerShadow(
58+
shape = RectangleShape,
59+
color = Color.Black.copy(.5f),
60+
offsetX = 4.dp,
61+
offsetY = 4.dp,
62+
blur = 10.dp,
63+
spread = 5.dp,
64+
)
65+
.background(Color.White),
66+
)
67+
```
5168
## Sample
5269
We provided this address [here](https://adamglin0.github.io/compose-shadow/sample/index.html) for viewing the wasm online examples.
70+
5371
### Screenshots
5472
<img width="300" alt="image" src="https://github.com/user-attachments/assets/36d15219-d4ea-4de9-84fe-df2cbceb0e2e">
5573
<img width="300" alt="image" src="https://github.com/user-attachments/assets/cf1b42d1-5d92-4259-93a6-f0883b7d9dc7">

compose-shadow/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ mavenPublishing {
9797
coordinates(
9898
groupId = "com.adamglin",
9999
artifactId = "compose-shadow",
100-
version = "1.0.0"
100+
version = "2.0.1"
101101
)
102102
pom {
103103
name.set("compose-shadow")

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ androidxAppCompat = "1.7.0"
1010
androidxMacroBenchmark = "1.3.3"
1111
androidxAnnotation = "1.9.1"
1212
#kotlin
13-
kotlin = "2.0.21"
13+
kotlin = "2.1.0"
1414
binaryCompatibilityValidator = "0.16.3"
1515
#compose
1616
composeMultiplatform = "1.7.1"

kotlin-js-store/yarn.lock

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,7 @@
109109
dependencies:
110110
"@types/node" "*"
111111

112-
"@types/eslint-scope@^3.7.3":
113-
version "3.7.7"
114-
resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5"
115-
integrity sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==
116-
dependencies:
117-
"@types/eslint" "*"
118-
"@types/estree" "*"
119-
120-
"@types/eslint@*":
121-
version "9.6.1"
122-
resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-9.6.1.tgz#d5795ad732ce81715f27f75da913004a56751584"
123-
integrity sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==
124-
dependencies:
125-
"@types/estree" "*"
126-
"@types/json-schema" "*"
127-
128-
"@types/estree@*", "@types/estree@^1.0.5":
112+
"@types/estree@^1.0.5":
129113
version "1.0.6"
130114
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.6.tgz#628effeeae2064a1b4e79f78e81d87b7e5fc7b50"
131115
integrity sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==
@@ -182,7 +166,7 @@
182166
dependencies:
183167
"@types/node" "*"
184168

185-
"@types/json-schema@*", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
169+
"@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
186170
version "7.0.15"
187171
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
188172
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
@@ -921,7 +905,7 @@ engine.io@~6.6.0:
921905
engine.io-parser "~5.2.1"
922906
ws "~8.17.1"
923907

924-
enhanced-resolve@^5.17.0:
908+
enhanced-resolve@^5.17.1:
925909
version "5.17.1"
926910
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz#67bfbbcc2f81d511be77d686a90267ef7f898a15"
927911
integrity sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==
@@ -1601,10 +1585,10 @@ [email protected]:
16011585
minimatch "^9.0.3"
16021586
webpack-merge "^4.1.5"
16031587

1604-
1605-
version "6.4.3"
1606-
resolved "https://registry.yarnpkg.com/karma/-/karma-6.4.3.tgz#763e500f99597218bbb536de1a14acc4ceea7ce8"
1607-
integrity sha512-LuucC/RE92tJ8mlCwqEoRWXP38UMAqpnq98vktmS9SznSoUPPUJQbc91dHcxcunROvfQjdORVA/YFviH+Xci9Q==
1588+
1589+
version "6.4.4"
1590+
resolved "https://registry.yarnpkg.com/karma/-/karma-6.4.4.tgz#dfa5a426cf5a8b53b43cd54ef0d0d09742351492"
1591+
integrity sha512-LrtUxbdvt1gOpo3gxG+VAJlJAEMhbWlM4YrFQgql98FwF7+K8K12LYO4hnDdUkNjeztYrOXEMqgTajSWgmtI/w==
16081592
dependencies:
16091593
"@colors/colors" "1.5.0"
16101594
body-parser "^1.19.0"
@@ -1636,6 +1620,13 @@ kind-of@^6.0.2:
16361620
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
16371621
integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==
16381622

1623+
1624+
version "2.0.0"
1625+
resolved "https://registry.yarnpkg.com/kotlin-web-helpers/-/kotlin-web-helpers-2.0.0.tgz#b112096b273c1e733e0b86560998235c09a19286"
1626+
integrity sha512-xkVGl60Ygn/zuLkDPx+oHj7jeLR7hCvoNF99nhwXMn8a3ApB4lLiC9pk4ol4NHPjyoCbvQctBqvzUcp8pkqyWw==
1627+
dependencies:
1628+
format-util "^1.0.5"
1629+
16391630
launch-editor@^2.6.0:
16401631
version "2.9.1"
16411632
resolved "https://registry.yarnpkg.com/launch-editor/-/launch-editor-2.9.1.tgz#253f173bd441e342d4344b4dae58291abb425047"
@@ -1792,10 +1783,10 @@ mkdirp@^0.5.5:
17921783
dependencies:
17931784
minimist "^1.2.6"
17941785

1795-
1796-
version "10.7.0"
1797-
resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.7.0.tgz#9e5cbed8fa9b37537a25bd1f7fb4f6fc45458b9a"
1798-
integrity sha512-v8/rBWr2VO5YkspYINnvu81inSz2y3ODJrhO175/Exzor1RcEZZkizgE2A+w/CAXXoESS8Kys5E62dOHGHzULA==
1786+
1787+
version "10.7.3"
1788+
resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.7.3.tgz#ae32003cabbd52b59aece17846056a68eb4b0752"
1789+
integrity sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==
17991790
dependencies:
18001791
ansi-colors "^4.1.3"
18011792
browser-stdout "^1.3.1"
@@ -2709,12 +2700,11 @@ webpack-sources@^3.2.3:
27092700
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde"
27102701
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
27112702

2712-
webpack@5.93.0:
2713-
version "5.93.0"
2714-
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.93.0.tgz#2e89ec7035579bdfba9760d26c63ac5c3462a5e5"
2715-
integrity sha512-Y0m5oEY1LRuwly578VqluorkXbvXKh7U3rLoQCEO04M97ScRr44afGVkI0FQFsXzysk5OgFAxjZAb9rsGQVihA==
2703+
webpack@5.94.0:
2704+
version "5.94.0"
2705+
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.94.0.tgz#77a6089c716e7ab90c1c67574a28da518a20970f"
2706+
integrity sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==
27162707
dependencies:
2717-
"@types/eslint-scope" "^3.7.3"
27182708
"@types/estree" "^1.0.5"
27192709
"@webassemblyjs/ast" "^1.12.1"
27202710
"@webassemblyjs/wasm-edit" "^1.12.1"
@@ -2723,7 +2713,7 @@ [email protected]:
27232713
acorn-import-attributes "^1.9.5"
27242714
browserslist "^4.21.10"
27252715
chrome-trace-event "^1.0.2"
2726-
enhanced-resolve "^5.17.0"
2716+
enhanced-resolve "^5.17.1"
27272717
es-module-lexer "^1.2.1"
27282718
eslint-scope "5.1.1"
27292719
events "^3.2.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.admaglin.composeshadow.app
1+
package com.adamglin.composeshadow.app
22

33
import SampleApp
44
import android.os.Bundle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.admaglin.composeshadow.app
1+
package com.adamglin.composeshadow.app
22

33
import android.app.Application
44
import android.content.Context

0 commit comments

Comments
 (0)