Skip to content

Commit 1c2d97c

Browse files
authored
Update flavors guide for Android. (#11758)
_Description of what this PR is changing or adding, and why:_ This is a refactor of the Android Flavors guide that addresses several developer requests, including steps to customize the app name and app icons. _Issues fixed by this PR (if any):_ Fixes: #11591 #11060 #10713 #10309 #10164 #9976 #9360 #9359 #9309 #8743 #8746 #8238 _PRs or commits this PR depends on (if any):_ This is part of a larger cleanup effort for the flavors documentation. The first part of this cleanup addressed our iOS and macOS docs for flavors. This was the final part of the cleanup. ## 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.
1 parent 20aa9c4 commit 1c2d97c

10 files changed

+297
-134
lines changed
Loading
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/content/deployment/flavors.md

+297-124
Large diffs are not rendered by default.

src/content/release/archive-whats-new.md

-3
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ To learn more, check out [dart.dev/go/macros][].
4343
* We have three new codelabs and a new guide for the Games Toolkit.
4444
To see the list of additions,
4545
check out the updated [Casual Games Toolkit][] page.
46-
* A new section, [Conditionally bundling assets based on flavor][],
47-
in the Flavors page.
4846
* Flutter support for Web Assembly (Wasm) has now reached stable.
4947
To learn more, check out the updated
5048
[Support for WebAssembly (Wasm)][] page.
@@ -70,7 +68,6 @@ To learn more, check out [dart.dev/go/macros][].
7068

7169
[Adaptive and Responsive design]: /ui/adaptive-responsive
7270
[Casual Games Toolkit]: /resources/games-toolkit
73-
[Conditionally bundling assets based on flavor]: /deployment/flavors#conditionally-bundling-assets-based-on-flavor
7471
[Flutter fundamentals docs]: /get-started/fundamentals
7572
[Flutter install]: /get-started/install
7673
[Flutter web app initialization]: /platform-integration/web/initialization

src/content/ui/assets/assets-and-images.md

-7
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ To do this, specify the asset files and transformer package in your pubspec file
8686
To learn how to do this and write your own asset-transforming packages, see
8787
[Transforming assets at build time][].
8888

89-
### Conditional bundling of assets based on app flavor
90-
91-
If your project utilizes the [flavors feature][], you can configure individual
92-
assets to be bundled only in certain flavors of your app.
93-
For more information, check out [Conditionally bundling assets based on flavor].
94-
9589
## Loading assets
9690

9791
Your app can access its assets through an
@@ -536,5 +530,4 @@ For more details, see
536530
[MaterialApp]: {{site.api}}/flutter/material/MaterialApp-class.html
537531
[CupertinoApp]: {{site.api}}/flutter/cupertino/CupertinoApp-class.html
538532
[Transforming assets at build time]: /ui/assets/asset-transformation
539-
[Conditionally bundling assets based on flavor]: /deployment/flavors#conditionally-bundling-assets-based-on-flavor
540533
[flavors feature]: /deployment/flavors

0 commit comments

Comments
 (0)