Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ out/
.settings
.springBeans
.sts4-cache
.kotlin
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
Expand Down
23 changes: 16 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinMultiplatform
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl

plugins {
kotlin("multiplatform") version "1.9.23"
id("org.jetbrains.compose") version "1.6.11"
id("com.android.library") version "8.2.0"
kotlin("multiplatform") version "2.2.10"
id("org.jetbrains.kotlin.plugin.compose") version "2.2.10"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why the plugin is needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id("org.jetbrains.compose") version "1.8.2"
id("com.android.library") version "8.2.2"

id("signing")
id("com.vanniktech.maven.publish") version "0.29.0"
}

group = "io.github.iamcalledrob"
version = "1.0.4"
version = "1.0.5"

repositories {
mavenCentral()
Expand All @@ -24,23 +26,30 @@ kotlin {

jvm()
androidTarget()
iosArm64()
iosX64()
iosSimulatorArm64()

@OptIn(ExperimentalWasmDsl::class)
wasmJs()

applyDefaultHierarchyTemplate()

sourceSets {
commonMain {
dependencies {
implementation("androidx.graphics:graphics-shapes:1.0.1")
implementation("androidx.graphics:graphics-shapes:1.1.0-beta01")
implementation(compose.foundation)
}
}

// Leaving some hope that androidx.graphics:graphics-shape may eventually support
// non-desktop multiplatform targets too.
val nonAndroidMain by creating {
dependsOn(commonMain.get())
}

jvmMain.get().dependsOn(nonAndroidMain)
iosMain.get().dependsOn(nonAndroidMain)
wasmJsMain.get().dependsOn(nonAndroidMain)
}
}

Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.