更新
This commit is contained in:
@@ -22,7 +22,7 @@ kotlin {
|
||||
jvmTarget.set(JvmTarget.JVM_11)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
@@ -33,7 +33,7 @@ kotlin {
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
jvm()
|
||||
|
||||
js {
|
||||
@@ -46,7 +46,7 @@ kotlin {
|
||||
browser()
|
||||
binaries.executable()
|
||||
}
|
||||
|
||||
|
||||
sourceSets {
|
||||
androidMain.dependencies {
|
||||
implementation(compose.preview)
|
||||
@@ -55,6 +55,9 @@ kotlin {
|
||||
// Koin依赖注入
|
||||
implementation(libs.koin.android)
|
||||
|
||||
// Ktor网络请求
|
||||
implementation(libs.ktor.client.android)
|
||||
|
||||
// firebase
|
||||
implementation(project.dependencies.platform(libs.firebase.bom))
|
||||
implementation(libs.firebase.analytics)
|
||||
@@ -66,6 +69,9 @@ kotlin {
|
||||
|
||||
// sqlite
|
||||
implementation(libs.androidx.room.sqlite.wrapper)
|
||||
|
||||
// admob
|
||||
implementation(libs.android.play.services.ads.identifier)
|
||||
}
|
||||
commonMain.dependencies {
|
||||
implementation(compose.runtime)
|
||||
@@ -86,6 +92,12 @@ kotlin {
|
||||
implementation(libs.koin.compose)
|
||||
implementation(libs.koin.viewmodel)
|
||||
|
||||
// Ktor网络请求
|
||||
implementation(libs.ktor.client.core)
|
||||
implementation(libs.ktor.client.logging)
|
||||
implementation(libs.ktor.client.content.negotiation)
|
||||
implementation(libs.ktor.serialization.kotlinx.json)
|
||||
|
||||
// coil
|
||||
implementation(libs.coil3.compose)
|
||||
implementation(libs.coil3.svg)
|
||||
@@ -106,6 +118,13 @@ kotlin {
|
||||
implementation(libs.androidx.room.runtime)
|
||||
implementation(libs.androidx.sqlite.bundled)
|
||||
}
|
||||
iosMain.dependencies {
|
||||
// ktor网络请求
|
||||
implementation(libs.ktor.client.darwin)
|
||||
|
||||
// implementation(libs.kotlinx.coroutines.core)
|
||||
// implementation(libs.kotlinx.coroutines.core.native)
|
||||
}
|
||||
jvmMain.dependencies {
|
||||
implementation(compose.desktop.currentOs)
|
||||
implementation(libs.kotlinx.coroutinesSwing)
|
||||
@@ -127,8 +146,11 @@ android {
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
|
||||
buildConfigField("String", "APP_NAME", "\"TaskTTL\"")
|
||||
|
||||
manifestPlaceholders["facebookAppId"] = libs.versions.android.facebookAppId.get()
|
||||
manifestPlaceholders["facebookClientToken"] = libs.versions.android.facebookClientToken.get()
|
||||
manifestPlaceholders["facebookClientToken"] =
|
||||
libs.versions.android.facebookClientToken.get()
|
||||
}
|
||||
packaging {
|
||||
resources {
|
||||
@@ -137,7 +159,20 @@ android {
|
||||
}
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
|
||||
buildConfigField("Boolean", "DEBUG", "false")
|
||||
buildConfigField("Integer", "APP_ID", "1")
|
||||
buildConfigField("Integer", "VERSION_CODE", libs.versions.android.versionCode.get())
|
||||
}
|
||||
|
||||
getByName("debug") {
|
||||
isMinifyEnabled = false
|
||||
|
||||
buildConfigField("Boolean", "DEBUG", "true")
|
||||
buildConfigField("Integer", "APP_ID", "999")
|
||||
buildConfigField("Integer", "VERSION_CODE", libs.versions.android.versionCode.get())
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
|
Reference in New Issue
Block a user