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
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
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
Todd Volkert
8b52e6a8b2
Pass --verbose-logging to flutter_tester ( #64440 )
2020-08-24 13:33:56 -07:00
Jonah Williams
ee12d7c3fc
[flutter_tools] check for permission issues when copying file ( #63540 )
2020-08-21 11:11:04 -07:00
Ian Hickson
c3a47b3449
Remove more timeouts ( #63433 )
2020-08-20 14:56:05 -07:00
xster
a2e5e074ab
Move Android doctor SDK check to 29 and Cirrus images to 30 ( #63517 )
2020-08-20 11:06:32 -07:00
xster
e1ae4dfcae
Move v1 embedding migration warning from plugin consumers to all apps ( #64181 )
2020-08-19 22:32:08 -07:00
Jonah Williams
04f7c9d52e
[flutter_tools] update dwds, roll to null-safe file and process ( #64195 )
...
Update to latest dwds, file-nullsafety, and process-nullsafety for #62886
2020-08-19 16:59:52 -07:00
Jonah Williams
829ef147d1
[null-safety] roll to null-safe platform ( #64160 )
2020-08-19 15:47:08 -07:00
Jonah Williams
69fd5c50a2
[flutter_tools] null assertions off by default for web ( #64186 )
...
Like Android/iOS, only enable --null-assertions if asked. Previously this was enabled by default for web, but in general this has proved to be too breaking to enable by default.
#61042
2020-08-19 14:52:47 -07:00
Jonah Williams
4954a46ff0
[flutter_tools] shrink API surface of Android SDK ( #63867 )
...
Attempt to simplify the Android SDK interface ahead of refactoring it. The locateAndroidSdk static method is called at startup to locate the android SDK, returning null if it cannot be found. These helper methods attempted to first look up the AndroidSDK if it was already null - which could only cover the case where someone installed the Android SDK while flutter was running (possibly through an IDE)
2020-08-19 14:44:56 -07:00
Zachary Anderson
6f78131474
WIP: [flutter_tool] Fix amberctl host address ( #64020 )
2020-08-19 14:41:05 -07:00
Jonah Williams
a42c56791b
[flutter_tools] shrink fingerprinter API to currently used subset ( #63840 )
2020-08-18 17:01:06 -07:00
Jonah Williams
39c735f408
[flutter_tools] correctly forward error only stdout in non-verbose modes ( #63815 )
2020-08-18 16:56:05 -07:00
Jonah Williams
262c48d2ea
[flutter_tools] add cache busting query param ( #63818 )
2020-08-17 22:41:05 -07:00
Albert Viilik
654022aecb
Make deprecation notice link to website downloads ( #63829 )
2020-08-17 17:01:02 -07:00
Jonah Williams
042fa8cf66
[flutter_tools] trim trailing newline from vm service logging events ( #63976 )
2020-08-17 12:26:03 -07:00
stuartmorgan
70bd819c52
Separate blkid in the Linux library checks ( #63810 )
2020-08-17 10:51:03 -07:00
Helin Shiah
3d3b5349a7
Return host and port from devtools launcher ( #63795 )
2020-08-17 10:46:05 -07:00
stuartmorgan
6f0cfc9524
Surface Windows build errors in non-verbose mode ( #63707 )
2020-08-13 19:46:02 -07:00
Jonah Williams
06c3de3285
[flutter_tools] remove most globals from build system and tests ( #63697 )
...
Remove globals and testbed to simplify test cases, using the existing environment configuration. This is some pre-factoring work to make landing #63610 easier
2020-08-13 15:00:27 -07:00
Shi-Hao Hong
0a7c6243fa
[gen_l10n] Absolute project path parameter ( #63368 )
2020-08-13 05:11:05 -07:00
Jonah Williams
9225d8d5b7
[flutter_tools] move to fake_async, skip failing tests ( #63536 )
2020-08-11 19:36:05 -07:00
Jonah Williams
16df32b1eb
[flutter_tools] handle invalid yaml in plugin dependency ( #63526 )
2020-08-11 19:31:03 -07:00
Christopher Fujino
8dcb4c338a
Fix version parsing to use git tag --points-at ( #63505 )
2020-08-11 17:29:35 -07:00
Jonah Williams
49fac9a885
[flutter_tools] add more error context to tree shaker failure ( #63446 )
2020-08-11 11:44:03 -07:00
Jonah Williams
c86d090e6f
[flutter_tools] add --null-assertions flag for debugging with null safety ( #63416 )
2020-08-11 11:36:03 -07:00
James D. Lin
ec58182b3b
[flutter tools] Make SizeAnalyzer support .apk files that don't use libapp.so ( #63250 )
2020-08-10 21:06:05 -07:00
Michael Klimushyn
cb69bbb4d5
Remove unused l
and --isolate-filter
tools ( #63336 )
2020-08-10 10:51:04 -07:00
Ming Lyu (CareF)
99ea866247
update packages ( #63017 )
2020-08-06 16:21:05 -07:00
Nolan Scobie
43c1b34cf5
Add punctuation for unterminated sentences in doc comments ( #62755 )
...
* Add punctuation for unterminated sentences in doc comments
* Addressing review nit
2020-08-06 19:18:52 -04:00
Jenn Magder
0aafdf9aa9
Change minimum iOS version from 8.0 to 9.0 ( #62902 )
2020-08-06 13:46:15 -07:00
Chris Yang
c9cd825fca
[flutter_tools] flutter version reports picks up release versions ( #63019 )
2020-08-05 15:20:27 -07:00
Jonah Williams
762d9f7f4e
[flutter_tools] warn when main library is relocated ( #62930 )
2020-08-05 15:11:15 -07:00
Marcus Tomlinson
145df39953
Explicitly find and link blkid using pkg-config ( #62979 )
2020-08-05 14:56:19 -07:00
Ian Hickson
2939c209aa
Update error message for bad UTF-8 decoding ( #62888 )
2020-08-05 14:56:14 -07:00
Jonah Williams
a0745e23bf
[flutter_tools] add --analyze-size flag ( #62697 )
2020-08-03 14:21:05 -07:00
Jacob MacDonald
67e9b2945e
update to use more null safe packages ( #62525 )
...
Updates all the dependencies used in the most basic test and flutter_test isolates.
2020-08-03 12:29:30 -07:00
Mehmet Fidanboylu
5a6dfa35ca
Remove mistakenly added DartDevelopmentService dependency ( #62792 )
2020-08-03 10:33:07 -07:00
Jonah Williams
c24772e8fb
[versions] update to the latest sdk versions ( #62687 )
2020-08-03 10:31:06 -07:00
Helin Shiah
5ce7282a36
Return devtools serve response instead of printing ( #62702 )
2020-08-03 10:26:12 -07:00
Helin Shiah
7cbec567de
Add daemon handler to start devtools ( #62608 )
2020-07-31 11:06:05 -07:00
Peter Lee
8b39af2ea7
Implement size analyzer to unzip & parse APK and AOT size snapshot to generate analysis json ( #62495 )
...
* Implement size analyzer to unzip & parse APK and AOT size snapshot to generate analysis json
2020-07-31 13:25:29 -04:00
Chris Yang
48fab86c6e
[flutter_tools] update pubspec .yaml message should not be displayed when creating a new plugin ( #62599 )
...
* update pubspec message should not be displayed when creating a new plugin
* formatting
* revikew
* review
* cleanup
2020-07-30 13:49:15 -07:00
Jonah Williams
fbd29b8880
[flutter_tools] fix formatting regression in analyze and add full coverage ( #62593 )
2020-07-30 13:41:02 -07:00
Angjie Li
12397fba6d
Allow Flutter Web Driver testing in debug mode. ( #62577 )
2020-07-30 13:40:04 -07:00
Jonah Williams
234d8fac4d
[flutter_tools] switch cache mode to reload ( #62076 )
2020-07-29 21:26:03 -07:00
Robert Ancell
392e25c8f2
Set the application-id in the Linux shell ( #60053 )
2020-07-30 08:46:29 +12:00
Ben Konyi
d6a25ae699
Temporarily disable Dart Development Service in flutter_tools ( #62508 )
...
Devtools doesn't currently support connections to DDS. Disable DDS
temporarily while a solution is worked on. See https://github.com/flutter/flutter/issues/62507
2020-07-29 12:32:10 -07:00
Yuqian Li
22bf19cece
Add purge-persistent-cache option to run and drive ( #62221 )
...
Fixes https://github.com/flutter/flutter/issues/39526
Needs https://github.com/flutter/engine/pull/20013 to land and roll first.
2020-07-29 12:24:39 -07:00
Ben Konyi
3a5a3eaf68
Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #62147 )
...
This reverts commit adc9dde3ba
.
- Fixed issue where `FallbackDiscovery` would hold on to a `VmService` when launching on iOS devices, causing DDS to fail to start
- Fixed `flutter drive` case where DDS is already running in another flutter_tools instance
2020-07-29 10:05:40 -07:00
Jonah Williams
f707f6f6ea
[flutter_tools] add flutterRoot field to JSON machine output ( #62053 )
2020-07-29 08:16:04 -07:00
Lau Ching Jun
a317c2c06a
Wrap launching devtools in DevtoolsLauncher ( #62364 )
2020-07-28 19:46:05 -07:00
Chris Yang
004f90f8fd
remove iOS folder ( #61561 )
2020-07-28 10:33:52 -07:00
Jenn Magder
5abe2d3364
Allow hyphens in iOS UDIDs ( #62225 )
2020-07-28 10:29:34 -07:00
includecmath
3215a0130b
[flutter_tools] Unified analyze error log format ( #61146 )
...
* Unified analyze error log format
* Fix review issues
2020-07-28 10:21:57 -07:00
Jonah Williams
59e0a2ec28
[flutter_tools] update device discovery constructors ( #61640 )
...
google3 callsites are updated, remove global lookup from constructor parameters.
2020-07-28 10:20:01 -07:00
Jonah Williams
d834673033
roll dart/engine to f27729e97b5a00c3a8d8d49edc7b998fa755b97a ( #62368 )
2020-07-27 17:51:31 -07:00
Zachary Anderson
ab3a4b0e69
Revert "bump nullsafety deps ( #61978 )" ( #62234 )
...
This reverts commit c46aa360b0
.
2020-07-24 16:31:42 -07:00
Alexandre Ardhuin
c46aa360b0
bump nullsafety deps ( #61978 )
2020-07-24 16:17:08 -07:00
雷宇辰
7779a14794
[flutter_tools] Make flutter git upstream configurable ( #61513 )
2020-07-24 16:16:31 -07:00
Jenn Magder
f9499f44f7
Detect exact device ID matches quickly ( #62070 )
2020-07-24 16:15:44 -07:00
Will Larche
7782845edd
[Material] Updated icons and fonts ( #61778 )
2020-07-24 15:41:13 -07:00
Jonah Williams
c6dce2318b
[flutter_tools] remove breakpoints from paused isolate on hot restart ( #62069 )
...
The embedder requires that the isolate is unpaused, because the runInView method requires interaction with dart engine APIs that are not thread-safe. These APIs must be run on the same thread that would be blocked by the pause. Simply unpausing is not sufficient, because this does not prevent the isolate from immediately hitting a breakpoint, for example if the breakpoint was placed in a loop or in a frequently called method. Instead, all breakpoints are first disabled and then the isolate resumed.
2020-07-24 15:34:55 -07:00
Zachary Anderson
523afbe58b
Ensure analytics are sent before disabling ( #62094 )
2020-07-24 15:31:18 -07:00
Zachary Anderson
5e0ba2290f
Pass --disable-dart-dev in more places ( #62217 )
2020-07-24 13:37:08 -07:00
Jonah Williams
3a976feb58
[flutter_tools] clean plugin dependencies file ( #62061 )
...
Clean even more, in case the plugin dependency update logic is wrong-o.
2020-07-22 18:39:33 -07:00
Pragya
d95f79f95f
Updated instructions of 'flutter help attach' ( #61569 )
2020-07-22 18:31:12 -07:00
huangchaoyang
9da74f66ca
Show correct errors when plugins yaml forgot the 'flutter.plugins.pla… ( #61338 )
2020-07-22 18:24:03 -07:00
Jonah Williams
9f040865c9
[flutter_tools] macOS cleanups, attach to log reader in release mode ( #61913 )
2020-07-22 18:23:20 -07:00
Jenn Magder
fe670c04cc
Only try to get build settings if the Xcode project exists ( #61979 )
2020-07-22 18:22:38 -07:00
Ben Konyi
adc9dde3ba
Revert "Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #61975 )" ( #61993 )
...
This reverts commit f7a1c87ffd
.
2020-07-21 16:17:23 -07:00
Ben Konyi
f7a1c87ffd
Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #61975 )
...
This reverts commit 4867f5931f
.
2020-07-21 15:44:38 -07:00
includecmath
aa9119e53b
[flutter_tools] Concise dart2js commands outputKernel & outputJavaScript ( #61881 )
2020-07-21 02:31:03 -07:00
Jonah Williams
8be1c9ef25
[flutter_tools] turn off fuchsia support by default ( #61634 )
2020-07-21 02:26:04 -07:00
Otokaze
a821bdbfd0
Add more tips for androidLicensesUnknown ( #61312 )
2020-07-21 02:21:03 -07:00
Ben Konyi
4867f5931f
Revert "Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #61882 )" ( #61909 )
...
This reverts commit 895b7ef6fa
.
2020-07-20 16:41:01 -07:00
Ben Konyi
895b7ef6fa
Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #61882 )
...
This reverts commit 38fe887342
.
2020-07-20 16:01:58 -07:00
Jonah Williams
07caa0fbfe
[flutter_tools] Add plumbing for widget cache ( #61766 )
...
To support #61407 , the tool needs to check if a single widget reload is feasible, and then conditionally perform a fast reassemble.
To accomplish this, the FlutterDevice class will have a WidgetCache injected. This will eventually contain the logic for parsing the invalidated dart script. Concurrent with the devFS update, the widget cache will be updated/checked if a single widget reload is feasible. If so, an expression evaluation with the target type is performed and the success is communicated through the devFS result. An integration test which demonstrates that this works is already present in https://github.com/flutter/flutter/blob/master/packages/flutter_tools/test/integration.shard/hot_reload_test.dart#L86
Finally, when actually performing the reassemble the tool simply checks if this flag has been set and calls the alternative reassemble method.
Cleanups:
Remove modules, as this is unused now.
2020-07-20 14:03:44 -07:00
Helin Shiah
5b9ce492f3
Skip printing rendered error text in machine mode ( #61684 )
2020-07-20 09:41:03 -07:00
Jenn Magder
c4bfa4c7ab
Inject iproxy into context ( #61762 )
2020-07-20 07:46:05 -07:00
Jonah Williams
78a975444a
[flutter_tools] revert dart format changes ( #61760 )
2020-07-20 07:41:05 -07:00
Jenn Magder
55176c4d6f
Show device diagnostic messages in doctor ( #61585 )
2020-07-17 09:41:03 -07:00
Konstantin Scheglov
741e9675e7
Remote returns for function expression inferred return type void. ( #61582 )
2020-07-17 09:36:03 -07:00
Ben Konyi
38fe887342
Revert "Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #61633 )" ( #61641 )
...
This reverts commit 594c3541aa
.
2020-07-16 11:43:54 -07:00
Ben Konyi
594c3541aa
Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #61633 )
...
This reverts commit a1a5a8f635
.
2020-07-16 11:38:17 -07:00
Christopher Fujino
f796e047fd
Verbose process exceptions ( #61552 )
2020-07-16 11:31:03 -07:00
Jonah Williams
859fce9010
[flutter_tools] add feature for iOS, android, and fuchsia ( #61481 )
...
Add feature flags for android, ios, and fuchsia (on by default). After updating the g3 rollers, the fuchsia feature will be turned off by default. Creates a simpler base type of feature flags for g3 to extend.
Updates android, ios, fuchsia workflows to use feature flags check.
Removes concept of stable artifacts and checks on flutter version.
Fixes #58999
#52859
#12768
2020-07-16 09:51:59 -07:00
Jonah Williams
045f3a54f5
[flutter_tools] turn down flutter generate ( #61475 )
...
complete removal of all generate functionality
Fixes #61508
2020-07-16 09:51:22 -07:00
Danny Tuppeny
51fcf8fa7a
Add debounce support to daemon hot reload requests ( #55376 )
2020-07-15 11:56:05 -07:00
Todd Volkert
d009172fd2
Change xcodebuild to be a "slow operation" ( #61518 )
...
The Xcode build almost always takes longer than 2 seconds. With the
operation classified as a "fast operation", the Flutter tool will
warn the user that the build is "taking an unexpectedly long time".
This updates the operation to be a "slow operation", which will only
warn the user if it takes 2+ minutes.
2020-07-15 11:53:26 -07:00
Jonah Williams
d8b6fa153a
[flutter_tools] generate a synthetic flutter_gen package on pub get ( #61261 )
...
Allow configuring the flutter_manifest to support a synthetic package, this is done through flutter: generate: true.
When running pub get, insert a flutter_gen entry into the packages if it does not already exist. This points to .dart_tool/flutter_gen, which can be updated to contain the generated intl sources (But doesn't currently)
Adds an integration test that verifies this code can be run and imported when enabled.
Part of #60914
2020-07-15 10:12:52 -07:00
Danny Tuppeny
d19bd37749
Tweak message about debugging with web-server ( #61535 )
2020-07-15 17:57:14 +01:00
Jonah Williams
cb7770b3a5
[flutter_tools] add support for enable null safety asserts ( #61114 )
...
Enable null safety asserts for web debug mode. This induces runtime asserts at the boundaries between null safe and non-null safe libraries. Adds integration test that validates assertion error is thrown.
#61042
2020-07-15 09:54:39 -07:00
Siva
e15cfc2c09
Remove code that morphs --sound-null-safety to --null-safety options ( #61491 )
2020-07-14 17:21:01 -07:00
Jenn Magder
4fba77476d
Support Xcode patch version comparison ( #61484 )
2020-07-14 17:16:02 -07:00
Ben Konyi
a1a5a8f635
Revert "Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #61395 )" ( #61498 )
...
This reverts commit f98184e487
.
2020-07-14 16:32:49 -07:00
Ben Konyi
f98184e487
Reland "Add support for Dart Development Service (DDS) in Flutter Tools ( #61276 )" ( #61395 )
...
This reverts commit 5b9c6e2b0e
.
2020-07-14 15:57:36 -07:00