Skip to content

Commit

Permalink
ADded wasmjs support to the colors-compose module
Browse files Browse the repository at this point in the history
  • Loading branch information
chRyNaN committed Jan 6, 2024
1 parent c7cb0cf commit a7623c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
kotlin("plugin.serialization") version "1.9.21" apply false
id("com.android.library") version "8.2.0" apply false
id("com.android.application") version "8.2.0" apply false
id("org.jetbrains.compose") version "1.5.11" apply false
id("org.jetbrains.compose") version "1.6.0-dev1357" apply false
id("org.jetbrains.dokka") version "1.9.10"
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.2"
id("com.mikepenz.aboutlibraries.plugin") version "10.8.3" apply false
Expand All @@ -20,8 +20,8 @@ allprojects {
// NOTE: Order matters here, as the first listed repository will be checked for dependencies first.
mavenCentral()
google()
maven("https://repo.repsy.io/mvn/chrynan/public")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://repo.repsy.io/mvn/chrynan/public")
}
}

Expand Down
6 changes: 6 additions & 0 deletions colors-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import com.chrynan.colors.buildSrc.LibraryConstants
import com.chrynan.colors.buildSrc.*
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand All @@ -22,10 +23,14 @@ kotlin {
}

jvm()

js(IR) {
browser()
}

@OptIn(ExperimentalWasmDsl::class)
wasmJs()

if (isBuildingOnOSX()) {
iosX64()
iosArm64()
Expand All @@ -42,6 +47,7 @@ kotlin {
all {
languageSettings.optIn("kotlin.RequiresOptIn")
}

val commonMain by getting {
dependencies {
api(project(":colors-core"))
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ kotlin.code.style=official
kotlin.native.distribution.type=prebuilt
systemProp.org.gradle.internal.publish.checksums.insecure=true
android.useAndroidX=true

# Compose Multiplatform
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.wasm.enabled=true

0 comments on commit a7623c6

Please sign in to comment.