prof18 / kmp-fatframework-cocoa

A Gradle plugin to generate and publish an iOs FatFramework or XCFramework on Kotlin Multiplatform projects.
Apache License 2.0
27 stars 2 forks source link

Supporting Swift Package Manager #2

Open amrfarid140 opened 3 years ago

amrfarid140 commented 3 years ago

Thanks for this plugin 😄 !

We have a private fork which adds support for Swift package manager. This fork uses the same logic and steps you did for Cocoapods and tunes it to SPM.

Would be happy submit a PR and work to get it merged if that's a direction you want to take.

prof18 commented 3 years ago

I'm glad you found it useful!

Uh, it's interesting, so you have implemented both the support for FatFramework and XCFramework?

It's interesting, but I have to think what is the best way to integrate it since the plugin has a strong naming reference on Cocoa 😅

And just to help me understand the direction, what are the differences with the Multiplatform Swift Package Plugin? I mean, why someone should use your fork rather than that plugin?

amrfarid140 commented 3 years ago

We only needed XCFramework so we started with that. Bascailly what we did is:

Everything else is the same.

The git logic in your plugin suited us and we were already familiar with the setup and tasks. With your plugin a single command will build an XCFramework, push it to master and tag the commit but with the other one a user would have to take care of the git work themselves.

prof18 commented 3 years ago

Thanks for the explanation. I think that I gonna rebrand a bit to be able to include different distribution channels like yours.

So, if you want, you can submit a PR!