[TIMOB-27852] Android: Production builds no longer copy AAB to distribution folder as of 9.0.1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-05-06T13:03:22.000+0000 |
Affected Version/s | Release 9.0.1 |
Fix Version/s | Release 9.0.2 |
Components | Android |
Labels | aab, android, build, bundle, production, regression |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2020-04-17T16:35:22.000+0000 |
Updated | 2020-05-06T13:03:22.000+0000 |
Description
*Summary:*
As of Titanium 9.0.1, a "production" build no longer outputs an AAB (Android App Bundle) file to the distribution directory. The build does create the AAB file under the "build" directory, but not to the desired location.
*Steps to reproduce:*
Delete the last built APK and AAB files from the distribution folder.
Set up a project to build with 9.0.1.
Build for "production".
Go to the selected "Distribution" folder.
Notice the AAB file is missing. Only the APK file is there.
*Work-Around:* The AAB file can be found under the following folder instead...
./build/android/app/build/outputs/bundle/release/aap-release.aab
PR (master): https://github.com/appcelerator/titanium_mobile/pull/11644 PR (9.0.x): https://github.com/appcelerator/titanium_mobile/pull/11645
Hah, I recently wondered if this was by design. Thx for this!
Yeah, this was an embarrassing one. This was caused by us updating to the newest gradle tool versions and Google has renamed the outputted AAB file. I've changed our build system to trigger a build failure if we fail to find the build artifacts. And I've asked QE to update the smoke test procedure to delete the last built APK/AAB files before doing the build. That should prevent this from happening again in the future.
merged to 9_0_X for 9.0.2 target and master for 9.1.0 target
*Closing ticket.* Fix verified in SDK version 9.1.0.v20200505112143 and 9.0.2.v20200505111803 Test and other information can be found at: PR (master): https://github.com/appcelerator/titanium_mobile/pull/11644 PR (9.0.x): https://github.com/appcelerator/titanium_mobile/pull/11645