You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
plugins { |
|
id("org.jetbrains.compose") |
|
kotlin("multiplatform") |
|
id("maven-publish") |
|
id("com.android.library") |
|
} |
|
|
|
group = "me.sample.library" |
|
version = "1.0" |
|
publishing { |
|
repositories { |
|
maven { |
|
url = uri(rootProject.projectDir.resolve("my-mvn")) |
|
} |
|
} |
|
} |
|
|
|
kotlin { |
|
androidTarget { publishLibraryVariants("release") } |
|
jvm() |
|
iosX64() |
|
iosArm64() |
|
iosSimulatorArm64() |
|
js { browser() } |
|
wasmJs { browser() } |
|
|
|
sourceSets { |
|
all { |
|
languageSettings { |
|
optIn("org.jetbrains.compose.resources.ExperimentalResourceApi") |
|
} |
|
} |
|
commonMain.dependencies { |
|
implementation(compose.runtime) |
|
implementation(compose.material3) |
|
implementation(compose.components.resources) |
|
} |
|
} |
|
} |
|
|
|
android { |
|
namespace = "me.sample.library" |
|
compileSdk = 34 |
|
defaultConfig { |
|
minSdk = 24 |
|
} |
|
compileOptions { |
|
sourceCompatibility = JavaVersion.VERSION_17 |
|
targetCompatibility = JavaVersion.VERSION_17 |
|
} |
|
} |
|
|
|
compose.resources { |
|
publicResClass = true |
|
packageOfResClass = "me.sample.library.resources" |
|
} |