48 行
1.4 KiB
Plaintext
48 行
1.4 KiB
Plaintext
|
|
plugins {
|
||
|
|
alias(libs.plugins.android.library)
|
||
|
|
alias(libs.plugins.kotlin.compose)
|
||
|
|
alias(libs.plugins.kotlin.serialization)
|
||
|
|
}
|
||
|
|
|
||
|
|
apply(from = rootProject.file("gradle/publishing.gradle.kts"))
|
||
|
|
|
||
|
|
android {
|
||
|
|
namespace = "com.xuqm.szyx"
|
||
|
|
compileSdk = libs.versions.compileSdk.get().toInt()
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
||
|
|
consumerProguardFiles("consumer-rules.pro")
|
||
|
|
manifestPlaceholders["authProviderAuthority"] = "com.xuqm.szyx.auth"
|
||
|
|
manifestPlaceholders["sharedCacheAuthority"] = "com.xuqm.szyx.sdk.cache.provider"
|
||
|
|
manifestPlaceholders["coreFileProviderAuthority"] = "com.xuqm.szyx.sdk.fileprovider"
|
||
|
|
}
|
||
|
|
|
||
|
|
compileOptions {
|
||
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
||
|
|
targetCompatibility = JavaVersion.VERSION_21
|
||
|
|
}
|
||
|
|
|
||
|
|
buildFeatures {
|
||
|
|
compose = true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
kotlin {
|
||
|
|
jvmToolchain(21)
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
api(project(":commonsdk-core"))
|
||
|
|
api(project(":commonsdk-compose"))
|
||
|
|
implementation(libs.androidx.core.ktx)
|
||
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
||
|
|
implementation(libs.androidx.activity.compose)
|
||
|
|
implementation(platform(libs.androidx.compose.bom))
|
||
|
|
implementation(libs.bundles.compose)
|
||
|
|
implementation(libs.androidx.datastore.preferences)
|
||
|
|
implementation(libs.kotlinx.serialization.json)
|
||
|
|
|
||
|
|
debugImplementation(libs.bundles.compose.debug)
|
||
|
|
}
|