Skip's Tools SDK (Legacy)
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
Once you have your Swift package set up, adding ShopperLegacy-SDK as a dependency is as easy as adding it to the dependencies value of your Package.swift.
dependencies: [ .package(url: "https://github.com/GoSkip/ShopperLegacy-SDK.git", .upToNextMajor(from: "4.0.0")) ]
SkipTools.xcframework.zipfile you just downloaded
Drag and drop the SkipTools.xcframework into your project
Check 'Copy items if needed' and 'Create groups'
You’ll next need to ensure that your Deployment Target is set to at least 10.0, which is the minimum iOS version the Skip SDK is compatible with.
This can be set by editing your project build settings by double clicking on your project’s root entry, selecting the General tab, and editing the Deployment Target.
Set deployment target to iOS 10.0
This new framework will need to be embedded in your app and signed. This setting can be found under the General settings page of your app target.
Be sure that Embedded and Signed is set
The Skip SDK requires Location and Camera access. In order for the framework to request these permissions, the following lines need to be added into the App’s Info.plist.
Within the file where you want to launch the Skip SDK from, import SkipTools at the top of the file.
In order to launch the Skip experience, you will need to call the SkipSDK.launchSkip function.
The SkipSDK.launchSkip function takes in a SkipSDK.Config parameter. This Config parameter sets up how the SDK will behave and has several parameters that must be set. In the following section we will cover each of those parameters and how they affect the functionality of the Skip SDK.
Now that you've got the configuration nailed down, it's time to launch the Skip experience. Below you will find examples of a few common scenarios and how to launch those scenarios.
|Last commit: 4 days ago|