apk name correction 82/6382/1
authorAngelo Mantellini (manangel) <[email protected]>
Mon, 24 Apr 2017 15:47:22 +0000 (17:47 +0200)
committerAngelo Mantellini (manangel) <[email protected]>
Mon, 24 Apr 2017 15:47:22 +0000 (17:47 +0200)
Change-Id: I234a7ab99033ae19a8ace0ed32bc7041ceec6498
Signed-off-by: Angelo Mantellini (manangel) <[email protected]>
ccnxandroidmetis/MetisControl/build.gradle
config/config.mk
iget_android/app/build.gradle

index a1e8ed1..99dca11 100644 (file)
@@ -16,6 +16,14 @@ android {
         release {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+            applicationVariants.all { variant ->
+               variant.outputs.each { output ->
+                       project.ext { appName = 'metis' }
+                       def newName = output.outputFile.name
+                       newName = newName.replace("MetisControl", "$project.ext.appName-$System.env.ABI")
+                       output.outputFile = new File(output.outputFile.parent, newName)
+               }
+               }
         }
     }
 
index d06f58d..a1e38da 100644 (file)
@@ -101,5 +101,5 @@ export ARCH=$(shell uname -m)
 CCNX_COMPILE_ENVIRONMENT=-DCMAKE_TOOLCHAIN_FILE=${DISTILLERY_ROOT_DIR}/config/config.android
 OPEN_SSL_DIR=-DOPENSSL_ROOT_DIR=${DISTILLERY_INSTALL_DIR}
 LIBEVENT_ROOT=${DISTILLERY_INSTALL_DIR}
-ABI=armeabi-v7a
+export ABI=armeabi-v7a
 
index 43638e0..13321fc 100644 (file)
@@ -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'
         }
     }