143 lines
5.2 KiB
Groovy
143 lines
5.2 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
static def releaseTime() {
|
|
return new Date().format("yyyy-MM-dd HH-mm-ss")
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
defaultConfig {
|
|
applicationId "com.cgsoft.terminal"
|
|
minSdkVersion 19
|
|
targetSdkVersion 21
|
|
versionCode 2
|
|
versionName "40"
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
multiDexEnabled true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
//signingConfig signingConfigs.realease
|
|
}
|
|
}
|
|
|
|
ndkVersion '23.1.7779620'
|
|
android.applicationVariants.all {
|
|
variant ->
|
|
variant.outputs.all {
|
|
def fileName = "canteen_terminal_${defaultConfig.versionName}_${releaseTime()}.apk"
|
|
outputFileName = fileName
|
|
}
|
|
}
|
|
// 配置lambda
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
signingConfigs {
|
|
release {
|
|
keyAlias 'key'
|
|
keyPassword 'zhuyu1113'
|
|
storeFile file('E:\\Workspace\\workspace_ShiTang\\Android\\canteen.jks')
|
|
storePassword 'zhuyu1113'
|
|
}
|
|
debug {
|
|
keyAlias 'key'
|
|
keyPassword 'zhuyu1113'
|
|
storeFile file('E:\\Workspace\\workspace_ShiTang\\Android\\canteen.jks')
|
|
storePassword 'zhuyu1113'
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
checkReleaseBuilds false
|
|
abortOnError false
|
|
}
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
}
|
|
}
|
|
buildToolsVersion '30.0.0'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar","*.aar"])
|
|
implementation "com.android.support:exifinterface:28.0.0"
|
|
implementation "com.android.support:appcompat-v7:28.0.0"
|
|
// implementation "com.android.support:support-v4:28.0.0"
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
|
|
implementation "com.android.support:design:28.0.0"
|
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
|
|
|
// implementation 'me.yokeyword:fragmentation:1.3.7'
|
|
implementation 'me.yokeyword:fragmentationx:1.0.2'
|
|
// implementation 'me.yokeyword:fragmentation-swipeback:1.3.7'
|
|
implementation 'me.yokeyword:fragmentationx-swipeback:1.0.2'
|
|
implementation 'me.yokeyword:eventbus-activity-scope:1.1.0'
|
|
implementation 'org.greenrobot:eventbus:3.1.1'
|
|
|
|
implementation 'com.blankj:utilcode:1.24.7'
|
|
|
|
//noinspection GradleDependency
|
|
implementation 'com.github.xuexiangjys:XUI:1.0.4'
|
|
// implementation('com.qmuiteam:qmui:1.4.0') {
|
|
// transitive = false
|
|
// }
|
|
//SmartRefreshLayout
|
|
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-27'
|
|
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-27'
|
|
|
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
|
//noinspection GradleDependency
|
|
implementation 'com.github.bumptech.glide:glide:4.8.0'
|
|
//butterknife
|
|
// //noinspection GradleDependency
|
|
// implementation 'com.jakewharton:butterknife:8.8.1'
|
|
// //noinspection GradleDependency
|
|
// annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
|
|
implementation 'com.jakewharton:butterknife:10.2.3'
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
|
|
implementation 'com.gyf.immersionbar:immersionbar:3.0.0-beta05'
|
|
|
|
implementation('com.lzy.net:okgo:3.0.1') {
|
|
exclude module: 'okhttp'
|
|
}
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
|
|
implementation('com.alibaba.android:vlayout:1.2.8@aar') {
|
|
transitive = true
|
|
}
|
|
|
|
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.44'
|
|
// implementation project(':library')
|
|
//implementation 'com.jaredrummler:material-spinner:1.3.1'
|
|
|
|
implementation group: 'net.iharder', name: 'base64', version: '2.3.9'
|
|
// implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
|
|
implementation 'com.github.Hitomis:CrazyShadow:v1.0.1'
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
|
|
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
|
|
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.8'
|
|
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.9'
|
|
// https://mvnrepository.com/artifact/com.alibaba/fastjson
|
|
implementation group: 'com.alibaba', name: 'fastjson', version: '1.2.59'
|
|
//Gson 泛型处理 --https://www.jianshu.com/p/d62c2be60617--https://jitpack.io/#ikidou/TypeBuilder/1.0
|
|
implementation 'com.github.ikidou:TypeBuilder:1.0'
|
|
|
|
implementation files('libs/xUtils-2.6.14.jar')
|
|
|
|
}
|