In order to integrate the SDK, developers need to have the APP key and Workspace ID generated in Step 1. While initializing the SDK in the app, the APP key and Workspace ID need to be passed.
Follow the below steps to integrate the SDK with the client application.
Include the following code in the root level gradle file in the repositories under "buildscripts".
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release"
}
Include the following code in the root level gradle file in the repositories under "allprojects".
maven {
url "<http://jfrog.datagran.io/artifactory/gradle-release-local>"
}
Add the following code in app level gradle file. The latest_version of the SDK is " 1.0.3 ".
implementation 'io.datagran:datagran_android_sdk:{latest_version}'
After Completing the above method,
Include the following code in app level gradle file
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.okhttp3:okhttp:4.3.1'
implementation 'com.google.android.gms:play-services-location:17.0.0'
Add the following permission in Manifest file
<uses-permission android:name="android.permission.INTERNET"/>
Add the following lines in strings.xml
<string name="datagran_app_key">**YOUR-APP-KEY**</string>
<string name="datagran_workspace_id">**YOUR-WORKSPACE-ID**</string>
Now the integration of the 'datagran_android_sdk' with the application is complete.