-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable DEX layout optimizations #1020
Conversation
- Disable minification - Enable `android.experimental.r8.dex-startup-optimization` Closes android#992
…eProfiles` to avoid duplicating them. DEX layout optimization looks at `baselineProfiles` sourceSet by default, and this prevents manually configuring the `R8Task`.
…/baselineProfiles`" This reverts commit 47ec527.
Thanks for spinning this up, @SimonMarquis! This change also requires AGP 8.2 as well as calling |
@keyboardsurfer it seems like
What would be the best option here?
Do you mean it won't work on the current AGP 8.1.2? Because it does compile correclty and seems to use the
ACK, done in aeac096 |
The startup-prof.txt will be generated from the generator which has |
Indeed, running
Unfortunately, nothing is being actually generated on my device 🤷 the directories do not exist...
Does that mean the release process will need to spawn an emulator and run the tests before compiling/packaging the app? (this might be hard to implement correctly and reliably) |
This is best done with the baseline profile gradle plugin. It'll take care of the entire process.
This is really strange. Which device are you using? Does it work when using a Gradle Managed Device instead? |
android.experimental.r8.dex-startup-optimization
CopyMoveapp/src/main/baseline-prof.txt
tosrc/main/baselineProfiles/startup-prof.txt
Closes #992