At baraka we don't use Cocoapods as dependency management, instead of we use SPM (Swift Package Manager). Because original repository don't support SPM, we added the support.
This fork contains changes regarding adding support to newer version of Singular and SPM.
Code changes:
- Added a new
Package.swiftfile to define the Swift package configuration, including dependencies onSegmentandSingularlibraries. - Removed the
Info.plistfile from theSegment-Singular-iOSdirectory. - Removed the
Segment_Singular_iOS.hheader file. - Removed the
Segment-Singular.podspecfile, which previously defined the CocoaPods specification for the package. - Updated
SingularIntegation.hto include conditional imports forSEGIntegration.hfrom different possible paths. - Updated
SingularIntegation.mto include conditional imports forSEGAnalyticsConfiguration.handSEGAnalytics.hfrom different possible paths. - Updated
SingularIntegrationFactory.hto include conditional imports forSEGIntegrationFactory.hfrom different possible paths.
- Add SPM dependency: https://github.com/barakatech/baraka-segment-singular-ios
- Import by
import SingularSegmenton integration files