Explorar el Código

Allow setting versionCode in parameter (#276)

Allow easier debug versionCode change
Jozef Hollý hace 9 años
padre
commit
cb58145361
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()}\""