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 3 android {
4 4 compileSdkVersion 26
5 5 buildToolsVersion "26.0.0"
  6 +
  7 + dexOptions {
  8 + javaMaxHeapSize "4g"
  9 + }
  10 +
6 11 defaultConfig {
7 12 applicationId "com.cnlive.gundam"
8 13 minSdkVersion 16
... ... @@ -22,19 +27,30 @@ android {
22 27 storePassword "000000"
23 28 keyAlias "CNliveApp"
24 29 keyPassword "000000"
  30 + v2SigningEnabled false
25 31 }
26 32 }
27 33  
28 34 buildTypes {
29   - debug{
  35 + debug {
  36 + applicationIdSuffix ".debug"
30 37 signingConfig signingConfigs.myConfig
  38 + zipAlignEnabled true
31 39 }
32 40 release {
33 41 minifyEnabled false
34 42 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
35 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 56 dependencies {
... ...