Skip to content

Commit

Permalink
Support wasm and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Jun 29, 2024
1 parent 3fff614 commit e0b7977
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 6 deletions.
38 changes: 33 additions & 5 deletions colorpicker-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,42 @@ mavenPublishing {
}

kotlin {
applyDefaultHierarchyTemplate()

androidTarget {
publishLibraryVariants("release")
}
androidTarget { publishLibraryVariants("release") }
jvm("desktop")
iosX64()
iosArm64()
iosSimulatorArm64()
macosX64()
macosArm64()
js(IR) {
browser()
nodejs()
}
@Suppress("OPT_IN_USAGE")
applyHierarchyTemplate {
common {
group("jvm") {
withAndroidTarget()
withJvm()
}
group("skia") {
withJvm()
group("darwin") {
group("apple") {
group("ios") {
withIosX64()
withIosArm64()
withIosSimulatorArm64()
}
group("macos") {
withMacosX64()
withMacosArm64()
}
}
}
}
}
}

task("testClasses")

Expand Down
14 changes: 13 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,19 @@ android.defaults.buildfeatures.shaders=false
# thereby reducing the size of the R class for that library
# https://developer.android.com/studio/releases/gradle-plugin#4.1-nontransitive-r-class
android.nonTransitiveRClass=true
android.suppressUnsupportedCompileSdk=34

# MPP
kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.stability.nowarn=true
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.native.binary.memoryModel=experimental
kotlin.native.cacheKind=none

# Compose
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
compose.kotlin.native.manageCacheKind=false

# Required to publish to Nexus (see https://github.com/gradle/gradle/issues/11308)
systemProp.org.gradle.internal.publish.checksums.insecure=true
Expand Down

0 comments on commit e0b7977

Please sign in to comment.