Browse Source

Allow setting versionCode in parameter (#276)

Allow easier debug versionCode change
Jozef Hollý 9 năm trước cách đây
mục cha
commit
cb58145361
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/build.gradle

+ 1 - 1
app/build.gradle

@@ -38,7 +38,7 @@ android {
         minSdkVersion 16
         targetSdkVersion 23
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
-        versionCode 6
+        versionCode project.getProperties().get("versionCode")?.toInteger() ?: 6
         versionName "0.2.0"
 
         buildConfigField "String", "COMMIT_COUNT", "\"${getCommitCount()}\""