[Under Development] Integration Guide (Core)
Our SDK is currently under review. Check back later for updates.
Steps to integrate Acquire android-sdk-core are as follows :
Add the SDK to your project by including the following snippets in the build.gradle
file:
STEP 1 :
Project level settings.gradle
:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
...
maven {
url 'https://android-sdk.acquire.io/artifactory/libs-release/'
}
}
}
Module build.gradle
:
Add below dependencies ->
dependencies {
implementation 'io.acquire:core-twilio-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 AppName : Application() {
override fun onCreate() {
super.onCreate()
AcquireApp.registerApp(this)
AcquireApp.init(accountID)
}
}
STEP 3 :
Add the following to your manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.sdkdemo">
...
<application
android:name=".AppName"
...
</application>
</manifest>
STEP 4 :
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