Monlix Android SDK
Monlix offerwall for Android
Integration
- In the top level build.gradle file, add the following
For Gradle < 7
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
For Gradle > 7, in the settings.gradle , add maven { url 'https://jitpack.io' }
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
- In the app level build.gradle file, add the dependency
implementation 'com.github.Monlix:android-sdk:v0.1.5'
- In the app level build.gradle file, enable the dataBinding feature
android {
...
buildFeatures {
dataBinding true
}
}
Usage
- Load the library in Activity/Fragment
Kotlin
MonlixOffers.createInstance(this,"APP_ID","USER_ID")
Java
MonlixOffers.INSTANCE.createInstance(this,"APP_ID","USER_ID")
- Show the offerwall
Kotlin
MonlixOffers.showWall(this)
Java
MonlixOffers.INSTANCE.showWall(this)