1. 09 Aug, 2023 1 commit
    • Victoria Ashworth's avatar
      New tooling for iOS 17 physical devices (#131865) · d631b262
      Victoria Ashworth authored
      This PR includes the following changes. These changes only apply to iOS 17 physical devices.
      
      | Command | Change Description  | Changes to User Experience |
      | ------------- | ------------- | ------------- |
      | `flutter run --release` | Uses `devicectl` to install and launch application in release mode.  | No change.  |
      | `flutter run`  | Uses Xcode via automation scripting to run application in debug and profile mode. | Xcode will be opened in the background. Errors/crashes may be caught in Xcode and therefore may not show in terminal. |
      | `flutter run --use-application-binary=xxxx` | Creates temporary empty Xcode project and use Xcode to run via automation scripting in debug and profile. | Xcode will be opened in the background. Errors/crashes may be caught in Xcode and therefore may not show in terminal.  |
      | `flutter install` | Uses `devicectl` to check installed apps, install app, uninstall app.  | No change.  |
      | `flutter screenshot` | Will return error.  | Will return error.  |
      
      Other changes include:
      * Using `devicectl` to get information about the device
      * Using `idevicesyslog` and Dart VM logging for device logs
      
      Note:
      Xcode automation scripting (used in `flutter run` for debug and profile) does not work in a headless (without a UI) interface. No known workaround.
      
      Fixes https://github.com/flutter/flutter/issues/128827, https://github.com/flutter/flutter/issues/128531.
      d631b262
  2. 15 Feb, 2023 2 commits
    • stuartmorgan's avatar
      Add Linux unit tests to plugin template (#120814) · e65dfba8
      stuartmorgan authored
      * Add Linux unit tests to plugin template
      
      Adds an example native unit test to the plugin template for Linux,
      matching the structure we use for our 1P plugin unit tests. Once these
      have been added for all platforms+languages, they will be documented on
      a new plugin development page to explain their use.
      
      While ideally we would adjust the engine APIs first to allow for testing
      the method call handler directly, it's unclear when we will have time
      for that work, and for a complex plugin most of the testing wouldn't be
      at that layer anyway, so having the structure in place with the
      limitations documented is still a significant improvement over having
      nothing in the template.
      
      Part of https://github.com/flutter/flutter/issues/82458
      
      * Add creation test
      
      * Add integration tests
      
      * Missing newlines
      
      * test owner
      
      * Typo
      e65dfba8
    • stuartmorgan's avatar
      Add Android unit tests to plugin template (#120720) · ef49f566
      stuartmorgan authored
      * Add Java tests
      
      * Add Kotlin
      
      * Add integration testing
      
      * Add cerate tests
      ef49f566
  3. 24 Jan, 2023 1 commit
    • stuartmorgan's avatar
      Add Windows unit tests to plugin template (#118638) · e3c51a2f
      stuartmorgan authored
      * Add Windows unit tests to plugin template
      
      Adds an example native unit test to the plugin template for Windows,
      matching the format we use for our 1P plugin example app unit tests.
      Once these have been added for all platforms+languages, they will be
      documented on a new plugin development page to explain their use.
      
      Since we don't appear to be running our current plugin e2e tests for
      Windows, this adds a new configuration to run them. I haven't
      `led`-tested this, so it may not work, but this will give a starting
      point for getting them running.
      
      Part of https://github.com/flutter/flutter/issues/82458
      
      * Minor fix
      
      * Add test owner
      
      * Fix typo
      
      * Fix test feature flag
      e3c51a2f
  4. 21 Dec, 2022 1 commit
  5. 15 Dec, 2022 1 commit
    • stuartmorgan's avatar
      Add an integration test to plugin template example (#117062) · f1d157bc
      stuartmorgan authored
      * Add an integration test to plugin template example
      
      Dart unit tests don't exercise host-side plugin code at all, so the
      example tests in the plugin template currently have very little
      meaningful coverage. This adds an integration test to the example app
      when creating a plugin, so that there's an example of how to actually
      test that a complete round-trip plugin call works.
      
      This is done as a separate template that's currently only used by the
      plugin template because I don't know what a good example for a
      non-plugin case would be that isn't largely just a duplicate of the
      widget tests. However, the integration test pre-includes conditionals
      around the parts that are plugin-specific so that it can more easily be
      expanded to other use cases later (e.g., in
      https://github.com/flutter/flutter/issues/68818).
      
      Part of https://github.com/flutter/flutter/issues/82458
      
      * Add integration test to expected dependencies of a plugin app
      
      * Test fixes
      
      * Make an explicit test case
      f1d157bc
  6. 18 Oct, 2022 1 commit
  7. 25 Jul, 2022 1 commit
  8. 15 May, 2022 1 commit
  9. 02 May, 2022 1 commit
  10. 26 Apr, 2022 1 commit
  11. 12 Apr, 2022 1 commit
  12. 07 Apr, 2022 1 commit
  13. 09 Mar, 2022 1 commit
  14. 04 Feb, 2022 1 commit
  15. 26 Jan, 2022 1 commit
  16. 04 Jan, 2022 2 commits
    • Zachary Anderson's avatar
      Revert "FFI plugins (#94101)" (#96122) · 65c6e882
      Zachary Anderson authored
      This reverts commit 5257f029.
      65c6e882
    • Daco Harkes's avatar
      FFI plugins (#94101) · 5257f029
      Daco Harkes authored
      * Building shared C source code as part of the native build for platforms Android, iOS, Linux desktop, MacOS desktop, and Windows desktop.
      * Sample code doing a synchronous FFI call.
      * Sample code doing a long running synchronous FFI call on a helper isolate.
      * Use of `package:ffigen` to generate the bindings.
      5257f029
  17. 15 Dec, 2021 1 commit
  18. 27 Aug, 2021 1 commit
  19. 09 Jul, 2021 1 commit
  20. 28 Jun, 2021 1 commit
  21. 10 Jun, 2021 1 commit
  22. 15 May, 2021 1 commit
  23. 10 May, 2021 1 commit
  24. 16 Mar, 2021 1 commit
  25. 05 Mar, 2021 1 commit
  26. 15 Jan, 2021 1 commit
  27. 07 Dec, 2020 1 commit
  28. 03 Dec, 2020 2 commits
  29. 24 Nov, 2020 1 commit
  30. 16 Nov, 2020 1 commit
  31. 03 Nov, 2020 1 commit
  32. 10 Oct, 2020 1 commit
  33. 30 Sep, 2020 1 commit
  34. 17 Sep, 2020 3 commits
  35. 15 Sep, 2020 1 commit