- 15 Oct, 2020 1 commit
-
-
Alexandre Ardhuin authored
-
- 12 Oct, 2020 2 commits
-
-
Jonah Williams authored
For historical reasons, the flutter tool uploads dill files to paths based on the entrypoint URI. This isn't actually necessary, and the tool can use specific files : main.dart.incremental.dill for incremental dills, and main.dart.dill/main.dart.swap.dill for full dills. This allows hot restarting applications with an entrypoint outside of lib/ and simplifies the devFS code. Fixes #63243
-
Jonah Williams authored
HACKTOBERFEST
-
- 09 Oct, 2020 1 commit
-
-
Jonah Williams authored
If the vm of an attached device rejects a hot reload, pretty print the reason. Suggest a hot restart so that users are aware that they do not have to detach and rebuild. Also resets the last compilation time, so a subsequent restart would still apply the last change. Adds an integration test for the const field removal. Fixes #64027
-
- 05 Oct, 2020 1 commit
-
-
Jonah Williams authored
This functionality ultimately became the single widget reload optimization, which did not require a separate service protocol.
-
- 30 Sep, 2020 1 commit
-
-
Jenn Magder authored
-
- 29 Sep, 2020 1 commit
-
-
Ben Konyi authored
-
- 25 Sep, 2020 1 commit
-
-
Jonah Williams authored
ensure that the terminal handler checks if the service protocol is enabled before calling debug toggle brightness. Also removes globals from TerminalHander and test cases. Fixes #65477
-
- 23 Sep, 2020 2 commits
-
-
Jonah Williams authored
If a file scheme and one or more roots is provided, fall back to this mapping before the direct file path if the file path cannot be turned into a package URI. Use URI representation so that the transformation is resilient to the org-dartlang-app scheme used by the web builds. Fixes #66095 Fixes #66404
-
Jenn Magder authored
This reverts commit af6ba867.
-
- 22 Sep, 2020 1 commit
-
-
Jonah Williams authored
If a file scheme and one or more roots is provided, fall back to this mapping before the direct file path if the file path cannot be turned into a package URI. Fixes #66095
-
- 21 Sep, 2020 1 commit
-
-
Jonah Williams authored
The k toggle allows switching between canvaskit and html backend at runtime. unfortunately this causes hot restart to break, since the dart_sdk modules stores state at runtime. The recommendation will be to use cavaskit via dart-defines.
-
- 19 Sep, 2020 1 commit
-
-
Jonah Williams authored
-
- 16 Sep, 2020 1 commit
-
- 09 Sep, 2020 1 commit
-
-
Jonah Williams authored
* [flutter_tools] alternate the name of the dill file used for hot restart * switch alternative name to .swap
-
- 03 Sep, 2020 2 commits
-
-
Shi-Hao Hong authored
-
Jonah Williams authored
Currently taking a screenshot in release mode crashes and is also not documented as a supported command. Fix both of these and add test cases.
-
- 31 Aug, 2020 3 commits
-
-
Mehmet Fidanboylu authored
This reverts commit c8f234d3.
-
Shi-Hao Hong authored
* synthetic packages by default in gen_l10n tool * Refactor default path for synthetic package * Remove unused import * Code cleanup * Further improvements to help text * Refactor synthetic package path * Remove newlines * Test cleanup * clean up logic in inputs and outputs list function * Update l10n.yaml usage * only add option if value is non-null * Update stocks app as proof of concept for synthetic package usage * Address nits * print pubspec contents * add print statements * Do not allow null value for useSyntheticPackage * + * + * + * + * Cleanup * Add test * Fix text * Dont parse pubspec directly * Test using context * WIP: generate synthetic packages on pub get -- needs tests * Allow null value * Update null handling * Refactor to properly handle null case * Fix yamlMap condition * Fix yaml node for real * WIP: struggling to write tests * WIP - take absolute path as an option * Add tests * Use environment project directory for synthetic package generation pathway * Fix typo * Improve help text * Update defaults * Remove unauthorized path import * Fix pathing issues at synthetic package generation * Fix typo in test * Use path.join so projectDir matches up based on OS * Fix Windows pathing in test * Remove unnecessary replaceApp code for projectDir.path * Use globals.fs.currentDirectory.path in resident_runner_test.dart * Fix merge conflict * Add test to ensure that synthetic package is generated on pub get * Fix resident_runner_test.dart tests * Fix tests * Use package:file instead of dart:io * WIP - exploration * Remove synthetic package use from stocks example * Update integration test to not use synthetic packages * Remove trailing whitespace * flutter pub get runs synth package generation * Remove more print statements * Add license header * WIP - minimally working pub.get * Use own MockBuildSystem * Modify test and implementation to be a little cleaner * Fix flutter pub get invocation * Use synthetic packages in stocks app * Revert "Use synthetic packages in stocks app" This reverts commit 45bf24903c3d4a2a5fd5481d7d6bc36c4a348703. * Add environment and buildSystem params to flutter test * Address code review feedback * + * Isolate codegen into its own API * Fix imports * Slight refactor * Add one more test for no l10n.yaml file * Remove unneeded mock class and import in pub_get_test.dart * More code review feedback * Remove unnecessary imports * Remove `return await`s that I missed * use arrow functions instead
-
- 29 Aug, 2020 1 commit
-
-
Jonah Williams authored
This reverts commit eef0050d.
-
- 28 Aug, 2020 2 commits
-
- 27 Aug, 2020 1 commit
-
-
Ben Konyi authored
This change re-enables DDS and outputs the DDS URI in place of the VM service URI on the console. If --disable-dds is not provided, --host-vmservice-port will be used to determine the port for DDS rather than the host port for the VM service, which will instead be randomly chosen.
-
- 13 Aug, 2020 1 commit
-
-
Shi-Hao Hong authored
-
- 10 Aug, 2020 1 commit
-
-
Michael Klimushyn authored
-
- 05 Aug, 2020 1 commit
-
-
Jonah Williams authored
-
- 29 Jul, 2020 2 commits
-
-
Lau Ching Jun authored
- 24 Jul, 2020 1 commit
-
-
Jonah Williams authored
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.
-
- 21 Jul, 2020 2 commits
-
- 20 Jul, 2020 3 commits
-
-
Jonah Williams authored
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.
- 16 Jul, 2020 2 commits
-
- 14 Jul, 2020 2 commits
-
- 13 Jul, 2020 1 commit
-
-
Dan Field authored
* Optionally invert oversized images
-