spotify / ruler

Gradle plugin which helps you analyze the size of your Android apps.
Apache License 2.0
1.13k stars 58 forks source link

Accept split apks for CLI #144

Closed akniyetc closed 9 months ago

akniyetc commented 1 year ago

Feature description

Could you please add a possibility to provide split apks for your RulerCli tool. In gradle task you build the split apks using bundletool, and extracts all dependencies from those apks. Meanwhile in CLI it accepts only single apk.

Reasoning

Accepting split apks will provide us the same report as we get running gradle task

ViktorPetrovski commented 1 year ago

Hey!

Thanks for your request. Just to make sure, you are interested in extending the RulerCli to accept an aab file and create the split apks from it, just as we are doing in the Gradle Task?

akniyetc commented 1 year ago

Yes, exactly, thank you

nathan3d commented 9 months ago

Hi @akniyetc! I've added support for this in the latest alpha of CLI. It's not documented yet, but you should be able to pass in the apks already split or alternatively an aab file.

akniyetc commented 9 months ago

great news, thank you 🥳