66 行
2.1 KiB
Plaintext
66 行
2.1 KiB
Plaintext
|
|
plugins {
|
||
|
|
alias(libs.plugins.android.application)
|
||
|
|
alias(libs.plugins.kotlin.compose)
|
||
|
|
}
|
||
|
|
|
||
|
|
android {
|
||
|
|
namespace = "com.xuqm.sample"
|
||
|
|
compileSdk = libs.versions.compileSdk.get().toInt()
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
applicationId = "com.xuqm.sample"
|
||
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
||
|
|
targetSdk = libs.versions.targetSdk.get().toInt()
|
||
|
|
versionCode = 1
|
||
|
|
versionName = "0.1.0"
|
||
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||
|
|
manifestPlaceholders["authProviderAuthority"] = "com.xuqm.sample.auth"
|
||
|
|
manifestPlaceholders["sharedCacheAuthority"] = "com.xuqm.sample.sdk.cache.provider"
|
||
|
|
manifestPlaceholders["coreFileProviderAuthority"] = "com.xuqm.sample.sdk.fileprovider"
|
||
|
|
buildConfigField("String", "UPDATE_SERVER_BASE_URL", "\"http://192.168.116.9:3000/\"")
|
||
|
|
}
|
||
|
|
|
||
|
|
buildTypes {
|
||
|
|
release {
|
||
|
|
isMinifyEnabled = false
|
||
|
|
proguardFiles(
|
||
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||
|
|
"proguard-rules.pro",
|
||
|
|
)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
compileOptions {
|
||
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
||
|
|
targetCompatibility = JavaVersion.VERSION_21
|
||
|
|
}
|
||
|
|
|
||
|
|
buildFeatures {
|
||
|
|
compose = true
|
||
|
|
buildConfig = true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
kotlin {
|
||
|
|
jvmToolchain(21)
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
implementation(project(":commonsdk-core"))
|
||
|
|
implementation(project(":commonsdk-compose"))
|
||
|
|
implementation(project(":lib-szyx"))
|
||
|
|
implementation(libs.androidx.core.ktx)
|
||
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
||
|
|
implementation(libs.androidx.lifecycle.runtime.compose)
|
||
|
|
implementation(libs.androidx.activity.compose)
|
||
|
|
implementation(platform(libs.androidx.compose.bom))
|
||
|
|
implementation(libs.bundles.compose)
|
||
|
|
|
||
|
|
testImplementation(libs.junit4)
|
||
|
|
androidTestImplementation(libs.androidx.junit)
|
||
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
||
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
||
|
|
androidTestImplementation(libs.androidx.ui.test.junit4)
|
||
|
|
debugImplementation(libs.bundles.compose.debug)
|
||
|
|
}
|