Updating your game from 21.x to 22.x on Android

This document is for developers who have previously integrated v21.x of the Skillz Android SDK and want to update their integration using the latest v22.x release of our SDK.

What's New

The latest version of the Android SDK now provides pooled liquidity, user interface improvements, audio integration, and miscellaneous bug fixes.

Additionally, we've streamlined the Skillz UI for landscape orientation in order to ensure a more consistent user experience across devices.

Instructions

Step 1:

Point your app to the Skillz SDK version 22.x

In your build.gradle file, update your Skillz dependency to be the latest SDK version. For example:

android {

   dependencies {
       …
        implementation 'com.skillz.sdk:skillz-sdk-android:22.0.10'
       …
   }

}

 Note: The newest version can be found in http://nexus.skillz.com. 

Step 2:

If you plan on using Google's Maven repository, Gradle version 4.1 and above is required. As such, you will need to modify our build.gradle file to reference v3.2.1 or above for the Gradle plugin. It usually resides in the buildscript section:

buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}

 

Refer to the official documentation to see which version of the plugin to reference for a different version of Gradle.

Step 3:

You will need to let Skillz know what orientation your game is set to. In your AndroidManifest.xml file, add the meta-data element below. NOTE: the value can either be "portrait" or "landscape".

<meta-data android:name="skillz_orientation" android:value="portrait" />

Important Please Read

To ensure the Skillz Audio API does not conflict with your current audio implementation please read the audio integration article carefully.

Additional Questions?

You have now updated your project to 22.x. If you encounter a problem, please email integrations@skillz.com with a detailed description of the issue you are encountering.