Ad
Suffix / Prefix / InBetween The .APK Name When Split By ABI
I have split my .APK file into multiple smaller sized .APKs using this
As far as my understanding goes. The Gradle system generates multiple .APK files for different ABIs that I am supporting. Each .APK follows the naming convention as mentioned here
Is there any way I can modify the name of the .APK files generated? I would like to either add a suffix / prefix / in between some string value which would help me identify the .APK being generated. Specifically the gitSha.
Ad
Answer
Yes, use outputFileName
in your build.gradle
.
Here's an example:
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
outputFileName = applicationName + "-" + output.getFilter(com.android.build.OutputFile.ABI) + "-" + variant.name + ".apk"
}
}
Assuming app name is "MyApp", APK name will be MyApp-x86-debug
for a debug build for the x86 ABI.
Ad
source: stackoverflow.com
Related Questions
- → should I choose reactjs+f7 or f7+vue.js?
- → Phonegap Android write to sd card
- → Local reference jquery script in nanohttpd (Android)
- → Click to navigate on mobile devices
- → How to allow api access to android or ios app only(laravel)?
- → Access the Camera and CameraRoll on Android using React Native?
- → React native change listening port
- → What is the default unit of style in React Native?
- → Google play market autocomplete icon
- → Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`
- → Using Laravel with Genymotion
- → react native using like web-based ajax function
- → react native pdf View
Ad