Commit Graph

279 Commits

Author SHA1 Message Date
Jenn Magder
b82cf76ff6 Return void from project migrate() (#112897) 2022-10-05 20:22:56 +00:00
Christopher Fujino
eead1efe5f [flutter_tools] Fix type error in ChromiumDevice.startApp (#111935) 2022-09-20 18:10:13 +00:00
Liam Appelbe
9489458650 Reland "Null safety migration of packages/flutter_tools/bin" (#111756)
This reverts commit f8f69575dd.
2022-09-16 12:39:55 -07:00
Zachary Anderson
f8f69575dd Revert "Null safety migration of packages/flutter_tools/bin" (#111506) 2022-09-13 21:55:14 +00:00
Liam Appelbe
e3b9223a74 Null safety migration of packages/flutter_tools/bin (#110706)
* Migrate packages/flutter_tools/bin

* Fix NPE

* Fix test

* Fix test

* Fix l10n optionalParameters

* Fix ChromeTab nullability

* Fix another type cast error

* Fix another cast error

* Fix another cast error (copied from #110711)

* Fix NPE

* Fix another NPE

* Assert that testDirectory is not null
2022-09-12 15:52:31 -07:00
David Iglesias
9cb9f6bca4 [tool] Fix flutter.js regression with hot-reload on promise-based init. (#110805) 2022-09-01 22:25:16 +00:00
Zachary Anderson
c6ec84e978 [flutter_tools] Pull more arm64 artifacts on Apple Silicon (#110291) 2022-08-29 10:33:24 -07:00
David Iglesias
04f7ea8459 [web] Add onEntrypointLoaded to FlutterLoader. (#108776) 2022-08-03 20:58:06 +00:00
Jenn Magder
7f1a8f7948 Add usage event when iOS app is archived (#108643) 2022-07-29 22:44:06 +00:00
David Iglesias
d72f08f50f [web][debug] Remove RequireJS timeouts for debug builds. (#107868) 2022-07-19 22:56:05 +00:00
Gustl22
47f54ace45 feat(tools): Arbitrary browser flags (closes #65575) (#104935) 2022-06-24 10:14:08 -07:00
David Iglesias
b1b1ee9ca6 [web] Fix JS crash when FF blocks service workers. (#106072) 2022-06-17 02:22:07 +00:00
Jonah Williams
92034482f9 [flutter_tool] partial null safety migration of tool source code (#105798) 2022-06-15 20:02:07 +00:00
David Iglesias
b7eaad8b14 [tool][web] Fix flutter.js in Safari 13 (#104761) 2022-05-26 17:50:10 -07:00
Anna Gringauze
5cd979e441 Retry getting tabs in chrome launcher on ConnectionException (#104218) 2022-05-26 15:20:11 -07:00
Dacian Florea
680bc17cde [web] [fix] Cache resource data only if the fetching succeed (#103816) 2022-05-24 16:23:06 -07:00
David Iglesias
1af8cc1183 [tools][web] Make Plugin Registrant file ephemeral. (#102185) 2022-05-11 17:54:11 -07:00
Jason Simmons
d05d43431e Provide a flag for controlling the dart2js optimization level when building for web targets (#101945) 2022-04-15 00:19:06 -07:00
David Iglesias
bee95b6984 [flutter.js] Wait for reg.update, then activate sw (if not active yet). (#101464) 2022-04-11 19:04:08 -07:00
Michael Goderbauer
dcde8163ce migrate to super params (#100509) 2022-03-31 11:46:47 -07:00
David Iglesias
e52b777a2c [web] flutter.js initialization with ui.webOnlyWarmupEngine (#100177) 2022-03-30 23:00:09 -07:00
wangying
3138cce7b2 feat: support configure a custom launch url for flutter web (#95002) 2022-01-18 09:50:20 -08:00
Jenn Magder
18c59cdb1c Migrate build commands to null safety (#95649) 2022-01-05 16:45:12 -08:00
Anna Gringauze
ca62470796 De-flake web tool tests (#93948) 2021-11-30 17:39:05 -08:00
Yegor
773789344e [web:tools] always use CanvasKit from the cache when building web apps (#93002) 2021-11-03 17:48:25 -07:00
Jenn Magder
9e88fe328e Remove globals_null_migrated.dart, move into globals.dart (#92861) 2021-11-01 17:18:03 -07:00
Yegor
ad7727a21c [web] enable CanvasKit tests using a local bundle fetched from CIPD (#92134) 2021-10-21 11:13:18 -07:00
Christopher Fujino
34ec94a16d [flutter_tools] migrate web_device.dart to null-safety (#91632) 2021-10-19 01:33:08 -07:00
Ian Hickson
989f864497 Enable avoid_setters_without_getters (#91067) 2021-10-01 00:58:05 -07:00
Jonah Williams
060e4608b1 clean up stale or unnecessary TODOS (#88308) 2021-08-16 21:37:03 -07:00
Jason Simmons
ddb8bfb72b Fix URL construction in the test entry point generated by the web bootstrap script (#88201) 2021-08-16 14:12:05 -07:00
Anna Gringauze
44d9af80cb Flutter_tools for web: report error messages with stacks on exit (#87386)
* Flutter_tools for web platform: report error messages with stacks on toolExit

Print error messages and stacks in verbose mode before calling
`throwToolExit` on communication errors to chrome and dwds.

This will help us disagnose CI flakes:

Helps: https://github.com/flutter/flutter/issues/84012
Closes: https://github.com/flutter/flutter/issues/87149

* Added tests

* Extend timeout for testing failure to connect to chrome

* Update rest of chrome tests to await until matching is finished
2021-08-03 10:51:35 -07:00
Jonah Williams
88e756d19e [flutter_tools] well known device ids (#85184) 2021-06-24 18:46:04 -07:00
Jonah Williams
ad540e4f3f [flutter_tools] retry chrome launch up to 3 times (#85162) 2021-06-23 19:26:02 -07:00
Ahmed Ashour
49c08b7353 Fix checking of index.html (#85016) 2021-06-23 16:41:03 -07:00
Alexandre Ardhuin
34059eec2c enable lint prefer_interpolation_to_compose_strings (#83407) 2021-06-01 11:14:06 -07:00
Jonah Williams
025a3a7da3 [versions] roll package test redux (#83367) 2021-05-26 17:22:28 -07:00
Jenn Magder
19eab105a5 Migrate build_system, exceptions, and source to null safety (#83147) 2021-05-24 10:29:04 -07:00
Balvinder Singh Gambhir
4a33813b35 [flutter_tools] added base-href command in web (#80519) 2021-05-19 12:39:02 -07:00
Gary Roumanis
e3fd8dbfd5 Update loader style (#82485) 2021-05-13 22:59:03 -07:00
Jenn Magder
783e1dd22c Standardize build system environment defines derived from build info (#81879) 2021-05-07 17:04:02 -07:00
Gary Roumanis
0cb0767bd7 Flutter Web Loading Indicator (#81581) 2021-04-30 21:04:02 -07:00
Jonah Williams
52661bc713 [flutter_tools] skip copying 1GB of data from chrome cache dirs (#81170)
* [flutter_tools] skip copying 1GB of data from chrome cache dirs

* Update chrome.dart
2021-04-26 13:02:42 -07:00
Emmanuel Garcia
b0a63c4ffe Reland the Dart plugin registry (#79669) 2021-04-23 15:34:04 -07:00
Jonah Williams
b30d97a64c [flutter_tools] split host artifacts out of Artifacts (#80876) 2021-04-22 19:29:02 -07:00
Jenn Magder
f2417e6c1c Launch Chrome natively on ARM macOS (#80758) 2021-04-20 19:39:58 -07:00
Jenn Magder
d40cc5af8f Migrate flutter_tool plugins.dart to null safety (#80304) 2021-04-13 13:52:58 -07:00
Jenn Magder
436ca01e14 Migrate features_tests and other tool tests to null safety (#80168) 2021-04-12 12:35:02 -07:00
Jenn Magder
cf27be38a9 Migrate web_validator to null safety (#80095) 2021-04-08 21:04:02 -07:00
Jenn Magder
fef6f543da Check if reg can run before calling it on Windows (#79905) 2021-04-08 16:55:38 -07:00