Skip to content

Commit b4985e2

Browse files
[all] Add topics to pubspecs (#4771)
Adds [topics](https://dart.dev/tools/pub/pubspec#topics) to all packages, supporting the new pub feature for categorizing packages. The heuristics I used were: - Try to use existing topics from https://pub.dev/topics where applicable - Add new topics as necessary to cover things that seemed like obvious relevant topics - Include the plugin name as a topic for all federated plugin packages, for grouping (since pub doesn't inherently group or cross-link implementations) This is not an attempt to be exhaustive; as topics evolve I expect we will add more or adjust. Also updates the repo tooling to enforce topics, so that we don't forget to add them to new packages. The enforced rule is: - All packages must have at least one topic. We could potentially change this to allow an empty `topics` section so that we are enforcing that we didn't just forget to add the section, but in practice even for packages that we don't expect people to be likely to use, I didn't have any issue coming up with at least one relevant topic. - Federated plugin packages must contain the plugin name as a topic. While this isn't time-critical, I chose to include version bumps so that we aren't rolling out topics in a piecemeal way (e.g., with only a random subset of a federated plugin's packages having topics on pub.dev based on what has happened to have a bugfix).
1 parent 2fe1961 commit b4985e2

File tree

216 files changed

+1029
-207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+1029
-207
lines changed

packages/animations/CHANGELOG.md

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

3+
* Adds pub topics to package metadata.
34
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
45
* Aligns Dart and Flutter SDK constraints.
56

packages/animations/pubspec.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: animations
22
description: Fancy pre-built animations that can easily be integrated into any Flutter application.
33
repository: https://github.com/flutter/packages/tree/main/packages/animations
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+animations%22
5-
version: 2.0.7
5+
version: 2.0.8
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"
@@ -17,6 +17,10 @@ dev_dependencies:
1717
sdk: flutter
1818
vector_math: ^2.1.0
1919

20+
topics:
21+
- animation
22+
- ui
23+
2024
screenshots:
2125
- description: 'Examples of the container transform pattern.'
2226
path: example/screenshots/container_transform_lineup.webp

packages/camera/camera/CHANGELOG.md

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

3+
* Adds pub topics to package metadata.
34
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
45

56
## 0.10.5+3

packages/camera/camera/pubspec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Flutter plugin for controlling the camera. Supports previewing
44
Dart.
55
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera
66
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
7-
version: 0.10.5+3
7+
version: 0.10.5+4
88

99
environment:
1010
sdk: ">=2.19.0 <4.0.0"
@@ -36,3 +36,6 @@ dev_dependencies:
3636
mockito: 5.4.1
3737
plugin_platform_interface: ^2.0.0
3838
video_player: ^2.0.0
39+
40+
topics:
41+
- camera

packages/camera/camera_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.10.8+8
2+
3+
* Adds pub topics to package metadata.
4+
15
## 0.10.8+7
26

37
* Fixes video record crash on Android versions lower than 12.

packages/camera/camera_android/pubspec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Android implementation of the camera plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
55

6-
version: 0.10.8+7
6+
version: 0.10.8+8
77

88
environment:
99
sdk: ">=2.19.0 <4.0.0"
@@ -29,3 +29,6 @@ dev_dependencies:
2929
async: ^2.5.0
3030
flutter_test:
3131
sdk: flutter
32+
33+
topics:
34+
- camera

packages/camera/camera_android_camerax/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.5.0+16
22

3+
* Adds pub topics to package metadata.
34
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
45

56
## 0.5.0+15

packages/camera/camera_android_camerax/pubspec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_android_camerax
22
description: Android implementation of the camera plugin using the CameraX library.
33
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_android_camerax
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.5.0+15
5+
version: 0.5.0+16
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"
@@ -33,3 +33,6 @@ dev_dependencies:
3333
sdk: flutter
3434
mockito: 5.4.1
3535
pigeon: ^9.1.0
36+
37+
topics:
38+
- camera

packages/camera/camera_avfoundation/CHANGELOG.md

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

3+
* Adds pub topics to package metadata.
34
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
45

56
## 0.9.13+3

packages/camera/camera_avfoundation/pubspec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_avfoundation
22
description: iOS implementation of the camera plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_avfoundation
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.9.13+3
5+
version: 0.9.13+4
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"
@@ -26,3 +26,6 @@ dev_dependencies:
2626
async: ^2.5.0
2727
flutter_test:
2828
sdk: flutter
29+
30+
topics:
31+
- camera

0 commit comments

Comments
 (0)