2026-01-20 23:45:39 +08:00
|
|
|
plugins {
|
|
|
|
|
id 'com.android.application'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace 'cn.hugh.bz.gk2'
|
2026-01-22 19:56:33 +08:00
|
|
|
compileSdk 34
|
2026-01-20 23:45:39 +08:00
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId "cn.hugh.bz.gk2"
|
|
|
|
|
minSdk 24
|
|
|
|
|
targetSdk 31
|
|
|
|
|
versionCode 1
|
|
|
|
|
versionName "1.0"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
2026-01-22 00:49:57 +08:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2026-01-20 23:45:39 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-22 19:56:33 +08:00
|
|
|
configurations.all {
|
|
|
|
|
resolutionStrategy {
|
|
|
|
|
// 强制使用统一的 Kotlin 版本,避免依赖冲突
|
|
|
|
|
force 'org.jetbrains.kotlin:kotlin-stdlib:1.8.22'
|
|
|
|
|
eachDependency { DependencyResolveDetails details ->
|
|
|
|
|
if (details.requested.group == 'org.jetbrains.kotlin') {
|
|
|
|
|
details.useVersion '1.8.22'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 排除已废弃的 kotlin-stdlib-jdk7 和 kotlin-stdlib-jdk8
|
|
|
|
|
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk7'
|
|
|
|
|
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-20 23:45:39 +08:00
|
|
|
dependencies {
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
2026-01-25 14:54:47 +08:00
|
|
|
implementation 'com.google.android.material:material:1.11.0'
|
2026-01-20 23:45:39 +08:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
|
|
|
|
|
|
|
|
// Glide for image loading
|
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.16.0'
|
|
|
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
|
|
|
|
|
|
|
|
|
|
// JSON parsing
|
|
|
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
|
|
|
|
|
|
|
|
// Permissions
|
|
|
|
|
implementation 'androidx.core:core:1.12.0'
|
2026-01-25 14:54:47 +08:00
|
|
|
|
|
|
|
|
// Lottie animations
|
|
|
|
|
implementation 'com.airbnb.android:lottie:6.3.0'
|
|
|
|
|
|
|
|
|
|
// Blur effect for glassmorphism
|
|
|
|
|
implementation 'jp.wasabeef:blurry:4.0.1'
|
2026-01-20 23:45:39 +08:00
|
|
|
}
|