Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 2d85090

Browse files
Prep the tools for publishing (#3836)
Re-adds the LICENSE and CHANGELOG, and updates the README and pubspec, in preparation for pushing an updated version of the package. We are still using flutter_plugin_tools in flutter/packages, so this allows us to use updates (e.g., license checks, fixed version checks) in that repository as well. The README has been updated to note that it is no longer intended for general use, and we will (if it allows publishing) continue to mark the package as discontinued to reflect that.
1 parent 04cf809 commit 2d85090

File tree

4 files changed

+345
-5
lines changed

4 files changed

+345
-5
lines changed

script/tool/CHANGELOG.md

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
## 0.1.0
2+
3+
- **NOTE**: This is no longer intended as a general-purpose package, and is now
4+
supported only for flutter/plugins and flutter/tools.
5+
- Fix version checks
6+
- Remove handling of pre-release null-safe versions
7+
- Fix build all for null-safe template apps
8+
- Improve handling of web integration tests
9+
- Supports enforcing standardized copyright files
10+
- Improve handling of iOS tests
11+
12+
## v.0.0.45+3
13+
14+
- Pin `collection` to `1.14.13` to be able to target Flutter stable (v1.22.6).
15+
16+
## v.0.0.45+2
17+
18+
- Make `publish-plugin` to work on non-flutter packages.
19+
20+
## v.0.0.45+1
21+
22+
- Don't call `flutter format` if there are no Dart files to format.
23+
24+
## v.0.0.45
25+
26+
- Add exclude flag to exclude any plugin from further processing.
27+
28+
## v.0.0.44+7
29+
30+
- `all-plugins-app` doesn't override the AGP version.
31+
32+
## v.0.0.44+6
33+
34+
- Fix code formatting.
35+
36+
## v.0.0.44+5
37+
38+
- Remove `-v` flag on drive-examples.
39+
40+
## v.0.0.44+4
41+
42+
- Fix bug where directory isn't passed
43+
44+
## v.0.0.44+3
45+
46+
- More verbose logging
47+
48+
## v.0.0.44+2
49+
50+
- Remove pre-alpha Windows workaround to create examples on the fly.
51+
52+
## v.0.0.44+1
53+
54+
- Print packages that passed tests in `xctest` command.
55+
- Remove printing the whole list of simulators.
56+
57+
## v.0.0.44
58+
59+
- Add 'xctest' command to run xctests.
60+
61+
## v.0.0.43
62+
63+
- Allow minor `*-nullsafety` pre release packages.
64+
65+
## v.0.0.42+1
66+
67+
- Fix test command when `--enable-experiment` is called.
68+
69+
## v.0.0.42
70+
71+
- Allow `*-nullsafety` pre release packages.
72+
73+
## v.0.0.41
74+
75+
- Support `--enable-experiment` flag in subcommands `test`, `build-examples`, `drive-examples`,
76+
and `firebase-test-lab`.
77+
78+
## v.0.0.40
79+
80+
- Support `integration_test/` directory for `drive-examples` command
81+
82+
## v.0.0.39
83+
84+
- Support `integration_test/` directory for `package:integration_test`
85+
86+
## v.0.0.38
87+
88+
- Add C++ and ObjC++ to clang-format.
89+
90+
## v.0.0.37+2
91+
92+
- Make `http` and `http_multi_server` dependency version constraint more flexible.
93+
94+
## v.0.0.37+1
95+
96+
- All_plugin test puts the plugin dependencies into dependency_overrides.
97+
98+
## v.0.0.37
99+
100+
- Only builds mobile example apps when necessary.
101+
102+
## v.0.0.36+3
103+
104+
- Add support for Linux plugins.
105+
106+
## v.0.0.36+2
107+
108+
- Default to showing podspec lint warnings
109+
110+
## v.0.0.36+1
111+
112+
- Serialize linting podspecs.
113+
114+
## v.0.0.36
115+
116+
- Remove retry on Firebase Test Lab's call to gcloud set.
117+
- Remove quiet flag from Firebase Test Lab's gcloud set command.
118+
- Allow Firebase Test Lab command to continue past gcloud set network failures.
119+
This is a mitigation for the network service sometimes not responding,
120+
but it isn't actually necessary to have a network connection for this command.
121+
122+
## v.0.0.35+1
123+
124+
- Minor cleanup to the analyze test.
125+
126+
## v.0.0.35
127+
128+
- Firebase Test Lab command generates a configurable unique path suffix for results.
129+
130+
## v.0.0.34
131+
132+
- Firebase Test Lab command now only tries to configure the project once
133+
- Firebase Test Lab command now retries project configuration up to five times.
134+
135+
## v.0.0.33+1
136+
137+
- Fixes formatting issues that got past our CI due to
138+
https://github.com/flutter/flutter/issues/51585.
139+
- Changes the default package name for testing method `createFakePubspec` back
140+
its previous behavior.
141+
142+
## v.0.0.33
143+
144+
- Version check command now fails on breaking changes to platform interfaces.
145+
- Updated version check test to be more flexible.
146+
147+
## v.0.0.32+7
148+
149+
- Ensure that Firebase Test Lab tests have a unique storage bucket for each test run.
150+
151+
## v.0.0.32+6
152+
153+
- Ensure that Firebase Test Lab tests have a unique storage bucket for each package.
154+
155+
## v.0.0.32+5
156+
157+
- Remove --fail-fast and --silent from lint podspec command.
158+
159+
## v.0.0.32+4
160+
161+
- Update `publish-plugin` to use `flutter pub publish` instead of just `pub
162+
publish`. Enforces a `pub publish` command that matches the Dart SDK in the
163+
user's Flutter install.
164+
165+
## v.0.0.32+3
166+
167+
- Update Firebase Testlab deprecated test device. (Pixel 3 API 28 -> Pixel 4 API 29).
168+
169+
## v.0.0.32+2
170+
171+
- Runs pub get before building macos to avoid failures.
172+
173+
## v.0.0.32+1
174+
175+
- Default macOS example builds to false. Previously they were running whenever
176+
CI was itself running on macOS.
177+
178+
## v.0.0.32
179+
180+
- `analyze` now asserts that the global `analysis_options.yaml` is the only one
181+
by default. Individual directories can be excluded from this check with the
182+
new `--custom-analysis` flag.
183+
184+
## v.0.0.31+1
185+
186+
- Add --skip and --no-analyze flags to podspec command.
187+
188+
## v.0.0.31
189+
190+
- Add support for macos on `DriveExamplesCommand` and `BuildExamplesCommand`.
191+
192+
## v.0.0.30
193+
194+
- Adopt pedantic analysis options, fix firebase_test_lab_test.
195+
196+
## v.0.0.29
197+
198+
- Add a command to run pod lib lint on podspec files.
199+
200+
## v.0.0.28
201+
202+
- Increase Firebase test lab timeouts to 5 minutes.
203+
204+
## v.0.0.27
205+
206+
- Run tests with `--platform=chrome` for web plugins.
207+
208+
## v.0.0.26
209+
210+
- Add a command for publishing plugins to pub.
211+
212+
## v.0.0.25
213+
214+
- Update `DriveExamplesCommand` to use `ProcessRunner`.
215+
- Make `DriveExamplesCommand` rely on `ProcessRunner` to determine if the test fails or not.
216+
- Add simple tests for `DriveExamplesCommand`.
217+
218+
## v.0.0.24
219+
220+
- Gracefully handle pubspec.yaml files for new plugins.
221+
- Additional unit testing.
222+
223+
## v.0.0.23
224+
225+
- Add a test case for transitive dependency solving in the
226+
`create_all_plugins_app` command.
227+
228+
## v.0.0.22
229+
230+
- Updated firebase-test-lab command with updated conventions for test locations.
231+
- Updated firebase-test-lab to add an optional "device" argument.
232+
- Updated version-check command to always compare refs instead of using the working copy.
233+
- Added unit tests for the firebase-test-lab and version-check commands.
234+
- Add ProcessRunner to mock running processes for testing.
235+
236+
## v.0.0.21
237+
238+
- Support the `--plugins` argument for federated plugins.
239+
240+
## v.0.0.20
241+
242+
- Support for finding federated plugins, where one directory contains
243+
multiple packages for different platform implementations.
244+
245+
## v.0.0.19+3
246+
247+
- Use `package:file` for file I/O.
248+
249+
## v.0.0.19+2
250+
251+
- Use java as language when calling `flutter create`.
252+
253+
## v.0.0.19+1
254+
255+
- Rename command for `CreateAllPluginsAppCommand`.
256+
257+
## v.0.0.19
258+
259+
- Use flutter create to build app testing plugin compilation.
260+
261+
## v.0.0.18+2
262+
263+
- Fix `.travis.yml` file name in `README.md`.
264+
265+
## v0.0.18+1
266+
267+
- Skip version check if it contains `publish_to: none`.
268+
269+
## v0.0.18
270+
271+
- Add option to exclude packages from generated pubspec command.
272+
273+
## v0.0.17+4
274+
275+
- Avoid trying to version-check pubspecs that are missing a version.
276+
277+
## v0.0.17+3
278+
279+
- version-check accounts for [pre-1.0 patch versions](https://github.com/flutter/flutter/issues/35412).
280+
281+
## v0.0.17+2
282+
283+
- Fix exception handling for version checker
284+
285+
## v0.0.17+1
286+
287+
- Fix bug where we used a flag instead of an option
288+
289+
## v0.0.17
290+
291+
- Add a command for checking the version number
292+
293+
## v0.0.16
294+
295+
- Add a command for generating `pubspec.yaml` for All Plugins app.
296+
297+
## v0.0.15
298+
299+
- Add a command for running driver tests of plugin examples.
300+
301+
## v0.0.14
302+
303+
- Check for dependencies->flutter instead of top level flutter node.
304+
305+
## v0.0.13
306+
307+
- Differentiate between Flutter and non-Flutter (but potentially Flutter consumed) Dart packages.

script/tool/LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright 2013 The Flutter Authors. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above
9+
copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided
11+
with the distribution.
12+
* Neither the name of Google Inc. nor the names of its
13+
contributors may be used to endorse or promote products derived
14+
from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

script/tool/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Flutter Plugin Tools
22

3+
This is a set of utilities used in the flutter/plugins and flutter/packages
4+
repositories. It is no longer explictily maintained as a general-purpose tool
5+
for multi-package repositories, so your mileage may vary if using it in other
6+
repositories.
7+
8+
----
9+
310
Note: The commands in tools are designed to run at the root of the repository or `<repository-root>/packages/`.
411

5-
To run the tool:
12+
To run the tool (in flutter/plugins):
613

714
```sh
815
cd <path_to_plugins>/script/tool && dart pub get && cd ../../

script/tool/pubspec.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: flutter_plugin_tools
2-
description: Productivity utils for hosting multiple plugins within one repository.
3-
publish_to: none
2+
description: Productivity utils for flutter/plugins and flutter/packages
3+
repository: https://github.com/flutter/plugins/tree/master/script/tool
4+
version: 0.1.0
45

56
dependencies:
67
args: "^1.4.3"
@@ -19,12 +20,12 @@ dependencies:
1920
file: ^5.0.10
2021
uuid: ^2.0.4
2122
http_multi_server: ^2.2.0
22-
collection: 1.14.13
23+
collection: ^1.14.13
2324

2425
dev_dependencies:
2526
matcher: ^0.12.6
2627
mockito: ^4.1.1
27-
pedantic: 1.8.0
28+
pedantic: ^1.8.0
2829

2930
environment:
3031
sdk: ">=2.3.0 <3.0.0"

0 commit comments

Comments
 (0)