1. 07 Nov, 2023 1 commit
  2. 06 Nov, 2023 1 commit
  3. 19 Oct, 2023 1 commit
  4. 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
  5. 28 Sep, 2023 1 commit
  6. 21 Sep, 2023 1 commit
  7. 23 Aug, 2023 1 commit
  8. 04 Aug, 2023 1 commit
  9. 13 Jul, 2023 1 commit
  10. 05 Jul, 2023 1 commit
  11. 16 Jun, 2023 1 commit
  12. 02 Jun, 2023 1 commit
  13. 16 May, 2023 1 commit
  14. 18 Apr, 2023 1 commit
    • Samuel Abada's avatar
      Remove double.fromEnvironment from dart-define doc (#124102) · 81c3bc56
      Samuel Abada authored
      Remove double.fromEnvironment from dart-define doc.
      
      Fixes #124665 
      
      The current dart-define docs reads:
      
      ```
      Additional key-value pairs that will be available as constants from the String.fromEnvironment, bool.fromEnvironment, int.fromEnvironment, and
      double.fromEnvironment constructors.
      ```
      while dart-define-from-file reads:
      
      ```
      The path of a json format file where flutter define a global constant pool. 
      Json entry will be available as constants from the String.fromEnvironment, bool.fromEnvironment, int.fromEnvironment, 
      and double.fromEnvironment constructors; the key and field are json values
      ```
      
      <img width="1440" alt="Screenshot 2023-04-03 at 19 31 34" src="https://user-images.githubusercontent.com/31275429/229720102-2020e1a9-c1fb-470b-89e6-ffb84096a51b.png">
      
      However, there is no fromEnvironment constructor for double. The aim of this PR is to address this by removing double.fromEnvironment from help docs as stated in
      81c3bc56
  15. 14 Apr, 2023 1 commit
  16. 12 Apr, 2023 1 commit
  17. 10 Apr, 2023 1 commit
  18. 06 Apr, 2023 4 commits
  19. 04 Apr, 2023 3 commits
  20. 03 Apr, 2023 1 commit
  21. 31 Mar, 2023 1 commit
  22. 30 Mar, 2023 1 commit
  23. 29 Mar, 2023 2 commits
  24. 24 Mar, 2023 1 commit
  25. 23 Mar, 2023 2 commits
  26. 22 Mar, 2023 1 commit
  27. 21 Mar, 2023 1 commit
  28. 20 Mar, 2023 1 commit
  29. 17 Mar, 2023 2 commits
  30. 13 Mar, 2023 2 commits