From 94827a0fc84925d99e589d57fb2c3e851e7d63b7 Mon Sep 17 00:00:00 2001 From: Kevin Lamenzo Date: Tue, 4 Aug 2026 04:24:32 +0000 Subject: [PATCH] docs: update android buildTypes example in flavors guide --- sites/docs/src/content/deployment/flavors.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/sites/docs/src/content/deployment/flavors.md b/sites/docs/src/content/deployment/flavors.md index 1b40b8abfe7..83d0ee83ef0 100644 --- a/sites/docs/src/content/deployment/flavors.md +++ b/sites/docs/src/content/deployment/flavors.md @@ -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") + } } ... flavorDimensions += "default"