Upgrade Instructions

Upgrade from 5.0+ to 6.0.1

If you are upgrading from your current HyprMX 5.0+ integration to the HyprMX 6.0.1 SDK, follow the instructions below.

1. Replace the hyprmx maven url in the top level build.gradle file with the following:

1
allprojects {
2
repositories {
3
maven { url "https://hyprmx.jfrog.io/artifactory/hyprmx" }
4
}
5
}
Copied!

2. Update HyprMX dependency in the app's build.gradle file:

1
dependencies {
2
implementation 'com.hyprmx.android:HyprMX-SDK:6.0.1'
3
}
Copied!

3. If you are using Kotlin in your application, add the following to your build.gradle inside the android block:

1
kotlinOptions {
2
jvmTarget = "1.8"
3
freeCompilerArgs = [
4
"-Xjvm-default=compatibility",
5
]
6
}
Copied!

4. Optional: Implement the PlacementListener.onAdExpired() method

1
@Override
2
public void onAdExpired(Placement placement) {
3
// Called when an ad is no longer available for the given placement.
4
}
Copied!
That's it! You're up and running with the latest version of the HyprMX SDK.

License

By integrating the HyprMX SDK, you are agreeing to the End User License Agreement.
Last modified 12h ago