Skip to content

Commit

Permalink
Support Compose/iOS (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedrickcooke authored May 24, 2024
1 parent dc7fa1c commit a17eeef
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.compose.compose

plugins {
id("com.android.library")
kotlin("multiplatform")
Expand All @@ -15,9 +13,15 @@ kotlin {
jvmToolchain(libs.versions.jvm.toolchain.get().toInt())

androidTarget().publishAllLibraryVariants()
iosArm64()
iosSimulatorArm64()
iosX64()
jvm("desktop")

sourceSets {

applyDefaultHierarchyTemplate()

commonMain.dependencies {
api(projects.kanvas)
api(projects.element)
Expand All @@ -29,8 +33,17 @@ kotlin {
commonTest.dependencies {
implementation(kotlin("test"))
}
getByName("desktopMain").dependencies {
api(compose.preview)

val skiaMain by creating {
dependsOn(commonMain.get())
}

val desktopMain by getting {
dependsOn(skiaMain)
}

val iosMain by getting {
dependsOn(skiaMain)
}
}
}
Expand Down
File renamed without changes.

0 comments on commit a17eeef

Please sign in to comment.