fix(workmanager_apple): Correct SPM structure and product name for Flutter compatibility - #680
Closed
ened wants to merge 2 commits into
Closed
fix(workmanager_apple): Correct SPM structure and product name for Flutter compatibility#680ened wants to merge 2 commits into
ened wants to merge 2 commits into
Conversation
…utter compatibility - Move Package.swift to ios/workmanager_apple/ subdirectory (Flutter SPM requirement) - Rename product from 'workmanager_apple' to 'workmanager-apple' (Flutter naming convention) - Add missing UIKit import in Extensions.swift for UIBackgroundFetchResult - Move Sources, Resources, Assets to correct subdirectory This fixes Swift Package Manager integration with Flutter's SPM plugin system, which expects: 1. Package.swift at ios/<plugin_name>/Package.swift 2. Product names with hyphens (e.g., 'workmanager-apple' not 'workmanager_apple') Without these fixes, Flutter falls back to CocoaPods instead of using SPM.
Collaborator
Author
|
Superseded by #683: this branch moves the sources but leaves the podspec pointing at the old path, which breaks the CocoaPods build (verified failing). #683 contains the complete change (structure move + podspec path update + SPM package + optional Pods xcconfig includes) and is green. Closing this one to keep main green. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port of #657 by @IwO30 (original commits preserved, same authorship).
Fixes SPM integration with Flutter tooling:
Package.swiftlives atios/workmanager_apple/Package.swift(Flutter only detects Swift packages atios/<plugin_name>/)workmanager_apple→workmanager-apple(Flutter requires no underscores)import UIKitinExtensions.swift(per-file modular compilation under SPM)Co-authored-by: Iwan Gerber info@ih-app.de