fix: Standardize iOS SPM directory structure for proper Flutter tooling detection#668
Closed
seunghonice wants to merge 2 commits into
Closed
fix: Standardize iOS SPM directory structure for proper Flutter tooling detection#668seunghonice wants to merge 2 commits into
seunghonice wants to merge 2 commits into
Conversation
ios/Package.swift → ios/workmanager_apple/Package.swift 중첩 구조로 이동하여 Flutter tooling이 SPM을 올바르게 인식하도록 수정
|
To view this pull requests documentation preview, visit the following URL: docs.page/fluttercommunity/flutter_workmanager~668 Documentation is deployed and generated using docs.page. |
CocoaPods에서는 모듈 전체가 하나로 컴파일되어 다른 파일의 import가 공유되지만, SPM에서는 파일 단위로 import가 필요함
Author
|
Closing as duplicate of #657 |
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
workmanager_apple/ios/to follow the official Flutter SPM plugin layoutPackage.swiftfromios/Package.swift(flat) toios/workmanager_apple/Package.swift(nested)ios/<plugin_name>/Package.swiftto detect SPM support — the previous flat layout caused SPM detection to fail, falling back to CocoaPodsWhat changed
ios/Package.swiftios/workmanager_apple/Package.swiftios/Sources/workmanager_apple/ios/workmanager_apple/Sources/workmanager_apple/ios/Resources/ios/workmanager_apple/Sources/workmanager_apple/Resources/workmanager_appleworkmanager-apple(hyphenated, per convention)CocoaPods paths in
workmanager_apple.podspecare updated accordingly so both SPM and CocoaPods continue to work.Breaking Changes
None — this is a directory restructure internal to the plugin. No public API changes.
Test plan
flutter build ios --debug --no-codesignsucceeds with the example app