optimizely / swift-sdk

Swift SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy)
https://www.optimizely.com/products/full-stack/
Apache License 2.0
21 stars 30 forks source link

[ENHANCEMENT] SPM Integration #520

Closed delannoyk closed 10 months ago

delannoyk commented 10 months ago

Description

Hi Optimizely team,

We're in the process of integrating another SDK in our app using SPM and unfortunately, we can't. The reason is that the name of this repository is swift-sdk and one of our other dependencies is also using swift-sdk.

dependency on 'https://github.com/iterable/swift-sdk' conflicts with dependency on 'https://github.com/optimizely/swift-sdk' which has the same identity 'swift-sdk'

After digging a little bit, I found that I was not the only one having this issue (thread here)

According to official SPM team members:

SwiftPM uses the last path component of URL as the "identity";

I tried using SSH instead of https but it didn't help.

Benefits

Be able to use SPM

Detail

No response

Examples

No response

Risks/Downsides

No response

jaeopt commented 10 months ago

@delannoyk you can integrate our sdk with this alias https://github.com/optimizely/optimizely-swift-sdk.git which we support for the name conflict. See https://github.com/optimizely/swift-sdk/issues/450 for more details.

delannoyk commented 10 months ago

@jaeopt Thank you so much for the prompt response. I'll give this a try!