Commit Graph

18842 Commits

Author SHA1 Message Date
Jonah Williams
7aa8c2ab99 [null-safety] remove mockito from scrollbar test (#64493)
More work towards #62886
2020-08-31 13:27:12 -07:00
Jonah Williams
15d18b9e42 [flutter_tools] remove unused zip verification (#64970)
This is no longer used, in favor of just attempting to unzip and handling the exception.
2020-08-31 13:26:38 -07:00
Jonah Williams
09a9671ed3 [semantics] avoid sync* and excessive list copies (#64879)
Previous benchmarks have established the performance of sync*. Additionally, why allocate a list when you don't need to? Since these APIs are private, they can be re-arranged a bit to avoid creating as many lists. Will probably not have a large effect on benchmarks
2020-08-31 12:15:26 -07:00
Jonah Williams
68b39da346 [flutter_tools] tool exit after repeated network failure (#64878)
Exit the tool after a repeated network error to download. previously we were returning null and continuing on, leading to a ProcessException when we unzipped a missing file.
2020-08-31 12:15:05 -07:00
Ben Konyi
c8f234d365 Reland "Re-enable the Dart Development Service (DDS) (#64671)" (#64847)
This reverts commit 2436de1391.
2020-08-31 12:14:32 -07:00
Dan Field
3aa0243ab7 Remove assert about release mode (#64813)
b/150295238 has been resolved for a while now.
2020-08-31 10:03:12 -07:00
ekibun
719268b43a add different workload & add -products * to vswhere calls to check both Visual Studio IDE and standalone Build Tools. (#64251) 2020-08-31 09:33:04 -07:00
James Clarke
2d02c70ad5 [Windows] Fix unnecessary surface creation/destruction in startup path (#63301) 2020-08-31 09:28:05 -07:00
Chris Bracken
c0ea00ed3f Prefer moreOrLessEquals over closeTo (#64915)
Flutter's `moreOrLessEquals` has a few advantages over `closeTo` from
the `matcher` package:

   * It emits the epsilon value in the test result on failure.
   * It uses a named parameter for epsilon, which improves readability
     at the call site.
   * It has a reasonable default for epsilon in cases where something
     more specific isn't required.

Using it also has the nice property that it aids in its own discovery
when when people go looking for such functionality in new tests.

This change also includes a couple unrelated whitespace formatting cleanups.
2020-08-30 22:20:16 -07:00
Shi-Hao Hong
fd22fc3e35 [gen_l10n] Synthetic package generation by default (#62395)
* synthetic packages by default in gen_l10n tool

* Refactor default path for synthetic package

* Remove unused import

* Code cleanup

* Further improvements to help text

* Refactor synthetic package path

* Remove newlines

* Test cleanup

* clean up logic in inputs and outputs list function

* Update l10n.yaml usage

* only add option if value is non-null

* Update stocks app as proof of concept for synthetic package usage

* Address nits

* print pubspec contents

* add print statements

* Do not allow null value for useSyntheticPackage

* +

* +

* +

* +

* Cleanup

* Add test

* Fix text

* Dont parse pubspec directly

* Test using context

* WIP: generate synthetic packages on pub get -- needs tests

* Allow null value

* Update null handling

* Refactor to properly handle null case

* Fix yamlMap condition

* Fix yaml node for real

* WIP: struggling to write tests

* WIP - take absolute path as an option

* Add tests

* Use environment project directory for synthetic package generation pathway

* Fix typo

* Improve help text

* Update defaults

* Remove unauthorized path import

* Fix pathing issues at synthetic package generation

* Fix typo in test

* Use path.join so projectDir matches up based on OS

* Fix Windows pathing in test

* Remove unnecessary replaceApp code for projectDir.path

* Use globals.fs.currentDirectory.path in resident_runner_test.dart

* Fix merge conflict

* Add test to ensure that synthetic package is generated on pub get

* Fix resident_runner_test.dart tests

* Fix tests

* Use package:file instead of dart:io

* WIP - exploration

* Remove synthetic package use from stocks example

* Update integration test to not use synthetic packages

* Remove trailing whitespace

* flutter pub get runs synth package generation

* Remove more print statements

* Add license header

* WIP - minimally working pub.get

* Use own MockBuildSystem

* Modify test and implementation to be a little cleaner

* Fix flutter pub get invocation

* Use synthetic packages in stocks app

* Revert "Use synthetic packages in stocks app"

This reverts commit 45bf24903c3d4a2a5fd5481d7d6bc36c4a348703.

* Add environment and buildSystem params to flutter test

* Address code review feedback

* +

* Isolate codegen into its own API

* Fix imports

* Slight refactor

* Add one more test for no l10n.yaml file

* Remove unneeded mock class and import in pub_get_test.dart

* More code review feedback

* Remove unnecessary imports

* Remove `return await`s that I missed

* use arrow functions instead
2020-08-31 13:19:41 +08:00
Chris Bracken
c935a44869 Prefer moreOrLessEquals to closeTo (#64914)
moreOrLessEquals is the preferred mechanism for checking that a value is
within some error bound epsilon, with default value for epsilon of
precisionErrorTolerance.

This patch replaces instances of closeTo using precisionErrorTolerance.
2020-08-30 22:19:16 -07:00
Chris Bracken
8fa5c55e54 Match lerped values using moreOrLessEquals (#64908)
Several of our tests make use of numbers without an exact floating point
representation (frequently 0.x where x!=5) which, when scaled, also
scale the error. The end result is that some of these tests currently
implicitly rely on an implementation detail of floating point math and
are sensitive to differences in the ~15th decimal place.

This patch reduces the sensitivity of some of these tests, checking
values using `moreOrLessEquals` from the flutter_test package
rather than requiring en exact match.
2020-08-30 19:05:20 -07:00
Shi-Hao Hong
34541c3073 Revert "A benchmark test case for measuring scroll smoothness (#61998)" (#64883)
This reverts commit 12b7355da1.
2020-08-30 18:42:10 +08:00
Ming Lyu (CareF)
12b7355da1 A benchmark test case for measuring scroll smoothness (#61998) 2020-08-29 04:28:03 -07:00
LongCatIsLooong
fe55dc2b13 Reland "Prevent viewport.showOnScreen from scrolling the viewport if the specified Rect is already visible. (#56413)" reverted in #64091 (#64513) 2020-08-28 22:13:04 -07:00
Jonah Williams
2436de1391 Revert "Reland "Re-enable the Dart Development Service (DDS) (#64671)" (#64802)" (#64845)
This reverts commit eef0050d08.
2020-08-28 18:02:15 -07:00
Ben Konyi
eef0050d08 Reland "Re-enable the Dart Development Service (DDS) (#64671)" (#64802)
* Reland "Re-enable the Dart Development Service (DDS) (#64671)"

This reverts commit 2ae25cc2d7.

* Fix MDNS building Observatory URI with port 0 instead of forwarding the device port

* Added MDNS test
2020-08-28 16:18:35 -07:00
callumsteele4
e37b427a2a Fix Android autofill username hint docs (#64776) 2020-08-28 16:18:06 -07:00
gaowanqiu
619eccd2e3 Fix negative usableCrossAxisExtent in release mode (#64441) 2020-08-28 16:13:05 -07:00
xubaolin
c26c2363a0 Slider paint incorrectly when the track shape is rectangular (#64534) 2020-08-28 16:08:10 -07:00
Broccolism
f1a2357463 feat: Text constructor, overflow, and softWrap docs (#64175) 2020-08-28 16:08:06 -07:00
Broccolism
f690577f88 Update: Documentation for ListView constructor should warn about changing widget list (#63503) 2020-08-28 16:03:04 -07:00
Zachary Anderson
dff7ea1c4f Revert "Avoid thinning frameworks in iOS extensions (#64674)" (#64829)
This reverts commit ce9cde8c4e.
2020-08-28 15:23:22 -07:00
Paul Berry
60494b4c1e Remove unnecessary downcasts on numeric operations. (#64760) 2020-08-28 10:58:04 -07:00
Jenn Magder
ce9cde8c4e Avoid thinning frameworks in iOS extensions (#64674) 2020-08-28 10:43:04 -07:00
xubaolin
a3fe33af65 The OverscrollIndicator should not overflow the scrollable view's edge (#64239) 2020-08-28 10:38:05 -07:00
Justin McCandless
8f370dff65 SelectableText long press on iOS (#63994) 2020-08-28 10:33:05 -07:00
Ben Konyi
2ae25cc2d7 Revert "Re-enable the Dart Development Service (DDS) (#64671)" (#64797)
This reverts commit d7d12412e5.
2020-08-28 09:00:53 -07:00
Kate Lovett
cad4d1333e Fix Gold json for digest paramset (#64757) 2020-08-27 17:48:05 -07:00
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