parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 864 forks source link

WIP: Swift Package Manage Support #1659

Closed mman closed 1 year ago

mman commented 1 year ago

This PR is here for a reference and list of steps that need to be done in order to support Swift Package Manager correctly.

Here is the quick list of things that I have made in order to support Swift Package Manager on at least iOS, iPadOS, macOS, and macCatalyst.

Not ready for merge, serves only as an inspiration and proof of concept

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this pull request!

ricky641b commented 1 year ago

Hi, @mman I have a doubt about this. Why this was needed? removed Carthage and Cocoapods-related files removed Parse xcodeproj, xcworkspace, and xcconfig files removed Rakefile and Gemfile used to build binary distributions

mman commented 1 year ago

@ricky641b It was not necessary to remove Cocoapods and Carthage build files. But I did it to have clean table. To simplify Package.Swift I moved files around and did not test neither Carthage nor Cocoapods builds. I would leave them around and let CI verify that everything still builds.

Also, I removed the Facebook SDK as I do not need it but proper solution would be to depend on it via SPM as well…

mtrezza commented 1 year ago

See my comment https://github.com/parse-community/Parse-SDK-iOS-OSX/issues/1453#issuecomment-1249696843 regarding carthage and cocoapods.

mtrezza commented 1 year ago

Closing in favor of https://github.com/parse-community/Parse-SDK-iOS-OSX/pull/1683