android / android/app-bundle-samples
Sample code at app-bundle-samples/PlayAssetDelivery/NativeSample/ not generating all standalone apks
- Dominant language
- C++
- Stars
- 735
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to use the sample code located here - https://github.com/android/app-bundle-samples/tree/main/PlayAssetDelivery/NativeSample to get an understanding of App Bundles.
According to the documentation when the minSDK Version is less than 21, the Bundle shall generate standalone apks for every ABI-DPI combination. In this case when we are generating the standalone apks using the following command -
```
Bundletool build-apks --bundle=Teapot-release.aab --output=output.apks
```
**Bundletool Version - 1.11.0**
The Standalones folder just generates a single standalone apk.
On debugging further it seems like the bundle config has this set for Standalone Dimensions -
```
"standaloneConfig": {
"splitDimension": [{
"value": "ABI",
"negate": true
}, {
"value": "SCREEN_DENSITY",
"negate": true
}, {
"value": "LANGUAGE",
"negate": true
}, {
"value": "TEXTURE_COMPRESSION_FORMAT",
"negate": true
}],
"strip64BitLibraries": true
}
},
```
However when I set the minSdk value >=21, in that case the StandaloneConfig is empty. I donot see a place where these standalone configuration is being set. Am I missing something over here?
Contributor guide
Research direction
Start with app-bundle-samples/PlayAssetDelivery/NativeSample/ and reproduce the output using Bundletool 1.11.0 with the documented command. Compare the generated standalone APKs and standaloneConfig for minSdk values below and at least 21; done means determining whether the sample or configuration explains the missing ABI-DPI combinations and documenting or correcting that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100