Skip to content

Commit

Permalink
Add js/wasm targets to annotation modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Heavner committed Aug 18, 2024
1 parent 1d599b4 commit 2f84d27
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
15 changes: 12 additions & 3 deletions annotations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

// Copyright (C) 2024 r0adkll
// SPDX-License-Identifier: Apache-2.0
plugins {
Expand All @@ -17,15 +19,22 @@ kotlin {
iosSimulatorArm64()
macosX64()
macosArm64()
js(IR) {
moduleName = property("POM_ARTIFACT_ID").toString()
browser()
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName = property("POM_ARTIFACT_ID").toString()
browser()
}

sourceSets {
commonMain.dependencies {
api(libs.kotlininject.runtime)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
}
}
}

android { namespace = "com.r0adkll.kimchi.annotations" }
androidComponents { beforeVariants { variant -> variant.androidTest.enable = false } }
15 changes: 12 additions & 3 deletions circuit/annotations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

// Copyright (C) 2024 r0adkll
// SPDX-License-Identifier: Apache-2.0
plugins {
Expand All @@ -17,17 +19,24 @@ kotlin {
iosSimulatorArm64()
macosX64()
macosArm64()
js(IR) {
moduleName = property("POM_ARTIFACT_ID").toString()
browser()
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName = property("POM_ARTIFACT_ID").toString()
browser()
}

sourceSets {
commonMain.dependencies {
// Only here for doc linking
compileOnly(libs.circuit.foundation)
compileOnly(libs.kotlininject.runtime)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
}
}
}

android { namespace = "com.r0adkll.kimchi.circuit.annotations" }
androidComponents { beforeVariants { variant -> variant.androidTest.enable = false } }

0 comments on commit 2f84d27

Please sign in to comment.