Skip to content

Commit cf40966

Browse files
[flutter_plugin_tools] Validate pubspec description (flutter#4396)
pub.dev deducts points for having a pubspec.yaml `description` that is too short or too long; several of our plugins are losing points on this. To ensure that we are following—and modeling—best practices, this adds a check that our `description` fields meet pub.dev expectations. Fixes our existing violations. Two are not published even though this only takes effect once published: - camera: We change this plugin pretty frequently, so this should go out soon without adding a release just for this trivial issue. - wifi_info_flutter: This is deprecated, so we don't plan to release it. It has to be fixed to allow the tool change to land though.
1 parent 63eb675 commit cf40966

File tree

15 files changed

+198
-12
lines changed

15 files changed

+198
-12
lines changed

packages/camera/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
* Updated package description.
4+
15
## 0.9.4+1
26

37
* Fixed Android implementation throwing IllegalStateException when switching to a different activity.

packages/camera/camera/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: camera
2-
description: A Flutter plugin for getting information about and controlling the
3-
camera on Android, iOS and Web. Supports previewing the camera feed, capturing images, capturing video,
4-
and streaming image buffers to dart.
2+
description: A Flutter plugin for controlling the camera. Supports previewing
3+
the camera feed, capturing images and video, and streaming image buffers to
4+
Dart.
55
repository: https://github.com/flutter/plugins/tree/master/packages/camera/camera
66
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
77
version: 0.9.4+1

packages/espresso/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 0.1.0+4
22

33
* Updated Android lint settings.
4+
* Updated package description.
45

56
## 0.1.0+3
67

packages/espresso/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: espresso
22
description: Java classes for testing Flutter apps using Espresso.
3+
Allows driving Flutter widgets from a native Espresso test.
34
repository: https://github.com/flutter/plugins/tree/master/packages/espresso
45
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+espresso%22
5-
version: 0.1.0+3
6+
version: 0.1.0+4
67

78
environment:
89
sdk: ">=2.12.0 <3.0.0"

packages/file_selector/file_selector/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
## NEXT
1+
## 0.8.2+1
22

33
* Minor code cleanup for new analysis rules.
4+
* Updated package description.
45

56
## 0.8.2
67

7-
* Update platform_plugin_interface version requirement.
8+
* Update `platform_plugin_interface` version requirement.
89

910
## 0.8.1
1011

packages/file_selector/file_selector/pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: file_selector
2-
description: Flutter plugin for opening and saving files.
2+
description: Flutter plugin for opening and saving files, or selecting
3+
directories, using native file selection UI.
34
repository: https://github.com/flutter/plugins/tree/master/packages/file_selector/file_selector
45
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
5-
version: 0.8.2
6+
version: 0.8.2+1
67

78
environment:
89
sdk: ">=2.12.0 <3.0.0"

packages/plugin_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.2
2+
3+
* Update package description.
4+
15
## 2.0.1
26

37
* Fix `federated flutter plugins` link in the README.md.

packages/plugin_platform_interface/pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: plugin_platform_interface
2-
description: Reusable base class for Flutter plugin platform interfaces.
2+
description: Reusable base class for platform interfaces of Flutter federated
3+
plugins, to help enforce best practices.
34
repository: https://github.com/flutter/plugins/tree/master/packages/plugin_platform_interface
45
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+plugin_platform_interface%22
56

@@ -14,7 +15,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
1415
# be done when absolutely necessary and after the ecosystem has already migrated to 1.X.Y version
1516
# that is forward compatible with 2.0.0 (ideally the ecosystem have migrated to depend on:
1617
# `plugin_platform_interface: >=1.X.Y <3.0.0`).
17-
version: 2.0.1
18+
version: 2.0.2
1819

1920
environment:
2021
sdk: ">=2.12.0 <3.0.0"

packages/wifi_info_flutter/wifi_info_flutter/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## NEXT
22

33
* Updated Android lint settings.
4+
* Updated package description.
45

56
## 2.0.2
67

packages/wifi_info_flutter/wifi_info_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: wifi_info_flutter
2-
description: A new flutter plugin project.
2+
description: A Flutter plugin to get WiFi information such as connection status and network identifiers.
33
repository: https://github.com/flutter/plugins/tree/master/packages/wifi_info_flutter/wifi_info_flutter
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+wifi_info_flutter%22
55
version: 2.0.2

0 commit comments

Comments
 (0)