Updating to Skillz SDK v18.x for Unity Android

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

 

Step 1: Modify Android Manifest’s Activity name to ‘com.skillz.activity.UnityGameActivity’.

See below for an example code snippet:

<activity android:label="@string/app_name" android:screenOrientation="fullSensor" android:launchMode="singleTop" android:name="com.skillz.pinball.UnityPlayerActivity">  

Change "com.skillz.pinball.UnityPlayerActivity"  to "com.skillz.activity.UnityGameActivity"

  

Step 2: Assign skillz_game_activity meta-data value.

Previously this value was blank, but should now be specified as ‘com.skillz.activity.UnityGameActivity’.

 

See below for an example code snippet:

<meta-data android:name="skillz_allow_exit" android:value="true" />
<meta-data android:name="skillz_game_activity" android:value="com.skillz.activity.UnityGameActivity" />
<meta-data android:name="skillz_is_unity" android:value="true" />

Step 3: Make Sure permissions for Write and Read External Storages do not have set max sdk versions like so:

 See below for an example code snippet:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

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

Skillz now requires a few dependencies to 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 5: Update your build.gradle to point to the latest version of the Skillz SDK:

dependencies {
    compile 'com.skillz.sdk:skillz-sdk-android:18.0.5'
}

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

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