- 23 May, 2023 1 commit
-
-
Ian Hickson authored
Give channel descriptions in `flutter channel`, use branch instead of upstream for channel name (#126936) ## How we determine the channel name Historically, we used the current branch's upstream to figure out the current channel name. I have no idea why. I traced it back to https://github.com/flutter/flutter/pull/446/files where @abarth implement this and I reviewed that PR and left no comment on it at the time. I think this is confusing. You can be on a branch and it tells you that your channel is different. That seems weird. This PR changes the logic to uses the current branch as the channel name. ## How we display channels The main reason this PR exists is to add channel descriptions to the `flutter channel` list: ``` ianh@burmese:~/dev/flutter/packages/flutter_tools$ flutter channel Flutter channels: master (tip of tree, for contributors) main (tip of tree, follows master channel) beta (updated monthly, recommended for experienced users) stable (updated quarterly, for new users and for production app releases) * foo_bar Currently not on an official channel. ianh@burmese:~/dev/flutter/packages/flutter_tools$ ``` ## Other changes I made a few other changes while I was at it: * If you're not on an official channel, we used to imply `--show-all`, but now we don't, we just show the official channels plus yours. This avoids flooding the screen in the case the user is on a weird channel and just wants to know what channel they're on. * I made the tool more consistent about how it handles unofficial branches. Now it's always `[user branch]`. * I slightly adjusted how unknown versions are rendered so it's clearer the version is unknown rather than just having the word "Unknown" floating in the output without context. * Simplified some of the code. * Made some of the tests more strict (checking all output rather than just some aspects of it). * Changed the MockFlutterVersion to implement the FlutterVersion API more strictly. * I made sure we escape the output to `.metadata` to avoid potential injection bugs (previously we just inlined the version and channel name verbatim with no escaping, which is super sketchy). * Tweaked the help text for the `downgrade` command to be clearer. * Removed some misleading text in some error messages. * Made the `.metadata` generator consistent with the template file. * Removed some obsolete code to do with the `dev` branch. ## Reviewer notes I'm worried that there are implications to some of these changes that I am not aware of, so please don't assume I know what I'm doing when reviewing this code. :-)
-
- 15 Dec, 2022 1 commit
-
-
hellohuanlin authored
* [tools]some ui polish for build ipa validation * do not print out a few success validations * rename installed type to success for more general usage * forgot nit after reverting custom validation types and re-use doctor types
-
- 01 Dec, 2022 1 commit
-
-
Jenn Magder authored
* Suggest Rosetta when x64 binary cannot be run * validator * Adjust error message
-
- 29 Nov, 2022 1 commit
-
-
Christopher Fujino authored
* normalize windows file path cases in flutter validator * fix * make comparison more accurate by checking .startsWith() rather than .contains() * fix method name * call path.canonicalize * fix
-
- 20 Oct, 2022 1 commit
-
-
Christopher Fujino authored
-
- 26 Jul, 2022 1 commit
-
-
Anurag Roy authored
-
- 20 Jun, 2022 1 commit
-
-
Anurag Roy authored
-
- 24 May, 2022 1 commit
-
-
Jenn Magder authored
-
- 27 Apr, 2022 1 commit
-
-
Alexandre Ardhuin authored
-
- 10 Jan, 2022 1 commit
-
-
Zachary Anderson authored
-
- 06 Jan, 2022 1 commit
-
-
crisboarna authored
-
- 11 Nov, 2021 1 commit
-
-
Kenzie (Schmoll) Davisson authored
* Add DevTools version to `flutter --version` output. * review comments * fix test * add explanatory comment * dummy commit to kick bots Co-authored-by:
Christopher Fujino <christopherfujino@gmail.com>
-
- 08 Oct, 2021 3 commits
-
-
Ian Hickson authored
-
Zachary Anderson authored
This reverts commit 5fd259be.
-
Ian Hickson authored
-
- 10 Jun, 2021 1 commit
-
-
Alexandre Ardhuin authored
-
- 09 Jun, 2021 1 commit
-
-
Alexandre Ardhuin authored
-
- 27 Apr, 2021 1 commit
-
-
Jonah Williams authored
-
- 15 Apr, 2021 1 commit
-
-
Jenn Magder authored
-
- 13 Apr, 2021 1 commit
-
-
Anurag Roy authored
-
- 08 Apr, 2021 1 commit
-
-
Jenn Magder authored
-
- 07 Apr, 2021 1 commit
-
-
Jenn Magder authored
-
- 05 Apr, 2021 1 commit
-
-
Jenn Magder authored
-
- 05 Mar, 2021 1 commit
-
-
Jonah Williams authored
[flutter_tools] replace MockFlutterVersion usage with fake where possible, move from context (#77390)
-
- 27 Jan, 2021 1 commit
-
-
Jonah Williams authored
* opt out the flutter tool * oops EOF * fix import * Update tool_backend.dart * Update daemon_client.dart * fix more
-
- 06 Oct, 2020 1 commit
-
-
Jonah Williams authored
[flutter_tools] remove globals from FlutterValidator, add documentation and move tests to new file (#67234) Remove globals from the flutter validator class, and refactor the tests into a separate file. Applies some other cleanup like adding doc comments, and making the doctor validator work like it is documented to work - removing the gen_snapshot check if the artifact is not downloaded instead of downloading all android artifacts. #47161
-