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)
+ }
+ }
}
}
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
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
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'
}
}