Commit graph

7128 commits

Author SHA1 Message Date
嘟囔 bf3ff7ec71
feat: migrate fuchsia/application_package.dart to null-safe (#88095) 2021-08-13 00:22:07 -07:00
Anurag Roy 758c28b813
[flutter_tools] Reland "Make upgrade only work with standard remotes" (#87731) 2021-08-12 15:52:07 -07:00
Ian Hickson 7bedd0f122
Fix incorrect logging. (#88042) 2021-08-12 15:32:06 -07:00
Zachary Anderson f0e832cdea
[flutter_tool] Fix DesktopLogReader to capture all output (#88116) 2021-08-12 14:57:07 -07:00
Ahmed Ashour 5848a1620d
[gen_l10n] to handle arbitrary DateFormat patterns (#86844) 2021-08-12 14:34:52 -07:00
Jenn Magder 9764d861ca
Support flutter create --platform singular flag (#88076) 2021-08-12 11:42:04 -07:00
Jenn Magder 9b1ed4639d
Update flutter create templates for Xcode 13 (#88074) 2021-08-12 11:37:04 -07:00
嘟囔 047d35d8ba
feat: refactor IosProject and MacOSProject to extends XcodeBasedProject to share common (#87930) 2021-08-11 21:47:05 -07:00
嘟囔 a17723d46b
feat: migrate windows/application_package.dart to null-safety (#88081) 2021-08-11 21:02:03 -07:00
嘟囔 d2f9c6c752
feat: migrate base/dds.dart to null-safety (#88015) 2021-08-11 14:47:06 -07:00
嘟囔 4ef8088ce8
feat: migrate macos/application_package.dart to null-safety (#87976) 2021-08-11 14:42:05 -07:00
Greg Spencer cb651352dd
Fix errors in examples (#87962) 2021-08-11 14:37:06 -07:00
Darren Austin b08366ce7b
Updated skipped tests for flutter_tools. (#87925)
* Updated skipped tests for flutter_tools.

* Turned the flaky overall_experience test off as it was still failing on CI.
2021-08-10 22:22:08 -07:00
Michael Thomsen 947d3b6d7b
Run --update-packages (#87786) 2021-08-09 08:41:54 +02:00
嘟囔 bffa11e2b6
fix: fix BuildableMacOSApp pass no projectBundleId to super error (#87264) 2021-08-06 14:30:07 -07:00
Jia Hao e40d7e6ef4
Don't set the SplashScreenDrawable for new projects (#87619) 2021-08-04 23:15:04 -07:00
keyonghan c5f4f58640
Skip flaky test debugger_stepping_test (#87670) 2021-08-04 12:20:04 -07:00
Lau Ching Jun 95217eb72a
Add new hook for setupHotReload and after updating devFS is complete (#87532)
* Add new hook for setupHotReload and after updating devFS is complete

* Handle the case where updateDevFS failed
2021-08-03 21:09:56 -07:00
Anna Gringauze cc63c81408
Update all packages (#87579)
- Update dwds and and the rest of the packages

Closes: https://github.com/flutter/flutter/issues/87100
2021-08-03 16:37:48 -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
Ahmed Ashour 92e02457d5
Handle reserved Kotlin keywords (#86518) 2021-08-02 14:35:05 -07:00
Jenn Magder 7424db448d
Exclude arm64 from iOS app archs if unsupported by plugins on x64 Macs (#87362) 2021-07-30 14:44:04 -07:00
Jenn Magder a69b3ca5d3
Exclude arm64 from iOS app archs if unsupported by plugins (#87244) 2021-07-30 10:54:34 -07:00
Anurag Roy ade9f6a9f0
[flutter_tools] Improve toolexit error messages for flutter upgrade (#86351) 2021-07-29 22:00:44 -07:00
Anna Gringauze 33fd4f15a9
Fix race causing null dereference on getStack in web_tool_tests and CI flakes (#87278) 2021-07-29 16:59:02 -07:00
Taha Tesser f9aa5842c2
[tools] Fix Android Studio Arctic Fox Java path on macOS (#87267) 2021-07-29 10:24:07 -07:00
Jenn Magder 2f91679058
Show Android SDK path in doctor on partial installation (#87232) 2021-07-28 19:14:02 -07:00
Sam Rawlins 960463e66d
Remove "unnecessary" imports. (#85736) 2021-07-28 16:19:04 -07:00
Greg Spencer 0bab3604b0
Make the startup lock message print to stderr. (#86520)
This changes the "Waiting for another flutter command to release the startup lock..." message output so that it appears on stderr instead of stdout. When it appears on stdout, it can mess up collection of the output. For instance, if you run flutter --version --machine and you're expecting JSON output, then you'll get non-JSON output even though the lock is released and you eventually would get what you're asking for.
2021-07-28 15:12:03 -07:00
Jenn Magder 89637e4e47
Replace iOS physical/simulator bools with enum (#87138) 2021-07-27 16:39:04 -07:00
Christopher Fujino 2d07436dbd
[flutter_tools] Port xcode backend to dart (#86753) 2021-07-27 14:39:05 -07:00
Greg Spencer 738ce43d97
Randomize tests, exclude tests that fail with randomization. (#86793)
* Randomize tests, exclude tests that fail with randomization.

* Disable some more tool tests
2021-07-26 23:40:49 -07:00
Emmanuel Garcia e7a9adeeab
Remove AndroidX workarounds (#86911) 2021-07-23 17:41:04 -07:00
Jenn Magder 6881fca7b7
Respect plugin excluded iOS architectures (#86905) 2021-07-23 13:56:03 -07:00
Ahmed Ashour bf132daef3
[gen_l10n] correct variable name when the placeholder requiresFormatting (#86842) 2021-07-22 13:55:18 -07:00
Ahmed Ashour 9492e13c45
Reland [flutter_tools] show only supported sub commands (#86153) 2021-07-22 13:41:03 -07:00
Jacob MacDonald fdb80f916d
update packages to the latest (#86880) 2021-07-22 13:26:05 -07:00
Jenn Magder 81aeb33ce3
Increase Flutter framework minimum iOS version to 9.0 (#86840) 2021-07-22 13:21:05 -07:00
Zachary Anderson 10e53e9981
Skip "newly added code executes during hot restart - canvaskit" (#86885)
https://ci.chromium.org/ui/p/flutter/builders/prod/Windows%20web_tool_tests/2880/overview
2021-07-22 10:55:18 -07:00
Jonah Williams 7f26dbe0d4
[flutter] remove elevation checker (#86837) 2021-07-21 21:51:06 -07:00
Anna Gringauze 84c3b56877
Update dwds (and other packages) (#86832)
* Upgrade all packages

In particular, bring in dwds with latest fixes for flakes.

Closes: https://github.com/flutter/flutter/issues/85043
Related: https://github.com/flutter/flutter/issues/85575

* Re-enable fixed tests

* Disable failing test due to DDS issue
2021-07-21 21:47:10 -07:00
Emmanuel Garcia 0a8c03dc8a
Show warning when an app or plugin uses the V1 Android embedding (#86750) 2021-07-21 12:51:43 -07:00
Ahmed Ashour f568d929db
[gen_l10n] Support plurals and selects inside string (#86167) 2021-07-21 12:41:06 -07:00
Taha Tesser 94f71f374f
[flutter_tools] Refactor Android Studio Detection on Windows (support 4.x and 202x releases detection) (#86624) 2021-07-20 12:16:03 -07:00
Remi Rousselet 1995da2c0c
Disable the automatic "pub get" if the project is using a third-party tool for linking dependencies. (#86177) 2021-07-19 08:06:03 -07:00
Zachary Anderson 8642a9c0f7
Quote arguments to flutter assemble in xcode_backend.sh (#86534) 2021-07-16 18:22:10 -07:00
Ahmed Ashour 838ad83705
Explicitly show "Currently not on an official channel." (#84992) 2021-07-15 21:55:39 -07:00
Christopher Fujino dacfda07e7
roll dds (#86496) 2021-07-15 17:06:25 -07:00
Lau Ching Jun f25e4fea18
Remove unnecessary variables. (#86444) 2021-07-15 16:56:04 -07:00
Zachary Anderson 09a38d7a17
Revert "Handle reserved Kotlin keywords (#84973)" (#86512)
This reverts commit a67f618a29.
2021-07-15 14:43:53 -07:00
Ahmed Ashour a67f618a29
Handle reserved Kotlin keywords (#84973) 2021-07-15 14:26:05 -07:00
Jonah Williams b549e829e8
[flutter_tools] support trailing args (#86431) 2021-07-14 15:51:10 -07:00
Eng Zer Jun 57a4b023f1
build: update dependencies (#86433) 2021-07-14 13:46:04 -07:00
Yegor 81c91924f0
[web] use resident resident runner in flutter drive (#86381)
* [web] use resident resident runner in flutter drive
2021-07-14 08:46:38 -07:00
Ian Hickson 1133921c4d
Add more debugging logs to overall_experience_test (#86368) 2021-07-13 16:56:06 -07:00
Jonah Williams 63a4013160
Revert "[flutter_tools] let the logger know about machine mode (#86116)" (#86363)
This reverts commit 53d8cba3ec.
2021-07-13 10:39:35 -07:00
Ian Hickson d3c17acf9d
Run "pub global activate devtools" before overall_experience_test (#85812) 2021-07-12 14:36:05 -07:00
michaellee8 6a51e0c237
[flutter_tools] Add support for launching fuchsia app using session_control (#85752) 2021-07-12 13:26:05 -07:00
Jonah Williams 53d8cba3ec
[flutter_tools] let the logger know about machine mode (#86116) 2021-07-12 10:41:03 -07:00
Jonah Williams 7a0b4669fc
[flutter_tools] switch web integration tests to use html (#85325) 2021-07-12 09:01:04 -07:00
Yegor 78e06e716b
[web] move e2e tests from flutter/engine to flutter/flutter (#86119)
* [web] move e2e tests from flutter/engine to flutter/flutter
* flutter update-packages --force-upgrade
2021-07-09 15:31:49 -07:00
Ahmed Ashour ef9da62325
Fix typo in test name (#86083) 2021-07-09 11:16:03 -07:00
Ahmed Ashour 6bfc5824d3
Add .gitignore (#85017) 2021-07-09 10:41:03 -07:00
Jonah Williams 9d70d9d589
[flutter_tools] fix -n workaround (#86142) 2021-07-09 09:41:04 -07:00
Zachary Anderson c589a0c322
Revert "[flutter_tools] show only supported sub commands (#85125)" (#86131)
This reverts commit 84e576786c.
2021-07-08 15:58:05 -07:00
Ahmed Ashour a666925a02
Add newline at end of file (#86008) 2021-07-08 15:01:10 -07:00
Zachary Anderson 53125203ea
[flutter_tool] Pin DevTools to 2.4.0 (#86124) 2021-07-08 15:01:00 -07:00
Ahmed Ashour 84e576786c
[flutter_tools] show only supported sub commands (#85125) 2021-07-08 14:56:06 -07:00
Jacob Richman 1a0d873e2e
Switch drive_service from using deprecated version of --record-memory-profile flag. (#86122) 2021-07-08 14:29:41 -07:00
Alexandre Ardhuin 80990c21e2
code formatting (#85783) 2021-07-07 23:06:05 -07:00
Jonah Williams b1b0d20a95
[flutter_tools] revert change to SETLOCAL ENABLEDELAYEDEXPANSION (#86000) 2021-07-07 11:10:37 -07:00
Hannes Winkler a1e9f2057f
[custom-devices] general improvements, add custom-devices subcommand, better error handling (#82043) 2021-07-07 09:16:04 -07:00
Jonah Williams ba143ae21e
Update devtools_launcher.dart (#85995) 2021-07-06 22:01:02 -07:00
Shi-Hao Hong b0bd7cf1d8
make app localizations lookup a public method (#84732) 2021-07-01 15:01:03 -07:00
Ahmed Ashour a3dc90c4f5
Add space before curly parentheses. (#85306) 2021-07-01 13:51:05 -07:00
Ahmed Ashour 76db0d7428
Fix typo in test class (#84961) 2021-07-01 13:46:03 -07:00
Ahmed Ashour 529a599ce6
Fix some indentation (#84967) 2021-07-01 13:41:04 -07:00
Shouichi Kamiya 6c2c702f43
Update outdated ios setup link in error message (#84246) 2021-07-01 13:36:05 -07:00
Jenn Magder f76b292626
Support iOS arm64 simulator (#85642) 2021-06-30 14:31:04 -07:00
Zachary Anderson 407916d44f
Revert "Support iOS arm64 simulator (#85059)" (#85641)
This reverts commit a1020512ef.
2021-06-30 12:44:49 -07:00
Jenn Magder a1020512ef
Support iOS arm64 simulator (#85059) 2021-06-30 11:56:17 -07:00
Dan Field e36e62e9a6
Revert "Revert "Audit hashCode overrides outside of packages/flutter (#85370)" (#85451)" (#85567)
This reverts commit 2be0d57fa2.
2021-06-30 09:46:54 -07:00
LongCatIsLooong 1c92e84865
Skip flaky tests in web.shared (#85577) 2021-06-29 16:21:02 -07:00
Jenn Magder 24d608b2ba
Check ios-arm64_x86_64-simulator directory when validating codesigning entitlement (#85265) 2021-06-28 17:01:06 -07:00
Filip Hracek 76d5e62f42
Add a more complete app template for Flutter (skeleton) (#83530) 2021-06-28 15:26:04 -07:00
Lau Ching Jun af42e7d730
Only set assets directory after assets are uploaded onto devfs. (#85418) 2021-06-28 13:16:04 -07:00
Danny Tuppeny dec122a4d8
Remove incorrect text about web renderer default (#85214) 2021-06-28 12:56:06 -07:00
Jenn Magder e028d0f046
Split project.dart into CMake and Xcode projects (#85359) 2021-06-28 11:31:04 -07:00
Ren You 2be0d57fa2
Revert "Audit hashCode overrides outside of packages/flutter (#85370)" (#85451)
This reverts commit 9846fa5145.
2021-06-28 09:55:31 -07:00
Chase Latta 6dd9e8c153
[fuchsia] pm serve should not use the device address (#85341)
BUG: fxbug.dev/77566
BUG: https://github.com/flutter/flutter/issues/83609
2021-06-27 16:58:20 -07:00
Jonah Williams def601ac17
[flutter_tools] re-enable all tests on windows (#85384) 2021-06-27 05:26:02 -07:00
Dan Field 9846fa5145
Audit hashCode overrides outside of packages/flutter (#85370) 2021-06-26 17:36:04 -07:00
Lau Ching Jun 8251f55256
Revert "Make sure that the asset directory on devfs always exist. (#85267)" (#85353) 2021-06-25 16:46:02 -07:00
Jonah Williams a362e1166d
[flutter_tools] add un-discoverable preview device (#85253) 2021-06-25 15:36:04 -07:00
Jonah Williams d5c842c09e
[flutter_tools] make analyze once an integration test (#85336) 2021-06-25 12:06:04 -07:00
Jonah Williams 1977ee75b3
[flutter_tools] ensure kernel paths match between init from dill and persist (#85252) 2021-06-25 11:11:04 -07:00
Jenn Magder d145938406
Migrate flutter_cache to null safety (#85242) 2021-06-25 10:56:03 -07:00
Lau Ching Jun 102acbe39d
Make sure that the asset directory on devfs always exist. (#85267) 2021-06-24 22:51:02 -07:00
Jonah Williams f04508a426
[flutter_tools] dont use SETLOCAL ENABLEDELAYEDEXPANSION unecessarily (#85288) 2021-06-24 22:21:01 -07:00
Jonah Williams 88e756d19e
[flutter_tools] well known device ids (#85184) 2021-06-24 18:46:04 -07:00
Kathy Walrath 7f15662f56
Update the package README template (#84160)
Co-authored-by: JaYoung Lee <11873270+jayoung-lee@users.noreply.github.com>
2021-06-24 16:21:55 -07:00
Jenn Magder 0de6bd41ba
Migrate iOS app deployment target from 8.0 to 9.0 (#85174) 2021-06-24 10:21:05 -07:00
Jonah Williams 21fc0c3a7a
[flutter_tools] remove online requirement for devtools (#85176) 2021-06-24 09:26:02 -07:00
Jonah Williams ff5258a5e2
[flutter_tools] convert devtools URL to a better format (#85170) 2021-06-23 19:31:02 -07:00
Jonah Williams ad540e4f3f
[flutter_tools] retry chrome launch up to 3 times (#85162) 2021-06-23 19:26:02 -07:00
Jonah Williams e67113c16f
[flutter_tools] use UWP cpp wrapper for UWP build (#85167) 2021-06-23 19:21:02 -07:00
Jenn Magder 042fd77ce1
Check ios-arm64_armv7 directory when validating codesigning entitlements (#85053) 2021-06-23 16:46:03 -07:00
Ahmed Ashour 49c08b7353
Fix checking of index.html (#85016) 2021-06-23 16:41:03 -07:00
Jenn Magder 2e5284a26b
Do not list Android or iOS devices when feature disabled (#85145) 2021-06-23 15:41:04 -07:00
chunhtai 50a2fad986
Remove namesless todo (#85151) 2021-06-23 14:29:14 -07:00
Balvinder Singh Gambhir 604c59e522
adds build number of ios device in flutter devices command (#84512) 2021-06-23 11:31:03 -07:00
Ahmed Ashour a76eb719db
Fix typos in test names (#85126) 2021-06-23 09:41:02 -07:00
Jonah Williams 03d14a30c8
[versions] remove mockito (#85076) 2021-06-22 17:41:03 -07:00
Jenn Magder 40428fa0ea
macOS unzip then rsync to delete stale artifacts (#85075) 2021-06-22 17:10:56 -07:00
Jonah Williams 1e2753b741
[flutter_tools] remove all mocks from error handling io test (#84646) 2021-06-22 15:06:02 -07:00
Phil Quitslund 2c9de5ab49
remove deprecated author section (#85036) 2021-06-22 09:41:04 -07:00
Zachary Anderson 1cf2ce9552
Skip a flaky Windows/canvaskit test in hot_reload_web_test.dart (#85044)
* Update hot_reload_web_test.dart

For https://github.com/flutter/flutter/issues/85043

* Add missing import
2021-06-22 09:11:02 -07:00
Phil Quitslund 875b420cc8
remove deprecated author fields (#84997) 2021-06-22 06:06:03 -07:00
Mirko Mucaria bce1706f1c
Fix watchOS build when companion app is configured with xcode variable (#84519) 2021-06-17 14:14:03 -07:00
Jenn Magder 53f5b90209
Use -miphonesimulator-version-min when building App.framework for simulator (#84729) 2021-06-16 15:54:38 -07:00
Anurag Roy ce7df25ae7
Move flutterGit from version.dart (#79568) 2021-06-16 11:51:37 -07:00
Tim Sneath 57a565c706
Clean up podspec template (#84662) 2021-06-15 18:44:02 -07:00
Jonah Williams f2dcbbea1b
[flutter_tools] remove mockito from resident web runner tests (#84659) 2021-06-15 16:54:02 -07:00
Jonah Williams 1b981a6869
[flutter_tools] tweak README (#84648) 2021-06-15 15:54:03 -07:00
Jonah Williams cd13c91119
[versions] update dependencies (#84639) 2021-06-15 11:08:57 -07:00
Jenn Magder db930ba32f
Migrate build_macos and web_test_compiler to null safety (#84469) 2021-06-14 18:29:03 -07:00
Jonah Williams 73df069786
[flutter_tools] fully remove mocks from resident_runner_test.dart (#84591) 2021-06-14 16:29:02 -07:00
Greg Spencer 88f3811055
Turn on avoid_dynamic_calls lint, except packages/flutter tests, make appropriate changes. (#84476)
This adds avoid_dynamic_calls to the list of lints, and fixes all instances where it was violated.

Importantly, this lint is NOT turned on for flutter/packages/test, because those changes are happening in another PR: #84478
2021-06-14 14:16:57 -07:00
Lau Ching Jun acd68cf47b
Fix compile expression in tests when precompiled dill files are used. (#84470) 2021-06-14 13:44:03 -07:00
Jenn Magder e87a85c30e
Add Designed by iPad attach destination for ARM macOS (#84411) 2021-06-14 12:09:02 -07:00
Jonah Williams 65549d778e
[flutter_tools] reduce mocking in error handling io (#84443) 2021-06-11 13:04:03 -07:00
Jenn Magder 80668d20f8
Fix assemble codesign flag (#84372) 2021-06-11 11:35:00 -07:00
Jenn Magder 483f71ae21
Migrate application_package to null safety (#83956) 2021-06-10 16:24:03 -07:00
Aneesh Rao 1850079a5d
Fix typo in test description (#84189) 2021-06-10 14:39:04 -07:00
Aneesh Rao b4148eb599
Add maskable icons to improve lighthouse score (#83182) 2021-06-10 13:49:06 -07:00
Jonah Williams 6728cf34cc
[flutter_tools] remove more mocks from runner tests (#84312) 2021-06-10 12:00:38 -07:00
Jonah Williams 67a57eb9a5
[flutter_tools] remove feature for alternative invalidation strategy (#84366) 2021-06-10 11:59:04 -07:00
Alexandre Ardhuin 2c998d8be7
fix indentation of class members (#84293) 2021-06-10 11:29:03 -07:00
Jonah Williams 04933efb43
[flutter_tools] fully remove mocks from version_test.dart (#84311) 2021-06-10 11:09:03 -07:00
Justin Hutchins db528a24a3
Improve WebDriver error message (#81107)
* Add link to documentation in error message

The current WebDriver message is incomplete. Add link to
the documentation on WebDrivers for different browsers
to help troubleshooting.
2021-06-10 08:52:42 -07:00
Jonah Williams 10840352ce
[flutter_tools] switch flutter sdk to dart format (#84273) 2021-06-10 07:54:03 -07:00
Jenn Magder e6fe1ed73a
Migrate android application_package to null safety (#84227) 2021-06-09 16:09:04 -07:00
Alexandre Ardhuin e467018d06
alignment of doc comments and annotations (#84256) 2021-06-09 07:54:02 -07:00
Jonah Williams cb2eef04ed
[flutter_tools] remove remaining mocks from cache_test.dart (#84218) 2021-06-08 17:42:11 -07:00
Alex Melnyk 23d705c30b
Fix typo in create.dart (#82454) 2021-06-08 15:58:01 -07:00
Jonah Williams 6a75e48607
[flutter_tools] remove substantial mocking from version test (#84007) 2021-06-08 10:47:03 -07:00
Darren Austin c7bfef6721
Mark flaky tests in 'expression_evaluation_web_test' as skipped. (#84163)
Turned off all tests in expression_evaluation_web_test.dart as there were several that appeared in flake reports.
2021-06-07 20:20:58 -07:00
Lau Ching Jun 89a3c353e6
Add more analytics for hot reload in flutter_tools. (#83972) 2021-06-07 18:51:47 -07:00
Michael Goderbauer 5a2530b28e
Remove unused protobuf dependency (#84148) 2021-06-07 15:34:06 -07:00
Jonah Williams aaff32902e
[flutter_tools] remove all mocks from attach.dart (#84118) 2021-06-07 15:24:03 -07:00