google / bundletool

Bundletool is a command-line tool to manipulate Android App Bundles
https://g.co/androidappbundle
Apache License 2.0
3.52k stars 385 forks source link

Support packaging baseline.prof from bundle to result apk #285

Closed bacecek closed 2 years ago

bacecek commented 2 years ago

Currently bundletool does not support to put baseline.prof and baseline.profm from BUNDLE-METADATA into generated apks. For more info: https://issuetracker.google.com/issues/230361284, https://issuetracker.google.com/issues/226434396.

This PR adds support to packaging baseline.prof and baseline.profm files from bundle metadata to generated apk. Supports both locations in BUNDLE-METADATA: /assets/dexopt and com.android.tools.build.profiles.

This PR does not contain tests for now because I want to be sure that my solution is good enough.

bacecek commented 2 years ago

Looks like someone has already pushed about the same thing