mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
118 lines
3.7 KiB
Plaintext
118 lines
3.7 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
id("kotlin-kapt")
|
|
}
|
|
|
|
val composeVersion = "1.0.5"
|
|
android {
|
|
compileSdk = 31
|
|
buildToolsVersion = "31.0.0"
|
|
|
|
defaultConfig {
|
|
applicationId = "li.songe.gkd"
|
|
minSdk = 26
|
|
targetSdk = 31
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = file("./android.jks")
|
|
storePassword = "KdMQ6pqiNSJ6Sype"
|
|
keyAlias = "key0"
|
|
keyPassword = "KdMQ6pqiNSJ6Sype"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
setProguardFiles(
|
|
listOf(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
)
|
|
signingConfig = signingConfigs.getByName("release")
|
|
manifestPlaceholders["appName"] = "搞快点"
|
|
}
|
|
debug {
|
|
applicationIdSuffix = ".debug"
|
|
manifestPlaceholders["appName"] = "搞快点-dev"
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = composeVersion
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// normal
|
|
implementation("androidx.appcompat:appcompat:1.4.0")
|
|
implementation("com.google.android.material:material:1.4.0")
|
|
|
|
// ktx
|
|
implementation("androidx.core:core-ktx:1.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.0")
|
|
|
|
// compose
|
|
implementation("androidx.compose.ui:ui:$composeVersion")
|
|
implementation("androidx.compose.material:material:$composeVersion")
|
|
implementation("androidx.compose.ui:ui-tooling-preview:$composeVersion")
|
|
debugImplementation("androidx.compose.ui:ui-tooling:$composeVersion")
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion")
|
|
implementation("androidx.activity:activity-compose:1.4.0")
|
|
implementation("androidx.navigation:navigation-compose:2.4.0-beta02")
|
|
|
|
// test
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.3")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
|
|
|
|
// https://github.com/RikkaApps/Shizuku-API
|
|
val shizukuVersion = "12.1.0"
|
|
implementation("dev.rikka.shizuku:api:$shizukuVersion")
|
|
implementation("dev.rikka.shizuku:provider:$shizukuVersion")
|
|
|
|
// 工具集合类
|
|
// https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README-CN.md
|
|
implementation("com.blankj:utilcodex:1.30.6")
|
|
|
|
// https://developer.android.com/jetpack/compose/navigation
|
|
implementation("androidx.navigation:navigation-compose:2.4.0-beta02")
|
|
|
|
// https://bugly.qq.com/docs/user-guide/instruction-manual-android/
|
|
implementation("com.tencent.bugly:crashreport:4.0.0")
|
|
|
|
// https://developer.android.google.cn/training/data-storage/room?hl=zh-cn
|
|
val roomVersion = "2.3.0"
|
|
implementation("androidx.room:room-runtime:$roomVersion")
|
|
kapt("androidx.room:room-compiler:$roomVersion")
|
|
implementation("androidx.room:room-ktx:$roomVersion")
|
|
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation ("com.google.code.gson:gson:2.8.9")
|
|
|
|
} |