flutter/dev/integration_tests/flavors
Andrew Kolos aa498cd51a
Add API to read flavor from framework at run time (#134179)
Resolves #128046.

Adds a services API that allows flutter app developers to write app code that determines `--flavor` the app was built with.

This is implemented by having the tool adding the value of `--flavor` to its list of dart environment declarations, which will be available to the app at run time. Specifically,`FLUTTER_APP_FLAVOR` is set. I chose this implementation for its simplicity. There is some precedent for this, but only for web ([example](cd2f3f5e78/packages/flutter_tools/lib/src/runner/flutter_command.dart (L1231))).
2023-09-28 17:38:54 +00:00
..
android Bump gradle heap size limit in *everywhere* (#134665) 2023-09-13 10:36:24 -07:00
integration_test Add API to read flavor from framework at run time (#134179) 2023-09-28 17:38:54 +00:00
ios iOS info.plist template: make UIViewControllerBasedStatusBar to be true (#128970) 2023-06-20 18:11:18 +00:00
lib Prepare more of dev for use_super_parameters (#101073) 2022-03-30 14:05:05 -07:00
macos Migrate Xcode projects last version checks to Xcode 14.3 (#125827) 2023-05-02 00:06:33 +00:00
test_driver Reland eliminate timeouts from integration tests (#85141) 2021-06-23 13:08:51 -07:00
pubspec.yaml [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
README.md Support for app flavors in flutter tooling, #11676 retake (#11734) 2017-08-23 10:55:35 +02:00

flavors

Integration test of build flavors (Android product flavors, Xcode schemes).