androidAndroid

Get Started

1

Set up your adjoe App

Share the following information with your adjoe Account Manager:

  • App bundle IDs

  • Playstore ID

Your Account Manager will share:

  • SDKHash

  • S2S Token

  • API Token

circle-check
2

Check Requirements

  • Android 16+

  • Gradle 7.2.2+

  • minSdkVersion 21+

  • compileSdkVersion 23+

circle-info

Androidx apps are fully supported.

3

Add the Dependency

circle-check
  1. Add adjoe's repository to your root build.gradle (project level):

allprojects {
    repositories {
        ...
        maven {
            url  "https://releases.adjoe.io/maven"
        }
    }
}
  1. Add the adjoe dependency to your app's build.gradle (module level):

dependencies {
    ...
    implementation 'io.adjoe:adjoe-sdk-android:4.2.0'
}

If you use Kotlin DSL for adding dependencies, add the repo in the settings.gradle.kts

repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url = uri("https://releases.adjoe.io/maven") }
    }
}
4

Enable Logs

Enabling logging per device within the SDK is crucial for troubleshooting. Turn on logging and include the logs with any bug reports to help us accurately replicate and address issues.

Here’s how to enable logging:

  1. Connect the device to your computer and enable ADB.

  2. In a terminal window, run the following command to activate logging:

adb shell setprop log.tag.Playtime INFO

You can now filter LogCat using the Playtime tag to monitor relevant log output. If you wish to disable logging, simply execute the command:

adb shell setprop log.tag.Playtime ERROR

This sets the logging level to ERROR, effectively reducing the verbosity of the logs.

Last updated