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

+2-1
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

+5-1
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

+2-1
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

+4-1
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

+4
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

+4-1
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

+2-1
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

+4-1
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

+2-1
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

+4-1
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

packages/camera/camera_platform_interface/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 2.5.2
22

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

56
## 2.5.1

packages/camera/camera_platform_interface/pubspec.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/camera/camera
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
55
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
66
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
7-
version: 2.5.1
7+
version: 2.5.2
88

99
environment:
1010
sdk: ">=2.19.0 <4.0.0"
@@ -21,3 +21,6 @@ dev_dependencies:
2121
async: ^2.5.0
2222
flutter_test:
2323
sdk: flutter
24+
25+
topics:
26+
- camera

packages/camera/camera_web/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.3.2+2
22

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

56
## 0.3.2+1

packages/camera/camera_web/pubspec.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_web
22
description: A Flutter plugin for getting information about and controlling the camera on Web.
33
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_web
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.3.2+1
5+
version: 0.3.2+2
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"
@@ -27,3 +27,6 @@ dependencies:
2727
dev_dependencies:
2828
flutter_test:
2929
sdk: flutter
30+
31+
topics:
32+
- camera

packages/camera/camera_windows/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.2.1+8
22

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

56
## 0.2.1+7

packages/camera/camera_windows/pubspec.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_windows
22
description: A Flutter plugin for getting information about and controlling the camera on Windows.
33
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_windows
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.2.1+7
5+
version: 0.2.1+8
66

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

packages/cross_file/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.3.3+5
22

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

56
## 0.3.3+4

packages/cross_file/pubspec.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: cross_file
22
description: An abstraction to allow working with files across multiple platforms.
33
repository: https://github.com/flutter/packages/tree/main/packages/cross_file
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+cross_file%22
5-
version: 0.3.3+4
5+
version: 0.3.3+5
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"
@@ -14,3 +14,6 @@ dependencies:
1414
dev_dependencies:
1515
path: ^1.8.1
1616
test: ^1.21.1
17+
18+
topics:
19+
- files

packages/css_colors/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.3
2+
3+
- Adds pub topics to package metadata.
4+
15
## 1.1.2
26

37
- Updates the `Color` documentation link in the README.

packages/css_colors/pubspec.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: css_colors
22
description: Defines constant dart:ui Color objects for CSS colors (for use in Flutter code).
33
repository: https://github.com/flutter/packages/tree/main/packages/css_colors
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+css_colors%22
5-
version: 1.1.2
5+
version: 1.1.3
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"
@@ -11,3 +11,8 @@ environment:
1111
dependencies:
1212
flutter:
1313
sdk: flutter
14+
15+
topics:
16+
- color
17+
- css
18+
- ui

packages/espresso/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.3.0+6
22

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

56
## 0.3.0+5

packages/espresso/pubspec.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Java classes for testing Flutter apps using Espresso.
33
Allows driving Flutter widgets from a native Espresso test.
44
repository: https://github.com/flutter/packages/tree/main/packages/espresso
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+espresso%22
6-
version: 0.3.0+5
6+
version: 0.3.0+6
77

88
environment:
99
sdk: ">=2.19.0 <4.0.0"
@@ -23,3 +23,7 @@ dependencies:
2323
dev_dependencies:
2424
flutter_test:
2525
sdk: flutter
26+
27+
topics:
28+
- android
29+
- test

packages/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 2.0.11
22

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

56
## 2.0.10

packages/extension_google_sign_in_as_googleapis_auth/pubspec.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: extension_google_sign_in_as_googleapis_auth
88
description: A bridge package between google_sign_in and googleapis_auth, to create Authenticated Clients from google_sign_in user credentials.
99
repository: https://github.com/flutter/packages/tree/main/packages/extension_google_sign_in_as_googleapis_auth
1010
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+extension_google_sign_in_as_googleapis_auth%22
11-
version: 2.0.10
11+
version: 2.0.11
1212

1313
environment:
1414
sdk: ">=2.19.0 <4.0.0"
@@ -26,6 +26,10 @@ dev_dependencies:
2626
flutter_test:
2727
sdk: flutter
2828

29+
topics:
30+
- authentication
31+
- google-sign-in
32+
2933
false_secrets:
3034
- example/android/app/google-services.json
3135
- example/ios/Runner/GoogleService-Info.plist

packages/file_selector/file_selector/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 1.0.1
22

3+
* Adds pub topics to package metadata.
34
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
45
* Migrates `styleFrom` usage in examples off of deprecated `primary` and `onPrimary` parameters.
56

packages/file_selector/file_selector/pubspec.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for opening and saving files, or selecting
33
directories, using native file selection UI.
44
repository: https://github.com/flutter/packages/tree/main/packages/file_selector/file_selector
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
6-
version: 1.0.0
6+
version: 1.0.1
77

88
environment:
99
sdk: ">=2.19.0 <4.0.0"
@@ -41,3 +41,8 @@ dev_dependencies:
4141
sdk: flutter
4242
plugin_platform_interface: ^2.0.0
4343
test: ^1.16.3
44+
45+
topics:
46+
- files
47+
- file-selection
48+
- file-selector

packages/file_selector/file_selector_android/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.5.0+3
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+2

packages/file_selector/file_selector_android/pubspec.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: file_selector_android
22
description: Android implementation of the file_selector package.
33
repository: https://github.com/flutter/packages/tree/main/packages/file_selector/file_selector_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
5-
version: 0.5.0+2
5+
version: 0.5.0+3
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"
@@ -29,3 +29,8 @@ dev_dependencies:
2929
sdk: flutter
3030
mockito: 5.4.1
3131
pigeon: ^9.2.4
32+
33+
topics:
34+
- files
35+
- file-selection
36+
- file-selector

packages/file_selector/file_selector_ios/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.5.1+6
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.1+5

packages/file_selector/file_selector_ios/pubspec.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: file_selector_ios
22
description: iOS implementation of the file_selector plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/file_selector/file_selector_ios
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
5-
version: 0.5.1+5
5+
version: 0.5.1+6
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"
@@ -27,3 +27,8 @@ dev_dependencies:
2727
sdk: flutter
2828
mockito: 5.4.1
2929
pigeon: ^9.2.4
30+
31+
topics:
32+
- files
33+
- file-selection
34+
- file-selector

packages/file_selector/file_selector_linux/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.9.2+1
22

3+
* Adds pub topics to package metadata.
34
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
45
* Migrates `styleFrom` usage in examples off of deprecated `primary` and `onPrimary` parameters.
56

0 commit comments

Comments
 (0)