From 13c1de7a419e40af21254da23f11a08f2a59bb4d Mon Sep 17 00:00:00 2001 From: "Angelo Mantellini (manangel)" Date: Mon, 24 Apr 2017 17:47:22 +0200 Subject: apk name correction Change-Id: I234a7ab99033ae19a8ace0ed32bc7041ceec6498 Signed-off-by: Angelo Mantellini (manangel) --- iget_android/app/build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'iget_android/app/build.gradle') diff --git a/iget_android/app/build.gradle b/iget_android/app/build.gradle index 43638e0a..13321fc0 100644 --- a/iget_android/app/build.gradle +++ b/iget_android/app/build.gradle @@ -30,7 +30,15 @@ android { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - signingConfig signingConfigs.release + applicationVariants.all { variant -> + variant.outputs.each { output -> + project.ext { appName = 'iget' } + def newName = output.outputFile.name + newName = newName.replace("app", "$project.ext.appName-$System.env.ABI") + output.outputFile = new File(output.outputFile.parent, newName) + } + } + signingConfig signingConfigs.release } debug { debuggable true @@ -56,6 +64,8 @@ android { abi { enable true // enable ABI split feature to create one APK per ABI universalApk false // don't generate an additional APK that targets all the ABIs + reset() + include 'armeabi-v7a' } } -- cgit 1.2.3-korg