[flutter_tools] allow passing properties directly to gradle (#82941)

This commit is contained in:
Jonah Williams
2021-05-20 16:19:03 -07:00
committed by GitHub
parent c94f0bea65
commit 24bfc46d89
3 changed files with 26 additions and 1 deletions

View File

@@ -139,6 +139,8 @@ void main() {
bundleSkSLPath: 'foo/bar/baz.sksl.json',
packagesPath: 'foo/.packages',
codeSizeDirectory: 'foo/code-size',
// These values are ignored by toEnvironmentConfig
androidProjectArgs: <String>['foo=bar', 'fizz=bazz']
);
expect(buildInfo.toEnvironmentConfig(), <String, String>{
@@ -167,6 +169,7 @@ void main() {
bundleSkSLPath: 'foo/bar/baz.sksl.json',
packagesPath: 'foo/.packages',
codeSizeDirectory: 'foo/code-size',
androidProjectArgs: <String>['foo=bar', 'fizz=bazz']
);
expect(buildInfo.toGradleConfig(), <String>[
@@ -178,7 +181,9 @@ void main() {
'-Ptrack-widget-creation=true',
'-Ptree-shake-icons=true',
'-Pbundle-sksl-path=foo/bar/baz.sksl.json',
'-Pcode-size-directory=foo/code-size'
'-Pcode-size-directory=foo/code-size',
'-Pfoo=bar',
'-Pfizz=bazz'
]);
});