oliviergauthier / gradle-appcenter-plugin

This gradle plugin allow you to upload each build variant of your android application to separate AppCenter Apps.
MIT License
84 stars 44 forks source link

Adding App Bundle (AAB) support, with tasks. #73

Closed tiborviktorpasztor closed 3 years ago

tiborviktorpasztor commented 3 years ago

Adding an extra task appCenterUploadAab, next to appCenterUploadApk. Removing deprecated tasks, so that I don't have to generate extra deprecated tasks for the aab variants.

This PR is loosely based on: https://github.com/oliviergauthier/gradle-appcenter-plugin/pull/71

With the main difference being, that you don't need to lock a flavor to either AAB or APK with an "artifactType" parameter, but instead you get two separate tasks for the two separate publish types. This seems to match more with the pattern the plugin is already using, as we already have appCenterUploadApk appCenterUploadMapping and appCenterUploadSymbols.

Sadly, you still can't distribute AAB-s to destinations, so I had to remove that bit as well for appCenterUploadAab tasks.

There's one thing I'm unsure about. Currently I made appCenterUpload depend on all 4 of: appCenterUploadApk, appCenterUploadAab, appCenterUploadMapping and appCenterUploadSymbols. This is exactly what I need in my application. But others might find it excessive to upload both Apk and Aab. However, it's not a big deal, because then they can just manually name which bits they want to upload.