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

Split the download size and dex size among all dex files #125

Closed ViktorPetrovski closed 1 year ago

ViktorPetrovski commented 1 year ago

What has changed

The download and install sizes of each class are now calculated based on the total size and number of classes in each dex file, rather than the dex file to which they belong.

Why was it changed

After analyzing Ruler reports, we noticed that certain modules could end up in different dex files on different days. This led to significant fluctuations in the app size without any changes in those modules or classes.

ViktorPetrovski commented 1 year ago

@simonschiller What are your thoughts on this? Have you considered this when initially designing Ruler?

simonschiller commented 1 year ago

I didn't consider this in the original design, but this sounds like a very good idea. No concerns from my side 👍

ViktorPetrovski commented 1 year ago

Great thanks @simonschiller! I'm gonna merge it and try to compare the results on the Spotify app