Jenn Magder
c8e53b3859
Add null safety options to build ios-framework ( #60111 )
2020-06-23 14:35:45 -07:00
David Iglesias
8fce4ce974
[flutter_tools] Add web support through MethodChannels. ( #60116 )
2020-06-23 13:53:01 -07:00
Jonah Williams
30d97d89e0
[flutter_tools] separate target platform, host platform, and architecutre ( #60119 )
...
separate target platform, host platform, and architecture
2020-06-23 13:51:17 -07:00
Jonah Williams
2a1c078b76
[flutter_tools] add null safety argument to unbreak frob ( #60102 )
2020-06-23 11:20:49 -07:00
Jonah Williams
e34c591252
[flutter_tools] fix root directory tests ( #60060 )
...
* fix test compiler test
* fix project test
* fix flutter_platform_test
* fix cocoapods test
2020-06-23 11:14:38 -07:00
Robert Ancell
65ea2be51b
Remove Linux shell window_configuration.cc ( #59802 )
...
Remove Linux shell window_configuration.cc/.h
It was a temporary solution while the shell was changing.
2020-06-23 15:18:30 +12:00
stuartmorgan
b5ddf85595
Fix typo in Linux CMake template ( #60017 )
2020-06-22 19:08:02 -07:00
Jenn Magder
d82ef3517c
Use assemble build system directly for build ios-framework ( #60041 )
2020-06-22 18:44:27 -07:00
Jenn Magder
6a2bc2617e
Replace ANDROID_HOME user messages with ANDROID_SDK_ROOT ( #59867 )
2020-06-22 18:43:04 -07:00
Jenn Magder
2c538be421
Parse build ios framework build mode from params ( #59874 )
2020-06-22 17:13:03 -07:00
Jonah Williams
55abbb6be6
[flutter_tools] track null safety usage ( #59822 )
...
* [flutter_tools] track null safety usage
* Update flutter_command_test.dart
* cleanups
2020-06-22 17:05:01 -07:00
Jonah Williams
09f1764d14
[flutter_tools] android test cleanups ( #59996 )
...
Fixes several tests that were failing under tester. Minor style cleanups otherwise
2020-06-22 17:04:39 -07:00
Jonah Williams
a734693ff5
[flutter_tools] cleanup iOS test ( #59999 )
...
The test needs to look up HOME, but one wasn't provided. This would end up using the real home directory, crashing on windows
2020-06-22 17:04:17 -07:00
Jonah Williams
8e9b78728f
[flutter_tools] switch linux desktop feature on ( #60018 )
...
Enable linux desktop feature on dev channel
2020-06-22 17:04:01 -07:00
Jonah Williams
2cd205bb5a
[flutter_tools] cleanup fuchsia tests ( #59997 )
...
Cleanup fuchsia tests that failed under tester.
2020-06-22 16:47:28 -07:00
Anna Gringauze
aac836c6ad
Enabled expression evaluation by default ( #59826 )
2020-06-19 15:23:03 -07:00
Jonah Williams
fbdc79e448
[versions] update all versions ( #59832 )
...
Fixes #59718
Update all versions, specifically dwds which has a hot restart fix
2020-06-19 14:48:57 -07:00
Helin Shiah
f7a09bd2df
Add integration tests for structured error ( #59809 )
2020-06-19 13:58:03 -07:00
Michael Goderbauer
e48b7e99cd
More word substiturions ( #59497 )
2020-06-19 13:43:02 -07:00
Jonah Williams
dec7423b44
Revert "Add the ability to ignore lines depending on comments ( #58656 )" ( #59813 )
...
This reverts commit df02518dc9
.
2020-06-18 17:15:50 -07:00
Robert Ancell
e6de0de8f7
Fix Linux shell window default size ( #59630 )
...
The previous call set the minimum size, not just the initial size.
2020-06-19 11:56:01 +12:00
Jenn Magder
f41f795640
Clean up PollingDeviceDiscovery dispose ( #59709 )
2020-06-18 16:38:02 -07:00
Robert Ancell
dd9fd2c851
Use a HeaderBar for Linux applications. ( #59714 )
2020-06-19 11:30:36 +12:00
Chris Bracken
e0f60918d4
Roll the engine from 965fbbe to b5f5e63 ( #59804 )
...
This rolls the engine from:
965fbbed1776545ee681cb57f3fb1d0c2000bbcb to
b5f5e6332cb4987e9e38ffaa267733ec0a8705ba. A Dart SDK roll in this range
changed the format of the compileExpression RPC VMService endpoint,
necessitating a tool patch.
2020-06-18 16:12:54 -07:00
James D. Lin
bdbe6774a3
[flutter tools] Change the desktop device names and IDs ( #58812 )
...
In google3, the Linux device is always available, and it has confused
people who run the Flutter doctor and see
"• Linux • Linux • linux-x64 • Linux" listed.
Rename the Linux device name to "Linux desktop" and the device ID to
be "linux". Make similar changes to the Windows and macOS
devices for consistency. This is also consistent with the web
devices.
The device ID change shouldn't be break -d usage since that does a
case-insensitive prefix match.
2020-06-18 15:30:00 -07:00
Jonah Williams
e72d26a720
Revert "flutter.gradle: collect list of Android plugins from .flutter-plugins-dependencies ( #59294 )" ( #59810 )
...
This reverts commit 947b48e062
.
2020-06-18 15:19:12 -07:00
Igor Akkerman
947b48e062
flutter.gradle: collect list of Android plugins from .flutter-plugins-dependencies ( #59294 )
2020-06-18 14:08:01 -07:00
stuartmorgan
e85655c48e
Specify encoding for vswhere output ( #59607 )
...
On Windows, Process.run assumes the output uses the system codepage by default. This allows specifying it in our wrapper, and sets the encoding for vswhere to UTF-8 since we're passing a flag that forces it to use UTF-8 output.
Fixes #53515
2020-06-18 14:00:46 -07:00
Jonah Williams
01e09ea8af
[flutter_tools] add missing null-safety flags ( #59773 )
...
Some of the null-safety commands were missing - plumb them through. Ensure that verbose mode shows their output, and clean up the messaging around sound-null-safety.
Fixes #59769
Adds a test that validate each of the null safety supporting build commands has everything plumbed through.
2020-06-18 12:34:35 -07:00
Jonah Williams
5e77083b8d
[flutter_tools] make parent logger optional ( #59786 )
...
The addition of the non-optional parent logger broke the google3 roll. Make it optional so we can roll
2020-06-18 11:44:29 -07:00
Pasindu De Silva
df02518dc9
Add the ability to ignore lines depending on comments ( #58656 )
...
https://github.com/dart-lang/coverage - 0.14.0 added the ability to be able to ignore coverage depending on comments.
// coverage:ignore-line to ignore one line.
// coverage:ignore-start and // coverage:ignore-end to ignore range of lines inclusive.
// coverage:ignore-file to ignore the whole file.
2020-06-18 10:34:42 -07:00
Jonah Williams
447e3d3f38
[flutter_tools] remove globals from compilers ( #59184 )
...
Refactors KernelCompiler and ResidentCompiler to no longer use globals (except as a fallback for g3 migration). Improves the compilation error when running flutter test on a package without a flutter_test dependency.
Updates machine mode to output trace text to stderr
2020-06-18 10:33:17 -07:00
Jonah Williams
e1f4cfb4f4
[flutter_tools] add toggle b
and service extension to change platform brightness ( #59571 )
...
A frequent request from the last Flutter developer survey was for an easier method of testing light/dark mode changes. Currently, a user needs to manually change the theme settings or adjust phone settings to see the difference. Instead we should add a toggle from the CLI, and eventually devtools/Intellij/Vscode that allows developers to override the current setting.
Fixes #59495
Adds flutter.ext.brightnessOverride service protocol which either queries the current platform brightness, or overrides it to a new value. This accepts either Brightness.light or Brightness.dark as a value.
Adds a CLI toggle b which allows the setting to be toggled manually.
Requires an update to the MediaQuery, to conditionally use a debug override when not in release mode
2020-06-18 10:32:43 -07:00
Chris Bracken
f39ab52221
Revert "Manual engine roll to update format of compileExpression
RPC response ( #59717 )" ( #59774 )
...
Failing dev/integration_tests/ui/test_driver/keyboard_resize_test.dart
Also timing out on new_gallery_ios__transition_perf
This reverts commit c7a37c72c2
.
2020-06-18 09:52:44 -07:00
Ben Konyi
c7a37c72c2
Manual engine roll to update format of compileExpression
RPC response ( #59717 )
2020-06-18 09:18:03 -07:00
Jonah Williams
719ea5a8c0
[flutter_tools] make expando on vm service null safe to handle web stuff ( #59624 )
2020-06-18 08:18:04 -07:00
Jonah Williams
802c4b0f12
[flutter_tools] handle NPE in list views method( #59626 )
...
Fixes #59608
The VmService getter can be null, handle that in the listViews method. NNBD when
2020-06-17 10:53:54 -07:00
Jenn Magder
b8c64d7014
Don't crash when pubspec isn't a map ( #59632 )
2020-06-17 10:33:02 -07:00
Per Classon
56a7dacd46
[flutter_tools] For l10n with deferred loading, use loadLibrary for non-web too ( #59539 )
...
After Dart VM change we are now required to use loadLibrary on an import whenever it is imported as deferred.
See: https://dart-review.googlesource.com/c/sdk/+/149613
2020-06-16 13:36:28 -07:00
stuartmorgan
61c198e766
Switch Linux to the GTK embedding ( #59287 )
...
Updates the tooling to use the GTK embedding, rather than the GLFW embedding:
- Adds new requirements to `doctor`
- Updates the app and plugin templates to make GTK-based runners and plugins
- Stops downloading and installing the GLFW artifacts
Final part of #54860 , other than cleanup.
2020-06-16 13:31:24 -07:00
Jonah Williams
15154b115f
[flutter_tools] deprecate build aot ( #59487 )
...
This command was previously used by the re-entrant build scripts in xcode_backend.sh and build.gradle. These have since been refactored to use flutter assemble.
Deprecation the command in preparation for removal in a future release of flutter. The only current use is a test on HHH
2020-06-16 13:00:11 -07:00
Diego Henrique Domingues
95ee633f66
[flutter_tools] fix the event attribute used to skip waiting ( #59568 )
2020-06-16 11:15:02 -07:00
Jenn Magder
5a4bb5050d
Remove last references to ideviceinstaller ( #59508 )
2020-06-16 10:25:10 -07:00
Christopher Fujino
807b60250a
[flutter_tools] Update roll_dev.dart ( #59215 )
2020-06-16 09:30:04 -07:00
Jonah Williams
958f7c5b55
[flutter_tools] ensure generated entrypoint matches test and web entrypoint language version ( #59291 )
...
Ensure that the language version of the test/web generated entrypoint matches the language version of the test file to run, or the overall package language version if no annotation is provided.
2020-06-16 09:17:12 -07:00
Michael Goderbauer
584fd5f913
Word substitutions ( #59484 )
...
* Word substitutions
* ++
2020-06-16 09:15:43 -07:00
Jenn Magder
e114ab99bb
Remove flutter_goldens_client package dependency from tool ( #59365 )
2020-06-15 09:55:02 -07:00
duzenko
c79de78237
LG debugging/logcat fixed ( #58670 )
2020-06-15 09:35:07 -07:00
James D. Lin
c21b3233e4
[flutter tools] Don't return success if we trigger runZoned's error callback ( #58474 )
2020-06-15 09:35:04 -07:00
Ian Hickson
6202476691
Remove license statements in template files. ( #57268 )
2020-06-15 09:30:05 -07:00
stuartmorgan
401690a64f
CMake fix for projects without plugins ( #59343 )
...
This install step fails if the list is empty, which is the case for projects without plugins (or Dart-only plugins, so flutter/plugins presubmits are currently broken).
2020-06-12 19:45:48 -07:00
Chase Latta
d64884dedf
Remove Fuchsia BUILD.gn files ( #59285 )
2020-06-12 12:50:03 -07:00
Jenn Magder
0093c6a4c6
Add Podfile migration warning to support federated plugins ( #59201 )
2020-06-12 12:44:14 -07:00
Danny Tuppeny
96711b00ce
Don't crash on requests for invalid package URLs ( #59250 )
2020-06-12 09:25:04 -07:00
Jonah Williams
bf94520644
[versions] Update all the versions ( #59283 )
2020-06-11 16:40:22 -07:00
Marcus Tomlinson
1fe0f22645
Remove use of BundleUtilities in Linux build ( #59080 )
...
* Explicitly install the Flutter library
* Publish ${FLUTTER_LIBRARY} to parent scope
* Bundle plugin libraries
* Bundle <plugin_name>_bundled_libraries too
* BUNDLED_LIBRARIES -> PLUGIN_BUNDLED_LIBRARIES
* Update Linux plugin test
* Address review comments
2020-06-11 22:00:28 +01:00
Jenn Magder
3744b82d8c
Support .flutter-plugins-dependencies ( #59209 )
2020-06-11 13:25:01 -07:00
Jenn Magder
222c2cb0cc
Deprecate make-host-app-editable ( #59217 )
2020-06-11 11:37:15 -07:00
Gary Roumanis
d25b9c80a4
Do not depend on embedded ( #59210 )
2020-06-11 09:31:05 -07:00
Jenn Magder
319a61fd81
Move iOS Podfile logic into tool ( #59044 )
2020-06-10 14:12:48 -07:00
Jenn Magder
75fd73d818
Revert "[flutter_tools] inject output preferences at the top level ( #58875 )" ( #59197 )
...
This reverts commit dca6320fe4
.
2020-06-10 13:49:35 -07:00
Jonah Williams
dca6320fe4
[flutter_tools] inject output preferences at the top level ( #58875 )
...
The tool was setting the output preferences in a sub-context. Originally these were not injected before the arg parsers were created, though that was fixed by the lazy command creation. Once local engine is removed, the inner flutter_command Zone can be removed.
2020-06-10 12:13:06 -07:00
Jonah Williams
e7b4d2b80e
[flutter_tools] remove globals from proxy validator ( #59175 )
...
Remove global Platfrom from proxy validator. move tests to new file, and update asserts to cover message contents.
2020-06-10 12:12:35 -07:00
Jonah Williams
d911eadf95
[flutter_tools] create NotifyingLogger at the top level when running flutter run --machine or flutter attach --machine ( #59087 )
...
Removes dependency on injecting additional logger with zones
2020-06-09 15:39:27 -07:00
Jonah Williams
6067571fab
[flutter_tools] support flutter run -d edge ( #56173 )
...
Support Microsoft Edge as a device for flutter run when web is enabled. Currently this only works on Windows, and does not include a validator for edge.
Fixes #55322
2020-06-09 12:03:51 -07:00
Jonah Williams
e54f8f523f
[flutter_tools] include dart-defines in cached kernel name ( #59083 )
...
This prevents using a cached kernel file with different defines, since --initialize-from-dill does not handle this correctly.
Fixes #58976
2020-06-09 12:03:28 -07:00
Christopher Fujino
cf7e4a0b90
[flutter_tools] Fix slow ios_device_start_prebuilt_test ( #59026 )
2020-06-09 11:22:31 -07:00
Helin Shiah
e62c1f6954
Send text error in JSON and print in tools ( #59018 )
2020-06-09 11:18:03 -07:00
Jonah Williams
ec4049e781
[flutter_tools] support bundle-sksl-path on all desktop and mobile targets ( #58879 )
...
Adds support for --bundle-sksl-path to windows, linux, macOS, and iOS.
Fixes #53115
2020-06-09 11:15:52 -07:00
Jonah Williams
01e60a1ca4
[flutter_tools] Reland: use correct sdk path for analysis ( #59081 )
...
flutter analyze was unconditionally using the cached dart-sdk for analysis, and was not running with the built SDK during local engine. This broke when trying to update the analyzer for null safety, since it required us to wait for the dart change to roll into the framework first.
2020-06-09 10:47:21 -07:00
Jonah Williams
5e3e5a2a1a
Revert "[flutter_tools] use correct sdk path for analysis ( #58871 )" ( #59035 )
...
This reverts commit 9ed3e5bea6
.
2020-06-08 17:38:23 -07:00
Jonah Williams
9ed3e5bea6
[flutter_tools] use correct sdk path for analysis ( #58871 )
...
flutter analyze was unconditionally using the cached dart-sdk for analysis, and was not running with the built SDK during local engine. This broke when trying to update the analyzer for null safety, since it required us to wait for the dart change to roll into the framework first.
2020-06-08 17:21:33 -07:00
Jenn Magder
5eb4917d73
Release cache lock for commands after required artifacts are downloaded ( #59012 )
2020-06-08 17:18:02 -07:00
xster
4aea793cf9
add a help link to the default module template readme ( #59023 )
2020-06-08 16:33:01 -07:00
Jenn Magder
023532d991
Revert "Build iOS apps using Swift Packages ( #59009 )" ( #59025 )
...
This reverts commit 43e28084fc
.
2020-06-08 15:45:10 -07:00
Jenn Magder
43e28084fc
Build iOS apps using Swift Packages ( #59009 )
2020-06-08 13:53:01 -07:00
Jonah Williams
80ea454288
[flutter_tools] change service worker load to NOTICES ( #58890 )
...
update flutter_service_worker.js to NOTICES
2020-06-08 12:33:31 -07:00
Jonah Williams
0620cfa770
Revert "Send text error in JSON and print in tools ( #58994 )" ( #59002 )
...
This reverts commit f0174b176a
.
2020-06-08 11:56:23 -07:00
Jonah Williams
ef9b77d99a
fix analysis on master ( #59001 )
2020-06-08 11:53:17 -07:00
Jenn Magder
886313393f
Support work profiles and multiple Android users for run, install, attach, drive ( #58815 )
2020-06-08 11:28:02 -07:00
Helin Shiah
f0174b176a
Send text error in JSON and print in tools ( #58994 )
...
* Revert "Revert "Send text error in JSON and print in tools (#58284 )" (#58872 )"
This reverts commit c2d5e18cb2
.
* Put streamListen in try/catch if extension events already listened for
2020-06-08 11:24:23 -07:00
Jonah Williams
70a88c3b83
[flutter_tools] fix capitalization in build commands ( #58842 )
2020-06-08 11:20:28 -07:00
Jonah Williams
4f88ed1d3c
[flutter_tools] only restrict devices based on arch + buildMode, not emulator status ( #58887 )
...
instead of restricting profile/release mode based on whether the tool thinks the device is an emulator, restrict based on the device target architecture and the requested build mode. Notably, this enables release mode on x86_64 Android emulators, but not x86 emulators since we do not support that as an AOT target.
This does not add release mode support for simulators, since this requires us to build and upload artifacts for simulator/x86_64
2020-06-08 11:20:15 -07:00
Jonah Williams
206ccc3632
[flutter_tools] rename library to be less absurd ( #58891 )
...
Instead of targets/dart.dart -> targets/common.dart
2020-06-08 11:19:53 -07:00
Jonah Williams
64538f4d78
[flutter_tools] disable dartdev when calling snapshots directly ( #58830 )
2020-06-06 14:48:03 -07:00
Jonah Williams
c2d5e18cb2
Revert "Send text error in JSON and print in tools ( #58284 )" ( #58872 )
...
This reverts commit cce6b3c5ae
.
2020-06-06 10:35:58 -07:00
Helin Shiah
cce6b3c5ae
Send text error in JSON and print in tools ( #58284 )
...
* Send text error in JSON and print in tools
* Add test for error text
* Fix analysis issues
* Move streamListen to try/catch and use global.printStatus
* Extract print error fn and listen for events in web runner
* Add extension listen request to test
* Update packages/flutter_tools/lib/src/resident_runner.dart
Co-authored-by: Jonah Williams <jonahwilliams@google.com>
* Rename error parsing method
* Allow crash if listen for extension stream fails
* Add test for error and non-error extension events
* Fix formatting for TextTreeRenderer
* Use shorter message for second exceptions
* Specify types for map
* Add empty JSON for resident_web_runner test
* Move stream listen to vmservice and add vmservice test
* Fix stream type
* Move structured error log definition to vmservice
* Use correct test matcher isNot
Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2020-06-05 19:07:37 -07:00
Jonah Williams
5722adf11d
[flutter_tools] remove deprecation warning on flutter format ( #58817 )
...
So that we have a release where both are available without a deprecation warning.
2020-06-05 12:40:02 -07:00
Jonah Williams
72f81f4167
remove unused completer ( #58804 )
2020-06-05 11:53:01 -07:00
Jonah Williams
1e4d9f8502
[flutter_tools] add --write-sksl-on-exit to flutter drive ( #58743 )
...
Allow dumping sksl files on driver exit when a file path is provided to drive's --write-sksl-on-exit
2020-06-05 11:01:23 -07:00
Jonah Williams
d0abf7f90f
[flutter_tools] don't use verbose when in doctor or help command ( #58798 )
2020-06-05 10:12:11 -07:00
stuartmorgan
94b7ff241e
Don't require a specific Windows 10 SDK ( #58713 )
...
Current versions of the Windows desktop build files don't require a specific Windows 10 SDK version, but doctor still checks for one since vswhere doesn't allow for flexible queries. This has been a common source of issues for people setting up on Windows for the first time, because the current VS installer by default only includes a newer version of the SDK than what doctor is looking for.
This removes the vswhere SDK check, and instead uses a manual check for SDKs. Since this uses undocumented (although fairly widely used, so relatively unlikely to change) registry information, the check is non-fatal, so that builds can progress even if the SDK isn't found by doctor; in practice, it's very unlikely that someone would install the C++ Windows development workload but remove the selected-by-default SDK from the install.
Now that all requirements are default, the instructions when missing VS have been simplified so that they no longer list individual components, and instead just say to include default items.
Fixes #50487
2020-06-04 18:53:00 -07:00
Jonah Williams
f5de6aadd4
[flutter_tools] remove zone level overrides of verbose and daemon logging ( #57448 )
...
Make it possible for all FlutterCommands to be global free, by moving instantiation to inside the Zone context. Additionally, provide VerboseLogger and NotifyLogger (daemon) at the top level and remove from command-specific overrides.
This allows removing a work around where web devices needed to look up directly from the context in non-test code.
Technically the output preferences are still zone injected, but these will be moved soon as they were not being used correctly by the top level command (the injection comes after ArgParser reads the overflow values, causing numerous wrap issues)
2020-06-04 16:35:36 -07:00
Jonah Williams
395d27aa9b
Revert "Collect list of Android plugins from .flutter-plugins-dependencies ( #57907 )" ( #58732 )
...
This reverts commit 253eb1cfbd
.
2020-06-04 16:16:18 -07:00
Jonah Williams
3b0c84b906
Revert "use Expand-Archive and Compress-Archive in windows os utils ( #58390 )" ( #58719 )
...
This reverts commit bbe18f7580
.
2020-06-04 14:22:10 -07:00
Igor Akkerman
253eb1cfbd
Collect list of Android plugins from .flutter-plugins-dependencies ( #57907 )
2020-06-04 14:06:03 -07:00
Jonah Williams
bbe18f7580
use Expand-Archive and Compress-Archive in windows os utils ( #58390 )
...
Work towards removal of package:archive and ideally more stable unzipping of artifacts. These commands are available in Powershell 5+, which we already require for windows.
2020-06-04 14:00:33 -07:00
Jonah Williams
eae77804fe
[flutter_tools] use -f when fetching tags ( #58703 )
...
use -f to overwrite local tags on master branch
2020-06-04 13:54:32 -07:00
Jonah Williams
abfb6cb7eb
[flutter_tools] unbreak g3 usage of installHook ( #58711 )
2020-06-04 13:36:21 -07:00
Jonah Williams
3bc4a82605
[flutter_tools] avoid serving files outside of expected paths ( #58653 )
2020-06-04 11:53:04 -07:00
Jonah Williams
e934c2fc0a
[flutter_tools] reland: copy dill after startup ( #58455 )
...
* [flutter_tools] only copy cached dill after startup
* shared code
* cleanup artifact directory
* do not copy if dillOutputPath is given
2020-06-04 10:17:43 -07:00
Jonah Williams
8b5326a9cf
[flutter_tools] unbreak g3 roll ( #58688 )
2020-06-04 10:17:21 -07:00
Jenn Magder
2eca1d303c
Use fake command in analytics test ( #58544 )
2020-06-03 21:23:01 -07:00
Jonah Williams
b1d75fc99d
[flutter_tools] add flag for sound-null-safety, unify with experiments ( #58533 )
...
Also combines experiments into extraGenSnapshot/ExtraFrontEndOptions. Allows providing --no-sound-null-safety to allow out of order migration and running.
2020-06-03 21:02:07 -07:00
Jenn Magder
95edf28150
Move create project build tests to permeable subshard ( #58645 )
2020-06-03 17:41:15 -07:00
Jenn Magder
c130aa9574
Add FakeAsync to delay tests ( #58644 )
2020-06-03 17:16:37 -07:00
JustWe
6c8d7b00ff
Show unsupported devices when no supported devices are connected ( #56531 )
2020-06-03 16:14:38 -07:00
Jonah Williams
0734db62ca
[flutter_tools] remove handling of error that is fixed ( #58557 )
...
The linked error has been fixed, removed work around. Updates the test cases to only test for exit instead of error message
#33050
2020-06-03 13:27:47 -07:00
Jonah Williams
7e942b6229
[flutter_tools] iOS VM Service logs should include stderr ( #58551 )
2020-06-03 12:53:02 -07:00
Jenn Magder
e72e7f9fb0
Don't elapse real time during IOSDevice.startApp tests ( #58538 ) ( #58622 )
2020-06-03 12:43:02 -07:00
Jonah Williams
e216eec7b4
[flutter_tools] Allow the tool to suppress compilation errors. ( #58539 )
...
Suppress compilation errors on startup so they are not duplicated from the native build step.
2020-06-03 12:00:03 -07:00
Jenn Magder
79e2409419
Fake out DeviceManager.getDevices in test ( #58541 )
2020-06-03 11:48:37 -07:00
Jenn Magder
37bc900860
Revert "Don't elapse real time during IOSDevice.startApp tests ( #58538 )" ( #58618 )
...
This reverts commit 27186c784f
.
2020-06-03 11:26:29 -07:00
Jenn Magder
27186c784f
Don't elapse real time during IOSDevice.startApp tests ( #58538 )
2020-06-03 09:33:02 -07:00
Jonah Williams
01b9bf8ea6
[flutter_tools] deprecate flutter generate and codegen ( #58328 )
2020-06-03 09:28:02 -07:00
Jenn Magder
2ece1c3a17
Revert "Build iOS apps using Swift Packages ( #58522 )" ( #58549 )
...
This reverts commit 2054f37aaf
.
2020-06-02 19:00:12 -07:00
Jenn Magder
2054f37aaf
Build iOS apps using Swift Packages ( #58522 )
2020-06-02 17:57:11 -07:00
Jonah Williams
37a86c483c
Revert "[flutter_tools] Put a heap size limit on the frontend_server" ( #58525 )
...
* Revert "[flutter_tools] Put a heap size limit on the frontend_server (#58039 )"
2020-06-02 17:52:20 -07:00
Jonah Williams
6135091de9
Revert "[flutter_tools] only copy cached dill after startup ( #58188 )" ( #58454 )
...
This reverts commit 39d1e4b7e9
.
2020-06-01 17:17:03 -07:00
Jonah Williams
39d1e4b7e9
[flutter_tools] only copy cached dill after startup ( #58188 )
...
Remove copying from the shutdown stage since that seems risky. If the tool copies the first compilation there will still be a decent dill for initialization.
2020-06-01 16:31:27 -07:00
Jonah Williams
4845df906a
[flutter_tools] do not include material icon incorrectly ( #58335 )
...
If a dependency specified uses-material-design: true and the main pubspec specifies uses-material-design: false, then the MaterialIcons font would be included in the font manifest, but not in the AssetManifest or final bundle. Remove it from the FontManifest if this occurs
2020-06-01 16:30:43 -07:00
Jonah Williams
584e4f2534
[flutter_tools] cleanup to devfs Operations ( #58332 )
...
removes globals from devFS operations and cleans up testing to be context free. Removes unused and unnecessarily temp directory in testing.
2020-06-01 15:28:38 -07:00
Jenn Magder
f4d26a3b85
Change iOS device discovery from polling to long-running observation ( #58137 )
2020-06-01 12:33:01 -07:00
Ekaterina Gerasimova
3115c14e43
Fix typo in error message in flutter doctor ( #58421 )
2020-06-01 11:23:02 -07:00
stuartmorgan
a3b9e20a6b
Fix non-local-engine Linux release builds ( #58372 )
2020-06-01 11:03:02 -07:00
Jenn Magder
b0c98b6651
Detect USB/network interface from iOS devices ( #58257 )
2020-05-29 15:50:23 -07:00
Jonah Williams
6d8ec35014
Revert "Revert "[flutter_tools] always initialize the resident runner from di…" ( #58208 )
2020-05-29 15:43:03 -07:00
Marcus Tomlinson
5ee5490a63
[flutter_tools] Support profile and release builds on Linux ( #57135 )
2020-05-29 15:38:02 -07:00
Tianguang
03c74eb42e
Run flutter update-packages --force-upgrade
. ( #58104 )
...
* Run `flutter update-packages --force-upgrade`.
* Update test to 1.14.5.
2020-05-30 00:13:33 +02:00
Jonah Williams
d9144bf8fc
[flutter_tools] rename output LICENSE file to NOTICES and support loading either ( #57871 )
...
Work towards #16723
This is only safe to land after #58131 lands in google3. Only build NOTICES in asset manfiest, and load either LICENSE or NOTICES from pubspec dependencies.
2020-05-29 11:55:02 -07:00
Jonah Williams
a1636b6fef
Revert "[flutter_tools] always initialize the resident runner from dill ( #52497 )" ( #58193 )
2020-05-28 16:28:02 -07:00
stuartmorgan
eacd1c8de4
Update Windows template version ( #58189 )
...
PR #57749 included changes to the way the project interacts with the
build process (e.g., bundling the necessary library), so should have
incremented the template version to trigger the messaging to developers.
2020-05-28 13:38:31 -07:00
stuartmorgan
9989c54cb1
Add release and profile support for Windows ( #57749 )
...
Builds and bundles an 'app.so' containing AOT data, and downloads and packages the release/profile artifacts for those builds, rather than always using the debug artifacts.
Fixes https://github.com/flutter/flutter/issues/38477
Fixes https://github.com/flutter/flutter/issues/39664
2020-05-28 12:17:56 -07:00
stuartmorgan
ca0d60087b
Start from a clean slate when bundling Linux build ( #58174 )
...
BundleUtilities apparently doesn't do build-system-style timestamp
analysis when deciding what to copy, and instead just doesn't copy
things that are already present. This cleans that bundle directory on
each build, so that it includes the up-to-date library versions.
Since this is just copying from build artifacts, this is very fast; the
build steps themselves are not affected.
Fixes https://github.com/flutter/flutter/issues/58049
2020-05-28 12:14:57 -07:00
Jonah Williams
7cdf26d0dc
[flutter_tools] forward flutter format to dart format and deprecate ( #57829 )
2020-05-28 11:28:08 -07:00
Greg Spencer
379e11b641
Update the flutter script's locking mechanism and follow_links ( #57590 )
...
Update the flutter and dart scripts' locking mechanism and follow_links function to be more robust and support more platforms.
This adds support for using mkdir as a fallback if the system doesn't have flock instead of using shlock, since shlock doesn't work on shared filesystems.
It also fixes a problem in the follow_links function where it failed when the link resolved to the root directory.
2020-05-27 15:30:46 -07:00
Jonah Williams
8443f7cfd3
Revert "[flutter_tools] write test to convince self of lack of timing issue ( #58011 )" ( #58123 )
...
This reverts commit f77c669d68
.
2020-05-27 14:16:12 -07:00
Jonah Williams
f77c669d68
[flutter_tools] write test to convince self of lack of timing issue ( #58011 )
...
In #55864 a race condition was described where a done event is received before we finish connecting. This cannot happen, since async functions begin synchronously and the flag isWaitingForVm is tripped immediately, keeping onDone from exiting.
2020-05-27 12:47:30 -07:00
stuartmorgan
27e652c882
Fix Linux plugin template build visibility ( #58069 )
...
The CMake plugin build wasn't setting visibility to hidden by default,
which meant that plugins exported everything by default. This would make
bad interactions between plugins much more likely; only the intended API
should be exported by the shared library.
2020-05-27 10:55:34 -07:00
Jim Graham
3373a4042a
print checksum differences when detected by --verify-only ( #58064 )
2020-05-27 10:31:15 -07:00
Dan Field
98ce4a5dfe
Remove invalid local
from macos_assemble.sh ( #58030 )
...
When you run this, bash complains that `local` is only valid in functions. Gets rid of that extraneous warning.
2020-05-27 10:19:17 -07:00
Zachary Anderson
29736f6fea
[flutter_tools] Put a heap size limit on the frontend_server ( #58039 )
2020-05-27 10:12:24 -07:00
Emmanuel Garcia
4465ff9e3d
Prevent building non-android plugins in build aar ( #58018 )
2020-05-27 10:11:36 -07:00
Jonah Williams
8432204194
[flutter_tools] throw if asked to build release for x86_64 ( #57874 )
2020-05-27 10:11:15 -07:00
Jonah Williams
a926715dac
[flutter_tools] URI encode dart-define values ( #57873 )
2020-05-27 10:11:04 -07:00
Jonah Williams
ba847d54f0
[flutter_tools] validate android arch and build number ( #57830 )
2020-05-27 10:10:51 -07:00
Jonah Williams
600338286f
[flutter_tools] add vm service method to pull SkSL ( #57813 )
2020-05-27 10:10:41 -07:00
Jonah Williams
f640ad6914
[flutter_tools] ensure emulator command does not crash with missing avdmanager ( #57703 )
2020-05-27 10:10:30 -07:00
Jonah Williams
ffc56ff735
[flutter_tools] hide all development tools ( #57690 )
2020-05-27 10:10:19 -07:00
Jenn Magder
43f18f36ef
Change release archive check to warning ( #57688 )
2020-05-27 10:08:41 -07:00
Jenn Magder
d9adfe3f7e
Allow FLUTTER_APPLICATION_PATH to be null for misconfigured Xcode projects ( #57701 )
2020-05-27 10:08:09 -07:00
Neevash Ramdial
428ce0815b
[flutter_tools] Support latest IntelliJ via Jetbrain toolbox ( #57963 )
2020-05-27 10:07:28 -07:00
James D. Lin
c6f7792311
[flutter tools] Improve messages when we fail to connect to the Observatory ( #57355 )
2020-05-21 17:47:02 -07:00
Ken VanDine
e013fc2484
Desktop default window size ( #57274 )
2020-05-21 14:42:03 -07:00
Jonah Williams
359daf4f73
[flutter_tools] reland: remove globals from android device/testing ( #57614 )
2020-05-20 13:21:22 -07:00
Jenn Magder
478d4c9c1a
Add Android private keystore to project gitignore ( #57601 )
2020-05-19 20:22:01 -07:00
stuartmorgan
97b7e15532
Re-add line to Linux template CMakeLists.txt ( #57538 )
...
Re-adds a line that was accidentally removed in #57515
2020-05-19 18:17:41 -07:00
Jenn Magder
adead099a6
Always show diagnostics ( #57532 )
2020-05-19 18:17:03 -07:00
Jonah Williams
b70e7a9b65
[flutter_tools] fix incorrect comment on web runner ( #57450 )
2020-05-19 18:07:04 -07:00
Jonah Williams
5e33ecee46
Revert "[flutter_tools] remove globals/context for android testing ( #57445 )" ( #57611 )
...
This reverts commit 602d8baf34
.
2020-05-19 13:06:14 -07:00
Jonah Williams
602d8baf34
[flutter_tools] remove globals/context for android testing ( #57445 )
2020-05-19 12:37:07 -07:00
Jonah Williams
d0d9da832b
[flutter_tools] prevent wildcard assets from causing build invalidation issues ( #56472 )
2020-05-19 12:37:04 -07:00
Jonah Williams
91ec439348
[flutter_tools] handle missing null check in manifest parser ( #57400 )
2020-05-18 12:47:29 -07:00
Jonah Williams
70b889a9a3
[flutter_tools] reland: integrate l10n tool into hot reload/restart/build ( #57510 )
...
Reland: #56167
2020-05-18 12:47:18 -07:00
Jonah Williams
27a6705aa4
[flutter_tools] chunk the hashing of large files ( #57506 )
...
For files larger than 250 KB (roughly the size of framework.dart), chunk the conversion. This may be important for large assets like images.
2020-05-18 12:45:20 -07:00
stuartmorgan
b07516875d
Remove TRANSFORM from Linux CMake files ( #57515 )
...
The Linux CMakeLists.txt are intended to be compatible with 3.10, but
accedintally used a list construct that wasn't added until 3.12. This
adds a custom replacement function.
This makes the build compatible with 3.10 as originally intended.
2020-05-18 12:42:01 -07:00
Jonah Williams
8e765c7f6a
[flutter_tools] put system clock on globals ( #57447 )
2020-05-18 09:56:22 -07:00
Jonah Williams
49ad67ccf0
[flutter_tools] minor cleanups to try catch ( #57446 )
...
- OsError now implements exception, remove workaround.
- Prefer is check to catching TypeError
2020-05-18 09:38:22 -07:00
stuartmorgan
30d405c794
Temporarily allow pluginClass: none on desktop ( #57498 )
...
Treats 'pluginClass: none' as equivalent to having no 'pluginClass'
entry on the desktop platforms, to satisy stable channel plugin
validation of Dart-only desktop plugin implementations. See
issue for full details.
Part of https://github.com/flutter/flutter/issues/57497
2020-05-18 09:26:37 -07:00
Tianguang
5a3104b36a
Update flutter_gallery_assets to ^0.2.0 ( #57328 )
...
* Bump flutter_gallery_assets version to ^0.2.0.
* Run `flutter update-packages --force-upgrade`.
* Add comment.
* Remove duplicate key.
2020-05-18 18:26:18 +02:00
stuartmorgan
25e9d0494b
Add Linux GTK artifacts to unpack list ( #57452 )
...
To simplify development of the in-progress GTK embedding, which will
replace the GLFW embedding on Linux, add the GTK artifacts to the unpack
list. This means that until the transition, both the GLFW and GTK
artifacts will be unpacked.
Part of #54860
2020-05-18 09:26:07 -07:00
stuartmorgan
f991308e3e
Fix CMake invocation for 3.10 compat ( #57415 )
...
The -S/-B format of specifying source and build directories wasn't added
until 3.13. For 3.10 compatibility, use the older form of having the
working directory as the build directory, and the last argument as the
source directory.
Fixes #57409
2020-05-18 09:25:28 -07:00
Jonah Williams
b19b744bb7
[flutter_tools] check for Runner.sln when parsing for plugins ( #57392 )
...
Throw a toolExit if the windows plugin logic runs on an invalid windows project. Update the supported project check to validate the existence of a Runner.sln file
2020-05-18 09:24:51 -07:00
Jim Graham
5c78e723fb
Protect the deletion of the local engine temp dir in case it is already deleted ( #57345 )
2020-05-18 02:37:03 -07:00
stuartmorgan
8abf0a6d8c
Switch to CMake for Linux desktop ( #57238 )
...
Updates the Linux templates to use CMake+ninja, rather than Make, and updates the tooling to generate CMake support files rather than Make support files, and to drive the build using cmake and ninja.
Also updates doctor to check for cmake and ninja in place of make.
Note: While we could use CMake+Make rather than CMake+ninja, in testing ninja handled the tool_backend.sh call much better, calling it only once rather than once per dependent target. While it does add another dependency that people are less likely to already have, it's widely available in package managers, as well as being available as a direct download. Longer term, we could potentially switch from ninja to Make if it's an issue.
Fixes #52751
2020-05-16 15:07:34 -07:00
Zachary Anderson
859f2f9bd4
Update packages ( #57321 )
2020-05-16 15:02:06 -07:00
Jonah Williams
631087d83b
[flutter_tools] cache-bust in service worker ( #56786 )
2020-05-16 14:57:04 -07:00
Jonah Williams
afdc440840
[flutter_tools] surface missing assets originating package ( #55701 )
2020-05-16 14:52:04 -07:00
Jesse
2da08f4c10
Fix typo in 'flutter create --list-samples' help ( #57005 )
2020-05-14 14:37:03 -07:00
Zachary Anderson
533cd7a6d1
[flutter_tools] Delete system temp entries on fatal signals ( #55513 )
2020-05-14 14:27:02 -07:00
Jonah Williams
bd47262183
[flutter_tools] fix period in URL for androidX incompat ( #57182 )
2020-05-14 12:32:03 -07:00
Jonah Williams
a801496701
[flutter_tools] allow adb to fail to unforward without crashing ( #57173 )
2020-05-14 12:27:01 -07:00
shihchanghsiungsonos
bb49a9b056
[Add2App Android] Fix the issue of Hotreload broken on latest Dev release with Android device ( #57145 )
2020-05-14 12:17:02 -07:00
Jonah Williams
1000ae802d
[flutter_tools] ensure package_config is re-created if pub get is run ( #57184 )
2020-05-14 11:22:07 -07:00
Jonah Williams
a2cf9ecc46
[flutter_tools] expose track-widget-creation to build aar ( #57117 )
2020-05-14 11:17:06 -07:00
Jonah Williams
8a77381e58
[flutter_tools] do not set timestamp of package_config file ( #57077 )
2020-05-14 11:12:08 -07:00
Christopher Fujino
a2f5364dc0
throw more specific toolexit when git fails during upgrade ( #57162 )
2020-05-14 11:03:07 -07:00
Jenn Magder
bd430081e0
Make initial daemon devices population fast ( #56959 )
2020-05-14 11:00:51 -07:00
Jenn Magder
f66d3c5ab2
Remove empty Supporting Files group from Swift app template ( #57161 )
2020-05-14 11:00:43 -07:00
shihchanghsiungsonos
bcc42901ad
Fix xcode_backend.sh to strip bitcode for archive build, if the project has bitcode disabled entirely ( #57027 )
2020-05-14 10:57:11 -07:00
Jonah Williams
3ccb160da3
[flutter_tools] re-enable non-nullable test ( #57075 )
2020-05-13 09:32:03 -07:00
Jenn Magder
1eaa8c300c
Swap xcode_tests from MockProcessManager to FakeProcessManager ( #56502 )
2020-05-13 09:17:03 -07:00
Jonah Williams
9e9524977e
[flutter_tools] introduce a BuildSystem interface ( #56946 )
2020-05-13 09:12:08 -07:00
Anna Gringauze
e88ef6d554
Updated dwds (and other packages) ( #56958 )
2020-05-13 09:07:09 -07:00
Jenn Magder
2f993d70c1
Remove dead definesCustomBuildConfigurations ( #56961 )
2020-05-12 13:44:02 -07:00
Jonah Williams
7f400af35a
[flutter_tools] expand Regexp log match to include more AndroidRuntime failures ( #56943 )
2020-05-12 07:35:02 -07:00
Jonah Williams
7ed0950e05
[flutter_tools] unblock fuchsia roll ( #56945 )
2020-05-12 07:34:00 -07:00
Jonah Williams
d53429cf0a
Revert "[flutter_tools] hide tree-shake-icons ( #56924 )" ( #56934 )
2020-05-12 07:25:03 -07:00
Nate Bosch
59a8ef3a21
Remove direct uses of LocalPlatform ( #56605 )
...
When `const LocalPlatform` is used immediately and not passed as a
dependency it does not have utility over the static properties from
`dart:io`. Remove these uses to reduce the noise around how the
instantiable `Platform` class is used.
2020-05-11 12:59:29 -07:00
Jonah Williams
dfc955a87e
[flutter_tools] hide tree-shake-icons ( #56924 )
2020-05-11 12:15:02 -07:00
Jenn Magder
4ecb1bbe2d
Add mirror overrides to doctor output ( #56928 )
2020-05-11 11:57:02 -07:00
Jenn Magder
9c87b32477
Remove Runner target check, prefer schemes ( #56620 )
2020-05-11 11:56:44 -07:00
Luke Cheng
793e6a48a1
typo fix on the FLUTTER_STORAGE_BASE_URL usage ( #56685 )
2020-05-09 21:14:01 -07:00
stuartmorgan
9d4b0cb844
Update Linux template for headless mode ( #56618 )
2020-05-09 21:09:03 -07:00
Jonah Williams
d70d0913b2
Revert "[flutter_tools] integrate l10n tool into build/run ( #56167 )" ( #56800 )
...
This reverts commit f865ac7e25
.
2020-05-09 17:50:46 -07:00
Jonah Williams
f5d2c8c770
[flutter_tools] fix documentation on default built ios ( #56720 )
...
The default for build for flutter build ios should be release to match the other build commands. This is correctly handled in the command, but the documentation is incorrect. Update the documentation and the default to reflect the more common case of building for a physical device.
2020-05-08 17:35:40 -07:00
Zachary Anderson
04fe25e63e
[flutter_tools] Don't try to execute gradle wrapper out of /tmp ( #56706 )
2020-05-08 14:00:28 -07:00
Jonah Williams
f865ac7e25
[flutter_tools] integrate l10n tool into build/run ( #56167 )
...
* [flutter_tools] integration l10n tool
* add runtime skip to build system
* Update build_system.dart
* add links to issues, comments
* Update packages/flutter_tools/test/general.shard/build_system/build_system_test.dart
Co-authored-by: Shi-Hao Hong <shihaohong@google.com>
* Update packages/flutter_tools/lib/src/build_system/targets/localizations.dart
Co-authored-by: Shi-Hao Hong <shihaohong@google.com>
* Update localizations.dart
* switch to gen_l10n localizations
* fix tests
Co-authored-by: Shi-Hao Hong <shihaohong@google.com>
2020-05-08 12:06:15 -07:00
Jenn Magder
0dc7be3bb0
Always remove the workspace settings ( #56703 )
2020-05-08 12:05:52 -07:00
Jonah Williams
2304838a98
[flutter_tools] fix aar defaults test ( #56694 )
2020-05-08 10:04:04 -07:00
Jonah Williams
c57092511a
[flutter_tools] rename to .sksl.json ( #56634 )
2020-05-08 09:44:03 -07:00
Jonah Williams
717f9de662
[flutter_tools] enable tree-shake-icons by default for non-web targets ( #56633 )
...
Enable tree-shake-icons by default for non-web targets. Make missing fonts a status print
2020-05-08 09:42:43 -07:00
James D. Lin
631cd4d0be
[flutter tools] Fix an assert in IOSSimulator.getLogReader ( #56630 )
...
`assert(app is IOSApp)` fails if `app` is null, and `app` is an
optional argument. `app` is passed to `_IOSSimulatorLogReader`, which
already handles it being null.
2020-05-07 21:10:55 -07:00
Bogdan Lukin
80a14af582
[flutter_tools] ensure track-widget-creation can be changed on devcompiler ( #56564 )
...
Workaround for cached web builds with --[no-]track-widget-creation flags.
Similar PR: #23299
2020-05-07 18:58:43 -07:00
Jenn Magder
0a4f6cdef0
Add split-debug and obfuscation to build aar ( #56342 )
2020-05-07 18:14:02 -07:00
Jonah Williams
2d26cbb2bf
[flutter_tools] reduce initial cache size on web ( #56103 )
2020-05-07 17:59:02 -07:00
Jenn Magder
4be791994f
Swap xcodeproj_tests from MockProcessManager to FakeProcessManager ( #56505 )
2020-05-07 15:18:27 -07:00
Jonah Williams
8f7b2f9bee
[flutter_tools] throw StateError instead of null ( #56481 )
2020-05-07 11:41:03 -07:00
xster
f6b47a5f35
let the embedding maven engine dependency reference the storage proxy ( #56164 )
2020-05-07 11:36:02 -07:00
Jonah Williams
9bfe50cb81
[flutter_tools] fix windows vscode lookup ( #56491 )
2020-05-06 16:51:01 -07:00
Zachary Anderson
6f0ed5e142
[flutter_tools] Restore base/platform.dart ( #56410 )
2020-05-06 08:15:39 -07:00
Jonah Williams
0ecc7a4bee
[flutter_tools] support multiple fuchsia devices ( #55780 )
...
Fixes #55765
We are currently only returning the first device from dev-finder, instead we need to look at the whole list.
2020-05-05 13:40:38 -07:00
Jonah Williams
9b7b9d795e
[flutter_tools] reland remove flutter view cache ( #56387 )
...
Fixes #56194
Remove caching of FlutterView and poll forever if the list of flutter views is empty. Added test for missing release mode logic.
2020-05-05 12:09:51 -07:00
Jonah Williams
d98d3a973f
Revert "[flutter_tools] remove flutter view cache ( #56223 )" ( #56385 )
...
This reverts commit 209bdcb669
.
2020-05-05 11:15:33 -07:00
Jonah Williams
209bdcb669
[flutter_tools] remove flutter view cache ( #56223 )
...
Remove caching of FlutterView. Perhaps the FlutterView RPC might return an empty list if the VM is not quite up yet? We had some old logic to poll the flutter views RPC for up to 200ms. That doesn't seem like a great approach, so instead we could forgo it entirely and trust that either the views come up before the developer tries to interact, or we crash.
2020-05-05 10:47:01 -07:00
Siva
a48a51b0ff
Trial PR to use an engine that has the null safety unfork CL in it. ( #56309 )
...
* Trial PR to use an engine that has the null safety unfork CL in it.
* Fix mack specification for test.
2020-05-05 09:54:21 -07:00
Chase Latta
e963bfe19f
Add package_root for fuchsia_tools ( #56077 )
2020-05-04 18:49:01 -07:00
Jenn Magder
415401102c
Gradle artifacts and tasks tests without context ( #56335 )
2020-05-04 18:38:14 -07:00
Jenn Magder
06fcf5146b
Inject logger and fs into printHowToConsumeAar, test without context ( #56331 )
2020-05-04 18:38:00 -07:00
Jenn Magder
90233746b7
BuildInfo tests without context ( #56329 )
2020-05-04 18:37:44 -07:00
Jenn Magder
c587d73ec6
Use androidSdk globals variable everywhere ( #56330 )
2020-05-04 17:48:10 -07:00
David Morgan
0830c75c59
Turn implicit casts in code generated by flutter_platform.dart
into explicit casts. ( #56290 )
2020-05-04 12:44:01 -07:00
Devon Carew
3f9ede1311
fix the reload and restart service extension methods ( #56240 )
2020-05-04 11:34:02 -07:00
Jonah Williams
6d1966efcc
[flutter_tools] make gallery hot reload 5x faster with one neat trick ( #56224 )
2020-05-04 11:32:30 -07:00
Jenn Magder
c8c55b4098
Check Xcode build setting FULL_PRODUCT_NAME for bundle name ( #55799 )
2020-05-04 11:31:08 -07:00
Peter Lauri
f6db8ccd20
[flutter_tools] fix version tag v
stripping and support old "dev" and new "pre" tags ( #55602 )
2020-05-04 11:24:03 -07:00
Jonah Williams
6dc1e83f12
[flutter_tools] ensure track-widget-creation can be disabled on Android/macOS ( #56203 )
...
Ensure --no-track-widget-creation is piped through android/macOS. Adds integration testing for iOS/android/macOS
2020-05-04 11:22:15 -07:00
stuartmorgan
1b88914197
Redirect stdout/stderr in Windows template ( #56089 )
...
Redirects stdout/stderr in the Windows template when creating a console. This fixes the console opened when running from Visual Studio to actually show output, instead of being empty.
Fixes #53169
2020-05-03 14:25:00 -07:00
Jonah Williams
ec93c51eaf
[flutter_tools] add support for faster incremental build ( #56067 )
...
Introduce BuildSystem.buildIncremental, which keeps an in-memory cache of timestamps instead of file hashes. This will be used to implement localization generation through the same build system API.
2020-05-01 17:30:26 -07:00
Jonah Williams
2a5690f097
[flutter_tools] fix iOS build inconsistencies and pipe through performance file ( #56094 )
...
Ensure iOS and android builds can be correctly cached. Use the performance-measurement-file to verify that all targets were skipped on the second invocation. This is only run on the flutter_gallery build.
2020-05-01 15:34:28 -07:00
Jonah Williams
ac2dfcf338
[version] update all versions ( #56141 )
2020-05-01 15:14:36 -07:00
Jonah Williams
d6cbf2591a
[flutter_tools] don't recreate license, manifest, asset if unchanged ( #56107 )
...
Avoid syncing unchanged versions of these files during hot restart/reload. This happens if the asset bundle needs to be built but produces identical manifests/licenses due to only asset contents changing
2020-05-01 12:03:31 -07:00
Jonah Williams
368da5bb59
[flutter_tools] support bundling SkSL shaders in flutter build apk/appbundle ( #56059 )
...
Support bundling SkSL shaders into an android APK or appbundle via the --bundle-sksl-path command line options. If provided, these are validated for platform engine revision and then placed in flutter_assets/io.flutter.shaders.json
2020-04-30 13:39:08 -07:00
Ferhat
0d452b8305
[web] Change display mode of PWA default to standalone ( #56056 )
...
Change display mode of PWA default to standalone, update integration test manifest to new default
2020-04-30 11:20:14 -07:00
Jonah Williams
bd6ccb606a
[flutter_tools] android device stopApp handles null apk ( #55990 )
...
The resident runner does not check if the ApplicationPackage is null when trying to stop the app. Update AndroidDevice.stopApp to handle this case by returning false.
The package will be null when flutter attach is used.
2020-04-29 16:31:42 -07:00
Jonah Williams
0889e14361
[flutter_tools] increase stopApp timeout for FlutterDevice.exitApps ( #55984 )
2020-04-29 15:08:34 -07:00
Jonah Williams
a58d50deb1
[flutter_tools] allow pulling performance data from assemble ( #55699 )
2020-04-29 13:04:59 -07:00
Jenn Magder
46a5c550db
Add iOS simulator log parse test ( #55808 )
2020-04-29 13:02:39 -07:00
Jonah Williams
534b0608ce
[flutter_tools] remove vm service ( #55794 )
...
Finishes the gradual vm service migration by deleting the flutter tooling's vm_service
2020-04-29 11:52:46 -07:00
Jonah Williams
c55b32204e
[flutter_tools] fix performance of tree-shake-icons ( #55417 )
...
Fixes the performance issue with tree-shake-icons and filters to ttf mime type. Does not change default or error behavior.
2020-04-29 11:43:47 -07:00
Jonah Williams
72397fd448
[flutter_tools] Lazily inject logger into web devices ( #55961 )
...
Constructing the WebDevices with the global logger too early will lead to them grabbing the StdoutLogger when running in daemon mode. This prevents IDEs from seeing the correct debug message.
2020-04-29 11:35:40 -07:00
michaellee8
9d770c1091
[flutter_tools] fix pm serve ipv6 linklocal addr issue ( #55664 )
2020-04-29 09:29:02 -07:00
Katarina Sheremet
3b067049ad
Support tags in testWidgets ( #55141 )
2020-04-28 15:49:01 -07:00
Jonah Williams
7b1d24216e
[flutter_tools] Make packages not required for local engine ( #55882 )
2020-04-28 14:53:53 -07:00
kwkr
1ac09088c3
Fix/use contains ignoring whitespace ( #55887 )
2020-04-28 13:12:12 -07:00
James D. Lin
b7fd24a7dc
[flutter tools] Move _informUserOfCrash into crash_reporting.dart ( #55614 )
2020-04-28 10:34:03 -07:00
Jonah Williams
c15aa87442
restore quit timeout, adjust some integration test behaviors ( #55812 )
2020-04-28 10:05:52 -07:00
Jonah Williams
ffcf1db3ca
[flutter_tools] reland migrate FlutterViews to package:vm_service ( #55797 )
...
Move FlutterView and related RPCs to the package:vm_service implementation. Update some getIsolate calls with catchError to match previous behavior.
- Updates tests that were previously mocking FlutterViews to use real views
- Moves the FlutterView cache from VM to FlutterDevice
- Catch SentinelException during Isolate.kill
2020-04-27 17:41:42 -07:00
Jenn Magder
5cc87a5ea5
Remove dead variable from xcode_backend ( #55790 )
2020-04-27 17:05:54 -07:00
Jenn Magder
958ab9336f
Revert "[flutter_tools] reland migrate FlutterView to new vmservice ( #55774 )" ( #55788 )
...
This reverts commit a18e6361cf
.
2020-04-27 16:19:25 -07:00
Jonah Williams
a18e6361cf
[flutter_tools] reland migrate FlutterView to new vmservice ( #55774 )
2020-04-27 15:54:59 -07:00
Jenn Magder
d40699a3b8
Remove v prefix in doctor version ( #55773 )
2020-04-27 15:48:22 -07:00
Emmanuel Garcia
e524a303a4
Print stdout and stderr when the ssh command failed ( #55762 )
2020-04-27 15:44:01 -07:00
Christopher Fujino
069dc9c72d
[flutter_tools] catch ProcessException and throw ToolExit during upgrade ( #55759 )
2020-04-27 15:04:02 -07:00
Jonah Williams
2aa9016652
[flutter_tools] ensure etag headers are ascii ( #55704 )
2020-04-27 15:02:15 -07:00
michaellee8
34b8f830b8
[flutter_tools] add --dart-define option for fuchsia build ( #55715 )
2020-04-27 14:59:03 -07:00
Jonah Williams
1ab3878996
[flutter_tools] support --enable-experiment in flutter test ( #55564 )
...
Support --enable-experiment in flutter test (for flutter_tester). Required minor change for null safety.
2020-04-27 14:47:43 -07:00
Jonah Williams
07c451fea9
Revert "[flutter_tools] migrate FlutterView to new vm_service ( #55341 )" ( #55772 )
...
This reverts commit 2e50fd75eb
.
2020-04-27 14:26:56 -07:00
Jonah Williams
2e50fd75eb
[flutter_tools] migrate FlutterView to new vm_service ( #55341 )
...
Move FlutterView and related RPCs to the package:vm_service implementation. Update some getIsolate calls with catchError to match previous behavior.
- Updates tests that were previously mocking FlutterViews to use real views
- Moves the FlutterView cache from VM to FlutterDevice
- Catch SentinelException during Isolate.kill
2020-04-27 14:16:28 -07:00
Jonah Williams
dd88b20435
[flutter_tools] quality pass on Linux build ( #55556 )
...
- Update the Linux build to support most of the build configuration, though like windows most only make sense for profile/release.
- Ensure VERBOSE_SCRIPT_LOGGING is set when the logger is verbose
- Automatically run pub get like other build commands
2020-04-25 19:02:03 -07:00
Jonah Williams
d72eea539e
[flutter_tools] precache and unpack updates for desktop release artifacts ( #55510 )
...
- Update windows precache to include placeholder profile/release artifacts
- Update Linux and windows unpack to account for the cpp_client_wrapper code to live separate from the engine binaries
- Cleanup testing in unpack_linux and remove test cases that are covered in build_system_test.dart
2020-04-25 14:27:55 -07:00
Jonah Williams
c5554cdf41
[flutter_tools] remove trailing eth info from fuchsia package server ( #55617 )
2020-04-24 21:35:23 -07:00
Christopher Fujino
4552af155c
[flutter_tools] enable flutter upgrade
to support force pushed branches ( #55594 )
2020-04-24 17:55:16 -07:00
Jonah Williams
cf0fcd4536
[flutter_tools] detect ipv6 in fuchsia server url ( #55605 )
2020-04-24 17:03:04 -07:00
Jonah Williams
35edbe3d9d
Revert "[flutter_tools] fix version tag v
stripping ( #55385 )" ( #55577 )
...
This reverts commit c91a3a74ec
.
2020-04-24 09:38:49 -07:00
Peter Lauri
c91a3a74ec
[flutter_tools] fix version tag v
stripping ( #55385 )
2020-04-24 09:11:54 -07:00
Jonah Williams
2f0d41b2a6
[flutter_tools] set test directory base as additional root, allow running without index.html ( #55531 )
2020-04-24 09:09:53 -07:00
Anna Gringauze
873b21ec04
fixed flutter pub get failure in tests ( #55499 )
2020-04-24 09:09:01 -07:00
Christopher Fujino
37ac9015ad
[flutter_tools] check first for stable tag, then dev tag ( #55342 )
2020-04-23 15:19:27 -07:00
Jonah Williams
543186f105
[flutter_tools] quality pass on windows build ( #55436 )
2020-04-23 12:29:48 -07:00
Jonah Williams
bb683c4cdb
[flutter_tools] fix package config invalidation ( #55420 )
2020-04-23 11:34:01 -07:00
Dan Field
2ae0e5a37a
Roll packages, drop custom timeline parsing for tracing tests ( #55433 )
2020-04-22 21:43:03 -07:00
Jonah Williams
8df0d68633
[flutter_tools] remove globals from pub ( #55412 )
2020-04-22 16:34:12 -07:00
Jonah Williams
27d11da88f
Revert "[flutter_tools] default tree-shake-icons to enabled and improve performance ( #54923 )" ( #55413 )
...
This reverts commit 0b93a9219b
.
2020-04-22 15:43:09 -07:00
xster
72986f7bcf
remove intellij references to the v1 embedding jars now that the v2 embeddings are referenced via maven ( #55353 )
2020-04-22 13:33:13 -07:00
Jonah Williams
0b93a9219b
[flutter_tools] default tree-shake-icons to enabled and improve performance ( #54923 )
2020-04-22 13:17:46 -07:00
Jonah Williams
c8164dad80
[flutter_tools] migrate windows to assemble ( #55187 )
2020-04-22 12:26:49 -07:00
Jonah Williams
94ddf56b9e
[flutter_tools] unpin package config and update ( #55348 )
2020-04-22 10:16:34 -07:00
Jonah Williams
f2761b6b04
[flutter_tools] refactor Chrome launch logic to remove globals/statics ( #55160 )
2020-04-22 01:28:51 -07:00
James D. Lin
566c1d1124
flutter_tools: Prefer using .of() over .from() when possible ( #55250 )
...
Prefer using `.of()` (which is statically type-checked) over
`.from()` (which is dynamically type-checked) when possible.
2020-04-21 22:09:50 -07:00
Jonah Williams
0b3f5cfcc0
[flutter_tools] initial support for enable experiment, run, apk, ios, macos ( #54617 )
2020-04-21 20:39:36 -07:00
Jonah Williams
d46da3ae11
[flutter_tools] remove PackageMap and finish PackageConfig migration ( #55244 )
2020-04-21 19:55:15 -07:00
Katarina Sheremet
d8f353af5b
Support tags when running tests from command line ( #55152 )
2020-04-21 10:35:13 -07:00
Jenn Magder
8109dcc2b4
CrashReportSender dependency injection ( #54924 )
2020-04-20 15:23:09 -07:00
Jonah Williams
9202e54704
[flutter_tools] move service extensions off of deprecated vm service ( #55012 )
2020-04-20 15:15:54 -07:00
Jonah Williams
b7e30cfc26
[flutter_tools] update compilation to use package config ( #54467 )
2020-04-20 14:02:49 -07:00
Jonah Williams
77c05f7501
[flutter_tools] check if requireloader is defined ( #55085 )
2020-04-20 13:02:26 -07:00
Jonah Williams
6a390aa7dc
[flutter_tools] fix type error in symbolize ( #55212 )
2020-04-20 12:21:44 -07:00
Jonah Williams
9e72bf565e
[flutter_tools] don't compute hashes of well known artifacts ( #53848 )
2020-04-20 12:21:20 -07:00
kwkr
d21ab5184a
Fix/set mocks defaults ( #54756 )
2020-04-20 12:20:03 -07:00
Devon Carew
f050ee67e6
prettify the flutter web bootstrap file ( #55125 )
2020-04-20 08:24:50 -07:00
Jenn Magder
fc76fc2a96
Move GitHubTemplateCreator into reporting library ( #55002 )
2020-04-17 10:47:12 -07:00
Anna Gringauze
bc1c1b2ff8
Add flag to enable expression evaluation for web ( #55003 )
...
* Add flag to enable expression evaluation for web
Added flag --web-enable-expression-evaluation to flutter run commmand
that enables expression evaluation from IDEs for web target. Disabled
by default.
Helps https://github.com/flutter/flutter/issues/54520
* Update packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart
Co-Authored-By: Jonah Williams <jonahwilliams@google.com>
Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2020-04-17 10:42:02 -07:00
Anna Gringauze
b69b2a8c9e
Convert expression evaluation exceptions to errors ( #54916 )
2020-04-17 10:40:02 -07:00
Zachary Anderson
bec63a54bf
[flutter_tools] Provide global options with subcommand help text ( #54884 )
2020-04-17 08:54:48 -07:00
Jonah Williams
bd068f50d5
[flutter_tools] remove bogus same repo check ( #54294 )
2020-04-16 15:50:03 -07:00
Jonah Williams
4ee618bb72
[flutter_tools] don't elapse real time during fallback test ( #54717 )
2020-04-16 15:49:08 -07:00
Jonah Williams
e6abda7f00
[flutter_tools] remove Isolate implementations of vm_service methods ( #54920 )
2020-04-16 15:48:21 -07:00
Jenn Magder
66d77ca048
Support armv7s architecture ( #54989 )
2020-04-16 15:18:33 -07:00
Jenn Magder
ce83aaf38d
git pull --ff-only ( #54987 )
2020-04-16 14:20:48 -07:00
tauu
f1d522d503
fixed flutter run for projects containing a watchOS companion ( #54959 )
...
Co-authored-by: Georg Wechslberger <wechslbe@ma.tum.de>
2020-04-16 10:58:45 -07:00
Jonah Williams
e092dcfa22
[flutter_tools] Reland: fix multiple dart defines ( #54973 )
2020-04-16 10:56:49 -07:00
Michael Thomsen
fd397e1fc0
Roll pinned package versions ( #54952 )
2020-04-16 10:55:02 -07:00
Jonah Williams
11ab2fa35c
Revert "[flutter_tools] fix multiple defines in flutter tooling, web ( #54909 )" ( #54967 )
...
This reverts commit b8bd09db21
.
2020-04-16 08:33:16 -07:00
Jonah Williams
b8bd09db21
[flutter_tools] fix multiple defines in flutter tooling, web ( #54909 )
2020-04-15 22:25:32 -07:00
Jonah Williams
ac20b614c5
[flutter_tools] ensure EventPrinter handles a null parent ( #54918 )
2020-04-15 20:10:16 -07:00
Jenn Magder
457972b757
Move doctor into globals ( #54912 )
...
* Move doctor into globals
* Fix tests
2020-04-15 19:44:42 -07:00
stuartmorgan
0ece276ecb
Add COM initializition to Windows template ( #54881 )
...
Plugins, and the library, should be able to use COM without special
setup. This adds COM initialization to the runner template so that it's
available for any code on the main thread.
2020-04-15 14:32:39 -07:00
tauu
56b7c93584
[flutter_tools] fix build for projects with watchOS companion app ( #51126 )
...
Co-authored-by: Georg Wechslberger <wechslbe@ma.tum.de>
2020-04-15 12:13:06 -07:00
Jacob MacDonald
6399be62d2
remove flutter_test quiver dep, use fake_async and clock instead ( #54125 )
...
## Description
Removes the `flutter_test` dependency on `quiver`, instead using the more targeted `clock` and `fake_async` packages.
## Related Issues
https://github.com/flutter/flutter/issues/53908
## Tests
No changes to tests
## Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). This will ensure a smooth and quick review process.
- [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
- [x] I signed the [CLA].
- [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
- [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.
- [x] The analyzer (`flutter analyze --flutter-repo`) does not report any problems on my PR.
- [x] I am willing to follow-up on review comments in a timely manner.
## Breaking Change
Did any tests fail when you ran them? Please read [Handling breaking changes].
- [ ] No, no existing tests failed, so this is *not* a breaking change.
- [x] Yes, this is a breaking change. *If not, delete the remainder of this section.*
- [x] I wrote a design doc: https://docs.google.com/document/d/1EkkLbECNBwHgddBQAZqEy7iQLTIxR1rgChKzxcLwhio/edit
- [x] I got input from the developer relations team, specifically from: @RedBrogdon
- [x] I wrote a migration guide: https://github.com/flutter/website/pull/3932
<!-- Links -->
[issue database]: https://github.com/flutter/flutter/issues
[Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[Test Coverage]: https://github.com/flutter/flutter/wiki/Test-coverage-for-package%3Aflutter
[Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[Features we expect every widget to implement]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
[Handling breaking changes]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
2020-04-15 12:10:26 -07:00
Jonah Williams
c141a53f9a
[flutter_tools] support any as a special web-hostname ( #54715 )
2020-04-15 10:55:01 -07:00
Jonah Williams
2f23476cbb
[flutter_tools] dont supress analytics from re-entrant macos build ( #54805 )
2020-04-15 10:45:03 -07:00
Jonah Williams
b6262e7c1c
[flutter_tools] remove runFromSource, move runInView to vm_service extension ( #54700 )
2020-04-15 10:35:01 -07:00
tauu
846e8fe812
force upgraded package dependencies ( #54787 )
...
Co-authored-by: Georg Wechslberger <wechslbe@ma.tum.de>
2020-04-14 18:21:14 -07:00
Jonah Williams
159710ecc5
[flutter_tools] fix response format of flutterVersion, flutterMemoryInfo ( #54786 )
2020-04-14 15:37:49 -07:00
Jenn Magder
a6b39a230f
Migrate Runner project base configuration ( #54691 )
2020-04-14 13:01:54 -07:00
Jenn Magder
ddf63a8b05
Remove Finder extended attributes from iOS project files ( #54488 )
2020-04-14 11:07:51 -07:00
Zachary Anderson
57dd045cef
[flutter_tools] Handle empty gzip file on Windows ( #54679 )
...
* [flutter_tools] Handle empty gzip file on Windows
* Update packages/flutter_tools/test/general.shard/base/os_test.dart
Co-Authored-By: Jonah Williams <jonahwilliams@google.com>
* Update packages/flutter_tools/test/general.shard/base/os_test.dart
Co-Authored-By: Jonah Williams <jonahwilliams@google.com>
* Update packages/flutter_tools/test/general.shard/base/os_test.dart
Co-Authored-By: Jonah Williams <jonahwilliams@google.com>
Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2020-04-14 09:42:26 -07:00
Jonah Williams
9cc69d47a5
[flutter_tools] support machine and coverage together but for real ( #54692 )
2020-04-13 19:00:02 -07:00
Jonah Williams
8ed40ddd4b
[flutter_tools] refactor FlutterManifest to be context-free ( #54555 )
2020-04-13 18:55:01 -07:00
Jonah Williams
723bc76847
[flutter_tools] update coverage collector to use vmservice api ( #54682 )
2020-04-13 16:10:02 -07:00
Jonah Williams
ee43de0476
[flutter_tools] support enable-experiment in flutter analyze ( #54613 )
2020-04-13 16:00:03 -07:00
Jonah Williams
9cb9bfbd7c
[flutter_tools] use new output location for the apk ( #54328 )
2020-04-13 15:55:02 -07:00
kwkr
861b0b5749
remove outdated build_runner instructions ( #54645 )
2020-04-13 12:40:02 -07:00
Emmanuel Garcia
54dba4cd59
Don't import plugins that don't support android in settings.gradle ( #54407 )
2020-04-12 08:55:03 -07:00
Pierre-Louis
da343dcc75
Add .last_build_id to gitignore ( #54428 )
2020-04-11 13:25:02 -07:00
Herbert Poul
3441743c5c
[macos] build: add build-number and buid-name arguments ( #53928 )
2020-04-11 13:20:01 -07:00
Christopher Fujino
03c566768b
[flutter_tools] Remove fromPlatform from tests ( #54152 )
2020-04-10 16:51:28 -07:00
Christopher Fujino
2adb1fc095
Fix environment leakage in doctor_test ( #54478 )
2020-04-10 13:35:38 -07:00
Jonah Williams
d081364d3c
[flutter_tools] remove indirection around App.framework production ( #53853 )
2020-04-10 13:34:45 -07:00
Jonah Williams
0700be79e5
[flutter_tools] disable cache in devices test ( #54389 )
2020-04-10 10:33:23 -07:00
Jonah Williams
5adfd38dde
[flutter_tools] Move service methods to VmService extension methods ( #54337 )
2020-04-10 10:33:07 -07:00
Shi-Hao Hong
c16c3b0443
[gen_l10n] Expand integration tests ( #54314 )
2020-04-10 10:25:03 -07:00
Jonah Williams
de84c1e18a
[flutter_tools] attempt to fix benchmark mode test ( #54414 )
2020-04-10 10:10:04 -07:00
Jenn Magder
df63c82c9c
Convert iOS simulator log reader to simctl, use unified logging filters ( #54154 )
2020-04-09 14:35:01 -07:00
Jonah Williams
d390f4d9c6
switch benchmark to isolate runnable ( #54374 )
2020-04-09 09:48:54 -07:00
Kirill Pertsev
d6806392a8
Implements --machine flag for devices
command ( #50581 )
2020-04-09 09:14:16 -07:00
Jonah Williams
74a1b9b33e
[flutter_tools] make verbose macOS builds actually verbose ( #54320 )
2020-04-09 09:00:44 -07:00
Per Classon
4451ffca23
Add option for deferred loading to gen_l10n ( #53824 )
2020-04-09 03:57:01 -07:00
Jonah Williams
0d459f2326
[flutter_tools] Remove packageMap usage and update package_config ( #54301 )
...
* remove PackageMap
* Update flutter_web_platform.dart
2020-04-08 21:32:25 -07:00
Jonah Williams
01a47b9b1a
[versions] update all flutter versions ( #54334 )
2020-04-08 21:32:01 -07:00
Jonah Williams
cb8bafb38d
[flutter_tools] surgically remove outputs from shared directory ( #53962 )
2020-04-08 19:09:59 -07:00
Filip Hracek
1593788cd9
Rename GPU thread to raster thread in API docs ( #53422 )
2020-04-08 18:57:03 -07:00
Shi-Hao Hong
5d63637e43
[gen_l10n] Fallback feature for untranslated messages ( #53374 )
...
* Generate methods using template resources if they do not exist in other locales
* Added a flag to either output of messages that have not been translated with detail into a file, or display a summary on the terminal.
* Add integration test for fallback message usage
2020-04-08 18:55:50 -07:00
Jonah Williams
cf5e4b544e
[flutter_tools] fix routing test ( #54313 )
2020-04-08 14:53:19 -07:00
Jonah Williams
412e4dd50e
[flutter_tools] migrate devfs web to package_config ( #54299 )
2020-04-08 14:41:11 -07:00
Christopher Fujino
19c8948e61
Fix frameworkVersionFor
for flutter doctor and usage ( #54217 )
2020-04-08 12:47:05 -07:00
Jonah Williams
4851888864
[flutter_tools] Migrate to package:vm_service 4: trigonometric boogaloo ( #54132 )
2020-04-08 12:33:33 -07:00
Zachary Anderson
090fc5cc53
[flutter_tools] Use gzip level 1 for devfs transfer compression ( #54123 )
2020-04-08 09:07:02 -07:00
Jonah Williams
fa35698ee3
[flutter_tools] allow passing non-config inputs ( #54228 )
2020-04-08 09:04:32 -07:00
Danny Tuppeny
589b14d841
Add a switch to use WebSockets for web debug proxy ( #54083 )
2020-04-08 09:02:03 -07:00
Jonah Williams
981afe39ae
[flutter_tools] ensure build fails if asset files are missing ( #54233 )
...
Ensure build fails if asset files are missing and that stderr messages are forwarded through Gradle
2020-04-07 19:42:57 -07:00
Jonah Williams
0a25309fb1
[versions] update versions ( #54247 )
2020-04-07 19:42:02 -07:00
Jason Simmons
c663cd55a7
[flutter_tools] Refresh VM state before executing hot reload ( #53960 )
2020-04-07 15:41:02 -07:00
Jonah Williams
9c41e57099
[flutter_tools] migrate engine location check ( #54208 )
2020-04-07 14:05:49 -07:00
Per Classon
e8d2907595
[gen_l10n] Handle single, double quotes, and dollar signs in strings ( #54185 )
2020-04-07 12:21:02 -07:00
Jonah Williams
08fe78fff9
[flutter_tools] write SkSL file to local file ( #53859 )
2020-04-07 12:17:39 -07:00
Michael Thomsen
98e7791ec9
Roll pinned xml and petitparser versions ( #54181 )
2020-04-07 12:16:03 -07:00
stuartmorgan
b429e7eb00
Update Windows and Linux plugin templates ( #53876 )
...
Updates Windows and Linux templates to use the new PluginRegistrarManager, improving lifetime handling and reducing boilerplate.
2020-04-07 09:03:49 -07:00
Konstantin Scheglov
b0492cc976
Fix newly reported prefer_const_constructors lints. ( #54176 )
2020-04-07 08:59:01 -07:00
Jonah Williams
98e43bc6ae
[flutter_tools] ensure the tool can find SDK manager on windows ( #54133 )
2020-04-06 13:41:14 -07:00
Alexandre Ardhuin
f5a9902577
enable avoid_equals_and_hash_code_on_mutable_classes ( #52507 )
2020-04-06 13:36:01 -07:00
stuartmorgan
2d623278e7
Restructure the Windows app template ( #53600 )
...
This moves the app template more toward being a more generic starting
point for any Flutter application, eliminating some hard-code
assumptions about there being a single window/engine pair that is
directly bound to the life of the application:
- Moves the runloop into its own class, making it capable of servicing
any number of engine instances.
- Moves the logic for setting up a window containing only a Flutter view
into a window subclass for ease of re-use.
- Makes quit-on-window-close an optional property. (Long term this
should be even more generic, like a quit-when-last-window-closes
option, but this is a short-term improvement that removes the binding
between the runloop and the window).
- Allows for multiple instances of Win32Window to exist without issues
relating to the window class registration.
Since there are getting to be a non-trivial number of files associated
with the runner, this moves the source into a runner/ directory, as is
already done on some other platforms.
Note that creating multiple Flutter windows at the same time still
doesn't work correctly even with this change, but this addresses some of
the known issues, and makes it easier to test in the future (e.g., for
debugging engine-level issues with multiple instances).
Fixes #45397
2020-04-06 12:24:05 -07:00
Jonah Williams
4037e5069e
[flutter_tools] update asset manifest to use package_config instead of package_map ( #53944 )
2020-04-06 11:25:05 -07:00
Jenn Magder
602475e56f
Sanitize error message sent to GitHub crash reporter ( #53936 )
2020-04-06 11:00:22 -07:00
Jonah Williams
61b3361781
Revert "[flutter_tools] Migrate to vm service 3 (reland): electric boogaloo ( #53957 )" ( #54114 )
...
This reverts commit d6b09626f2
.
2020-04-06 10:36:14 -07:00
Jonah Williams
d6b09626f2
[flutter_tools] Migrate to vm service 3 (reland): electric boogaloo ( #53957 )
2020-04-06 10:18:41 -07:00
Anisov Aleksey
be6234d56e
Read custom app project name from gradle.properties ( #52791 )
2020-04-05 20:46:44 -07:00
Jonah Williams
f9c58bea49
[flutter_tools] also listen to web stderr stream ( #53949 )
2020-04-04 21:31:55 -07:00
Zachary Anderson
fef9d4d7cd
[flutter_tools] Launch DevTools with 'v' ( #53902 )
2020-04-04 19:51:01 -07:00
Shi-Hao Hong
4e811d2819
[gen_l10n] Fix plural parsing for translated messages ( #53954 )
2020-04-03 15:46:01 -07:00
Jonah Williams
58acf4e7b0
Revert "[flutter_tools] surgically remove outputs from shared directory ( #53773 )" ( #53956 )
...
This reverts commit 8a3bede1d3
.
2020-04-03 14:22:37 -07:00
Jonah Williams
8a3bede1d3
[flutter_tools] surgically remove outputs from shared directory ( #53773 )
2020-04-03 14:11:01 -07:00
Jonah Williams
66f4907754
Revert "[flutter_tools] update to package vm_service: electric boogaloo ( #53809 )" ( #53951 )
...
This reverts commit 66d7a6c266
.
2020-04-03 14:00:07 -07:00
Jonah Williams
1e86c1fb12
[flutter_tools] re-enable debug extension ( #53765 )
2020-04-03 13:26:15 -07:00
Jonah Williams
66d7a6c266
[flutter_tools] update to package vm_service: electric boogaloo ( #53809 )
2020-04-03 12:38:56 -07:00
Francisco Magdaleno
e012752634
[flutter_tools] Don't generate native registrant classes if no pluginClass is defined ( #53785 )
2020-04-03 11:51:01 -07:00
Jenn Magder
85ad699865
Remove URL shortening from GitHub reporter similar issues URL ( #53882 )
2020-04-03 10:32:55 -07:00
Shi-Hao Hong
6837b0e353
[gen_l10n] Add scriptCode handling ( #53868 )
...
* [gen_l10n] Add scriptCode handling
2020-04-03 09:46:01 -07:00
Christopher Fujino
2396616e09
Support old and new git release tag formats ( #53715 )
2020-04-03 09:39:28 -07:00
Jenn Magder
77ea848c46
Inject Usage dependency into FallbackDiscovery and BuildEvent ( #53443 )
...
* Usage dependency injection
* Review edits
2020-04-02 10:57:37 -07:00
Ferhat
c3ec1caac2
Replace isInstanceOf<T> uses with isA<T> ( #53834 )
...
* Replace isInstanceOf<T> uses with isA<T>
* Update isInstanceOf in flutter tools
2020-04-02 10:57:07 -07:00
Christopher Fujino
1a685e03a2
Improve downgrade-upgrade integration test ( #53775 )
2020-04-02 10:35:30 -07:00
Zachary Anderson
6fddb7ee8c
[flutter_tools] Handle full device when creating a temp directory ( #53691 )
2020-04-02 10:31:03 -07:00
Anna Gringauze
3a0d837741
Enable expression evaluation in debugger for web platform ( #53595 )
2020-04-02 10:26:03 -07:00
Shi-Hao Hong
19e7db585d
[gen_l10n] Escape special JSON characters in generateString utility function ( #53605 )
2020-04-01 11:16:01 -07:00
stuartmorgan
445b5a14f2
Precache platform filter change ( #53701 )
...
Makes the following changes to the behavior of precache:
- The --all-platforms flags now fetches all artifacts, rather than just
turning off platform filtering of selected artifacts.
- Explicitly requested artifacts are no longer subject to platform
filtering. E.g., 'precache --ios' will download iOS artifacts on
Windows and Linux (but 'precache' without an 'ios' flag will still
only download iOS artifacts on macOS).
- Desktop platform artifacts now respect the bypassing of platform
filtering.
Fixes #53272
2020-04-01 10:54:59 -07:00
Emmanuel Garcia
e61ab4a832
Copy APK into a known location, so it can be easily discovered ( #53718 )
2020-04-01 10:03:56 -07:00
Jonas Finnemann Jensen
da036c5214
Application templates should default to publish_to: none ( #52740 )
2020-04-01 14:20:02 +02:00
Lau Ching Jun
587b622396
Fuchsia device is ephemeral. ( #53717 )
2020-04-01 00:51:02 -07:00
Jonah Williams
bb5c340066
[flutter_tools] cache the base URL as index.html ( #53666 )
2020-04-01 00:36:02 -07:00
Greg Spencer
2a649b16e2
Add an adaptive visual density static function, and add it to… ( #51921 )
...
Adds a VisualDensity.adaptivePlatformDensity static function that returns different values for visual density based on the defaultTargetPlatform. Returns compact for desktop platforms, and a default visual density for other platforms.
2020-03-31 16:16:25 -07:00
Jenn Magder
ad07c4041a
Delete unused NDK location checks ( #53694 )
2020-03-31 14:53:49 -07:00
Mubarak Imam
df90bb5fd6
fix issue with multiple java runtimes on macOS ( #52474 )
2020-03-31 11:36:01 -07:00
Jonah Williams
7bf74c3460
[flutter_tools] handle unsafe build outputs ( #53601 )
2020-03-31 11:01:01 -07:00
stuartmorgan
a2d62df3ee
Use feature flags for desktop cache ( #53608 )
2020-03-30 21:51:48 -07:00
Jonah Williams
8cb1d269f6
[versions] update EVERYTHING ( #53467 )
2020-03-30 14:09:38 -07:00
Jonah Williams
72343ee0e4
[flutter_tools] refactor build_system and targets to be context-free ( #53268 )
2020-03-30 12:51:04 -07:00
Jonah Williams
4605b51a7e
[flutter_tools] use package Uuid consistently ( #53492 )
2020-03-30 12:46:06 -07:00
Dan Field
c8efcb632b
Only fetch tags when not on dev/beta/stable ( #53450 )
2020-03-27 22:31:01 -07:00
Jonah Williams
dfc3318e87
[flutter_tools] dont create synthetic sdk when running consumer-only ( #53466 )
2020-03-27 22:25:09 -07:00
Jonah Williams
8403930d41
[flutter_tools] unpin SDK deps when upgrading packages ( #53429 )
2020-03-27 22:11:01 -07:00
stuartmorgan
94500073a0
Windows template update project ( #53302 )
...
Updates the Windows app template to use the new DartProject API, significantly simplifying the template.
Increments the template version, even though this isn't itself a breaking change, so that users will be prompted to update their projects rather than be broken later when the old API is removed.
2020-03-27 16:36:15 -07:00
Jenn Magder
ce40fbaf51
Include metadata in GitHub crash template ( #53118 )
2020-03-27 16:21:45 -07:00
Jenn Magder
57b0ddbd60
Uninstall app flag ( #53385 )
2020-03-27 10:13:54 -07:00
Jonah Williams
be3a4b37b3
[flutter_tools] don't trim log messages from the web ( #53379 )
2020-03-26 18:08:05 -07:00
Jonah Williams
2717eb6413
[flutter tools] rewrite launch non-prebuilt app tests ( #53351 )
2020-03-26 17:36:02 -07:00
Jonah Williams
c5800fe107
[flutter_tools] update iOS deploy tests for best practices ( #53343 )
2020-03-26 17:31:01 -07:00
Dmitry Borodin
5a3e7e4366
Updated obsolete URL ( #52158 )
2020-03-26 14:34:00 -07:00
Zachary Anderson
9d97918c60
[flutter_tools] Prepare for OSError to implement Exception ( #53258 )
2020-03-26 09:51:01 -07:00
Jenn Magder
8a9023522c
Push iMobileDevice and iosDeploy instantiation into XCDevice constructor ( #53307 )
2020-03-25 18:12:13 -07:00
Jonah Williams
e23c4796a3
Expose extra frontend options through build apk/ios/macOS ( #53273 )
...
This will allow experimenting with the remove to string transformer before we're ready to turn it on by default. This doesn't work for web yet since we use dart2js instead of the frontend_server for producing kernel
2020-03-25 16:56:41 -07:00
xster
1376746237
Reland #53153 to attach to existing modules and apps for Android ( #53289 )
2020-03-25 16:45:49 -07:00
Angjie Li
6083f15805
Allow user to specify which Chrome binary to use. ( #53275 )
...
* Allow user to specify which Chrome binary to use.
2020-03-25 15:55:32 -07:00
Jenn Magder
ee3920c208
Remove SimControl from context ( #53304 )
2020-03-25 15:40:42 -07:00
Jenn Magder
ba57ea09d1
Revert "Move processUtils into globals ( #53209 )" ( #53301 )
2020-03-25 14:59:03 -07:00
Jenn Magder
86389be66e
Convert CocoaPods tests to testWithoutContext ( #53291 )
2020-03-25 13:27:10 -07:00
Jenn Magder
ec3653f41d
Remove XcodeValidator from context ( #53213 )
2020-03-25 11:57:05 -07:00
Dan Field
31175eb008
Revert "Revert "Replace uses of deprecated CastError with TypeError ( #53221 )" ( #53226 )" ( #53269 )
2020-03-25 11:26:02 -07:00
Jenn Magder
9ccac00599
Move processUtils into globals ( #53209 )
2020-03-25 11:23:08 -07:00
Michael Thomsen
29913c9011
Expose new pub outdated command ( #53251 )
2020-03-25 11:21:03 -07:00
Jenn Magder
b860a3912b
Increase xcdevice timeout to 2 seconds ( #53184 )
2020-03-25 11:14:22 -07:00
Jenn Magder
207efd4cee
Convert idevicescreenshot and upgradePbxProjWithFlutterAssets tests to testWithoutContext ( #53208 )
2020-03-25 11:14:00 -07:00
Zachary Anderson
52e4011a3a
[flutter_tool] Timeout the Azure bot detector http request ( #53217 )
2020-03-25 11:11:03 -07:00
Jenn Magder
b684041bb8
Revert "Let flutter attach find the service port by looking through old logs again ( #53153 )" ( #53282 )
...
This reverts commit 0c5ffdc9ef
.
2020-03-25 10:53:45 -07:00
xster
0c5ffdc9ef
Let flutter attach find the service port by looking through old logs again ( #53153 )
2020-03-24 23:26:01 -07:00
Leaf Petersen
6563b0de34
Revert "Replace uses of deprecated CastError with TypeError ( #53221 )" ( #53226 )
...
This reverts commit 6c7c2e372a
.
2020-03-24 23:02:41 -07:00
Leaf Petersen
6c7c2e372a
Replace uses of deprecated CastError with TypeError ( #53221 )
2020-03-24 22:11:46 -07:00
Jenn Magder
c93847d187
Remove IOSDeploy from globals, hoist to XCDevice constructor ( #53203 )
2020-03-24 16:50:35 -07:00
Jenn Magder
778c2ce923
Convert some code_signing_tests to testWithoutContext ( #53142 )
2020-03-24 15:30:35 -07:00
Jenn Magder
151c8db7dc
Remove dead vmservice.RPCError catch ( #53193 )
2020-03-24 13:35:29 -07:00
Jonah Williams
8e492fa845
[flutter_tools] fix type error with AppDomain current directory ( #53181 )
2020-03-24 12:58:40 -07:00
Jonah Williams
b5cd3ce854
[flutter_tools] test and catch more exception types in web runner ( #53183 )
2020-03-24 12:58:30 -07:00
Devon Carew
d6614dbafd
save and restore the chrome session local storage information ( #53030 )
...
save and restore the chrome session local storage information
2020-03-24 12:20:13 -07:00
Jenn Magder
c9323bdccd
Convert cocoapods_validator_test to testWithoutContext ( #53177 )
2020-03-24 11:34:57 -07:00
Jenn Magder
70c651b0a4
Move BuildSystem to globals ( #53139 )
2020-03-24 11:23:10 -07:00
Jenn Magder
0b321e6715
Remove IMobileDevice from globals, hoist to XCDevice constructor ( #53144 )
...
* Convert ios_device_logger_test.dart to testWithoutContext
* Remove IMobileDevice from globals, hoist to XCDevice constructor
2020-03-24 11:22:54 -07:00
Jenn Magder
404bb5a572
Convert analyze_test to testWithoutContext ( #53141 )
2020-03-24 11:22:34 -07:00
Lasse R.H. Nielsen
af5194dbfd
Prepare Flutter for SDK changes to runZoned
. ( #52953 )
...
The `runZoned` method deprecates the `onError` parameter.
Invocations using that parameter must use `runZonedGuarded` instead.
This prepares Flutter for the deprecation. The same places need to be migrated to using
`runZonedGuarded` when the SDK change has been ported to Flutter.
Then the deprecated member will be removed in a follow-up CL when the most important
packages have been migrated.
2020-03-24 08:34:17 -07:00
Jonah Williams
10571920c0
[flutter_tools] update to latest dwds API ( #52936 )
...
Should fix issues introduced in web-server device and allow loading org-dartlang-app URIs
2020-03-23 18:47:50 -07:00