In build.gradle
file for your project add jitpack repo inside allprojects.repositories
block:
allprojects {
repositories {
...your repos
// add this
maven {
url 'https://jitpack.io'
}
}
}
In build.gradle
file for your module add new dependency into dependencies
block:
dependencies {
...your dependencies
// add this
implementation 'com.github.cere-io:widget-android:2.1.*'
}
Then rebuild your project.
Firstly you need init it:
RewardsModule rewardsModule = new RewardsModule(context);
rewardsModule.init("YOUR_APP_ID");
Then you can simply call somewhere in your code:
rewardsModule.show("YOUR_PLACEMENT");
For more info read our JavaDoc