70 lines
2.4 KiB
Plaintext
70 lines
2.4 KiB
Plaintext
import java.util.Date
|
|
import java.text.SimpleDateFormat
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("kotlin-kapt")
|
|
// id("applovin-quality-service")
|
|
id("com.google.gms.google-services")
|
|
id("com.google.firebase.crashlytics")
|
|
}
|
|
//applovin {
|
|
// apiKey = "hHy0TRZ_kHJAhCLAt5VqWT8vs5MIFuy1ovD8xKl9_ZsgCRVgFp7wgir1hEE6w1uxluE1n4w27wUS2MVr5X8XXh"
|
|
//}
|
|
val timestamp = SimpleDateFormat("MM_dd_HH_mm").format(Date())
|
|
android {
|
|
namespace = "com.moretool.free.applock.watcher"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
// com.moretool.free.applock.watcher
|
|
applicationId = "com.moretool.free.applock.test"
|
|
minSdk = 23
|
|
targetSdk = 34
|
|
versionCode = 4
|
|
versionName = "1.0.3"
|
|
setProperty("archivesBaseName", "AppLock_V" + versionName + "(${versionCode})_$timestamp")
|
|
testInstrumentationRunner = "androidx.watcher.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
implementation("com.google.android.material:material:1.12.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
implementation("androidx.legacy:legacy-support-v4:1.0.0")
|
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0")
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.watcher.ext:junit:1.1.5")
|
|
androidTestImplementation("androidx.watcher.espresso:espresso-core:3.5.1")
|
|
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
kapt("androidx.room:room-compiler:2.6.1")
|
|
implementation ("androidx.work:work-runtime:2.9.0") // 使用最新版本
|
|
|
|
|
|
implementation(platform("com.google.firebase:firebase-bom:32.3.1"))
|
|
implementation("com.google.firebase:firebase-analytics-ktx")
|
|
implementation("com.google.firebase:firebase-crashlytics-ktx")
|
|
} |