SDK Downloads
Before you get started, make sure to download our Snap Kit SDKs. They are available on both iOS and Android.
iOS
The Snap Kit SDKs can be accessed via Cocoapods or Carthage.
Cocoapods
To get Snap Kit SDKs with Cocoapods, simply add this line to your Podfile
.
pod 'SnapSDK'
You can also download individual SDKs to add to your project separately. In your Podfile, specify which kit you want. Each can be used independently.
pod 'SnapSDK', :subspecs => ['SCSDKLoginKit', 'SCSDKCreativeKit']
Carthage
You can access the Snap Kit SDKs with Carthage by including the appropriate Kits in your Cartfile
:
binary "https://raw.githubusercontent.com/Snapchat/snap-kit-carthage/repo/SCSDKLoginKit.json"
binary "https://raw.githubusercontent.com/Snapchat/snap-kit-carthage/repo/SCSDKCreativeKit.json"
Android
We share the Creative Kit and Login Kit libraries in our Maven Central Repository. To access these libraries, add the following code block to your root project's build.gradle
file:
allprojects {
repositories {
google()
mavenCentral()
}
}
Next, add the following implementation to the dependencies section of your application’s build.gradle
file (NOT the root project’s build.gradle
):
dependencies {
...
implementation([
'com.snap.loginkit:loginkit:2.0.0', // for Login Kit
'com.snap.creativekit:creativekit:2.0.0', // for Creative Kit
])
}
Each Kit’s documentation covers the installation of these dependencies.