Skip to content

Commit

Permalink
enable K2 compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
joreilly committed Oct 4, 2023
1 parent 86b2893 commit 17bca2d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
20 changes: 11 additions & 9 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@file:Suppress("OPT_IN_USAGE")

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -45,6 +45,8 @@ kotlin {
}


targetHierarchy.default()

//macosX64("macOS")
macosArm64("macOS") {
binaries.framework {
Expand All @@ -65,7 +67,7 @@ kotlin {


sourceSets {
val commonMain by getting {
commonMain {
dependencies {
implementation(libs.bundles.ktor.common)
implementation(libs.kotlinx.coroutines)
Expand All @@ -84,7 +86,8 @@ kotlin {
}
}
}
val commonTest by getting {

commonTest {
dependencies {
implementation(libs.koin.test)
implementation(Deps.Kotlinx.coroutinesTest)
Expand All @@ -111,8 +114,8 @@ kotlin {
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
dependsOn(commonMain)
val iosMain by getting {
dependsOn(commonMain.get())
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
Expand All @@ -124,18 +127,17 @@ kotlin {
val iosX64Test by getting
val iosArm64Test by getting
val iosSimulatorArm64Test by getting
val iosTest by creating {
dependsOn(commonTest)
val iosTest by getting {
dependsOn(commonTest.get())
iosX64Test.dependsOn(this)
iosArm64Test.dependsOn(this)
iosSimulatorArm64Test.dependsOn(this)
}


val watchosArm32Main by getting
val watchosArm64Main by getting
val watchosSimulatorArm64Main by getting
val watchMain by creating {
val watchosMain by getting {
watchosArm32Main.dependsOn(this)
watchosArm64Main.dependsOn(this)
watchosSimulatorArm64Main.dependsOn(this)
Expand Down
2 changes: 2 additions & 0 deletions compose-web-wasm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ kotlin {
//applyBinaryen()
}
sourceSets {
targetHierarchy.default()

val wasmMain by getting {
dependencies {
implementation(compose.runtime)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ org.jetbrains.compose.experimental.uikit.enabled=true
kotlin.mpp.stability.nowarn=true
kotlin.mpp.androidSourceSetLayoutVersion=2

#kotlin.experimental.tryK2=true
kotlin.experimental.tryK2=true

0 comments on commit 17bca2d

Please sign in to comment.