1. 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
  2. 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
  3. 21 Dec, 2022 1 commit
  4. 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
  5. 18 Oct, 2022 1 commit
  6. 25 Jul, 2022 1 commit
  7. 15 May, 2022 1 commit
  8. 02 May, 2022 1 commit
  9. 26 Apr, 2022 1 commit
  10. 12 Apr, 2022 1 commit
  11. 07 Apr, 2022 1 commit
  12. 09 Mar, 2022 1 commit
  13. 04 Feb, 2022 1 commit
  14. 26 Jan, 2022 1 commit
  15. 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
  16. 15 Dec, 2021 1 commit
  17. 27 Aug, 2021 1 commit
  18. 09 Jul, 2021 1 commit
  19. 28 Jun, 2021 1 commit
  20. 10 Jun, 2021 1 commit
  21. 15 May, 2021 1 commit
  22. 10 May, 2021 1 commit
  23. 16 Mar, 2021 1 commit
  24. 05 Mar, 2021 1 commit
  25. 15 Jan, 2021 1 commit
  26. 07 Dec, 2020 1 commit
  27. 03 Dec, 2020 2 commits
  28. 24 Nov, 2020 1 commit
  29. 16 Nov, 2020 1 commit
  30. 03 Nov, 2020 1 commit
  31. 10 Oct, 2020 1 commit
  32. 30 Sep, 2020 1 commit
  33. 17 Sep, 2020 3 commits
  34. 15 Sep, 2020 1 commit
  35. 06 Jul, 2020 1 commit
    • stuartmorgan's avatar
      Switch Windows to CMake (#60629) · 4b120501
      stuartmorgan authored
      * First pass at CMake files; untested
      
      * First pass of adding CMake generation logic on Windows
      
      * Misc fixes
      
      * Get bundling working, start incoprorating CMake build into tool
      
      * Fix debug, exe name.
      
      * Add resources
      
      * Move cmake.dart
      
      * Rip out all the vcxproj/solution plumbing
      
      * Fix plugin cmake generation
      
      * Build with cmake rather than calling VS directly
      
      * Adjust Windows plugin template to match standard header directory structure
      
      * Pass config selection when building
      
      * Partially fix multi-config handling
      
      * Rev template version
      
      * Share the CMake generation instead of splitting it out
      
      * VS build/run cycle works, with slightly awkward requirement to always build all
      
      * Update manifest
      
      * Plugin template fixes
      
      * Minor adjustments
      
      * Build install as part of build command, instead of separately
      
      * Test cleanup
      
      * Update Linux test for adjusted generated CMake approach
      
      * Plugin test typo fix
      
      * Add missing stub file for project test
      
      * Add a constant for VS generator
      4b120501