|
|
@@ -1,5 +1,6 @@
|
|
|
apply plugin: 'com.android.application'
|
|
|
apply plugin: 'com.jakewharton.butterknife'
|
|
|
+//apply plugin: 'realm-android'//Realm数据库
|
|
|
android {
|
|
|
compileSdkVersion androidConfigs.compileSdkVersion
|
|
|
buildToolsVersion androidConfigs.buildToolsVersion
|
|
|
@@ -59,17 +60,17 @@ android {
|
|
|
}
|
|
|
}
|
|
|
productFlavors.all { flavor ->
|
|
|
- flavor.manifestPlaceholders = [DUANDUAN_GRAPH : "${flavor.name}",
|
|
|
- DUANDUAN_DATASHARE : "${flavor.name}",
|
|
|
+ flavor.manifestPlaceholders = [DUANDUAN_GRAPH : "${flavor.name}",
|
|
|
+ DUANDUAN_DATASHARE: "${flavor.name}",
|
|
|
]
|
|
|
}
|
|
|
productFlavors {
|
|
|
developSheeptest {
|
|
|
applicationId "com.sheep.jiuyan.samllsheep"
|
|
|
- manifestPlaceholders = [DUANDUAN_GRAPH : "sheeptest",
|
|
|
- DUANDUAN_DATASHARE : "sheeptest",
|
|
|
- jpush_appkey : "4fea09bdbf9661a9689ee306",
|
|
|
- umeng_app_key : "5ab0a1da8f4a9d742900035f"
|
|
|
+ manifestPlaceholders = [DUANDUAN_GRAPH : "sheeptest",
|
|
|
+ DUANDUAN_DATASHARE: "sheeptest",
|
|
|
+ jpush_appkey : "4fea09bdbf9661a9689ee306",
|
|
|
+ umeng_app_key : "5ab0a1da8f4a9d742900035f"
|
|
|
]
|
|
|
buildConfigField "String", "DUANDUAN_DATASHARE", '"sheeptest"'
|
|
|
buildConfigField "String", "DUANDUAN_GRAPH", '"sheeptest"'
|
|
|
@@ -80,10 +81,10 @@ android {
|
|
|
}
|
|
|
sheeptestjiguang {
|
|
|
applicationId "com.sheep.jiuyan.samllsheep.test"
|
|
|
- manifestPlaceholders = [DUANDUAN_GRAPH : "sheeptestjiguang",
|
|
|
- DUANDUAN_DATASHARE : "sheeptestjiguang",
|
|
|
- jpush_appkey : "4fea09bdbf9661a9689ee306",
|
|
|
- umeng_app_key : "5ab0a1da8f4a9d742900035f"
|
|
|
+ manifestPlaceholders = [DUANDUAN_GRAPH : "sheeptestjiguang",
|
|
|
+ DUANDUAN_DATASHARE: "sheeptestjiguang",
|
|
|
+ jpush_appkey : "4fea09bdbf9661a9689ee306",
|
|
|
+ umeng_app_key : "5ab0a1da8f4a9d742900035f"
|
|
|
]
|
|
|
buildConfigField "String", "DUANDUAN_DATASHARE", '"sheeptestjiguang"'
|
|
|
buildConfigField "String", "DUANDUAN_GRAPH", '"sheeptestjiguang"'
|
|
|
@@ -94,10 +95,10 @@ android {
|
|
|
}
|
|
|
sheep {
|
|
|
applicationId "com.sheep.jiuyan.samllsheep"
|
|
|
- manifestPlaceholders = [DUANDUAN_GRAPH : "sheep",
|
|
|
- DUANDUAN_DATASHARE : "sheep",
|
|
|
- jpush_appkey : "28b74d520261c6f78e3e0921",
|
|
|
- umeng_app_key : "5ab0a1da8f4a9d742900035f"
|
|
|
+ manifestPlaceholders = [DUANDUAN_GRAPH : "sheep",
|
|
|
+ DUANDUAN_DATASHARE: "sheep",
|
|
|
+ jpush_appkey : "28b74d520261c6f78e3e0921",
|
|
|
+ umeng_app_key : "5ab0a1da8f4a9d742900035f"
|
|
|
]
|
|
|
buildConfigField "String", "DUANDUAN_DATASHARE", '"sheep"'
|
|
|
buildConfigField "String", "DUANDUAN_GRAPH", '"sheep"'
|
|
|
@@ -262,6 +263,7 @@ dependencies {
|
|
|
// compile(name: 'compresshelper-release', ext: 'aar')
|
|
|
compile files('libs/compresshelper-release.jar')
|
|
|
}
|
|
|
+
|
|
|
static def releaseTime() {
|
|
|
return new Date().format("MMddHHmm", TimeZone.getDefault())
|
|
|
}
|
|
|
@@ -270,7 +272,7 @@ android.applicationVariants.all {
|
|
|
variant ->
|
|
|
variant.outputs.each {
|
|
|
output ->
|
|
|
- if(buildType.name == "release") {
|
|
|
+ if (buildType.name == "release") {
|
|
|
output.outputFile = new File(output.outputFile.parent, productFlavors[0].name + "_" + buildType.name + "_v" + android.defaultConfig.versionName + "_" + android.defaultConfig.versionCode + "-${releaseTime()}.apk")
|
|
|
}
|
|
|
|