Skip to content

Commit 7b75a42

Browse files
committed
wasm support added.
1 parent aa0ebc5 commit 7b75a42

File tree

4 files changed

+27
-15
lines changed

4 files changed

+27
-15
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
<img src="https://user-images.githubusercontent.com/13647384/166186269-091efb42-a143-4ccd-b9c4-0e0c4748c56e.gif"/>
1313

14+
[Demo](https://androidpoet.github.io/LibPreviewWasm)
15+
1416
</div>
1517

1618
## Who's using Dropdown?
@@ -202,4 +204,4 @@ Copyright 2022 AndroidPoet (Ranbir Singh)
202204
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203205
See the License for the specific language governing permissions and
204206
limitations under the License.
205-
```
207+
```

buildSrc/src/main/kotlin/io/androidpoet/dropdown/Configuration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object Configuration {
66
const val minSdk = 21
77
const val majorVersion = 1
88
const val minorVersion = 1
9-
const val patchVersion = 5
9+
const val patchVersion = 6
1010
const val versionName = "$majorVersion.$minorVersion.$patchVersion"
1111
const val versionCode = 1
1212
const val snapshotVersionName = "$majorVersion.$minorVersion.${patchVersion + 1}-SNAPSHOT"

dropdown/build.gradle.kts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io.androidpoet.dropdown.Configuration
2+
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
23

34

45
@Suppress("DSL_SCOPE_VIOLATION")
@@ -14,7 +15,7 @@ plugins {
1415
apply(from = "$rootDir/scripts/publish-module.gradle.kts")
1516

1617
mavenPublishing {
17-
val artifactId = "drafter"
18+
val artifactId = "dropdown"
1819
coordinates(
1920
Configuration.artifactGroup,
2021
artifactId,
@@ -24,7 +25,7 @@ mavenPublishing {
2425
pom {
2526
name.set(artifactId)
2627
description.set(
27-
"\uD83D\uDCCA A powerful, flexible charting library for Compose Multiplatform applications",
28+
"\uD83D\uDCA7 A Powerful and customizable Jetpack Compose dropdown menu with cascade and animations",
2829
)
2930
}
3031
}
@@ -41,6 +42,13 @@ kotlin {
4142
browser()
4243
nodejs()
4344
}
45+
@OptIn(ExperimentalWasmDsl::class)
46+
wasmJs {
47+
browser()
48+
nodejs()
49+
binaries.executable()
50+
}
51+
4452
@Suppress("OPT_IN_USAGE")
4553
applyHierarchyTemplate {
4654
common {
@@ -63,7 +71,9 @@ kotlin {
6371
}
6472
}
6573
withJs()
74+
withWasmJs()
6675
}
76+
6777
}
6878
}
6979
}
@@ -97,7 +107,7 @@ composeCompiler {
97107
}
98108
android {
99109
compileSdk = Configuration.compileSdk
100-
namespace = "io.androidpoet.drafter"
110+
namespace = "io.androidpoet.dropdown"
101111
defaultConfig {
102112
minSdk = Configuration.minSdk
103113
}
@@ -126,7 +136,7 @@ android {
126136
baselineProfile {
127137
baselineProfileOutputDir = "../../src/androidMain"
128138
filter {
129-
include("io.androidpoet.drafter.**")
139+
include("io.androidpoet.dropdown.**")
130140
}
131141
}
132142

gradle/libs.versions.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[versions]
22
agp = "8.5.2"
3-
dokka = "1.9.10"
3+
dokka = "2.0.0"
44
kotlinxDatetime = "0.6.1"
5-
nexusPlugin = "0.29.0"
6-
kotlin = "2.0.20"
5+
nexusPlugin = "0.30.0"
6+
kotlin = "2.1.0"
77
kotlinBinaryCompatibility = "0.16.3"
88
jvmTarget = "11"
9-
androidxComposeBom = "2024.05.00"
10-
androidxActivity = "1.9.2"
9+
androidxComposeBom = "2024.12.01"
10+
androidxActivity = "1.9.3"
1111
androidxTest = "1.6.2"
12-
baselineProfiles = "1.3.1"
12+
baselineProfiles = "1.4.1"
1313
uiAutomator = "2.3.0"
14-
spotless = "6.21.0"
15-
androidxMacroBenchmark = "1.3.0"
16-
jetbrains-compose = "1.6.11"
14+
spotless = "6.25.0"
15+
androidxMacroBenchmark = "1.3.3"
16+
jetbrains-compose = "1.7.3"
1717
composeIcons = "1.1.1"
1818

1919
[plugins]

0 commit comments

Comments
 (0)