Skip to content

Commit

Permalink
Added iOS and JS support to presentation-compose module
Browse files Browse the repository at this point in the history
  • Loading branch information
chRyNaN committed Oct 8, 2022
1 parent 1f2e897 commit f43ab72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
systemProp.org.gradle.internal.publish.checksums.insecure=true
android.useAndroidX=true
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
23 changes: 5 additions & 18 deletions presentation-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ kotlin {
jvm()
js(IR) {
browser()
nodejs()
}
ios()
iosSimulatorArm64()
}
sourceSets {
all {
Expand All @@ -35,23 +36,9 @@ kotlin {
implementation(compose.runtime)
}
}
val jvmMain by getting {
dependencies {
implementation(compose.ui)
implementation(compose.material)
}
}
val androidMain by getting {
dependencies {
implementation(compose.ui)
implementation(compose.material)
}
}
val jsMain by getting {
dependencies {
implementation(compose.web.core)
}
}
val iosMain by sourceSets.getting
val iosSimulatorArm64Main by sourceSets.getting
iosSimulatorArm64Main.dependsOn(iosMain)
}
}

Expand Down

0 comments on commit f43ab72

Please sign in to comment.