Integrating SDK
1.) Add the following dependency in your app-level build.gradle file :
dependencies {
...
implementation "com.winzo.winzo-sdk:winzo-sdk:1.0.3"
}2.) Add the following dependency in your project-level build.gradle file :
dependencies {
...
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.7.3'
}
allprojects {
repositories {
...
maven {
url "https://artifactory-prd.winzo.io/artifactory/winzo-sdk/"
credentials {
username = "********"
password = "********"
}
}
}
}3.) Add MainActivity to manifest file and the intent filters for launching MainActivity, Remove remaining intent filters for remaining launcher an activity.
4.) Extend AppApplication with WinzoApplication, register your activity with WinZO activity.
Set the game icon by using WinzoSdk.setGameIcon method.
Set product flavor by using WinzoSdk.setProductFlavor method.
5.) You will receive the listed values in intent in registered activity (the activity you have registered with WinzoSdk.registerActivity(ClientActivity::class.java))
6.) Finally, add the application class to the manifest file
Adaptive App Icon
Create Adaptive App Launcher Icon in mipmap directory with the name of ic_launcher (which is the default).
The foreground Layer name should be ic_launcher_foreground
The Background Layer name should be ic_launcher_background
Last updated
Was this helpful?