Files
bzForGk2/app/build.gradle
T

65 lines
1.8 KiB
Groovy
Raw Normal View History

plugins {
id 'com.android.application'
}
android {
namespace 'cn.hugh.bz.gk2'
compileSdk 34
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 {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
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'
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
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'
// Lottie animations
implementation 'com.airbnb.android:lottie:6.3.0'
// Blur effect for glassmorphism
implementation 'jp.wasabeef:blurry:4.0.1'
}