Applying the Android Plugin
{PLUGIN_VERSION}
must match with the version of the MXO SDK. Applying the Plugin with the plugins DSL
Apply the Plugin in the
plugins
section of your top-levelbuild.gradle.kts
orbuild.gradle
:KotlinGroovyplugins { 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
plugins
section of your app-levelbuild.gradle.kts
orbuild.gradle
:KotlinGroovyplugins { 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
repositories
section of thepluginManagement
section of yoursettings.gradle.kts
orsettings.gradle
:KotlinGroovymaven { 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.kts
orbuild.gradle
:KotlinGroovyapply (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
repositories
section of thebuildscript
section of your top-levelbuild.gradle.kts
orbuild.gradle
:KotlinGroovymaven { 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
dependencies
section of thebuildscript
section of your top-levelbuild.gradle.kts
orbuild.gradle
:KotlinGroovyclasspath("com.medallia:mxo-android-sdk-gradle-plugins:{PLUGIN_VERSION}") classpath 'com.medallia:mxo-android-sdk-gradle-plugins:{PLUGIN_VERSION}'
You have now applied the Medallia Experience Orchestration Plugin to your app.