Skip to content

feat: migrate example app to Swift Package Manager - #160

Merged
CaiJingLong merged 1 commit into
fluttercandies:feat/spm-supportfrom
agilst:feat/example-app-spm-support
Oct 10, 2026
Merged

CaiJingLong merged 1 commit into
fluttercandies:feat/spm-supportfrom
agilst:feat/example-app-spm-support

Conversation

@agilst

@agilst agilst commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

It is the best to review & merge this branch into #158 first since this branch was created from it.

  • 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

- 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
@droman-dogfy

Copy link
Copy Markdown

@CaiJingLong @zmtzawqlp

Can be merged?

@CaiJingLong CaiJingLong left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-lockfile passed 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 lib passed.
  • 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 --check passed.
  • 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.

@CaiJingLong
CaiJingLong merged commit 3ae6107 into fluttercandies:feat/spm-support Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants