[Under Development] Integration Guide (Lite)

Our SDK is currently under review. Check back later for updates.

Steps to integrate Acquire android-sdk-lite are as follows :

STEP 1 :

Add the SDK to your project by including the following snippets in the build.gradle file:

Project level build.gradle:

allprojects {
...
    repositories {
   // Add this lines
        maven {
                url "https://android-sdk.acquire.io/artifactory/libs-release/"
        }
    }
...
}

Module build.gradle:

dependencies {
    implementation 'io.acquire:lite-beta:1.+'
}

If you have added any of this dependency already then try to match the version.

STEP 2 :

Register Acquire SDK in the onCreate() method of an Activity/Application where you plan to use the SDK. Use the initialization details provided by the Acquire Support admin and an Application instance:

class XYZApp : Application() {
     override fun onCreate() {
     super.onCreate()
     AcquireApp.registerApp(this)
   }
}

STEP 3 :

Initialize Acquire SDK with accountID by using this method.

This method will connect to the Acquire server in the background.

AcquireApp.init(accountID)

To get the Demo app clone project from GitHub: SDKs Guide

To know more about initialization options click here.

To get session events click here.

Last updated