apply plugin: 'com.android.application' static def releaseTime() { return new Date().format("yyyy-MM-dd HH-mm-ss") } android { compileSdkVersion 28 defaultConfig { applicationId "net.microcrrystal.canteen" minSdkVersion 21 targetSdkVersion 28 versionCode 2 versionName "32" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' //signingConfig signingConfigs.realease } } // 配置lambda compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } signingConfigs { debug { storeFile file('E:\\Workspace\\workspace_ShiTang\\Android\\canteen.jks') storePassword 'zhuyu1113' keyAlias = 'key' keyPassword 'zhuyu1113' } release { storeFile file('E:\\Workspace\\workspace_ShiTang\\Android\\canteen.jks') storePassword 'zhuyu1113' keyPassword 'zhuyu1113' keyAlias = 'key' } } android.applicationVariants.all { variant -> variant.outputs.all { def fileName = "canteen_gate_brake_${defaultConfig.versionName}_${releaseTime()}.apk" outputFileName = fileName } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') 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 '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:fragmentation-swipeback:1.3.7' 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.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 'net.iharder:base64:2.3.9' implementation fileTree(include: ['*.aar', '*.jar'], exclude: [], dir: 'libs') implementation 'com.github.Hitomis:CrazyShadow:v1.0.1' // https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 implementation 'org.apache.commons:commons-lang3:3.9' // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core implementation 'com.fasterxml.jackson.core:jackson-core:2.9.8' // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.9' // https://mvnrepository.com/artifact/com.alibaba/fastjson implementation 'com.alibaba:fastjson: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') implementation files('libs/BASE64Encoder.jar') implementation files('libs/HdxUtil.jar') implementation 'com.android.support:recyclerview-v7:28.0.0' }