소스 검색

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'