Migrate from v1.1.2 to v1.2.0

Medallia Experience Orchestration SDK for Android v1.2.0 deprecates API parameters that were previously required for the SDK configuration. It is meant to simplify configuration process and improve Interaction performance of the SDK.
Important: Those values will be removed in the next major version of the SDK.

Medallia Experience Orchestration SDK for Android v1.2.0 also removes using of renderscript which is deprecated by Google and will be removed in the future.

  1. Remove deprecated 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.

    // 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)
    Tip: We recommend removing those values from your mxoConfiguration Kotlin top-level property or MXOConfiguration Java method, however, it is not required until the next major release.
  2. Remove the renderScript support from the defaultConfig section of your app-level build.gradle.kts or build.gradle:
    renderscriptTargetApi = 22
    renderscriptSupportModeEnabled = true
    renderscriptTargetApi 22
    renderscriptSupportModeEnabled true
You have now successfully removed the deprecated API parameters and renderscript support from your app.