1. 23 Jan, 2024 1 commit
  2. 18 Jan, 2024 2 commits
    • auto-submit[bot]'s avatar
      Reverts "Enable native compilation for windows-arm64 " (#141809) · 1901d6fa
      auto-submit[bot] authored
      Reverts flutter/flutter#137618
      Initiated by: Jasguerrero
      This change reverts the following previous change:
      Original Description:
      It's now possible to natively compile a flutter app for
      windows-arm64. Cross-compilation is not yet implemented.
      
      Uses arm64 artifacts now available for Dart/Flutter.
      Platform detection is based on Abi class, provided by Dart. Depending if
      Dart is an arm64 or x64 binary, the Abi is set accordingly.
      Initial bootstrap of dart artifacts (update_dart_sdk.ps1) is checking
      PROCESSOR_ARCHITECTURE environment variable, which is the way to detect
      host architecture on Windows.
      
      This is available only for master channel (on other channels, it
      fallbacks to windows-x64).
      
      On windows-x64, it produces an x64 app. On windows-arm64, it produces an
      arm64 app.
      1901d6fa
    • Pierrick Bouvier's avatar
      Enable native compilation for windows-arm64 (#137618) · 54055920
      Pierrick Bouvier authored
      It's now possible to natively compile a flutter app for
      windows-arm64. Cross-compilation is not yet implemented.
      
      Uses arm64 artifacts now available for Dart/Flutter.
      Platform detection is based on Abi class, provided by Dart. Depending if
      Dart is an arm64 or x64 binary, the Abi is set accordingly.
      Initial bootstrap of dart artifacts (update_dart_sdk.ps1) is checking
      PROCESSOR_ARCHITECTURE environment variable, which is the way to detect
      host architecture on Windows.
      
      This is available only for master channel (on other channels, it
      fallbacks to windows-x64).
      
      On windows-x64, it produces an x64 app. On windows-arm64, it produces an
      arm64 app.
      54055920
  3. 12 Jan, 2024 1 commit
  4. 02 Jan, 2024 1 commit
  5. 07 Dec, 2023 1 commit
  6. 04 Dec, 2023 1 commit
  7. 30 Nov, 2023 1 commit
  8. 29 Nov, 2023 1 commit
  9. 22 Nov, 2023 1 commit
  10. 16 Nov, 2023 1 commit
  11. 10 Nov, 2023 1 commit
    • Elias Yishak's avatar
      `CommandResultEvent` migrated (#138165) · 7a278ae4
      Elias Yishak authored
      Related to tracker issue:
      - https://github.com/flutter/flutter/issues/128251
      
      This event was only called from one file (`flutter_command.dart`). With the previous implementation, we actually sent 2 events, one for the result of the `commandPath` and another containing the `maxRss` value from `ProcessInfo`.
      
      I have consolidated this down to just one event and used a function to safely get the `maxRss` value, or return null when if there was an error getting that integer value
      7a278ae4
  12. 07 Nov, 2023 1 commit
  13. 06 Nov, 2023 1 commit
  14. 26 Oct, 2023 1 commit
  15. 19 Oct, 2023 1 commit
  16. 17 Oct, 2023 2 commits
    • Andrew Kolos's avatar
      clean up `--dart-define-from-file` option tests (#135980) · cdc40b52
      Andrew Kolos authored
      Fixes https://github.com/flutter/flutter/issues/134279.
      
      Changes:
      * Moves all tests of `--dart-define-from-file` behavior from `build_bundle_test.dart` and `assemble_test.dart` to `flutter_command_test.dart`.
      * Deletes a duplicate test of malformed JSON detection behavior.
      * Renames the `useDartDefineFromFileOption` method of `FlutterCommand` to `_usesDartDefineFromFileOption`. This 1) makes the name more consistent with the other `uses*Option` methods and 2) hides the method since it is not used outside of the file.
      * Renames several tests to better articulate what is under test and what the expected result is.
      * Adds a test for the case where a `.env` file with a malformed line is provided to `--dart-define-from-file`.
      cdc40b52
    • Aran Donohue's avatar
      Support --web-header option for flutter run (#136297) · 48eee14f
      Aran Donohue authored
      Adds support for a new --web-header option to flutter run.
      
      Creates a workaround for https://github.com/flutter/flutter/issues/127902
      
      This PR allows adding additional headers for the flutter run web server. This is useful to add headers like Cross-Origin-Embedder-Policy and Cross-Origin-Opener-Policy without the use of a proxy server. These headers are required enable advanced web features. This approach provides flexibility to the developer to make use of the feature as they see fit and is backward-compatible. One tradeoff is that it increases the surface area to support for future changes to the flutter web server.
      
      https://github.com/flutter/flutter/issues/127902 is not fully addressed by this change. The solution for that task will be more opinionated. This PR creates a general-purpose workaround for anyone who needs a solution sooner while the bigger solution is developed.
      48eee14f
  17. 28 Sep, 2023 1 commit
  18. 21 Sep, 2023 1 commit
  19. 12 Sep, 2023 1 commit
  20. 23 Aug, 2023 1 commit
  21. 22 Aug, 2023 1 commit
  22. 17 Aug, 2023 1 commit
  23. 10 Aug, 2023 1 commit
  24. 04 Aug, 2023 1 commit
  25. 13 Jul, 2023 1 commit
  26. 05 Jul, 2023 1 commit
  27. 22 Jun, 2023 1 commit
  28. 16 Jun, 2023 1 commit
  29. 15 Jun, 2023 1 commit
  30. 02 Jun, 2023 1 commit
  31. 22 May, 2023 1 commit
  32. 16 May, 2023 1 commit
  33. 08 May, 2023 2 commits
    • Loïc Sharma's avatar
      [Tool] Output help on 'flutter pub' (#126211) · 472a0ab3
      Loïc Sharma authored
      This change makes `flutter pub` show the help usage:
      
      ```
      PS > flutter pub
      Commands for managing Flutter packages.
      
      Global options:
      -h, --help                  Print this usage information.
      -v, --verbose               Noisy logging, including all shell commands executed.
                                  If used with "--help", shows hidden options. If used with "flutter
                                  doctor", shows additional diagnostic information. (Use "-vv" to force
                                  verbose logging in those cases.)
      -d, --device-id             Target device id or name (prefixes allowed).
          --version               Reports the version of this tool.
          --suppress-analytics    Suppress analytics reporting for the current CLI invocation.
          --disable-telemetry     Disable telemetry reporting when this command runs.
      
      Usage: flutter pub <subcommand> [arguments]
      -h, --help    Print this usage information.
      
      Available subcommands:
        add         Add a dependency to pubspec.yaml.
        cache       Work with the Pub system cache.
        deps        Print package dependencies.
        downgrade   Downgrade packages in a Flutter project.
        get         Get the current package's dependencies.
        global      Work with Pub global packages.
        login       Log into pub.dev.
        logout      Log out of pub.dev.
        outdated    Analyze dependencies to find which ones can be upgraded.
        pub         Pass the remaining arguments to Dart's "pub" tool.
        publish     Publish the current package to pub.dartlang.org.
        remove      Removes a dependency from the current package.
        run         Run an executable from a package.
        test        Run the "test" package.
        token       Manage authentication tokens for hosted pub repositories.
        upgrade     Upgrade the current package's dependencies to latest versions.
        uploader    Manage uploaders for a package on pub.dev.
        version     Print Pub version.
      
      Run "flutter help" to see global options.
      ```
      
      Previously it showed an error message:
      
      ```
      PS > flutter pub
      Missing subcommand for "flutter pub".
      
      Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
      ```
      
      Addresses https://github.com/flutter/flutter/issues/110025
      472a0ab3
    • Elias Yishak's avatar
      Clearer text about what happens with `--disable-telemetry` + enable-telemetry command (#125995) · 0d587527
      Elias Yishak authored
      Fixes:
      - https://github.com/flutter/flutter/issues/124411
      
      This PR is cleaning up the `--disable-telemetry` help message to make it clear that opting out will opt out of all telemetry collection for flutter and dart commands. It is also adding the opposite flag `--enable-telemetry` which will enable telemetry collection
      0d587527
  34. 19 Apr, 2023 4 commits