Commit Graph

14769 Commits

Author SHA1 Message Date
Alexandre Ardhuin
ae06c19a37 enable unnecessary_string_escapes and use_raw_strings (#68302) 2020-10-21 16:34:24 +02:00
Jacob Richman
e5d7bab115 Fix null safety error in inspector service extensions taking a variable number of args. (#68661)
* Fix null safety error in inspector service extensions taking variable numbers of args.

Fixes https://github.com/flutter/flutter/issues/68627.
Also fix all inspector tests that do not rely on golden image functionality
so that they run with --enable-experiment=non-nullable. This verifies there
is test coverage to ensure there isn't a regression.

* Remove uses of dynamic.
2020-10-20 18:27:55 -07:00
Jenn Magder
d29cd9beb6 Clean up device logger and port forwarding on drive completion (#68655) 2020-10-20 16:01:51 -07:00
Jonah Williams
cb5865d86c [flutter_tools] add some versions to tool sources, cleanup build.yaml (#68624) 2020-10-20 09:50:31 -07:00
Jenn Magder
d81691d0f4 Revert "Build iOS apps using Swift Packages (#68361)" (#68546)
This reverts commit dd9323bdfb.
2020-10-19 17:57:32 -07:00
Yegor
ea3b08f333 Respond to HTTP POST requests with 404 in WebAssetServer (#68492)
* Respond to POST with 404 in WebAssetServer
2020-10-19 16:21:39 -07:00
Jenn Magder
dd9323bdfb Build iOS apps using Swift Packages (#68361) 2020-10-19 15:47:04 -07:00
Jenn Magder
5e17a240bd Generate only requested platform directories on create (#68376) 2020-10-19 14:17:43 -07:00
Hans Muller
98c519dbe2 Updated one reference to FlatButton in real_tests/extension_test.dart (#68505) 2020-10-19 13:12:17 -07:00
YeungKC
c706abf075 Fix error cursor position for left and right arrow event after text selection (#68402) 2020-10-19 12:42:03 -07:00
Greg Spencer
8c03ff8c1d Mark keys that match a shortcut, but have no action defined as "not handled". (#67359)
- - When I added notification of key events before processing them as text, it made it so that shortcut key bindings like the spacebar would prevent spaces from being inserted into text fields, which is obviously not desirable (and so that change was reverted). At the same time, we do want to make it possible to override key events so that they can do things like intercept a tab key or arrow keys that change the focus.

This PR changes the behavior of the Shortcuts widget so that if it has a shortcut defined, but no action is bound to the intent, then instead of responding that the key is "handled", it responds as if nothing handled it. This allows the engine to continue to process the key as text entry.

This PR includes:

- Modification of the callback type for key handlers to return a KeyEventResult instead of a bool, so that we can return more information (i.e. the extra state of "stop propagation").
- Modification of the ActionDispatcher.invokeAction contract to require that Action.isEnabled return true before calling it. It will now assert if the action isn't enabled when invokeAction is called. This is to allow optimization of the number of calls to isEnabled, since the shortcuts widget now wants to know if the action was enabled before deciding to either handle the key or to return ignored.
- Modification to ShortcutManager.handleKeypress to return KeyEventResult.ignored for keys which don't have an enabled action associated with them.
- Adds an attribute to DoNothingAction that allows it to mark a key as not handled, even though it does have an action associated with it. This will allow disabling of a shortcut for a subtree.
2020-10-19 11:26:50 -07:00
Jonah Williams
e422d5c724 [flutter_tools] reland: --no-android-gradle-daemon in devicelab (#68491)
Remove devicelab specific code for shutting down gradle daemon, add --android-gradle-daemon option to build/run/drive`. Avoids need for un-tested devicelab specific handler. There are also some feature requests for this, so 2 birds one stone.

Example:

flutter build apk --no-android-gradle-daemon will pass --no-daemon on to gradle
2020-10-19 10:27:58 -07:00
Kate Lovett
8df0c5e158 Deprecate old SnackBar methods (#67947) 2020-10-19 10:17:03 -07:00
Jonah Williams
19f363029e [flutter_tools] increase devFS sync timeout to 60 seconds (#68488)
The current timeout is too short for some remote workflows. The existing unit test require hitting a real timeout so I've removed it.

See b/171005910
2020-10-19 10:14:37 -07:00
Jonah Williams
ed5482de19 Revert "[flutter_tools] add --android-gradle-daemon option, use in devicelab (#68409)" (#68489)
This reverts commit ddab72e79f.
2020-10-19 09:33:52 -07:00
Jonah Williams
ddab72e79f [flutter_tools] add --android-gradle-daemon option, use in devicelab (#68409)
Remove devicelab specific code for shutting down gradle daemon, add --android-gradle-daemon option to build/run/drive`. Avoids need for un-tested devicelab specific handler. There are also some feature requests for this, so 2 birds one stone.

Example:

flutter build apk --no-android-gradle-daemon will pass --no-daemon on to gradle
2020-10-19 09:12:21 -07:00
Nobuhiro Tabuki
4e2f82cf93 [flutter_tools] change the IntelliJ plugin detection logic. (#68020)
This PR suggests improving the IntelliJ plugin "jar" detection logic.

Previously:
The IntelliJ Flutter plugin was contained flutter-intellij.jar.
Currently:
It is named flutter-intellij-X.Y.Z.jar and does not contain META-INF/plugin.xml.
META-INF/plugin.xml is included in flutter-idea-X.Y.Z.jar.

So this PR changes the rules for searching the plugin's jar file.
Concretely, it looks for the jar file containing META-INF/plugin.xml in the plugin's package directory and reads the package version from its META-INF/plugin.xml.

Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2020-10-19 08:19:48 -07:00
Michael Thomsen
c97ea71798 Adjust constraints (#68437) 2020-10-19 17:17:13 +02:00
Ayush Bherwani
ca84cc235c [MergeSemantics] added code snippet (#68123) 2020-10-19 08:17:03 -07:00
Xavier Chrétien
f26fbb6bdd Set slider semantics flag for sliders (#68019) 2020-10-19 08:12:03 -07:00
nt4f04uNd
4a32e52460 SpringDescription parameter for the AnimationController fling method (#65057) 2020-10-17 20:32:03 -07:00
xster
3302a12b20 Let Flutter SDK use cupertino_icons 1.0.0 (#65087) 2020-10-16 22:36:01 -07:00
Marcin Jeleński
d2d072199b Flutter Driver: command extensions and extension feature cleanup (#67916) 2020-10-16 22:29:47 -07:00
Lau Ching Jun
583db83865 request.mainUri should be fileUri (#68329) 2020-10-16 15:23:54 -07:00
Jonah Williams
198e40c9eb [flutter_tools] retry the driver launch of the application up to 3 times. (#68334)
We'd like to see how many of these flakes are transient and how many involve the device/machine getting temporarily wedged. Add a retry with no delay to see if it is possible to add sufficient error handling to startApp/installApp to handle this.
2020-10-16 15:07:23 -07:00
Hamdi Kahloun
7b04435a16 Date Picker jumps back to initialDatePickerMode after day selection (#67926)
Date Picker jumps back to initialDatePickerMode after day selection.
2020-10-16 13:31:20 -07:00
YeungKC
50a7da85f7 Fix text field label width on outline input border (#67736) 2020-10-16 13:12:04 -07:00
Alexandre Ardhuin
c0176c9ee5 use_is_even_rather_than_modulo (#68301) 2020-10-16 20:20:00 +02:00
Lau Ching Jun
3393566b56 Use multiroot scheme for initial compilation in ResidentRunner recompile (#68280) 2020-10-16 10:54:19 -07:00
Jonah Williams
dd93ee301f [flutter_tools] drive uses correct application package for prebuilt (#68309)
Both start and stop app create an application package, but only start app used the application binary. Create the application package once and pass it to both start and stop app.
2020-10-16 09:40:08 -07:00
Martin Kustermann
6fae89c8b5 Update package:stack_trace dependency to 1.10.0-nullsafety.4 (#68132) 2020-10-16 16:35:20 +02:00
Alexandre Ardhuin
31925d91fd fix the tree (#68287) 2020-10-16 11:52:37 +02:00
LongCatIsLooong
438c4ff21c Reland "More EditableText docs (#66864)" (#68043) 2020-10-16 01:52:04 -07:00
Alexandre Ardhuin
4ce5c2713b fix the tree (#68277) 2020-10-16 10:28:38 +02:00
Shi-Hao Hong
38ebc5588b [gen_l10n] Create pubspec.yaml in ".dart_tool/flutter_gen" if it does not already exist (#68206)
* Generate pubspec.yaml for synthetic package if it did not exist prior
2020-10-16 11:34:27 +08:00
Jenn Magder
acde65d14a Revert noninteractive lldb debugging, timeout warning (#68245) 2020-10-15 18:02:15 -07:00
Shi-Hao Hong
9611130e3d [NNBD] Migrate more widget tests to NNBD (#68173) 2020-10-15 17:52:05 -07:00
xubaolin
7d25b1a4a1 Improve the document of pageView and ListView (#68001) 2020-10-15 17:22:08 -07:00
Jonah Williams
4ce27ea0ac [flutter_tools] update metadata detection to account for invalid yaml (#68243) 2020-10-15 16:51:52 -07:00
Jay Freeman (saurik)
a69e393d66 Avoid skipping variable initialization using case. (#67899) 2020-10-15 16:07:03 -07:00
Michael Goderbauer
31a2c9d4b2 Migrate missed tests (#68241) 2020-10-15 16:03:26 -07:00
Darren Austin
4e3f4bb625 Migrated the Slider widget and tests to null safety. (#68232) 2020-10-15 15:47:04 -07:00
Kate Lovett
5aef988adc [NNBD] Migrate some Widgets tests (#68157) 2020-10-15 15:42:05 -07:00
Alexandre Ardhuin
73301a35a2 Sync lints (#68136) 2020-10-15 15:37:04 -07:00
Greg Spencer
7181c7a86a Convert some more widget tests to NNBD (#68160) 2020-10-15 14:27:04 -07:00
Dan Field
12f54e17f4 reland List queue search optimization (#68214)
* Revert "Revert "Improve performance of collectAllElements (#68065)" (#68207)"

This reverts commit 46ff57d6f1.

* use fewer elements for benchmark
2020-10-15 13:46:50 -07:00
Jonah Williams
0f88644883 [devicelab] allow the devicelab to take a screenshot if the iOS connection fails with FLUTTER_IOS_SCREENSHOT_ON_CONNECTION_FAILURE (#68156)
More attempts to remote diagnose the issues in the iOS devicelab
2020-10-15 13:13:28 -07:00
Greg Spencer
3f56178df8 Convert some more widget tests to NNBD (#68129) 2020-10-15 11:26:11 -07:00
Darren Austin
f7ee440207 Migrate yet even more widget framework tests to null safety. (#67941)
Migrate yet even more widget framework tests to null safety.
2020-10-15 11:12:02 -07:00
Jonah Williams
27936e9f22 Revert "[flutter_tools] ensure android log reader works in flutter drive (#68131)" (#68222)
This reverts commit d962c8f2a2.
2020-10-15 10:50:56 -07:00