Dashboard

Setting Up the SDK

Setting Up Test Mode

Before going live on your app with AppsPrize SDK, you can set the test mode as active with the help of setTestMode.

class MainApplication : Application() {

    override fun onCreate() {
        super.onCreate()

        val config = AppsPrizeConfig.Builder()
            .setUserId(USER_ID)
            .setTestMode(true)

We will show you three static offers on the SDK once you set true the setTestMode, therefore you can make the conversion test before going live.

Adding the SDK to Your Application

First, declare the dependency for the AppsPrize SDK in your app’s module Gradle file (usually app/build.gradle).

android {
    dependencies {
        ...
        // You should add this line
        implementation 'com.appsamurai.appsprize:appsprize:<latest-version>'
        ...
    }
}

📘

Please do not forget to replace <latest-version>. The latest version is here.

🚧

AppsPrize SDK targets Android API level 23 (Android 6.0, Marshmallow) or higher.

🚧

Please note that you need to add Java 1.8 compatibility configuration as well. In your app’s module Gradle file (usually app/build.gradle), please add the following instructions:

android {
    compileOptions {
        // You should add these two lines
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

What’s Next