App Size

App Size analyses offers you a way to prevent your app size from growing uncontrollably.
Features:
  • View download size of the binaries (.apk or .app)
  • View raw size or installed size of the binaries on device
  • View top contributors of the app binaries

Enable

To enable App Size analysis, add the following to the config.yaml at the root of Maestro workspace folder (the folder that you specify in maestro cloud)
.maestro/config.yaml
1
appSize:
2
enabled: true

Understanding the result

Once the analysis has been completed, you will see a breakdown of your application binary, highlighting what kind of files are taking the most space.
A Files view shows you what files contribute to the app size the most so that you know where to start optimizing it.

Regressions and Improvements

You need to integrate into CI to watch for regressions/improvements. Read more here.
In case of regressions (i.e. someone adding a very large file), Maestro Cloud will block a pull request and surface what are the offending files.
In case of improvements, Maestro Cloud will surface how much.
Maestro Cloud only supports blocking Pull Requests for certain CI platforms. Read more here.
By default, an App size increase of 8% is considered a regression, and an App Size decrease of 10% is considered an improvement. It's possible to configure those parameters in your config file.
.maestro/config.yaml
1
appSize:
2
enabled: true
3
threshold:
4
regression: 10%
5
improvement: 15%