Commit Graph

14700 Commits

Author SHA1 Message Date
Jonah Williams
61ba7dd218 [flutter_tools] If run fails to install the application on iOS, try uninstalling it and trying again. (#68078) 2020-10-14 09:14:36 -07:00
Per Classon
8a7fd39b85 [Material] Parent checkbox in DataTable should deselect all, if children checkboxes are disabled or selected (#67938) 2020-10-14 08:57:06 -07:00
xubaolin
7eeab2666b Fix DropdownButton bug (#65915) 2020-10-14 01:52:03 -07:00
HeavenOSK
66cf8d47a3 [Improvement] Add prefix Alignment. for toString of Alignment (#67860)
* modify: add prefix `Alignment.` for toString of Alignment
2020-10-14 13:47:28 +08:00
Jonah Williams
4b351ac1b4 [flutter_tools] do not allow attaching in release mode (#68071)
Do not allow attach in release mode, as there is not VM Service to connect to. Observed in crash reporting as thrown string which is changed to exception below.
2020-10-13 21:29:23 -07:00
Jonah Williams
751459df24 [flutter_tool] support --use-application-binary in flutter drive (#68060)
--use-application-binary allows running with an already built APK. This can be useful for speeding up CI test cases, or in our case eventually supporting some sort of build server. Demonstrate that this works by updating the old gallery test to use it. Fixes #56604

Co-authored-by: Jenn Magder <magder@google.com>
2020-10-13 19:27:30 -07:00
Darren Austin
ca065f6456 Migrate more Material framework tests to null safety. (#67790)
* Migrate more Material framework tests to null safety.
2020-10-13 16:48:41 -07:00
Greg Spencer
ef119187d0 Convert some widgets tests to NNBD (#67782)
Migrating some more widget tests to NNBD.
2020-10-13 14:41:24 -07:00
Kate Lovett
085f1daa43 Clean up after large refactor (#67939) 2020-10-13 13:42:02 -07:00
Kate Lovett
46d1b7d8e8 [NNBD] Migrate some Widgets tests (#68034) 2020-10-13 13:07:05 -07:00
Jonah Williams
9e70180f63 [flutter_tools] do not measure progress timeout (#67959)
Remove "This is taking a long time" progress timeout and TimeoutConfiguration.
2020-10-13 13:05:47 -07:00
Jenn Magder
3e0d2741de Detach debugger when VM connection fails on iOS (#68046) 2020-10-13 12:50:50 -07:00
Jenn Magder
4dffc851bc Detect ARM macOS arch with sysctl hw.optional.arm64 (#67970) 2020-10-13 12:05:04 -07:00
Michael Goderbauer
0343555af1 Migrate more tests (#68037)
* Migrate more tests

* fix
2020-10-13 12:01:53 -07:00
Jonah Williams
bdfb07dffd [flutter_test] export fake from flutter_test (#68032)
Fake has been moved from mockito to test to facilitate NNBD, re-export this from flutter_test
2020-10-13 11:38:00 -07:00
Kate Lovett
e48c9b5553 [NNBD] Migrating some Material tests (#67689) 2020-10-13 11:37:03 -07:00
Jonah Williams
d6d06ed9f0 [flutter_tools] delete applicationPackageStore (#68026)
This class is entirely superseded by the application package factory. Only drive and install use it, and removing it from drive will allow use-application-binary support.
2020-10-13 11:33:55 -07:00
Jonah Williams
1c976933f3 [flutter_tools] support Android Studio 4.1 on Windows (#67992)
Android Studio 4.1 moved the location of the .home file on Windows which is used to located the install directory. This functionality is important because it is how we locate and discover the Android SDK functionality, as well as the appropriate JRE.

fixes #67986
2020-10-13 11:33:26 -07:00
Miguel Beltran
1aaa455f1b Fix for "Pass RouteSettings to the internal Route in showCupertinoModalPopup" (#67990) 2020-10-13 11:32:20 -07:00
xubaolin
4982555982 Add more unit test cases for EditableText widget (#66889) 2020-10-13 11:32:03 -07:00
Jonah Williams
37ebe3d82a Revert "prevent pageView scrolling when calling ensureVisible (#67988)" (#68036)
This reverts commit 62cf4dbf10.
2020-10-13 10:52:23 -07:00
Ren You
a57f45e080 Revert "More EditableText docs (#66864)" (#68025)
This reverts commit daa6b2cc29.
2020-10-13 09:08:48 -07:00
xubaolin
62cf4dbf10 prevent pageView scrolling when calling ensureVisible (#67988) 2020-10-12 23:12:02 -07:00
Nobuhiro Tabuki
1e180062aa [flutter_tools] Support IntelliJ 2020.1 and later on Linux and Windows (#58853)
This PR will update IntelliJ IDEA/Community validation logic for 2020.1 and later on Linux and Windows.
2020-10-12 22:03:36 -07:00
Jonah Williams
ac751cc50c [flutter_tools] verify checksum of downloaded artifacts (#67839)
All of the network requests from google cloud storage include an x-goog-hash header which contains an MD5 checksum. If present, use to validate that the downloaded binary is valid. This will rule out corrupt files as the cause of getting started crashers in the flutter_tool.

#38980

This does not fully resolve the above issue, because while we can check if the checksum matches what was expected from cloud storage, this A) may not necessarily be present and B) may not match up to what should be uploaded as part of the engine build process.

But when life gives you lemons you hash those lemons using an outdated hashing algorithm.
2020-10-12 17:44:23 -07:00
Jonah Williams
5dfe7e6d51 [flutter_tools] attempt to stabilize hot restart benchmark the old fashioned way (#67971)
A change which sped up hot restart locally caused many of the devicelab measures to regress. I think this is because we do not measure when the isolate is actually "ready", so starting a reload or restart prematurely can cause time spent doing initialization to be registered as part of the reload operation.

A fix for this would be to have the framework include some sort of "initialization complete" event ... but it is not clear what the correct trigger would be. Perhaps after the first frame is successfully registered?

(9a3a0dc caused the benchmark regression - possibly since we spend less time syncing files now so we start the restart earlier)
2020-10-12 17:00:26 -07:00
Shi-Hao Hong
46238de8c5 [NNBD] Migrate some Material tests to NNBD (#67887)
Migrates the following files to NNBD: 
* input_decorator_test.dart
* list_tile_test.dart
* localizations_test.dart
* material_button_test.dart
* material_state_property_test.dart
* material_test.dart
* mergeable_material_test.dart
2020-10-13 07:57:23 +08:00
Shi-Hao Hong
244f5ab598 Expose date symbols and patterns for en_US in framework (#67900)
* Expose date symbols and patterns for en_US in framework
2020-10-13 07:56:10 +08:00
Jonah Williams
8aee75f645 Revert "Pass RouteSettings to the internal Route in showCupertinoModalPopup (#56024)" (#67969)
This reverts commit da58f5e6fe.
2020-10-12 16:09:20 -07:00
Miguel Beltran
da58f5e6fe Pass RouteSettings to the internal Route in showCupertinoModalPopup (#56024) 2020-10-12 15:53:54 -07:00
Jonah Williams
18bb4d7254 Revert "[flutter_tools] reland: fold process resolution logic into the flutter tool (#67957)" (#67968)
This reverts commit bd8138797e.
2020-10-12 15:53:16 -07:00
Jonah Williams
52f8b89c0e [flutter_tools] dont allow creating package name that is invalid (#67786)
According to https://dart.dev/tools/pub/pubspec#name , uppercase is not permitted for package names.
2020-10-12 15:38:23 -07:00
Jonah Williams
bd8138797e [flutter_tools] reland: fold process resolution logic into the flutter tool (#67957)
Reland of #67669

The flutter tool has a number of crashes on stable where an ArgumentError is thrown due to the process manager not being able to resolve an executable.

So that we can adjust/modify this logic, fold it into flutter and add some additional logging.
caches the resolved executable per target directory, to avoid repeated look ups.
Instead of throwing an argument error, attempts to run the executable as given if an exact path can't be found
Accept files or symlinks for the executable path.
user where/which to resolve path instead of package:process logic.
2020-10-12 15:37:02 -07:00
Jonah Williams
c606f044d7 [gestures] make stylus pointer types use touch pan/drag slop (#67885) 2020-10-12 15:20:50 -07:00
Dan Field
b6c56fdeaf Add test for TabBarView (#67799) 2020-10-12 14:25:17 -07:00
Hans Muller
6219b30850 Replace obsolete FlatButton reference in flutter_driver extension_test.dart (#67952) 2020-10-12 14:22:13 -07:00
Kate Lovett
9464661a98 Fix sample code (#67940) 2020-10-12 14:22:03 -07:00
Anurag Roy
7f1540f323 Add contentPadding property for RadioListTile (#67438)
Exposes contentPadding property for RadioListTile from its appropriate ListTile.
2020-10-12 14:22:01 -07:00
Michael Goderbauer
053ebf2c08 Make CupertinoTabScaffold restorable (#67770) 2020-10-12 14:17:02 -07:00
LongCatIsLooong
daa6b2cc29 More EditableText docs (#66864) 2020-10-12 14:12:06 -07:00
xubaolin
dd41f41f34 CupertinoTextField should not accept requestFocus when disabled (#65235) 2020-10-12 14:07:05 -07:00
Jonah Williams
408cd71d82 [flutter_tools] check asset files while the tool waits for the frontend_server compile (#67826)
On every hot reload, the flutter tool must file stat each asset in the bundle. With a large number of assets or a slow file system, this can take 20 - 30 ms. Do this operation while the flutter tool is waiting for a response from the frontend_server.

No tests updated since this is only a timing update. Any difference in behavior will be shown on benchmarks
2020-10-12 14:06:40 -07:00
Jonah Williams
354e2a57b1 Revert "[flutter_tools] fold executable resolution into flutter (#67669)" (#67954)
This reverts commit 10c78c264a.
2020-10-12 13:15:39 -07:00
Jonah Williams
10c78c264a [flutter_tools] fold executable resolution into flutter (#67669)
The flutter tool has a number of crashes on stable where an ArgumentError is thrown due to the process manager not being able to resolve an executable. Fold the resolution logic into the tool and use where/which instead of the package:process specific logic.
2020-10-12 12:51:37 -07:00
Jonah Williams
ac614de7ac [flutter_tools] validate that SkSL bundle path exists (#67883)
Fixes #61772

tool exit if there is no file at the path provided when building/running with sksl
2020-10-12 12:49:51 -07:00
Jonah Williams
fd11d149f7 [flutter_tools] teach flutter drive to uninstall if install fails (#67936)
Work towards #39925

Currently flutter run will uninstall and reinstall if the initial install fails and the APK was previously installed. Allow drive to share this same logic by moving it into installApp and out of startApp.

This should reduce the occurrence of the error in the devicelab.
2020-10-12 12:49:36 -07:00
Sergey Solodukhin
3e069a433b fix issue #55400 PopupMenuButton positions menu incorrectly with nest… (#65832) 2020-10-12 11:52:04 -07:00
Darren Austin
7ce0dce2e5 Migrate even more Material framework tests to null safety. (#67849) 2020-10-12 11:30:26 -07:00
Michael Goderbauer
18795b471e Migrate some widget tests to NNBD (#67776) 2020-10-12 11:18:52 -07:00
Jonah Williams
b4e4e8d965 [flutter_tools] do not crash validator if intellij JAR file is missing (#67931)
This failure has been happening for a while but was covered by the overly broad catch. Removing that revealed that newer intellij versions have a different plugins file. The tool still can't find the file, but it won't crash now

Fixes #67918
2020-10-12 10:34:05 -07:00