Updating to Skillz SDK v18.x for Android

In order to update your Android game integration to support Skillz SDK v18.x, please follow the following steps: 

 

Step 1: Add Google’s Maven repository in your build.gradle file:

Skillz now requires a few dependencies be pulled from Google’s Maven repository. You should add this like so:

See below for an example code snippet:

repositories {
    maven {
        url 'http://nexus.skillz.com/content/groups/public/'
    }
    maven {
        url 'https://maven.google.com'
    }
}

 

Step 2: delete the skillz_orientation meta-data in your Android Manifest

Orientation is now handled automatically based on your Activity’s orientation. You should have a line like the following in your AndroidManifest.xml file, and you can now delete it:

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

 

Step 3: Your game activity that you specified in the meta-data tag ‘skillz_game_activity’ should extend from SkillzActivity

The Activity you supply in your AndroidManifest for the “skillz_game_activity” key will now need to inherit from “SkillzActivity”.

You can make this change like so:

public class YourGameActivity extends SkillzActivity {



Step 4: Update your build.gradle to point to the latest version of the Skillz SDK:

You should already have an existing compile step for Skillz in your build.gradle. Update this to point to v18.0.5, like so:

compile 'com.skillz.sdk:skillz-sdk-android:18.0.5'

 

Congratulations! Your Android game is now configured with the latest Skillz SDK release. 

If you have any questions, please email us at integrations@skillz.com.