breakingnews/app/build.gradle.kts
lvlisong 7f6734670e GIT 提交信息:
重构活动管理并清理广告集成

- 通过将 SDK 初始化直接集成到应用程序的 `onCreate` 方法中,并移除过时的代码,进行重构。
- 更新应用程序中的日志记录和活动管理,以简化生命周期跟踪并改进调试。
- 简化 `MainContent` 组件,通过接受参数改善 UI 管理,从而增强模块化并减少冗余。
- 移除不必要的依赖项和配置文件,以清理项目结构。
2025-01-24 04:33:57 +08:00

75 lines
2.2 KiB
Plaintext

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.jetbrains.kotlin.android)
}
android {
namespace = "io.sixminutes.breakingnews"
compileSdk = 35
defaultConfig {
applicationId = "io.sixminutes.breakingnews"
minSdk = 31
targetSdk = 35
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true
}
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.1"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}
dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.ui)
implementation(libs.androidx.ui.graphics)
implementation(libs.androidx.ui.tooling.preview)
implementation(libs.androidx.material3)
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
implementation("com.google.android.gms:play-services-base:18.2.0")
implementation("com.applovin:applovin-sdk:+")
implementation("com.applovin.dsp:linkedin-adapter:+")
implementation("com.adjust.sdk:adjust-android:5.0.2")
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.ui.test.junit4)
debugImplementation(libs.androidx.ui.tooling)
debugImplementation(libs.androidx.ui.test.manifest)
}