Applying the Android Plugin
{PLUGIN_VERSION} must match with the version of the MXO SDK. Adding the MXO Aspects
Before applying the Plugin you must include the MXO Aspects dependency to your project:
dependencies {
implementation("com.medallia:mxo-android-sdk-aspects:{ASPECTS_VERSION}")
}
dependencies {
implementation 'com.medallia:mxo-android-sdk-aspects:{ASPECTS_VERSION}'
}
{ASPECTS_VERSION} must match with the version of the MXO SDK.Applying the Plugin with the plugins DSL
-
Apply the Plugin in the
pluginssection of your top-levelbuild.gradle.ktsorbuild.gradle:plugins { id("com.medallia.mxo-android-sdk-orchestration-gradle-plugin") version {PLUGIN_VERSION} apply false }plugins { id 'com.medallia.mxo-android-sdk-orchestration-gradle-plugin' version {PLUGIN_VERSION} apply false } -
Add the following to the
pluginssection of your app-levelbuild.gradle.ktsorbuild.gradle:plugins { id("com.medallia.mxo-android-sdk-orchestration-gradle-plugin") }plugins { id 'com.medallia.mxo-android-sdk-orchestration-gradle-plugin' } -
Add the maven repository to the
repositoriessection of thepluginManagementsection of yoursettings.gradle.ktsorsettings.gradle:maven { name = "MedalliaMXO" url = uri("https://repository.medallia.com/artifactory/mxo-android-sdk/") }maven { name 'MedalliaMXO' url 'https://repository.medallia.com/artifactory/mxo-android-sdk/' }
Applying the Plugin via Legacy Plugin application
-
Apply the Plugin in your app-level
build.gradle.ktsorbuild.gradle:apply (plugin = "com.medallia.mxo-android-sdk-orchestration-gradle-plugin")apply plugin: 'com.medallia.mxo-android-sdk-orchestration-gradle-plugin' -
Add the maven repository to the
repositoriessection of thebuildscriptsection of your top-levelbuild.gradle.ktsorbuild.gradle:maven { name = "MedalliaMXO" url = uri("https://repository.medallia.com/artifactory/mxo-android-sdk/") }maven { name 'MedalliaMXO' url 'https://repository.medallia.com/artifactory/mxo-android-sdk/' } -
Add the following to the
dependenciessection of thebuildscriptsection of your top-levelbuild.gradle.ktsorbuild.gradle:classpath("com.medallia:mxo-android-sdk-gradle-plugin:{PLUGIN_VERSION}")classpath 'com.medallia:mxo-android-sdk-gradle-plugin:{PLUGIN_VERSION}'
You have now applied the Medallia Experience Orchestration Plugin to your app.
