Do I need to do anything special to make sure comp...
# compose
d
Do I need to do anything special to make sure compose's baseline profiles are bundled with my APK? This article https://android-developers.googleblog.com/2022/01/improving-app-performance-with-baseline.html says I just have to build with AGP 7.1+ and baseline profiles will be included in my apk under
assets/dexopt/baseline.prof
However, I've done both of those and can't find
assets/dexopt/baseline.prof
when I profile/debug the apk in android studio.
a
Are you checking a release build? It will only be included in release builds.
d
Yeah I was checking the release build. However I think I figured it out. I was looking at a universal.apk created from an app bundle via [bundletool(https://developer.android.com/studio/command-line/bundletool) Building straight from Android Studio and checking the
.apk
produced in the build output folder had the baseline prof file.
๐Ÿ‘ 1
๐Ÿ‘๐Ÿผ 1
t
@Dan Yang quick question, did you need to add the
androidx.profileinstaller:profileinstaller:1.2.0-alpha01
dependency to your app module for this? Or, was just using AGP 7.1+ enough to have the Compose profiles installed/bundled with app bundles? Thanks! ๐Ÿ™๐Ÿผ ๐Ÿ™๐Ÿผ
d
just using AGP 7.1+ was enough
๐Ÿ™๐Ÿผ 1
t
Great, thanks!