[image_picker_macos] macOS native image picker by EchoEllet · Pull Request #8079 · flutter/packages

EchoEllet

EchoEllet

EchoEllet

- Updates the `image_picke_macos`'s `pubspec.yaml` to add `pigeon` as dev dependency and add the `pluginClass` for Swift native code
- Adds the `ImagePickerPlugin` in `image_picker_macos/macos` for native macOS plugin with support for SPM and CocoaPods with basic native unit tests
- Uses the steps in https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-xctests-or-xcuitests to enable `XCTests` and `XCUITests`
- Updates the `image_picker_macos_test.dart` to fix the test failure and ensure PHPicker is disabled by default
- Adds a new button in the example to enable/disable PHPicker macOS implementation and enable the PHPicker by default
- Updates the `README.md` of `image_picker_macos` and `image_picker` to document the usage
- Removes two TODOs in `image_picker_macos.dart` as they are done with this PR
- Adds TODOs that need to be done before merging the PR, some of them are questions, will be removed
- Implement the getMultiImageWithOptions() since the getMultiImage is deprecated, updates getMultiImage() to delegate to getMultiImageWithOptions() since getMultiImageWithOptions() is required to access the limit property
- Updates the Dart unit tests of image_picker_macos
- Adds simple integration test for the example
- Updates `pubspec.yaml` and `CHANGELOG.md` of `image_picker` and `image_picker_macos`

Signed-off-by: Ellet <echo.ellet@gmail.com>
Signed-off-by: Ellet <echo.ellet@gmail.com>
Signed-off-by: Ellet <echo.ellet@gmail.com>
Signed-off-by: Ellet <echo.ellet@gmail.com>
…icker_macos plugin

Signed-off-by: Ellet <echo.ellet@gmail.com>
…nit test for consistency

Signed-off-by: Ellet <echo.ellet@gmail.com>
Signed-off-by: Ellet <echo.ellet@gmail.com>
Signed-off-by: Ellet <echo.ellet@gmail.com>
Signed-off-by: Ellet <echo.ellet@gmail.com>
Signed-off-by: Ellet <echo.ellet@gmail.com>
Signed-off-by: Ellet <echo.ellet@gmail.com>

@EchoEllet

@EchoEllet

…checks in compressedOrOriginal

@EchoEllet

… ImageResizeTests to ImageTestUtils
…e pigeon for type-saftey

@EchoEllet EchoEllet deleted the feat/phpicker-image-picker-macos branch

January 21, 2025 22:21