2024-02-06 21:23:28 +08:00
|
|
|
buildscript {
|
|
|
|
ext {
|
|
|
|
agp_version = '5.5.1'
|
|
|
|
agp_version1 = '5.5.1'
|
|
|
|
}
|
|
|
|
}
|
2019-02-01 09:19:44 +08:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
//apply plugin: 'com.jakewharton.butterknife'
|
|
|
|
// apply plugin: 'com.neenbedankt.android-apt'
|
|
|
|
android {
|
2019-05-18 23:02:33 +08:00
|
|
|
signingConfigs {
|
|
|
|
releaseConfig {
|
|
|
|
keyAlias 'key0'
|
|
|
|
keyPassword 'hello123'
|
2024-02-06 21:23:28 +08:00
|
|
|
storeFile file('D:/android/asProjects/mykeystore.jks')
|
2019-05-18 23:02:33 +08:00
|
|
|
storePassword 'hello123'
|
|
|
|
}
|
|
|
|
}
|
2019-02-01 09:19:44 +08:00
|
|
|
compileSdkVersion 28
|
|
|
|
buildToolsVersion "28.0.3"
|
|
|
|
defaultConfig {
|
2024-02-06 21:23:28 +08:00
|
|
|
// applicationId "com.novelbook.android"
|
|
|
|
applicationId "com.deiniu.wms"
|
2019-05-14 00:03:04 +08:00
|
|
|
minSdkVersion 19 //target 19 Android 4.4 以下版本仅占比4.1%
|
2024-02-06 21:23:28 +08:00
|
|
|
targetSdkVersion 33
|
2024-11-02 21:02:04 +08:00
|
|
|
versionCode 99
|
|
|
|
versionName "v1.99"
|
2019-02-01 09:19:44 +08:00
|
|
|
|
|
|
|
// testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2019-05-13 00:18:07 +08:00
|
|
|
|
2019-02-01 09:19:44 +08:00
|
|
|
// vectorDrawables.useSupportLibrary = true
|
2019-05-13 00:18:07 +08:00
|
|
|
|
2024-02-06 21:23:28 +08:00
|
|
|
// javaMaxHeapSize 4g
|
2019-02-01 09:19:44 +08:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
|
2019-02-16 23:34:42 +08:00
|
|
|
renderscriptTargetApi 24 //blurkit
|
|
|
|
renderscriptSupportModeEnabled true //blurkit
|
2019-02-15 23:48:25 +08:00
|
|
|
|
2019-05-11 23:21:57 +08:00
|
|
|
multiDexEnabled true //突破65535
|
2024-03-29 16:35:54 +08:00
|
|
|
// flavorDimensions "default" //debug时注销, 不然没有debug信息输出
|
2024-02-06 21:23:28 +08:00
|
|
|
}
|
|
|
|
tasks.withType(JavaExec){
|
|
|
|
maxHeapSize="2g";
|
2019-02-01 09:19:44 +08:00
|
|
|
}
|
|
|
|
buildTypes {
|
2024-02-06 21:23:28 +08:00
|
|
|
debug {
|
|
|
|
// 显示Log
|
|
|
|
buildConfigField "boolean", "LOG_DEBUG", "true"
|
2024-11-02 21:02:04 +08:00
|
|
|
// buildConfigField "String", "MAIN_HOST", '"http://175.24.179.109:10002/android.svc/"'
|
2024-02-06 21:23:28 +08:00
|
|
|
// buildConfigField "boolean", "canWeightEdit", "true"
|
|
|
|
// buildConfigField "String", "MAIN_HOST", '" http://192.168.1.6:10002/android.svc/"'
|
2024-11-02 21:02:04 +08:00
|
|
|
buildConfigField "String", "MAIN_HOST", '" http://192.168.2.9:10002/android.svc/"'
|
2024-02-06 21:23:28 +08:00
|
|
|
// buildConfigField "String", "MAIN_HOST", '" http://192.168..212:9998/dnlight/"'
|
|
|
|
//buildConfigField "String", "MAIN_HOST", '""'
|
2024-11-02 21:02:04 +08:00
|
|
|
|
2024-02-06 21:23:28 +08:00
|
|
|
// buildConfigField "String", "API_HOST", '"{\\"master\\":[\\"http:\\\\/\\\\/dg.xiaoshuofenxiang.com\\"],\\"page\\":[\\"http:\\\\/\\\\/d.p.xiaoshuofenxiang.com\\"],\\"report\\":[\\"http:\\\\/\\\\//d.r.xiaoshuofenxiang.com\\"],\\"search\\":[\\"http:\\\\/\\\\//d.s.xiaoshuofenxiang.com\\"],\\"novel\\":[\\"http:\\\\/\\\\//d.n.xiaoshuofenxiang.com\\"],\\"novelsbydot\\":[\\"http:\\\\/\\\\//d.nbd.xiaoshuofenxiang.com\\"],\\"user\\":[\\"http:\\\\/\\\\//d.u.xiaoshuofenxiang.com\\"]}"'
|
|
|
|
buildConfigField "String", "API_HOST", '""'
|
|
|
|
buildConfigField "String", "VERSIONIP", '"175.24.179.109"'
|
|
|
|
buildConfigField "Boolean", "isFakeData", 'false'
|
|
|
|
buildConfigField "Boolean", "canVersionCheck", 'true'
|
|
|
|
buildConfigField "Boolean", "isGoogleOnly", 'false'
|
|
|
|
// buildConfigField "String", "CHANNEL",'"DEBUG"'
|
|
|
|
versionNameSuffix "-debug"
|
|
|
|
minifyEnabled false
|
|
|
|
zipAlignEnabled false
|
|
|
|
shrinkResources false
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
|
|
|
release {
|
|
|
|
// 暂时显示Log 。。。。。。。。。。。。。。。上线时关闭
|
|
|
|
buildConfigField "Boolean", "isFakeData", 'false'
|
|
|
|
buildConfigField "boolean", "LOG_DEBUG", "true"
|
|
|
|
buildConfigField "String", "MAIN_HOST", '"http://175.24.179.109:10002/android.svc/"'
|
|
|
|
// buildConfigField "String", "MAIN_HOST", '" http://192.168.2.12:9998/dnlight/"'
|
|
|
|
buildConfigField "String", "API_HOST", '""'
|
|
|
|
// buildConfigField "boolean", "canWeightEdit", "true"
|
|
|
|
buildConfigField "Boolean", "canVersionCheck", 'true'
|
|
|
|
buildConfigField "String", "VERSIONIP", '"175.24.179.109"'
|
|
|
|
// buildConfigField "Boolean", "isFakeData", 'false'
|
|
|
|
//混淆
|
|
|
|
minifyEnabled true
|
|
|
|
//Zipalign优化
|
|
|
|
zipAlignEnabled true
|
|
|
|
// 移除无用的resource文件
|
|
|
|
shrinkResources true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
// versionCode 1
|
|
|
|
// versionName "v1.0"
|
|
|
|
applicationVariants.all { variant ->
|
|
|
|
variant.outputs.all { output ->
|
|
|
|
def outFile = output.outputFile
|
|
|
|
if (outFile != null && outFile.name.endsWith(".apk")) {
|
|
|
|
//def fileName = "${defaultConfig.versionName}-" + "${releaseTime()}" + "-${variant.productFlavors[0].name}" + ".apk"
|
|
|
|
def fileName = "${defaultConfig.versionName}-" + "${releaseTime()}" + ".apk"
|
|
|
|
outputFileName = fileName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
signingConfig signingConfigs.releaseConfig
|
|
|
|
}
|
2019-06-14 23:45:09 +08:00
|
|
|
|
2019-06-29 22:47:08 +08:00
|
|
|
|
2019-05-11 23:21:57 +08:00
|
|
|
}
|
2019-06-16 16:01:27 +08:00
|
|
|
|
2019-05-11 23:21:57 +08:00
|
|
|
android {
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
2019-02-01 09:19:44 +08:00
|
|
|
}
|
|
|
|
}
|
2019-02-25 21:16:15 +08:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
jniLibs.srcDirs = ['libs']
|
|
|
|
}
|
|
|
|
}
|
2019-02-01 09:19:44 +08:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
|
|
|
}
|
2019-06-30 00:49:02 +08:00
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "4g"
|
|
|
|
}
|
|
|
|
|
2019-05-13 00:18:07 +08:00
|
|
|
}
|
2019-05-27 23:11:41 +08:00
|
|
|
|
2019-05-13 00:18:07 +08:00
|
|
|
def releaseTime() {
|
2019-05-18 23:02:33 +08:00
|
|
|
return new Date().format("yyyyMMdd", TimeZone.getTimeZone("UTC"))
|
2019-05-13 00:18:07 +08:00
|
|
|
}
|
2019-05-18 23:02:33 +08:00
|
|
|
|
2019-02-01 09:19:44 +08:00
|
|
|
dependencies {
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
|
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
|
|
|
implementation 'com.android.support:design:28.0.0'
|
|
|
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
|
|
|
implementation 'com.android.support:support-vector-drawable:28.0.0'
|
|
|
|
implementation 'com.android.support:support-v4:28.0.0'
|
|
|
|
implementation 'android.arch.lifecycle:extensions:1.1.1'
|
2019-02-01 22:48:32 +08:00
|
|
|
implementation 'com.google.android.gms:play-services-plus:16.0.0'
|
2019-02-01 09:19:44 +08:00
|
|
|
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'
|
|
|
|
api 'com.jakewharton:butterknife:9.0.0'
|
|
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
|
|
|
|
// api 'com.google.daggerdagger:2.9'
|
|
|
|
// annotationProcessor 'com.google.dagger:dagger-compiler:2.9'
|
|
|
|
// api 'com.google.dagger:dagger:2.11'
|
|
|
|
// annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
|
|
|
|
implementation 'com.youth.banner:banner:1.4.10'
|
|
|
|
api 'com.github.bumptech.glide:glide:4.6.1'
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
2019-02-15 23:48:25 +08:00
|
|
|
// implementation 'com.viewpagerindicator:library:2.4.1'
|
|
|
|
//implementation 'com.github.auv1107:tablayout-android:-SNAPSHOT'
|
|
|
|
implementation 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
|
2024-02-06 21:23:28 +08:00
|
|
|
// implementation 'io.altera.blurkit:blurkit:1.1.1'
|
2019-02-25 21:16:15 +08:00
|
|
|
implementation 'org.litepal.android:java:3.0.0'
|
|
|
|
api 'com.astuetz:pagerslidingtabstrip:1.0.1'
|
2019-04-02 10:47:07 +08:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
|
|
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
|
|
|
|
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
|
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.0'
|
|
|
|
implementation 'com.packetzoom:pz-okhttp3-interceptor:3.2.43'
|
|
|
|
api 'io.reactivex.rxjava2:rxandroid:2.1.0'
|
2019-04-12 23:02:31 +08:00
|
|
|
implementation 'com.github.bumptech.glide:glide:4.9.0'
|
|
|
|
implementation 'jp.wasabeef:glide-transformations:2.0.1'
|
|
|
|
implementation 'com.timqi.collapsibletextview:library:1.1.2'
|
2024-02-06 21:23:28 +08:00
|
|
|
|
2019-04-20 00:26:49 +08:00
|
|
|
implementation 'com.github.chengzipi:Searchbox:v1.0.0'
|
2024-11-01 11:37:16 +08:00
|
|
|
// implementation 'com.github.ixiaow:multilayout:1.0.0'
|
2024-02-06 21:23:28 +08:00
|
|
|
|
2019-05-21 23:30:59 +08:00
|
|
|
implementation 'q.rorbin:VerticalTabLayout:1.2.5'
|
|
|
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.16'
|
2024-02-06 21:23:28 +08:00
|
|
|
|
|
|
|
implementation(name: 'autoreplyprint', ext: 'aar')
|
|
|
|
implementation 'com.blankj:utilcode:1.9.8'
|
2024-11-01 11:37:16 +08:00
|
|
|
implementation 'com.google.zxing:core:3.3.3'
|
2024-02-06 21:23:28 +08:00
|
|
|
//implementation "androidx.fragment:fragment:1.3.3"
|
2019-02-01 09:19:44 +08:00
|
|
|
}
|