mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 19:44:25 +08:00
77 lines
2.2 KiB
Plaintext
77 lines
2.2 KiB
Plaintext
plugins {
|
|
autowire(libs.plugins.kotlin.multiplatform)
|
|
autowire(libs.plugins.android.library)
|
|
autowire(libs.plugins.jetbrains.compose)
|
|
}
|
|
|
|
group = property.project.groupName
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
jvm("desktop")
|
|
listOf(
|
|
iosX64(),
|
|
iosArm64(),
|
|
iosSimulatorArm64(),
|
|
).forEach { iosTarget ->
|
|
iosTarget.binaries.framework {
|
|
baseName = projects.flexiuiCore.name
|
|
isStatic = true
|
|
}
|
|
}
|
|
jvmToolchain(17)
|
|
sourceSets {
|
|
all {
|
|
languageSettings {
|
|
optIn("androidx.compose.ui.ExperimentalComposeUiApi")
|
|
optIn("androidx.compose.foundation.ExperimentalFoundationApi")
|
|
}
|
|
}
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation(compose.runtime)
|
|
implementation(compose.foundation)
|
|
// TODO: We need to remove this and replace with "material-ripple"
|
|
implementation(compose.material)
|
|
implementation(projects.flexiuiResources)
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependencies {
|
|
implementation(com.highcapable.betterandroid.ui.extension)
|
|
}
|
|
}
|
|
val desktopMain by getting
|
|
val iosX64Main by getting
|
|
val iosArm64Main by getting
|
|
val iosSimulatorArm64Main by getting
|
|
val iosMain by creating {
|
|
dependsOn(commonMain)
|
|
iosX64Main.dependsOn(this)
|
|
iosArm64Main.dependsOn(this)
|
|
iosSimulatorArm64Main.dependsOn(this)
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = property.project.groupName
|
|
compileSdk = property.project.android.compileSdk
|
|
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
sourceSets["main"].res.srcDirs("src/androidMain/res")
|
|
sourceSets["main"].resources.srcDirs("src/commonMain/resources")
|
|
|
|
defaultConfig {
|
|
minSdk = property.project.android.minSdk
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
} |