Skip to content

[CP] Stop recursively including assets from asset folders #120208

@andrewkolos

Description

@andrewkolos

issue_link

#119507

Commit Hash

da36bd6

Target

stable

pr_link

#120209

Impacted Users

All Flutter devs

Impact Description

Increased app bundle size from bundling assets that aren't used.

Workaround

Yes. Delete (or move) unused that exist within subdirectories of asset directories.

Risk

low

Test Coverage

yes

Validation Steps

  1. Download this repro project.
  2. Build the app with flutter build apk --split-per-abi.
  3. Decompress any of the output apk files. Check the assets/flutter_assets/assets directory and make sure there is no directory named unused. Only two image files in total should be found under assets/flutter_assets. See the issue for more context.

Metadata

Metadata

Assignees

Labels

cp: approvedApproved cherry-pick requestcp: merge-to-stableCherry-picks that should be merged to stablecp: reviewCherry-picks in the review queue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions