1. 23 Mar, 2024 1 commit
  2. 20 Mar, 2024 2 commits
  3. 16 Mar, 2024 2 commits
  4. 07 Feb, 2024 2 commits
  5. 25 Jan, 2024 1 commit
    • Andrew Kolos's avatar
      provide command to `FakeCommand::onRun` (#142206) · 295a9a20
      Andrew Kolos authored
      Part of work on [#101077](https://github.com/flutter/flutter/pull/141194). This is done as a separate PR to avoid a massive diff.
      
      ## Context
      1. The `FakeCommand` class accepts a list of patterns that's used to match a command given to its `FakeProcessManager`. Since `FakeCommand` can match a list of patterns, not just specifically strings, it can be used to match commands where the exact value of some arguments can't (easily) known ahead of time. For example, a part of the tool may invoke a command with an argument that is the path of a temporarily file that has a randomly-generated basename.
      2. The `FakeCommand` class provides on `onRun` parameter, which is a callback that is run when the `FakeProcessManager` runs a command that matches the `FakeCommand` in question.
      
      ## Issue
      In the event that a `FakeCommand` is constructed using patterns, the test code can't know the exact values used for arguments in the command. This PR proposes changing the type of `onRun` from `VoidCallback?` to `void Function(List<String>)?`. When run, the value `List<String>` parameter will be the full command that the `FakeCommand` matched.
      
      Example:
      ```dart
      FakeCommand(
        command: <Pattern>[
          artifacts.getArtifactPath(Artifact.engineDartBinary),
          'run',
          'vector_graphics_compiler',
          RegExp(r'--input=/.*\.temp'),
          RegExp(r'--output=/.*\.temp'),
        ],
        onRun: (List<String> command) {
          final outputPath = (() { 
            // code to parse `--output` from `command`
          })();
          testFileSystem.file(outputPath).createSync(recursive: true);
        },
      )
      ```
      295a9a20
  6. 03 Jan, 2024 1 commit
  7. 02 Jan, 2024 2 commits
  8. 18 Dec, 2023 1 commit
  9. 04 Dec, 2023 1 commit
  10. 30 Nov, 2023 1 commit
  11. 29 Nov, 2023 1 commit
  12. 20 Nov, 2023 1 commit
  13. 19 Oct, 2023 1 commit
  14. 18 Oct, 2023 3 commits
  15. 21 Sep, 2023 1 commit
  16. 17 Jul, 2023 1 commit
  17. 04 May, 2023 1 commit
  18. 22 Mar, 2023 1 commit
  19. 20 Mar, 2023 1 commit
  20. 17 Mar, 2023 2 commits
  21. 09 Mar, 2023 1 commit
  22. 15 Dec, 2022 1 commit
    • hellohuanlin's avatar
      [tools]Build IPA validation UI Polish (#116744) · 0916375f
      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
      0916375f
  23. 02 Dec, 2022 2 commits
  24. 29 Nov, 2022 1 commit
  25. 16 Nov, 2022 1 commit
    • hellohuanlin's avatar
      [tools]build ipa validate template icon files (#114841) · dcae4247
      hellohuanlin authored
      * [tools]build ipa validate template icon files
      
      * use the same box for both validations, and added some unit test, and some nits
      
      * add unit test for templateImageDirectory
      
      * use fs.path.join intead of raw path
      
      * use the correct filesystem
      
      * lint
      
      * use absolute path for flutter_template_images
      
      * fix rebase
      
      * update indentation
      dcae4247
  26. 08 Nov, 2022 1 commit
  27. 03 Nov, 2022 3 commits
  28. 04 Oct, 2022 1 commit
  29. 06 Sep, 2022 1 commit
  30. 11 Aug, 2022 1 commit