Repository navigation
feat: migrate example app to Swift Package Manager - #160
CaiJingLong merged 1 commit into
Conversation
- Finish migrating the example app to Swift Package Manager on iOS and macOS - Wire FlutterGeneratedPluginSwiftPackage into the macOS Runner project - Deintegrate CocoaPods: remove Podfiles, Pod build phases, and Pods xcworkspace refs - Strip Pods-Runner.*.xcconfig includes from iOS/macOS Debug and Release xcconfigs - Fix missing AppKit import in image_editor_common's macOS FIImport.h - Refresh pubspec.lock and macOS AppDelegate.swift/scheme from flutter clean rebuild
|
Can be merged? |
CaiJingLong
left a comment
There was a problem hiding this comment.
Approved for the changes in this PR against feat/spm-support (1519ce2 → 8a86cce). No blocking findings in the example SwiftPM migration or the AppKit import fix. This review does not replace a separate review of #158 against main.
Compatibility: the library packages retain Flutter >=2.10.0 / Dart >=2.12.0 and their CocoaPods podspecs. The example's Flutter >=3.44 / Dart >=3.12 lockfile requirement comes from image_picker_android 0.8.13+19 (raised in +18 for built-in Kotlin / AGP 9), rather than the library API or SwiftPM itself. Keeping a newer example toolchain is reasonable; it must not become the library's minimum supported Flutter version.
Validation:
- Flutter 3.44.0:
flutter pub get --enforce-lockfilepassed with the committed example lockfile. - iOS and macOS Debug SwiftPM builds passed with Xcode 27, unsigned, using command-line deployment-target overrides (iOS 15.0 / macOS 12.0). The unmodified build commands fail because Xcode 27 rejects the project's existing iOS 13.0 / macOS 10.15 deployment targets. No tracked files were changed for the successful builds.
- Flutter 3.24.3: library dependency resolution and
flutter analyze --no-pub libpassed. - Platform-interface tests: 2 passed on Flutter 3.41.6.
- Both CocoaPods specifications passed quick validation with metadata warnings; source/header globs resolve correctly.
- Xcode project/scheme/workspace syntax and
git diff --checkpassed. - Example analysis reported 8 informational deprecations (exit 1), with no errors or warnings.
Limits: no CI checks are attached to this head; no device/runtime testing, complete legacy CocoaPods build, or Flutter 2.10 build was performed. The declared library minimum is preserved, but has not been fully re-certified by this review.
It is the best to review & merge this branch into #158 first since this branch was created from it.
FlutterGeneratedPluginSwiftPackageinto the macOS Runner projectPods-Runner.*.xcconfigincludes from iOS/macOS Debug and Release xcconfigsimage_editor_common'smacOSFIImport.hpubspec.lockand macOSAppDelegate.swift/scheme fromflutter cleanrebuild