• Note that the SDK uses AndroidX, make sure you migrate your app to AndroidX to avoid a Manifest merger failure.
  • (warning) As of version 5.0.8, the SDK is hosted on mavenCentral(). Please ensure mavenCentral() is included in your build.
  • (warning) As of version 5.1.3, Java 11 is required (target version 31 supported). Please ensure to set Java 11 as described here: https://github.com/Webtrekk/webtrekk-android-sdk-v5
  1. Updates to app's build.gradle file:

    Installation via Gradle
    Add a new dependency in your Android project, which is done in the "build.gradle" file:

    implementation 'com.mapp.sdk:intelligence-android:<LATEST ANDROID SDK VERSION>'
    CODE


    Installation via Maven
    If you are using Maven as your build system, add the dependency accordingly as follows:

    <dependency>
         <groupId>com.mapp.sdk</groupId>
         <artifactId>intelligence-android</artifactId>
         <version><LATEST ANDROID VERSION></version>
         <type>pom</type>
    </dependency>
    CODE


    Please find the latest release on GitHub.

  2. The SDK requires that you enable Java 8 in your builds:

    compileOptions {
         targetCompatibility 1.8
         sourceCompatibility 1.8
    }
    CODE



  3. Extend application class:
    New application class: Extend the application class to prepare for the Initialization and Global Configuration.

    Java

    public class TrackConfig extends Application {}
    CODE



    Kotlin

    class TrackConfig : Application() {}
    CODE
  4. Updates to the AndroidManifest.xml file.
    Allow the network permission by adding the following:

    <uses-permission android:name= "android.permission.INTERNET" />
    CODE



  5. Ensure that you change the name of the application to your application class name (as given in step 3)

    <application
            android:name= ".TrackConfig"
     
    </application>
    CODE