shorebirdtech / shorebird

Code Push for Flutter and other tools for Flutter businesses.
https://shorebird.dev
Other
2.18k stars 130 forks source link

feat: a way to get an apk after releasing an aab #1211

Open eseidel opened 12 months ago

eseidel commented 12 months ago
I created a release via shorebird release android --target ./lib/main_dev.dart --flavor dev. It work as expected and generated a .aab file. But now I want apk file for the same release to be shared with QA team via fastlane.
So when I run shorebird release android --artifact apk --target ./lib/main_dev.dart --flavor dev to generate apk its give error : 
It looks like you have an existing android release for version 8.0.0+283
Which is expected. So how can I get a apk file for 8.0.0 apart from extracting apk from aab file

This is very similar to https://github.com/shorebirdtech/shorebird/issues/1206.

I think proving a wrapper around the bundletool commands (or maybe just documenting the bundletool commands?) would have helped this customer.

SebastianEngel commented 12 months ago

Possibly a duplicate of / related to #1174.

eseidel commented 2 months ago

We already do this as part of shorebird preview, but we don't expose any way to get that same apk later.

eseidel commented 1 month ago

I think the question is what api surface to expose. Once we figure that out, this is easy to solve.

e.g. shorebird download-apk or shorebird bundletool build-apk or ??