gov_affairs_cloud/app/build.gradle

134 lines
4.4 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

plugins {
id 'com.android.application'
}
def releaseTime() {
return new Date().format("yyyyMMddHHmmss")
}
android {
compileSdkVersion 33
defaultConfig {
applicationId "com.tairui.gov_affairs_cloud"
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.0"
multiDexEnabled true
javaCompileOptions {
annotationProcessorOptions {
arguments = [
//必须告知RxHttp你依赖的okhttp版本目前已适配 v3.12.0 - v4.8.1版本
rxhttp_okhttp : '4.8.1',
//使用asXxx方法时必须告知RxHttp你依赖的rxjava版本可传入rxjava2、rxjava3
rxhttp_rxjava : 'rxjava2',
rxhttp_package: 'rxhttp' //非必须指定RxHttp相关类的生成路径即包名
]
}
}
renderscriptTargetApi 21
renderscriptSupportModeEnabled true
}
buildFeatures {
viewBinding true
}
sourceSets {
main {
jniLibs.srcDir 'libs'
}
}
dexOptions {
javaMaxHeapSize "4g"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
release {
storeFile file('../key/tairui.jks')
storePassword "tairui"
keyAlias "tairui"
keyPassword "tairui"
}
}
buildTypes {
debug {
signingConfig signingConfigs.release
// buildConfigField "String", "DOMAIN", '"http://192.168.18.74:8080"'
buildConfigField "String", "DOMAIN", '"http://47.109.205.240:8080"'
jniDebuggable false
zipAlignEnabled false
}
release {
zipAlignEnabled true
signingConfig signingConfigs.release
minifyEnabled false
jniDebuggable false
buildConfigField "String", "DOMAIN", '"http://47.109.205.240:8080"'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "GovAffairsCloud_app_v${variant.versionName}_${releaseTime()}.apk"
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'com.google.code.gson:gson:2.8.7'
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖
implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头
implementation 'com.scwang.smart:refresh-header-material:2.0.1' //谷歌刷新头
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
// 事件总线
implementation 'org.greenrobot:eventbus:3.2.0'
//键值存储
implementation 'com.orhanobut:hawk:2.0.1'
//高德地图
implementation 'com.amap.api:3dmap:latest.integration'
// 底部导航库
implementation 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'
//rxhttp
implementation 'com.ljx.rxhttp:rxhttp:2.5.7'
implementation 'com.squareup.okhttp3:okhttp:4.8.1' //rxhttp v2.2.2版本起需要手动依赖okhttp
annotationProcessor 'com.ljx.rxhttp:rxhttp-compiler:2.5.7' //生成RxHttp类纯Java项目请使用annotationProcessor代替kapt
//rxjava2 (RxJava2/Rxjava3二选一使用asXxx方法时必须)
implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.rxjava.rxlife:rxlife:2.0.0'
// glide加载图片
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'com.contrarywind:Android-PickerView:4.1.9'
implementation 'com.github.li-xiaojun:XPopup:v2.2.23'
implementation project(path: ':AlbumDialog')
}