Package all language resources in device-specific APKs
Description
This MR sets a flag required for bundletool
to include (not split) language resources.
How Has This Been Tested?
APKs generated by bundletool
were evaluated before and after disabling the split flag.
Steps:
- Obtain bundletool
- Construct a device specific json file (see example below)
{
"supportedAbis": ["arm64-v8a", "armeabi-v7a"],
"supportedLocales": ["en", "fr"],
"screenDensity": 640,
"sdkVersion": 30
}
- Build VLC aab
- Run
java -jar bundletool-all-<ver>.jar build-apks --device-spec=my-spec.json --bundle=app-vlcBundle.aab --output=vlc.apks
- Run
unzip -l vlc.apks
Name
----
toc.pb
splits/base-arm64_v8a.apk
splits/base-en.apk
splits/base-fr.apk
splits/base-master.apk
splits/base-xxxhdpi.apk
-------
6 files
- Rebuild aab with flag set
- Repeat steps 4-5
Name
----
toc.pb
splits/base-arm64_v8a.apk
splits/base-master.apk
splits/base-xxxhdpi.apk
-------
4 files
Types of changes
-
Bug fix (non-breaking change which fixes an issue)
Checklist
-
I have read the CONTRIBUTING section of the README document.
Resolves
Fixes: #3091
Edited by Robert Stone