99 lines
3.8 KiB
Groovy
99 lines
3.8 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 35
|
|
buildToolsVersion '35.0.0'
|
|
namespace 'cn.com.jlbank.ai'
|
|
defaultConfig {
|
|
applicationId "cn.com.jlbank.ai"
|
|
minSdkVersion 21
|
|
targetSdkVersion 33
|
|
versionName System.getenv("versionName") ?: "1.0.0"
|
|
versionCode System.getenv("versionCode")?.toInteger() ?: 1
|
|
multiDexEnabled true
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
signingConfigs {
|
|
config {
|
|
keyAlias 'ai_jlyh_app'
|
|
keyPassword 'Kup9dayLY#*'
|
|
storeFile file('ai_jlyh_app.keystore')
|
|
storePassword 'Kup9dayLY#*'
|
|
v1SigningEnabled true
|
|
v2SigningEnabled true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
signingConfig signingConfigs.config
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
release {
|
|
signingConfig signingConfigs.config
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
aaptOptions {
|
|
additionalParameters '--auto-add-overlay'
|
|
ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
|
|
}
|
|
lintOptions {
|
|
checkReleaseBuilds false // 不检查 Release 构建
|
|
abortOnError false // 不中断构建
|
|
}
|
|
}
|
|
|
|
// 核心修复:统一 Kotlin 版本 + 解决依赖冲突
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
// 强制所有模块使用统一的 Kotlin 版本(1.8.22 适配你的依赖)
|
|
force 'org.jetbrains.kotlin:kotlin-stdlib:1.8.22'
|
|
force 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22'
|
|
force 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22'
|
|
// 排除所有第三方库自带的旧版 Kotlin 依赖,避免冲突
|
|
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk7'
|
|
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
|
implementation 'androidx.core:core:1.1.0'
|
|
implementation "androidx.fragment:fragment:1.1.0"
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
implementation 'com.facebook.fresco:fresco:2.5.0'
|
|
implementation "com.facebook.fresco:animated-gif:2.5.0"
|
|
implementation 'com.github.bumptech.glide:glide:4.9.0'
|
|
implementation 'com.alibaba:fastjson:1.2.83'
|
|
implementation 'androidx.webkit:webkit:1.5.0'
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.12'
|
|
implementation 'androidx.activity:activity-ktx:1.9.2'
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:3.12.12"
|
|
implementation "androidx.core:core-ktx:1.6.0"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.2.0"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:2.2.0"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"
|
|
implementation "com.github.getActivity:XXPermissions:18.63"
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:3.12.12"
|
|
implementation "androidx.core:core-ktx:1.6.0"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.2.0"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:2.2.0"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"
|
|
implementation "com.github.getActivity:XXPermissions:18.63"
|
|
|
|
implementation project(':ty-camera')
|
|
|
|
}
|