Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions sites/docs/src/content/deployment/flavors.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,20 @@ to make sure that the flavors work as expected.
* In the `flavors_example` project, navigate to the
`android/app/` directory and open `build.gradle.kts`.

* Add the `flavorsDimension` property and the
`productFlavors` properties inside of the
`android {} block`. Make sure that the `android {}`
block also contains the default
`debug` and `release` build types:
* Add the `flavorDimensions` property and the
`productFlavors` properties inside the
`android {}` block. The default template explicitly defines
the `release` build type, while the `debug` build type is implicit:

```kotlin title="build.gradle.kts"
android {
...
buildTypes {
getByName("debug") {...}
getByName("release") {...}
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
Comment thread
lamek marked this conversation as resolved.
}
...
flavorDimensions += "default"
Expand Down
Loading