segment-integrations / analytics-ios-integration-amplitude

The Amplitude analytics-ios integration.
MIT License
11 stars 45 forks source link

SPM Support #84

Open cerupcat opened 3 years ago

cerupcat commented 3 years ago

Many SDKs are moving to Swift Package Manager support in addition to cocoapods.

It would be nice to get this repo via SPM as well.

sam-w commented 3 years ago

+1 to this please

ztepsa commented 3 years ago

Hello! Any updates on this issue? Amplitude SDK already supports SPM as an option so this would make it a lot easier, current solution is to manually add classes into the project which is not really good.

afanaian commented 3 years ago

Is SPM support coming or should I find another job to have to add this?

garriguv commented 3 years ago

Here's a minimal Segment / Amplitude integration: https://gist.github.com/garriguv/e5f7bac75813877dc7809d5f0116fe5d

This does not support all features, but is enough for a small app. It's not a ton of work to implement the rest if you need it.

nlash-livly commented 3 years ago

I think that pointing SPM to the XCFramework would be ideal to avoid repeated compilations. https://github.com/segment-integrations/analytics-ios-integration-amplitude/issues/100

mcostasilva commented 3 years ago

I opened a pull request that adds SPM Support It only needs 1 new file (Package.swift) and a minor change to a header file.