Skip to content

Commit

Permalink
[Fix] Add --[no-]shrink instruction for release builds (#11022)
Browse files Browse the repository at this point in the history
Add --[no-]shrink instruction for release builds.

Fixes: #10032

## Presubmit checklist

- [x] This PR is marked as draft with an explanation if not meant to
land until a future stable release.
- [x] This PR doesn’t contain automatically generated corrections
(Grammarly or similar).
- [x] This PR follows the [Google Developer Documentation Style
Guidelines](https://developers.google.com/style) — for example, it
doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person).
- [x] This PR uses [semantic line
breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks)
of 80 characters or fewer.

---------

Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
  • Loading branch information
piedcipher and sfshaza2 authored Aug 20, 2024
1 parent 313577a commit 900f21b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/deployment/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ To disable R8, pass the `--no-shrink` flag to
:::note
Obfuscation and minification can considerably extend compile time
of the Android application.

The `--[no-]shrink` flag has no effect. Code shrinking is always enabled in release builds.
To learn more, check out
[Shrink, obfuscate, and optimize your app]({{site.android-dev}}/studio/build/shrink-code).
:::

## Enable multidex support
Expand Down

0 comments on commit 900f21b

Please sign in to comment.