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 = "********"
            }
        }
    }
}

you will receive the username and password separately

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))

  • joinCode, bootAmount, bootId can be null

  • winzoAccessToken will be used in API calls.

  • if bootAmount and bootIdis null then show the main landing screen otherwise start the game with these values

6.) Finally, add the application class to the manifest file

Adaptive App Icon

Last updated

Was this helpful?