Browse Source

config for build

sduduzog 7 năm trước cách đây
mục cha
commit
e4907ee9b8
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      app/build.gradle

+ 6 - 1
app/build.gradle

@@ -11,12 +11,17 @@ android {
         minSdkVersion 15
         targetSdkVersion 28
         versionCode 1
-        versionName "1.0"
+        versionName "0.1.0"
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
     }
     buildTypes {
         release {
+            minifyEnabled true
+            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+        }
+        debug {
             minifyEnabled false
+            applicationIdSuffix ".debug"
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
         }
     }