Andrew Kolos
66e6acbe9f
throw ToolExit
when --web-port
is an integer outside the valid TCP port range ( #123269 )
...
throw `ToolExit` when `--web-port` is an integer outside the valid TCP port range
2023-03-27 19:58:37 +00:00
Shibata Ryusei
1fb2158e36
Add lints test for all templates ( #120526 )
...
Add lints test for all templates
2023-03-26 11:10:23 +00:00
Harry Terkelsen
2379b18f8d
Turn on --web-resources-cdn by default ( #123425 )
2023-03-24 14:33:58 -07:00
Janice Collins
81e9060968
Suppress analytics flag pass through to analysis server ( #123235 )
...
Suppress analytics flag pass through to analysis server
2023-03-24 19:59:15 +00:00
Dan Field
6fd59890c3
Ignore spam from SurfaceSyncer ( #123262 )
...
Ignore spam from SurfaceSyncer
2023-03-23 21:55:39 +00:00
Michael Goderbauer
31798757e7
replace some ._() constructors with class modifiers ( #122765 )
2023-03-23 12:29:18 -07:00
Flutter GitHub Bot
7b7af9f34c
roll packages ( #123339 )
...
Roll pub packages
2023-03-23 19:03:57 +00:00
Ben Konyi
5a36bddd2b
Stop serving Observatory by default ( #122419 )
...
Observatory can still be enabled by providing `--serve-observatory` or
invoking the `_serveObservatory` private service RPC via web socket or
HTTP.
Related to https://github.com/dart-lang/sdk/issues/50233
2023-03-23 12:52:30 -04:00
Harry Terkelsen
897e3db40c
Inject the gstatic CanvasKit CDN URL by default in flutter build web
( #122772 )
2023-03-23 09:17:25 -07:00
Christopher Fujino
3736274a6d
Revert "[flutter_tools] Remove sound null safety flag ( #123031 )" ( #123280 )
...
Revert "[flutter_tools] Remove sound null safety flag (#123031 )"
2023-03-22 22:53:49 +00:00
Michael Goderbauer
fda9ecfef7
Remove 1745 decorative breaks ( #123259 )
...
Remove 1745 decorative breaks
2023-03-22 21:12:22 +00:00
Lasse R.H. Nielsen
520cf363b3
Make custom Utf8Decoder
replacement not extend platform class. ( #123211 )
...
* Make custom `Utf8Decoder` replacement not extend platform class.
The Dart 3.0 class modifiers will make `Utf8Decoder`, and other
pure implementation classes, be `final`.
This replacement class does not need to extend the original
class, just like the `Utf8Codec` in the same file doesn't
extend the `Ut8Codec` from the platform libraries.
Instead it can just forward to a single `const` instance of the
original class.
* Forgot one constant
* Fix merge conflict.
---------
Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2023-03-22 07:53:56 -07:00
Jason Simmons
d81e915780
Provide an ApplicationPackage to the flutter_tools logs command ( #123149 )
...
Provide an ApplicationPackage to the flutter_tools logs command
2023-03-22 14:51:39 +00:00
Christopher Fujino
28d707693b
toolexit on malformed yaml ( #123167 )
...
[flutter_tools] toolexit on malformed yaml during gen-l10n
2023-03-22 02:05:24 +00:00
Bartek Pacia
c40dd27681
Fix Gradle warning in a freshly flutter create
ed Android project ( #122290 )
...
Fix Gradle warning in a freshly `flutter create`ed Android project
2023-03-21 23:41:49 +00:00
Michael Goderbauer
06ed8e65a7
Enable prefer_mixin ( #123159 )
...
Enable prefer_mixin
2023-03-21 23:12:26 +00:00
Lau Ching Jun
7e4822d5d6
Use DeviceDiscoveryFilter correctly in ProxiedDevices. ( #123144 )
...
Use DeviceDiscoveryFilter correctly in ProxiedDevices.
2023-03-21 22:52:16 +00:00
Michael Goderbauer
25e38a2a87
Bump lower Dart SDK constraints to 3.0 & add class modifiers ( #122546 )
...
Bump lower Dart SDK constraints to 3.0 & add class modifiers
2023-03-21 20:21:58 +00:00
Christopher Fujino
7d767270b2
[flutter_tools] replace --no-analytics with --suppress-analytics ( #123133 )
...
[flutter_tools] replace --no-analytics with --suppress-analytics
2023-03-21 19:18:57 +00:00
Victoria Ashworth
9136a47458
Set plugin template minimum iOS version to 11.0 ( #122625 )
...
Set plugin template minimum iOS version to 11.0
2023-03-21 16:40:50 +00:00
Zachary Anderson
7e88acfb0e
[flutter_tool] Adds a flag to disable Impeller ( #122960 )
2023-03-20 22:23:23 -07:00
Christopher Fujino
6b7c60d69a
manual pub roll ( #123071 )
...
manual pub roll
2023-03-21 01:08:51 +00:00
Christopher Fujino
f4c3facfdd
Revert "Revert "[flutter_tools] Remove sound null safety flag ( #120936 )" ( #122909 )" ( #123031 )
...
[flutter_tools] Remove sound null safety flag #2
2023-03-20 22:32:07 +00:00
Loïc Sharma
2312097731
[Tool] [Windows] Output app path on build completion ( #122928 )
...
[Tool] [Windows] Output app path on build completion
2023-03-20 20:11:07 +00:00
Zachary Anderson
e6e99e2df5
Skip web hot restart tests ( #123019 )
...
Related https://github.com/flutter/flutter/issues/123018
2023-03-20 10:08:00 -07:00
Loïc Sharma
3635a3048e
Revert "[Tool] [Windows] Output app path on build completion ( #122858 )" ( #122926 )
...
Revert "[Tool] [Windows] Output app path on build completion"
2023-03-17 21:29:12 +00:00
Loïc Sharma
80d6c10596
[Tool] [Windows] Output app path on build completion ( #122858 )
...
[Tool] [Windows] Output app path on build completion
2023-03-17 20:53:40 +00:00
Jackson Gardner
a88eb172b7
Always flush files when setting up the test directory. ( #122856 )
...
Always flush files when setting up the test directory.
2023-03-17 20:45:05 +00:00
Christopher Fujino
f6bc147c91
Revert "[flutter_tools] Remove sound null safety flag ( #120936 )" ( #122909 )
...
This reverts commit 7c3088cf22
.
2023-03-17 11:31:48 -07:00
Greg Spencer
7a859f7760
Revert unintentional changes to Info.plist files ( #122896 )
...
Revert unintentional changes to Info.plist files
2023-03-17 18:18:43 +00:00
Christopher Fujino
7c3088cf22
[flutter_tools] Remove sound null safety flag ( #120936 )
...
[flutter_tools] Remove sound null safety flag
2023-03-17 17:48:35 +00:00
Greg Spencer
bcdab118ba
Add support for application exit requests ( #121378 )
...
Add support for application exit requests
2023-03-17 15:35:55 +00:00
Christopher Fujino
69921495eb
Revert "Fix hot restart flake" ( #122855 )
...
Landing revert on red to fix the build.
2023-03-16 22:40:42 -07:00
Jackson Gardner
be97d03a25
Use depfile with dart2wasm to determine when to rebuild. ( #122817 )
...
Use depfile with dart2wasm to determine when to rebuild.
2023-03-16 23:13:04 +00:00
Christopher Fujino
7e151b4641
[flutter_tools] throw tool exit on invocation of flutter format ( #121646 )
...
[flutter_tools] throw tool exit on invocation of flutter format
2023-03-16 21:40:26 +00:00
Anna Gringauze
62171dfe38
Fix hot restart flake ( #122776 )
2023-03-16 13:11:55 -07:00
Greg Spencer
c2f5bf99f1
Add macos project auto migration code for FlutterApplication ( #122336 )
...
Add macos project auto migration code for FlutterApplication
2023-03-16 01:01:03 +00:00
Victoria Ashworth
27248d4b64
Separate attached and wireless devices ( #122615 )
...
Separate attached and wireless devices
2023-03-15 16:35:05 +00:00
Yegor
091104f8bc
[web] stop using deprecated jsonwire web-driver protocol ( #122560 )
...
[web] stop using deprecated jsonwire web-driver protocol
2023-03-14 18:25:23 +00:00
Bartek Pacia
37fc9ed260
[flutter_tools] Clean up boolArgDeprecated
and stringArgDeprecated
( #122184 )
...
[flutter_tools] Clean up `boolArgDeprecated` and `stringArgDeprecated`
2023-03-13 21:20:19 +00:00
Victoria Ashworth
ee42a302ec
Move target devices logic to its own classes and file ( #121903 )
...
Move target devices logic to its own classes and file
2023-03-13 16:14:21 +00:00
Sigurd Meldgaard
1fd84f88e9
Always use user-level pub cache ( #121802 )
...
Use the pub cache resolved by pub itself.
To add packages to the flutter.zip download they are packaged as tar.gz and added to the pub-cache on first run by using `pub cache preload`.
2023-03-13 08:38:17 +01:00
sigmundch
aaa9cead70
[tool][web] Pass invoker flag to dart2js. ( #122344 )
...
[tool][web] Pass invoker flag to dart2js.
2023-03-11 03:24:34 +00:00
Jim Graham
3b6589924a
Update sdk version in temp testing package ( #122423 )
2023-03-10 13:52:26 -08:00
André Sousa
d7e851749a
Fix Gradle 7 warnings that are now errors in Gradle 8 ( #121958 )
...
Fix Gradle 7 warnings that are now errors in Gradle 8
2023-03-10 18:24:49 +00:00
Jim Graham
3f2cca8eeb
Adjust the minimum sdk version in the synthetic pkg for new Dart requirements ( #122380 )
...
Manually landing to fix the Engine rolls. The change will not affect Google Testing.
2023-03-10 09:23:33 -08:00
Tim Maffett
2e8c3468e7
fix devtool instructional messages after flutter build ... --analyze-size
. Fixes #122229 ( #122230 )
...
fix devtool instructional messages after `flutter build ... --analyze-size `. Fixes #122229
2023-03-09 22:29:50 +00:00
Navaron Bracke
57171a3fef
[flutter_tools] Add namespace getter in Android project; use namespace as fallback ( #121416 )
...
[flutter_tools] Add namespace getter in Android project; use namespace as fallback
2023-03-09 22:19:04 +00:00
stuartmorgan
62116f998b
Improve Dart plugin registration handling ( #122046 )
...
Improve Dart plugin registration handling
2023-03-09 21:33:38 +00:00
Jonas Uekötter
b9e925ab24
Use type promotion instead of access through a map ( #122178 )
...
Use variable instead of multiple accesses through a map
2023-03-08 20:35:50 +00:00
Reid Baker
fe9e819143
Create configOnly flag for android ( #121904 )
...
Create configOnly flag for android
2023-03-08 19:46:52 +00:00
Mouad Debbar
a9700ffdd5
Revert "[web:tools] always use CanvasKit from the cache when building web apps ( #93002 )" ( #117693 )
...
Revert "[web:tools] always use CanvasKit from the cache when building web apps (#93002 )"
2023-03-08 19:45:51 +00:00
Bartek Pacia
f8524ead7c
delete FlutterCommand.intArg()
, which is not used anywhere in the codebase ( #122124 )
...
Delete `FlutterCommand.intArg()`, which is not used anywhere
2023-03-08 00:19:06 +00:00
Anna Gringauze
d76860ad60
Add printing on failure to web hotrestart tests ( #122115 )
2023-03-07 15:35:00 -08:00
Mouad Debbar
95c2ad5047
[web] Ensure CanvasKit is served from the correct location ( #121902 )
...
[web] Ensure CanvasKit is served from the correct location
2023-03-07 21:38:35 +00:00
chunhtai
026adb8cc7
Adds vmservices for getting iOS build options ( #121736 )
...
Adds vmservices for getting iOS build options
2023-03-06 22:37:55 +00:00
Christopher Fujino
b1641749fc
pin flutter_plugin_android_lifecycle and roll other pub deps ( #122043 )
...
pin flutter_plugin_android_lifecycle and roll other pub deps
2023-03-06 21:51:07 +00:00
Lau Ching Jun
3e96dfc03e
Add backward compatibility in proxied_devices. ( #122040 )
...
Add backward compatibility in proxied_devices.
2023-03-06 21:46:57 +00:00
Seiya Kokushi
acc840e574
[tool] Proposal to multiple defines for --dart-define-from-file ( #120878 )
...
[tool] Proposal to multiple defines for --dart-define-from-file
2023-03-06 18:16:14 +00:00
Sigurd Meldgaard
7a28078509
Use dart pub
instead of dart __deprecated pub
( #121605 )
2023-03-06 11:23:12 +01:00
Christopher Fujino
26b7456f88
[flutter_tools] remove late from update-packages command ( #121891 )
...
[flutter_tools] remove late from update-packages command
2023-03-03 22:38:19 +00:00
Chris Yang
b81b1e28a3
[flutter_tool] add enable-embedder-api flag ( #121895 )
...
[flutter_tool] add enable-embedder-api flag
2023-03-03 21:13:54 +00:00
Victoria Ashworth
cc26a1aa0c
Update device filtering and introduce isConnected and connectionInterface ( #121359 )
...
Update device filtering and introduce isConnected and connectionInterface
2023-03-03 18:06:16 +00:00
Danny Tuppeny
3494c08448
[flutter_tools/dap] Inform DAP client whether restart is supported ( #121610 )
...
[flutter_tools/dap] Inform DAP client whether restart is supported
2023-03-03 12:54:23 +00:00
Christopher Fujino
902dac4763
ensure no pub output while caching PubDependencies artifact ( #121831 )
...
[flutter_tools] ensure no pub output while caching PubDependencies artifact
2023-03-03 02:40:14 +00:00
Flutter GitHub Bot
0d9a0207ad
roll packages ( #121746 )
...
Roll pub packages
2023-03-03 01:38:03 +00:00
Kevin Moore
a7f9ebcc49
Reorganize CLI flags for build web
( #121837 )
...
Reorganize CLI flags for `build web`
2023-03-03 00:59:16 +00:00
Kevin Moore
a8cc95e36d
flutter_tool: only enable wasm compile in master channel ( #121755 )
...
flutter_tool: only enable wasm compile in master channel
2023-03-02 22:21:50 +00:00
Kevin Moore
14b3f740c7
flutter_tool: DRY up features that are fully enabled ( #121754 )
...
flutter_tool: DRY up features that are fully enabled
2023-03-02 01:14:48 +00:00
Flutter GitHub Bot
d1c5c2fd11
roll packages ( #121727 )
...
Roll pub packages
2023-03-01 21:17:25 +00:00
Flutter GitHub Bot
d48aef0e27
roll packages ( #121675 )
...
Roll pub packages
2023-03-01 19:02:30 +00:00
Kevin Moore
0cd6f1fbdb
[flutter_tool] advertise the default value for --dart2js-optimization ( #121621 )
...
[flutter_tool] advertise the default value for --dart2js-optimization
2023-03-01 01:17:56 +00:00
Flutter GitHub Bot
f75e5a04a8
roll packages ( #121631 )
...
Roll pub packages
2023-02-28 22:03:58 +00:00
Flutter GitHub Bot
61a03f7907
roll packages ( #121611 )
...
Roll pub packages
2023-02-28 17:44:15 +00:00
Ben Konyi
ecd7518df5
Reland "Remove references to Observatory ( #118577 )" ( #121606 )
...
This reverts commit 275ab9c69b
.
2023-02-28 11:57:04 -05:00
Nabeel Parkar
e5a382ec92
Migrate activation issue template to Github form issues ( #119916 )
...
Migrate activation issue template to Github form issues
2023-02-28 08:08:01 +00:00
Flutter GitHub Bot
cf4ef28b94
Roll pub packages ( #121569 )
...
Roll pub packages
2023-02-28 03:10:07 +00:00
Todd Volkert
c4ef072369
Cocoapods ffi error can be in stdout or stderr ( #121470 )
...
Cocoapods ffi error can be in stdout or stderr
2023-02-28 00:11:29 +00:00
Flutter GitHub Bot
2c3fa08253
roll packages ( #121556 )
...
Roll pub packages
2023-02-28 00:11:26 +00:00
Michael Goderbauer
275ab9c69b
Revert "Reland "Remove references to Observatory ( #118577 )" ( #121215 )" ( #121555 )
...
Revert "Reland "Remove references to Observatory (#118577 )""
2023-02-27 23:46:53 +00:00
Danny Tuppeny
06952ba254
[flutter_tools] Add support for URI formats like ?line=x for "flutter test" ( #119740 )
...
* [flutter_tools] Add support for URI formats like ?line=x for "flutter test"
* Remove unnecessary function
* Handle parsing absolute paths on Windows
* Use Windows-style paths when running on Windows
* Fix paths in isFile
* Remove unnecessary clear
2023-02-27 19:13:00 +00:00
Christopher Fujino
5c334d10df
Revert "show web-server in flutter devices ( #121373 )" ( #121532 )
...
Revert "[flutter_tools] show web-server in flutter devices"
2023-02-27 18:44:09 +00:00
Greg Price
516b60bda1
Give error on too many arguments to flutter config
( #121494 )
...
Give error on too many arguments to `flutter config`
2023-02-27 17:22:20 +00:00
Ben Konyi
fbae472fc3
Reland "Remove references to Observatory ( #118577 )" ( #121215 )
...
This reverts commit 298d8c76ba
.
2023-02-27 09:26:43 -05:00
Christopher Fujino
6b3f95832a
show web-server in flutter devices ( #121373 )
...
[flutter_tools] show web-server in flutter devices
2023-02-24 23:52:06 +00:00
Flutter GitHub Bot
5d36cb77fb
roll packages ( #121358 )
2023-02-23 20:20:25 +00:00
Lioness100
26b6c1bedd
Fix typos ( #121171 )
...
* Fix typos
* lowercase animated & opacity
* Undo typo fix
---------
Co-authored-by: Michael Goderbauer <goderbauer@google.com>
2023-02-23 19:43:21 +00:00
Flutter GitHub Bot
8080becadf
roll packages ( #120951 )
2023-02-23 19:21:53 +00:00
David Iglesias
a463bb82c4
[tool][web] Makes flutter.js more G3 friendly. ( #120504 )
...
* Allow any JS file in flutter loader.
* Nag only if service worker API is completely unavailable.
* Add info about Secure Contexts if that may be the reason why serviceworker is not available.
* Update sanity test.
* If service worker settings are null, do not even check if the API is available.
2023-02-21 20:51:37 +00:00
Enguerrand ARMINJON
6259b690f6
feature/clean-a-specific-scheme: Add this-scheme new flag for clean command ( #116733 )
...
Co-authored-by: Enguerrand_ARMINJON_MAC_2 <earminjon@sqli.com>
2023-02-21 17:35:13 +00:00
Mateus Felipe C. C. Pinto
ebbc94bc2b
allow passing --file-reporter option to test running refs #69425 ( #120716 )
...
* allow passing --file-reporter option to test running refs #69425
* Add trailing comma to help to meet style requirements
* Add space between tests for clarity
---------
Co-authored-by: daniel-v <dvarga@skawa.hu>
2023-02-21 17:24:11 +00:00
Ian Hickson
6205c110d6
Remove "note that" in our documentation (as per style guide) ( #120842 )
...
* lerp documentation
* Remove Note, Note That from repo
* Improve BorderSide documentation.
* apply review comments
2023-02-17 22:27:33 +00:00
Jenn Magder
9fe556705b
Print sub process that failed to run in tool ( #120999 )
2023-02-17 22:02:51 +00:00
Jackson Gardner
674254c036
Always use the testbed in web_test.dart so environment
is populated. ( #120984 )
2023-02-17 10:19:09 -08:00
Casey Hillers
298d8c76ba
Revert "Remove references to Observatory ( #118577 )" ( #120929 )
...
This reverts commit 2df140f40d
.
2023-02-16 21:28:30 -08:00
Flutter GitHub Bot
206c6ae992
roll packages ( #120922 )
2023-02-16 23:53:16 +00:00
Danny Tuppeny
cacef57b6e
[flutter_tools] Skip over "Resolving dependencies..." text in integration tests ( #120077 )
...
Sometimes when the integration tests run Flutter apps they get this output (perhaps based on timing of file modification times). Some of the tests want to verify strict output but not fail just based on these lines before the app starts.
See https://github.com/flutter/flutter/issues/120015 / https://github.com/flutter/flutter/pull/120016 .
2023-02-16 10:12:16 -08:00
Alex Li
9a721c456d
Update AndroidManifest.xml.tmpl ( #120527 )
2023-02-16 00:05:03 +00:00
stuartmorgan
e65dfba8e1
Add Linux unit tests to plugin template ( #120814 )
...
* Add Linux unit tests to plugin template
Adds an example native unit test to the plugin template for Linux,
matching the structure we use for our 1P plugin unit tests. Once these
have been added for all platforms+languages, they will be documented on
a new plugin development page to explain their use.
While ideally we would adjust the engine APIs first to allow for testing
the method call handler directly, it's unclear when we will have time
for that work, and for a complex plugin most of the testing wouldn't be
at that layer anyway, so having the structure in place with the
limitations documented is still a significant improvement over having
nothing in the template.
Part of https://github.com/flutter/flutter/issues/82458
* Add creation test
* Add integration tests
* Missing newlines
* test owner
* Typo
2023-02-15 19:13:11 +00:00
Christopher Fujino
c6b636fa51
[flutter_tools] Replace Future.catchError() with Future.then(onError: ...) ( #120637 )
...
* wip run_local_linter.dart
* get run_local_linter.dart working
* slow working implementation
* speed up run_local_linter.dart
* fix run_local_linter.dart
* remove catchError
* another fix
* fix another
* fix
* more fixes
* fix moar
* fix moar
* fix
* finish
* fix tests
* clean up further
* code review
* delete run_local_linter.dart
2023-02-15 19:03:00 +00:00