浏览代码

renames apk to include versionCode, eg.:
gplay-release-30010051.apk
generic-debug-30010051.apk

tobiasKaminsky 7 年之前
父节点
当前提交
2fda96d655
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      build.gradle

+ 6 - 0
build.gradle

@@ -263,5 +263,11 @@ tasks.withType(Test) {
     }
 }
 
+android.applicationVariants.all { variant ->
+    variant.outputs.all { output ->
+        outputFileName = "${output.baseName}-${variant.versionCode}.apk"
+    }
+}
+
 // uncomment for gplay (must be at the bottom)
 //apply plugin: 'com.google.gms.google-services'