1. 12 Sep, 2023 1 commit
  2. 21 Jun, 2023 1 commit
  3. 23 May, 2023 1 commit
    • Ian Hickson's avatar
      Give channel descriptions in `flutter channel`, use branch instead of upstream... · 9c7a9e77
      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. :-)
      Unverified
      9c7a9e77
  4. 20 May, 2023 1 commit
  5. 11 May, 2023 2 commits
  6. 05 Apr, 2023 1 commit
  7. 04 Apr, 2023 1 commit
  8. 03 Apr, 2023 1 commit
  9. 29 Mar, 2023 1 commit
  10. 28 Feb, 2023 1 commit
  11. 27 Feb, 2023 2 commits
  12. 17 Feb, 2023 1 commit
  13. 13 Feb, 2023 1 commit
  14. 02 Sep, 2022 1 commit
  15. 14 Apr, 2022 1 commit
  16. 15 Feb, 2022 1 commit
    • Ben Konyi's avatar
      Update flutter_tools to look for new VM service message (#97683) · 2a2f9731
      Ben Konyi authored
      * Update flutter_tools to look for new VM service message
      
      The Dart SDK will soon move away from the current Observatory message:
      
      "Observatory listening on ..."
      
      To a new message that no longer references Observatory:
      
      "Dart VM Service listening on ..."
      
      This change updates all tests with mocks to check for the new message
      and also adds support for the new message in ProtocolDiscovery.
      
      See https://github.com/dart-lang/sdk/issues/46756
      
      * Fix some parsing locations
      
      * Fix analysis failures
      
      * Update message
      
      * Remove extra comment
      
      * Update message
      
      * Add globals prefix
      Unverified
      2a2f9731
  17. 06 Jan, 2022 1 commit
  18. 29 Dec, 2021 1 commit
  19. 23 Dec, 2021 1 commit
  20. 15 Dec, 2021 1 commit
  21. 12 Nov, 2021 1 commit
  22. 11 Nov, 2021 1 commit
  23. 02 Nov, 2021 1 commit
  24. 01 Nov, 2021 1 commit
  25. 30 Oct, 2021 1 commit
  26. 19 Oct, 2021 1 commit
  27. 15 Oct, 2021 2 commits
  28. 12 Oct, 2021 1 commit
  29. 08 Oct, 2021 1 commit
  30. 26 Aug, 2021 1 commit
  31. 25 Jun, 2021 1 commit
  32. 04 Jun, 2021 1 commit
  33. 03 Jun, 2021 1 commit
  34. 24 May, 2021 1 commit
  35. 22 May, 2021 1 commit
  36. 18 Apr, 2021 1 commit
  37. 17 Apr, 2021 1 commit