wanhui/app/build.gradle

91 lines
3.2 KiB
Groovy
Raw Normal View History

2023-07-27 16:50:09 +08:00
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}
static def releaseTime() {
return "" + new Date().format("yyyyMMddHHmm", TimeZone.getTimeZone("Asia/Shanghai"))
}
android {
compileSdk 32
defaultConfig {
applicationId "com.cmx.wanhui"
minSdk 21
targetSdk 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2023-08-08 17:32:34 +08:00
ndk {
// 设置支持的SO库架构
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
}
manifestPlaceholders = [
JPUSH_PKGNAME: applicationId,
JPUSH_APPKEY : "2d2ceb987c93daf0a175f684", //JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
]
2023-07-27 16:50:09 +08:00
}
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "wanhui" + versionName + "_" + versionCode + "_" + releaseTime() + ".apk"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
viewBinding true
}
2023-08-08 17:32:34 +08:00
2023-07-27 16:50:09 +08:00
}
dependencies {
implementation(fileTree("libs"))
implementation 'androidx.work:work-runtime:2.7.1'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
implementation 'androidx.navigation:navigation-fragment:2.3.5'
implementation 'androidx.navigation:navigation-ui:2.3.5'
implementation 'androidx.annotation:annotation:1.2.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.github.GrenderG:Toasty:1.5.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1'
implementation 'com.github.lsxiao.Apollo:core:1.0.2'
implementation 'com.github.lsxiao.Apollo:ipc:1.0.2'
kapt "com.github.lsxiao.Apollo:processor:1.0.2"
//Apollo的编译时注解处理器
annotationProcessor "com.github.lsxiao.Apollo:processor:1.0.2"
implementation "io.reactivex.rxjava2:rxjava:2.2.4"
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
implementation 'com.github.nanchen2251:CompressHelper:1.0.5'
implementation 'com.google.zxing:core:3.4.0'
implementation 'com.journeyapps:zxing-android-embedded:3.6.0'
2023-08-08 17:32:34 +08:00
// 此处以JPush 5.0.0 版本为例5.0.0 版本开始可以自动拉取 JCore 包,无需另外配置
implementation 'cn.jiguang.sdk:jpush:5.0.0'
2023-07-27 16:50:09 +08:00
}