1. 19 Aug, 2023 1 commit
  2. 08 Jun, 2023 1 commit
    • Tess Strickland's avatar
      Use `--target-os` for appropriate precompiled targets. (#127567) · 840d7dd6
      Tess Strickland authored
      This PR adds uses of the `--target-os` command line argument when
      building kernel sources for precompiled applications for supported
      target operating systems. The Dart CFE then:
      
      * treats `Platform.operatingSystem` as if it were defined as the
      constant string provided as an argument to the flag,
      * treats `Platform.pathSeparator` as the appropriate separator for that
      operating system,
      * attempts to constant evaluate the initializer for any field annotated
      with the `vm:platform-const` pragma, and
      * attempts to constant evaluate all calls to a method annotated with the
      `vm:platform-const` pragma.
      
      The `vm:platform-const` pragma can appear in either library or user
      code. If the attempt to constant evaluate the field initializer or
      method call fails, then an error is thrown at kernel compilation time.
      
      Addresses #14233.
      
      The tests in
      `packages/flutter_tools/test/general.shard/build_system/targets/common_test.dart`
      have been adjusted properly to account for the new passed command line
      arguments.
      840d7dd6
  3. 06 Jun, 2023 1 commit
  4. 31 May, 2023 1 commit
  5. 26 May, 2023 1 commit
  6. 23 May, 2023 1 commit
  7. 05 May, 2023 3 commits
  8. 04 May, 2023 2 commits
  9. 03 May, 2023 1 commit
  10. 26 Apr, 2023 1 commit
    • Tae Hyung Kim's avatar
      Refactor "gen-l10n" command to use same code path when "l10n.yaml" is present... · 5c44b1df
      Tae Hyung Kim authored
      Refactor "gen-l10n" command to use same code path when "l10n.yaml" is present or not present (#125429)
      
      I think this is a long needed change to the `gen-l10n` command.
      Essentially, the arguments to `flutter gen-l10n` can be provided by two
      different methods: via command line arguments or via the `l10n.yaml`
      file. The existence of a `l10n.yaml` file causes the latter approach to
      take precedence.
      
      However, currently, there's several differences in how the two
      approaches are handled, and most of the default arguments are all over
      the place, causing unexpected issues such as #120457 or #120023.
      
      This PR refactors the command so that
      * `LocalizationOptions` are more consistent with the actual argument
      names/yaml options.
      * All default values are determined in `LocalizationOptions`'s
      constructor (or in `argParser.addOption(...)` in the case a boolean
      value needs to be explicitly true).
      * New `parseLocalizationsOptionsFromCommand` function to parse
      arguments.
      * Parse `LocalizationOptions` at the beginning of `runCommand()` and
      pass it to `generateLocalizations`.
      
      Fixes #120023.
      5c44b1df
  11. 14 Apr, 2023 3 commits
  12. 11 Apr, 2023 1 commit
  13. 10 Apr, 2023 1 commit
  14. 06 Apr, 2023 1 commit
  15. 04 Apr, 2023 1 commit
  16. 30 Mar, 2023 1 commit
  17. 28 Mar, 2023 1 commit
  18. 23 Mar, 2023 1 commit
  19. 22 Mar, 2023 1 commit
  20. 21 Mar, 2023 1 commit
  21. 16 Mar, 2023 1 commit
  22. 11 Mar, 2023 1 commit
  23. 08 Mar, 2023 1 commit
  24. 01 Mar, 2023 1 commit
  25. 17 Feb, 2023 1 commit
  26. 15 Feb, 2023 1 commit
  27. 10 Feb, 2023 1 commit
  28. 09 Feb, 2023 1 commit
  29. 07 Feb, 2023 1 commit
  30. 02 Feb, 2023 1 commit
  31. 27 Jan, 2023 1 commit
  32. 23 Jan, 2023 1 commit
  33. 12 Jan, 2023 1 commit
  34. 10 Jan, 2023 1 commit
  35. 19 Dec, 2022 1 commit
    • Jackson Gardner's avatar
      Support `flutter build web --wasm` (#117075) · 9f2c5d8e
      Jackson Gardner authored
      * Work in progress.
      
      * Some fixes to the command line.
      
      * Bootstrapping works.
      
      * Change kickoff order to maximize concurrency.
      
      * Fix analyzer errors and formatting issues.
      
      * Fix doc comment.
      
      * Added unit tests for some of the web targets.
      
      * Format issue.
      
      * Add an integration test that builds an app to wasm.
      
      * Add a todo for depfiles.
      
      * Formatting.
      
      * Apparently the license header needs to say 2014.
      
      * `file://` URIs confuse dart2wasm on Windows. Just use absolute paths.
      
      * Update unit tests to match new path passing.
      
      * Have a distinct build directory for wasm, and fixes for some upstream changes.
      9f2c5d8e