mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-12-12 00:33:43 +08:00
chore: migrate to version catalog, Gropify
This commit is contained in:
@@ -1,30 +1,34 @@
|
||||
plugins {
|
||||
autowire(libs.plugins.kotlin.multiplatform)
|
||||
autowire(libs.plugins.android.library)
|
||||
autowire(libs.plugins.jetbrains.compose)
|
||||
autowire(libs.plugins.compose.compiler)
|
||||
autowire(libs.plugins.maven.publish)
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.maven.publish)
|
||||
}
|
||||
|
||||
group = property.project.groupName
|
||||
version = property.project.flexiui.core.version
|
||||
group = gropify.project.groupName
|
||||
version = gropify.project.flexiui.core.version
|
||||
|
||||
kotlin {
|
||||
androidTarget {
|
||||
publishLibraryVariants("release")
|
||||
}
|
||||
|
||||
jvm("desktop")
|
||||
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64()
|
||||
).forEach { iosTarget ->
|
||||
iosTarget.binaries.framework {
|
||||
baseName = property.project.flexiui.core.iosModuleName
|
||||
baseName = gropify.project.flexiui.core.iosModuleName
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
jvmToolchain(17)
|
||||
|
||||
sourceSets {
|
||||
all {
|
||||
languageSettings {
|
||||
@@ -34,19 +38,20 @@ kotlin {
|
||||
optIn("androidx.compose.foundation.ExperimentalFoundationApi")
|
||||
}
|
||||
}
|
||||
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
// Mark foundation with api like material do.
|
||||
api(compose.foundation)
|
||||
implementation(composeExt.material.ripple)
|
||||
implementation(libs.composeExt.material.ripple)
|
||||
api(projects.flexiuiResources)
|
||||
api(com.highcapable.betterandroid.compose.extension)
|
||||
api(libs.betterandroid.compose.extension)
|
||||
}
|
||||
}
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
implementation(com.highcapable.betterandroid.ui.extension)
|
||||
implementation(libs.betterandroid.ui.extension)
|
||||
}
|
||||
}
|
||||
val desktopMain by getting
|
||||
@@ -63,15 +68,15 @@ kotlin {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = property.project.flexiui.core.namespace
|
||||
compileSdk = property.project.android.compileSdk
|
||||
namespace = gropify.project.flexiui.core.namespace
|
||||
compileSdk = gropify.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
|
||||
minSdk = gropify.project.android.minSdk
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
Reference in New Issue
Block a user