Migrate from v1.3.0 to v2.0.0

Medallia Experience Orchestration SDK for Android v2.0.0 completely removes previously deprecated API parameters that were required for the SDK configuration. It is meant to simplify configuration process and improve Interaction performance of the SDK.

Medallia Experience Orchestration SDK for Android v2.0.0 also requires Java version upgrade to the version 17.

  1. Remove API parameters from your Application class.

    Remove the apiKey, sharedSecret, and userId values from the mxoConfiguration top-level Kotlin property in onCreate() method along with the relevant variables in companion object.

    Remove the apiKey, sharedSecret, and userId values from the MXOConfiguration Java method in onCreate() along with the relevant class's variables.

    Kotlin
    Java
    // mxoConfiguration top-level property this.apiKey = API_KEY this.sharedSecret = SHARED_SECRET this.userId = USER_ID // companion object const val API_KEY = "f713d44a-8af0-4e79-ba7e-xxxxxxxxx" const val SHARED_SECRET = "bb8bacb2-ffc2-4c52-aaf4-xxx" const val USER_ID = "yourUsername@yourCompanyName" // class variables private static final String apiKey = "f713d44a-8af0-4e79-ba7e-xxxxxxxxx"; private static final String sharedSecret = "bb8bacb2-ffc2-4c52-aaf4-xxx"; private static final String userId = "yourUsername@yourCompanyName"; // MXOConfiguration method .apiKey(apiKey) .sharedSecret(sharedSecret) .userId(userId)
  2. Update Java version to 17 under the android section of your app-level build.gradle.kts or build.gradle:
    Kotlin
    Groovy
    compileOptions { sourceCompatibility(JavaVersion.VERSION_17) targetCompatibility(JavaVersion.VERSION_17) } compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 }
You have now successfully migrated to the MXO SDK version 2.0.0.