This is an iOS-only feature.
If you’re interested in similar Android launch booster tools we’re actively working on, contact us at [email protected]!
Every build using an order file should provide the
order_file_version flag when uploading to Emerge. Emerge will generate a new order file for each of these uploads. Download the latest order file at build time by using the Fastlane plugin.
emerge_order_file(app_id: 'com.emerge.app', order_file_version: '1.0', output_path: '/tmp/orderFile')
order_file_version number stores versions of the order file corresponding to a particular version of your app.
After the order file is downloaded, build using these linker flags:
Finally, upload the resulting build with the Emerge fastlane plugin, setting the
order_file_version to the same value as the version you requested in the first step.
There are two numbers that should be logged to understand how order files affect app launch: total app launch and pre-main time.
Metric measurements note
All metrics should be collected at percentiles, such as p50, p75, p95, as well as the mean. The OS may cache pages of app memory between launches making order files more applicable to higher percentiles, but this depends on your app's usages patterns.
The most important metric is the total app launch. Measured from process start to the point in your code where the app launch notification is posted.
The second metric is pre-main time (optional). Measure this as time from process start to when the
main function is called. Depending on the structure of your codebase, this time may or may not be affected by order files. Having this metric can help debug any issues that come up during validation testing.
Measuring order files in production is difficult for typical mobile release schedules because changes caused by the order file can't be separated from changes introduced by all other changes since the last release. This is why we recommend starting with alpha build measurements.
To see the effect of adding an order file, only build internal alphas with an order file every other day. If the order file is improving your app launch, this alternating pattern should be noticeable when comparing app launch times of alpha builds to the previous day.
To measure the true effect in production order files need to be isolated from other changes. To do this, wait until you have sufficient data to measure app launch after a normally scheduled release, and then release a new build with only order files added.
The startup time difference between the two releases can then be compared to see how much of an impact order files have on your app launch.
Updated 2 months ago