forked from flutter/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mass pubspec.yaml cleanup (flutter#3927)
Regularizes the pubspec.yaml files of the plugins: - Changes from `homepage` to `repository` to improve the linking on pub.dev. - Adds an `issue_tracker` link that links directly to a search on that plugin's label, to improve the linking on pub.dev. - Standardizes the section order as `environment`, `flutter`, `dependencies`, `dev_dependencies`. This matches the current template, except that `flutter` is higher as it's critical information in a plugin (which should potentially be revisited in the template). - Sorts dependencies within each section. - Updates the Flutter SDK versions to 2.0.0; in practice this is already the case due to the Dart SDK version requirement, so this just makes it less confusing. - Standardizes the location of `version` in the initial block. Changes that were considered out of scope: - Actually cleaning up dependencies (e.g., removing meta where it's no longer needed). The goal was to make this PR as mechanical as possible, and to not change any actual behavior). - The example/ pubspecs (just to limit the scope of the PR; we should eventually clean those up too). - Plugins that have Plus Plugin equivalents, per repo policy, as this is a non-critical change. This does not update versions; these changes can be picked up the next time the plugins happen to be published. This also doesn't add automated enforcement. We should consider that in the future though; filed as flutter/flutter#82913
- Loading branch information
1 parent
5c778ea
commit 388f916
Showing
46 changed files
with
393 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
name: camera_platform_interface | ||
description: A common platform interface for the camera plugin. | ||
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera_platform_interface | ||
repository: https://github.com/flutter/plugins/tree/master/packages/camera/camera_platform_interface | ||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22 | ||
# NOTE: We strongly prefer non-breaking changes, even at the expense of a | ||
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes | ||
version: 2.0.1 | ||
|
||
environment: | ||
sdk: '>=2.12.0 <3.0.0' | ||
flutter: ">=2.0.0" | ||
|
||
dependencies: | ||
cross_file: ^0.3.1 | ||
flutter: | ||
sdk: flutter | ||
meta: ^1.3.0 | ||
plugin_platform_interface: ^2.0.0 | ||
cross_file: ^0.3.1 | ||
stream_transform: ^2.0.0 | ||
|
||
dev_dependencies: | ||
async: ^2.5.0 | ||
flutter_test: | ||
sdk: flutter | ||
async: ^2.5.0 | ||
pedantic: ^1.10.0 | ||
|
||
environment: | ||
sdk: '>=2.12.0 <3.0.0' | ||
flutter: ">=1.22.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
name: file_selector | ||
description: Flutter plugin for opening and saving files. | ||
homepage: https://github.com/flutter/plugins/tree/master/packages/file_selector/file_selector | ||
repository: https://github.com/flutter/plugins/tree/master/packages/file_selector/file_selector | ||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22 | ||
version: 0.8.2 | ||
|
||
environment: | ||
sdk: ">=2.12.0 <3.0.0" | ||
flutter: ">=2.0.0" | ||
|
||
flutter: | ||
plugin: | ||
platforms: | ||
web: | ||
default_package: file_selector_web | ||
|
||
dependencies: | ||
flutter: | ||
sdk: flutter | ||
file_selector_platform_interface: ^2.0.0 | ||
file_selector_web: ^0.8.1 | ||
flutter: | ||
sdk: flutter | ||
|
||
dev_dependencies: | ||
flutter_test: | ||
sdk: flutter | ||
test: ^1.16.3 | ||
plugin_platform_interface: ^2.0.0 | ||
pedantic: ^1.10.0 | ||
|
||
environment: | ||
sdk: ">=2.12.0 <3.0.0" | ||
flutter: ">=1.20.0" | ||
plugin_platform_interface: ^2.0.0 | ||
test: ^1.16.3 |
17 changes: 9 additions & 8 deletions
17
packages/file_selector/file_selector_platform_interface/pubspec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
name: file_selector_platform_interface | ||
description: A common platform interface for the file_selector plugin. | ||
homepage: https://github.com/flutter/plugins/tree/master/packages/file_selector/file_selector_platform_interface | ||
repository: https://github.com/flutter/plugins/tree/master/packages/file_selector/file_selector_platform_interface | ||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22 | ||
# NOTE: We strongly prefer non-breaking changes, even at the expense of a | ||
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes | ||
version: 2.0.2 | ||
|
||
environment: | ||
sdk: ">=2.12.0 <3.0.0" | ||
flutter: ">=2.0.0" | ||
|
||
dependencies: | ||
cross_file: ^0.3.0 | ||
flutter: | ||
sdk: flutter | ||
meta: ^1.3.0 | ||
http: ^0.13.0 | ||
meta: ^1.3.0 | ||
plugin_platform_interface: ^2.0.0 | ||
cross_file: ^0.3.0 | ||
|
||
dev_dependencies: | ||
test: ^1.16.3 | ||
flutter_test: | ||
sdk: flutter | ||
pedantic: ^1.10.0 | ||
|
||
environment: | ||
sdk: ">=2.12.0 <3.0.0" | ||
flutter: ">=1.20.0" | ||
test: ^1.16.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
name: google_maps_flutter_platform_interface | ||
description: A common platform interface for the google_maps_flutter plugin. | ||
homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter/google_maps_flutter_platform_interface | ||
repository: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter/google_maps_flutter_platform_interface | ||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22 | ||
# NOTE: We strongly prefer non-breaking changes, even at the expense of a | ||
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes | ||
version: 2.0.4 | ||
|
||
environment: | ||
sdk: '>=2.12.0 <3.0.0' | ||
flutter: ">=2.0.0" | ||
|
||
dependencies: | ||
collection: ^1.15.0 | ||
flutter: | ||
sdk: flutter | ||
meta: ^1.3.0 | ||
plugin_platform_interface: ^2.0.0 | ||
stream_transform: ^2.0.0 | ||
collection: ^1.15.0 | ||
|
||
dev_dependencies: | ||
flutter_test: | ||
sdk: flutter | ||
mockito: ^5.0.0-nullsafety.0 | ||
pedantic: ^1.10.0 | ||
|
||
environment: | ||
sdk: '>=2.12.0 <3.0.0' | ||
flutter: ">=1.9.1+hotfix.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.