Commit 7a9e45d8f06f8e6b6dbadb4ec48d1e1a53ff9dc1

Authored by 陈硕
2 parents 9c24e1b1 817385e5

Merge branch 'master' of bj.gitlab.cnlive.com:cnlive-team/CNLiveApp

Showing 1 changed file with 17 additions and 1 deletions
app/build.gradle
@@ -3,6 +3,11 @@ apply plugin: 'com.android.application' @@ -3,6 +3,11 @@ apply plugin: 'com.android.application'
3 android { 3 android {
4 compileSdkVersion 26 4 compileSdkVersion 26
5 buildToolsVersion "26.0.0" 5 buildToolsVersion "26.0.0"
  6 +
  7 + dexOptions {
  8 + javaMaxHeapSize "4g"
  9 + }
  10 +
6 defaultConfig { 11 defaultConfig {
7 applicationId "com.cnlive.gundam" 12 applicationId "com.cnlive.gundam"
8 minSdkVersion 16 13 minSdkVersion 16
@@ -22,19 +27,30 @@ android { @@ -22,19 +27,30 @@ android {
22 storePassword "000000" 27 storePassword "000000"
23 keyAlias "CNliveApp" 28 keyAlias "CNliveApp"
24 keyPassword "000000" 29 keyPassword "000000"
  30 + v2SigningEnabled false
25 } 31 }
26 } 32 }
27 33
28 buildTypes { 34 buildTypes {
29 - debug{ 35 + debug {
  36 + applicationIdSuffix ".debug"
30 signingConfig signingConfigs.myConfig 37 signingConfig signingConfigs.myConfig
  38 + zipAlignEnabled true
31 } 39 }
32 release { 40 release {
33 minifyEnabled false 41 minifyEnabled false
34 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 42 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
35 signingConfig signingConfigs.myConfig 43 signingConfig signingConfigs.myConfig
  44 + zipAlignEnabled true
36 } 45 }
37 } 46 }
  47 +
  48 + applicationVariants.all { variant ->
  49 + def file = variant.outputs[0].outputFile
  50 + def name = "CNliveApp_" + defaultConfig.versionName + "_" + variant.buildType.name + ".apk";
  51 + variant.outputs[0].outputFile = new File(file.parent, name)
  52 + }
  53 +
38 } 54 }
39 55
40 dependencies { 56 dependencies {