Commit graph

14163 commits

Author SHA1 Message Date
Jonah Williams 5a4fa220e2
[flutter_tools] handle OsError thrown during azure detector (#64749) 2020-08-27 17:13:04 -07:00
Matt Carroll 57b6952471
Added support for lerpDuration() (#64668) 2020-08-27 16:48:05 -07:00
chunhtai fbc15384bb
Fixes router to not report route information when it is already up to… (#64596) 2020-08-27 16:43:05 -07:00
Ian Hickson 8a6a76a334
migrate rendering to nullsafety (#64621) 2020-08-27 16:38:10 -07:00
Ming Lyu (CareF) dcdee4bb0d
Add resampler unit test with widget (#64424) 2020-08-27 16:38:05 -07:00
Ben Konyi d7d12412e5
Re-enable the Dart Development Service (DDS) (#64671)
This change re-enables DDS and outputs the DDS URI in place of the VM
service URI on the console. If --disable-dds is not provided,
--host-vmservice-port will be used to determine the port for DDS rather
than the host port for the VM service, which will instead be randomly
chosen.
2020-08-27 16:35:00 -07:00
Jonah Williams d3515f5fb6
[flutter_tools] add analytics to code size, add more testing (#64578)
* [flutter_tools] add analytics to code size, add more testing

* add gradle case

* Update build_macos_test.dart

* move analytics to code size tooling

* Update analyze_size.dart

* fix analysis
2020-08-27 09:45:10 -07:00
Jonah Williams 401d401c59
[flutter_tools] reland: avoid creating Android Devices if AndroidSDK cannot be found (#64665)
Avoid creating AndroidDevice discovery if the SDK cannot be located. Previously the tool would use which/where adb, however this required us to handle the AndroidSdk class being potentially null - which required an additional layer of indirection around all access. Sometimes these were forgotten leading to NPEs.

In general, not much can be done with an Android Device if the actual SDK is not installed.

Reland with fixed code + tests for null SDK + adb in AndroidDeviceDiscovery
2020-08-27 09:44:31 -07:00
Mouad Debbar e7a35a67ce
[web] Enable word boundary tests (#64570) 2020-08-26 21:23:03 -07:00
younghwan 5559b6d0ab
Update Visibility docs on maintainSize (#64148) 2020-08-26 20:48:04 -07:00
Haeseok Lee 86814cabc4
Fixed the description of the focusColor property included in input_decorator (#63981) 2020-08-26 20:43:05 -07:00
Alexander Brusher 39e7eeaed1
Disables tests failing due to new semantics flag. (#63595) 2020-08-26 20:38:05 -07:00
Remi Rousselet 68c31d3d09
Use a LinkedList to improve the performance of ChangeNotifier (#62330)
* Use a LinkedList in ChangeNotifier implementation to take O(N^2) notification time to O(N)
2020-08-26 11:34:03 -07:00
Jonah Williams 562986108e
Revert "Reland: Increase threshold for usage of compute for utf8 decoding on large strings to 50 KB (#64498)" (#64652)
This reverts commit 54e2a0e694.
2020-08-26 10:51:09 -07:00
Kenzie Schmoll 8c8b91069d
Fix typo in flutter_tools --analyze-size output. (#64592) 2020-08-26 06:03:05 -07:00
Ian Hickson 4fcc2617d5
Migrate physics tests to NNBD (#64584) 2020-08-26 00:46:03 -07:00
Dan Field d0596582fe
Fix tests that use bogus objects, update TestImageInfo interface (#64599) 2020-08-25 23:26:06 -07:00
Jenn Magder f5187535d5
Revert "[flutter_tools] avoid creating Android Devices if AndroidSDK cannot be found (#64524)" (#64602)
This reverts commit 47596c6203.
2020-08-25 17:55:58 -07:00
Greg Spencer c8bbb522c5
Protect against null context in release mode (#64474) 2020-08-25 13:01:03 -07:00
LongCatIsLooong 6536f65048
Revert "Warns when single line text fields overflow (#63639)" (#64573)
This reverts commit 0ab5ecc86b.
2020-08-25 11:11:15 -07:00
Jonah Williams 47596c6203
[flutter_tools] avoid creating Android Devices if AndroidSDK cannot be found (#64524)
Avoid creating AndroidDevice discovery if the SDK cannot be located. Previously the tool would use which/where adb, however this required us to handle the AndroidSdk class being potentially null - which required an additional layer of indirection around all access. Sometimes these were forgotten leading to NPEs.

In general, not much can be done with an Android Device if the actual SDK is not installed.
2020-08-25 11:08:27 -07:00
Jonah Williams f0a3cbace3
[flutter_tools] handle FileSystemException thrown when attempting to decode stamp file (#64559)
Fixes #64246

If decoding the string contents of a stamp file fails, treat it as if the stamp file is missing. This is always safe to do, since at worst it downloads more artifacts. The files could end up corrupted if they were edited by another program, for example
2020-08-25 10:58:21 -07:00
Jonah Williams 23032d772d
[flutter_tools] refactor artifact downloading to retry zip exceptions. (#64512) 2020-08-25 10:06:04 -07:00
chunhtai 39d7a019c1
Reland "fix wrap intrinsic height calculation (#63420)" (#64276) 2020-08-25 10:01:07 -07:00
Jonah Williams 059de1537e
[flutter_tools] support code size tooling on iOS, linux, windows, macOS, and Android on Windows (#63610)
Adds support for size analysis on iOS, macOS, linux, and Windows - using an uncompressed directory based approach. The output format is not currently specified.

Adds support for size analysis on android on windows, switching to package:archive

Updates the console format to display as a tree, allowing longer paths. Increases the number of dart libraries shown (to avoid only ever printing the flutter/dart:ui libraries, which dominate the size)
2020-08-25 10:00:24 -07:00
stuartmorgan dd0c881275
[windows] Update plugin template (#64521)
The pointer-argument-based version of Success() is deprecated; this
updates the template to use the new reference-based version (which
allows for inline construction of the response value).

Part of https://github.com/flutter/flutter/issues/63975
2020-08-25 08:30:05 -07:00
Mouad Debbar 707f995de3
[web] Fix and enable editable_text_test.dart (#64516) 2020-08-25 04:51:03 -07:00
LongCatIsLooong 0ab5ecc86b
Warns when single line text fields overflow (#63639) 2020-08-24 18:16:05 -07:00
Jenn Magder e960d773ee
Change iOS plugin simulator archs from allow list to deny list (#64504) 2020-08-24 17:48:05 -07:00
Jonah Williams 54e2a0e694
Reland: Increase threshold for usage of compute for utf8 decoding on large strings to 50 KB (#64498) 2020-08-24 17:01:04 -07:00
xubaolin f44f43358f
Fix bug when tapping ListTitle with CheckboxListTile tristate enable (#63925)
* fix bug when tap ListTitle when tristate enable #63846

* fix bug when tap ListTitle when tristate enable #63846

* code style

* improve the unit test case

* bow to convention
2020-08-24 15:31:33 -07:00
Jonah Williams 41e553bbfc
[flutter_tools] migrate flutter_goldens, flutter_goldens client to null-safety (#64201) 2020-08-24 15:31:05 -07:00
Jonah Williams 302f9f751b
[flutter_tools] remove globals from utils (#63831) 2020-08-24 15:26:03 -07:00
Jonah Williams ed4a8e8d05
Revert "Pass --verbose-logging to flutter_tester (#64440)" (#64517)
This reverts commit 8b52e6a8b2.
2020-08-24 14:50:38 -07:00
Hans Muller 60bf8cd211
Update origin material button API doc with obsolete API warnings (#64472) 2020-08-24 13:37:47 -07:00
Hans Muller 3d5abd4bd3
Removed deprecated ContainedButton and ContainedButtonTheme classes (#64483) 2020-08-24 13:37:33 -07:00
Todd Volkert 52b5b3ea43
Add GestureDetector.onDoubleTapDown() (#64431)
* Add GestureDetector.onDoubleTapDown()

* Review comments
2020-08-24 13:34:19 -07:00
Todd Volkert 8b52e6a8b2
Pass --verbose-logging to flutter_tester (#64440) 2020-08-24 13:33:56 -07:00
LongCatIsLooong 7d6ffc7cc9
Add rect logic to getOffsetToReveal when onlySlivers is true (#64295) 2020-08-24 12:36:04 -07:00
Apurv Jha e30e795a3c
fix: typo fixed from ENTER to SPACE (#64235) 2020-08-24 12:21:05 -07:00
Alex Li 2c3652b8fb
[EditableText] Fix TextField crashed with composing and maxLength set (#63754) 2020-08-24 12:16:05 -07:00
Jonah Williams acd82534ee
[null-safety] remove mockito from route test (#64363)
Removes more mockito to unblock migration of all tests to sound null safety. #62886
2020-08-24 12:13:30 -07:00
David Reveman 02612bfe32
Pointer event resampler (#41118) (#60558) 2020-08-24 12:11:05 -07:00
Jonah Williams 35c95a2fce
Revert "Increase threshold for usage of compute for utf8 decoding on large strings to 50 KB (#64350)" (#64372)
This reverts commit f07f4120e9.
2020-08-21 18:56:03 -07:00
LongCatIsLooong 53e25a61c9
Reland "Prevent material switch from recreating its render object when it becomes disabled (#61398)", reverted in #64062 (#64354) 2020-08-21 14:52:08 -07:00
Jonah Williams f07f4120e9
Increase threshold for usage of compute for utf8 decoding on large strings to 50 KB (#64350)
On a local benchmark, removing compute is faster than compute in both debug and release mode on a Pixel 4. On a MotoG4, a much larger text sample (800 Kb) takes 50 ms, so we cannot simple remove the limit. Increase to 50 Kb which should take at most a ms or two on an older device, and only microseconds on newerones.
2020-08-21 14:33:56 -07:00
Jonah Williams d4e2c6bc29
[null-safety] remove mockito from refresh control test (#64280) 2020-08-21 13:31:03 -07:00
Ian Hickson 93395b4890
Add null safety migration annotations. (#64227) 2020-08-21 11:21:04 -07:00
xubaolin 2f2130a885
Improve docs for [PageStorage] (#63634) 2020-08-21 11:16:04 -07:00
Jonah Williams ee12d7c3fc
[flutter_tools] check for permission issues when copying file (#63540) 2020-08-21 11:11:04 -07:00