- 23 Jan, 2023 1 commit
-
-
Michael Goderbauer authored
* dart fix --apply * manual fixes * fix after merge conflicts * review
-
- 12 Jan, 2023 1 commit
-
-
Andrew Kolos authored
* reduce pub output from flutter create * fix fake Pub implementations * fix tests * Update pub.dart * replace enum with simpler boolean * fix tests * Revert "fix tests" This reverts commit 8a3182d3b95d4f2bf337343cdb76e88c2f428ca8. * Revert "replace enum with simpler boolean" This reverts commit 445dbc443db4eb5ce284f76749f60e81208b8783. * go back to using an enum
-
- 10 Jan, 2023 1 commit
-
-
Sigurd Meldgaard authored
* Align `flutter pub get/upgrade/add/remove/downgrade` * Add final . to command description * Remove trailing whitespace * Don't print message that command is being run * Update expectations * Use relative path * Remove duplicated line * Improve function dartdoc
-
- 15 Dec, 2022 1 commit
-
-
Jenn Magder authored
-
- 06 Dec, 2022 1 commit
-
-
file:///Jackson Gardner authored
* Use file:/// style uris when passing platform to the compiler. * License header. * Use BufferLogger. * Don't unadvertently convert strings to regexes for matching purposes. * Fix formatting. * More formatting.
-
- 08 Nov, 2022 1 commit
-
-
Jesús S Guerrero authored
* update flutter build command * update tests * fix analyze suggestions
-
- 04 Oct, 2022 1 commit
-
-
Jenn Magder authored
-
- 23 Sep, 2022 1 commit
-
-
Lau Ching Jun authored
Refactor `DeviceManager.findTargetDevices()` and `FlutterCommand.findAllTargetDevices()`, and add a flag to not show prompt. (#112223)
-
- 08 Sep, 2022 1 commit
-
-
Sigurd Meldgaard authored
-
- 02 Sep, 2022 1 commit
-
-
Pierre-Louis authored
-
- 29 Aug, 2022 2 commits
-
-
Zachary Anderson authored
This reverts commit 3802eb62.
-
Sigurd Meldgaard authored
-
- 18 Aug, 2022 1 commit
-
-
jensjoha authored
-
- 26 Jul, 2022 1 commit
-
-
Christopher Fujino authored
-
- 22 Jul, 2022 1 commit
-
-
Rich Kadel authored
Fuchsia will soon remove all support for Component Framework version 1 components (recognized by component manifests ending in `.cmx`). Notably, some of the `flutter` tool commands for Fuchsia devices-- notably, but not limited to, those related to CFv1--are outdated, and either do not work today or soon won't work. This PR removes the outdated components and commands, replacing some with the newer version, or simply removing the non-working features, in some cases.
-
- 18 Jul, 2022 1 commit
-
-
Alexandre Ardhuin authored
-
- 16 Jun, 2022 2 commits
-
-
Jonah Williams authored
-
Jesús S Guerrero authored
-
- 15 Jun, 2022 1 commit
-
-
Jonah Williams authored
-
- 09 Jun, 2022 1 commit
-
-
Christopher Fujino authored
-
- 25 May, 2022 2 commits
-
-
Michael Goderbauer authored
-
Jenn Magder authored
-
- 24 May, 2022 3 commits
-
-
Jenn Magder authored
-
Chris Bracken authored
Adds a bit more clarifying documentation to the implementation of the outputFollowsExit case, and adds tests that verify the behaviour of stderr, stdout of processes launched via FakeProcessManager. Specifically: * Verifies that stderr, stdout are not emitted immediately after process exit if outputFollowsExit is true. They must be emitted at least one turn through the event loop later. * Verifies that ProcessResult.stderr, stdout have the type documented according to the encoding passted to Process.run/runSync: * List<int> if null is passed as the encoding. * String (in the default system encoding) if no encoding is specified. * String (in the specified encoding) if an encoding is specified. This is additional testing relating to refactoring landed in: https://github.com/flutter/flutter/pull/103947 Issue: https://github.com/flutter/flutter/issues/102451
-
Jenn Magder authored
-
- 17 May, 2022 2 commits
-
-
Chris Bracken authored
Because this class has some subtle behaviour with regards to control of exit timing and when and how it streams data to stderr and stdout, it's worth adding unit tests for this class directly, as well as (in a followup patch) for FakeProcessManager. This is additional testing relating to refactoring landed in: https://github.com/flutter/flutter/pull/103947 Issue: https://github.com/flutter/flutter/issues/102451
-
Chris Bracken authored
`FakeProcessManager` is a test-oriented implementation of `ProcessManager` that simulates launching processes and returning `ProcessResult` objects whose `exitCode`, `stdout`, `stderr` can be used to write platform-portable, hermetic tests that don't rely on actually launching processes from executables on disk. Its `run` and `runSync` methods provide asynchronous and synchronous variants of this functionality. Previously, the behaviour of `run` and `runSync` were inconsistent with regards to the treatment of the `stdoutEncoding` (similarly, `stderrEncoding`) parameters: `run`: * if the encoding was null, `ProcessResult.stdout` was returned as a String in UTF-8 encoding. This was incorrect. The behaviour as specified in `ProcessResult.stdout` is that in this case, a raw `List<int>` should be returned. * If the encoding was unspecified, `ProcessResult.stdout` was returned as a `String` in the `io.systemEncoding` encoding. This was correct. * If the encoding was non-null, `ProcessResult.stdout` was returned as a `String` in the specified encoding. This was correct. `runSync`: * if the encoding was null, `ProcessResult.stdout` was returned as a `List<int>` in UTF-8 encoding. This was incorrect. The behaviour as specified in `ProcessResult.stdout` is that in this case, a raw `List<int>` should be returned. * If the encoding was unspecified, `ProcessResult.stdout` was returned as `List<int>` in UTF-8 encoding. This was incorrect. The behaviour as specified in `ProcessResult.stdout` is that in this case, a String a `String` in the `io.systemEncoding` encoding should be returned. * if the encoding was non-null, `ProcessResult.stdout` was returned as a `String` in unknown (but probably UTF-8) encoding. This was incorrect. The behaviour as specified in `ProcessResult.stdout` is that in this case, a `String` in the specified encoding should be returned. `_FakeProcess`, from which we obtain the fake stdout and stderr values now holds these fields as raw `List<int>` of bytes rather than as `String`s. It is up to the user to supply values that can be decoded with the encoding passed to `run`/`runAsync`. `run` and `runAsync` have been updated to set stdout (likewise, stderr) as specified in the `ProcessResult` documentation. This is pre-factoring for #102451, in which the tool throws an exception when processing the JSON output from stdout of the `vswhere.exe` tool, whose output was found to include the `U+FFFD` Unicode replacement character during UTF-8 decoding, which triggers a `toolExit` exception when decoded using our [Utf8Decoder][decoder] configured with `reportErrors` = true. Because `FakeProcessManager.runAsync` did not previously invoke `utf8.decode` on its output (behaviour which differs from the non-fake implementation), it was impossible to write tests to verify the fix. Ref: https://api.flutter.dev/flutter/dart-io/ProcessResult/stdout.html Issue: https://github.com/flutter/flutter/issues/102451 [decoder]: https://github.com/flutter/flutter/blob/fd312f1ccff909fde28d2247a489bf210bbc6c48/packages/flutter_tools/lib/src/convert.dart#L51-L60
-
- 07 May, 2022 1 commit
-
-
Jenn Magder authored
-
- 27 Apr, 2022 1 commit
-
-
Alexandre Ardhuin authored
-
- 26 Apr, 2022 1 commit
-
-
Jonah Williams authored
-
- 08 Apr, 2022 1 commit
-
-
Jesús S Guerrero authored
Co-authored-by:
Christopher Fujino <christopherfujino@gmail.com>
-
- 31 Mar, 2022 1 commit
-
-
Michael Goderbauer authored
-
- 17 Mar, 2022 1 commit
-
-
Brian Quinlan authored
-
- 09 Mar, 2022 1 commit
-
-
Jenn Magder authored
-
- 02 Mar, 2022 1 commit
-
-
Jenn Magder authored
-
- 25 Feb, 2022 1 commit
-
-
Danny Tuppeny authored
-
- 11 Feb, 2022 1 commit
-
-
Brian Quinlan authored
-
- 02 Feb, 2022 2 commits
-
-
Lau Ching Jun authored
-
Jenn Magder authored
-
- 26 Jan, 2022 1 commit
-
-
Daco Harkes authored
-