2025-07-18 18:51:31 +08:00
|
|
|
|
2025-07-04 10:38:52 +08:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
alias(libs.plugins.kotlin.android)
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.android.grape"
|
|
|
|
compileSdk = 35
|
|
|
|
|
2025-07-18 18:51:31 +08:00
|
|
|
signingConfigs {
|
2025-07-18 18:57:32 +08:00
|
|
|
create("release") {
|
2025-07-18 18:51:31 +08:00
|
|
|
storeFile = file("key.jks")
|
|
|
|
storePassword = "androidgrape"
|
|
|
|
keyAlias = "key0"
|
|
|
|
keyPassword = "androidgrape"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-07-04 10:38:52 +08:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.android.grape"
|
|
|
|
minSdk = 23
|
|
|
|
targetSdk = 35
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2025-07-18 18:57:32 +08:00
|
|
|
signingConfig = signingConfigs.getByName("release")
|
2025-07-04 10:38:52 +08:00
|
|
|
isMinifyEnabled = false
|
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "11"
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
aidl = true
|
|
|
|
viewBinding = true
|
|
|
|
buildConfig = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
|
|
implementation(libs.androidx.appcompat)
|
|
|
|
implementation(libs.material)
|
|
|
|
implementation(libs.androidx.activity)
|
|
|
|
implementation(libs.androidx.constraintlayout)
|
|
|
|
implementation(libs.androidx.work.runtime.ktx)
|
|
|
|
testImplementation(libs.junit)
|
|
|
|
androidTestImplementation(libs.androidx.junit)
|
|
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
|
|
implementation ("com.blankj:utilcodex:1.31.1")
|
|
|
|
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
|
|
|
|
implementation("com.squareup.okhttp3:okhttp")
|
|
|
|
implementation("com.squareup.okhttp3:logging-interceptor")
|
|
|
|
implementation ("dev.rikka.shizuku:api:11.0.3")
|
|
|
|
implementation ("dev.rikka.shizuku:provider:11.0.3")
|
|
|
|
implementation ("com.google.code.gson:gson:2.10.1")
|
|
|
|
}
|