Skip to content

'--no-shrink' flag documentation is out of date #10032

Closed
@gmackall

Description

@gmackall

Page URL

https://docs.flutter.dev/deployment/android#shrinking-your-code-with-r8

Page source

No response

Describe the problem

Our documentation doesn't note that the --no-shrink flag has no effect on release builds. Running flutter build apk --help --verbose provides the following

--[no-]shrink                                            This flag has no effect. Code shrinking is always enabled in release builds. To learn more, see:
                                                             https://developer.android.com/studio/build/shrink-code

We should update the page to reflect this.

This was initially reported in flutter/flutter#141164, so I'm making this issue to track it as a website issue instead. Thanks @yanshouwang for the issue report.

Expected fix

No response

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Labels

co.volunteerCommunity wants to work on thisdev.deploymentRelates to deploying Flutter app section of Flutter.deve1-hoursEffort: < 8 hrsfrom.page-issueReported in a reader-filed concernp2-mediumNecessary but not urgent concern. Resolve when possible.target.AndroidTarget apps on the Android Platform

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions