commit | 0cff654220d4f16204d2ef3a9004ff3f1c508b32 | [log] [tgz] |
---|---|---|
author | Jonah Williams <jonahwilliams@google.com> | Wed Jul 08 10:11:10 2020 -0700 |
committer | GitHub <noreply@github.com> | Wed Jul 08 10:11:10 2020 -0700 |
tree | 6267fdc8dec5edc50ce7affad5181a0c3931debf | |
parent | 7d7907e6c129f42b120cc3c881ec0cd60f75a989 [diff] |
[flutter_tools] add sdk constraint to plugin/package templates (#60932) Gives plugin and package a constraint on the flutter version, which will be from 2 stable's ago when this goes to stable. Adds an upper bound of 2.0
diff --git a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl index a2b89fd..6a56bd9 100644 --- a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl
@@ -6,6 +6,7 @@ environment: sdk: ">=2.7.0 <3.0.0" + flutter: ">=1.17.0 <2.0.0" dependencies: flutter:
diff --git a/packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl b/packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl index fb93073..c9b90de 100644 --- a/packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl
@@ -6,7 +6,7 @@ environment: sdk: ">=2.7.0 <3.0.0" - flutter: ">=1.10.0" + flutter: ">=1.17.0 <2.0.0" dependencies: flutter: