Steps to Integrate
1. Install the SDK
Add JitPack Repository
Add the code given below to your project's top-level build.gradle file:
This gives access to the SDK library.
// project-level build.gradle
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
credentials { username authToken }
}
}
}
2. Add SDK Dependency
In your module-level build.gradle file, add the Spyne SDK dependency.
Latest Version: 0f6c8f8012
dependencies {
implementation 'com.github.Spyne-Tech:spyne-android-sdk:spyne_sdk_version'
}
3. Authentication
Add your token to the module-level gradle.properties file:
authToken = jp_g1e1t35osldunpv5a8u4dcjovr
4. Initialize Spyne SDK
Take the API key from your Spyne's POC.
In your Application class, initialize the Spyne SDK with your API key.
public class SampleApp extends Application {
private static final String API_KEY = "YOUR_API_KEY";
@Override
public void onCreate() {
super.onCreate();
// Initialize the Spyne SDK
Spyne.init(context: this, API_KEY);
}
}
Updated 8 days ago