Quickstart guide
Requirements
- Android Studio 2022.1.1 or later
- Android Gradle plugin version 7.4 or later
- Gradle version 7.6 or later
- Minimum Android SDK 24
Integration
To integrate the latest version of our SDK into your app, follow these steps:
Kotlin
Groovy
-
Add the following dependencies to your app’s
build.gradle.kts
file: -
Add
mavenCentral
to your rootbuild.gradle.kts
file:
Set up the DevRev SDK
- Open the DevRev web app at https://app.devrev.ai and go to the Settings page.
- Under PLuG settings copy the value under Your unique App ID.
- After obtaining the credentials, you can configure the DevRev SDK in your app.
The SDK will be ready for use once you execute the following configuration method.
Kotlin
Java
Ensure that the custom application is specified in the AndroidManifest.xml
:
Use this property to check whether the DevRev SDK has been configured:
Kotlin
Java
prefersDialogMode
, if set to true, enables the SDK to open the screens in the app’s main task/activity
- To configure the SDK, you need to call the following method inside your
Application
class:
If you don’t have a custom Application
class, create one as shown below.
Kotlin
Java
- In the
onCreate
method of yourApplication
, configure the DevRev SDK with the required parameters using the credentials obtained earlier. - Ensure that the custom application is specified in the
AndroidManifest.xml
, as shown below:
Sample app
We provide a sample app demonstrating use cases with both XML-based UI and Jetpack Compose as part our public repository.
Before running the sample app, make sure to configure it with your DevRev credentials. To do this, update the ai.devrev.sdk.sample.DevRevApplication
class with your credentials.