This repo contains an example of an Android app integrating with the Skillz SDK. It's intended to be a supplement to our documentation which will walk you through the process of integrating a native Android game.
This example was written using Skillz SDK version 21.0.14. Check here to see the latest version.
If you are experiencing trouble, please email integrations@skillz.com with a detailed description of the issue you are encountering.
In the interest of making this example easier to break down, this project has been divided into three main commits that represent the three major steps of the integration process. These commits have some supplemental comments explaining things that may not be immediately clear.
To view the diff with the entire integration, click here (note that the supplemental comments that were made on the different commits do not appear how they should in this view).
The commit can be viewed here and follows the instructions laid out on this page of our documentation.
Changes made in this commit:
- Updated module's build.gradle to include the Skillz SDK as a dependency and made necessary versioning updates
- Updated proguard.txt
- Updated Android manifest to include Skillz metadata and updated the game's activity's launch mode
The commit can be viewed here and follows part of the instructions on this page of our documentation.
Changes made in this commit:
- Created the new
LaunchActivity
that launches the Skillz SDK when the app is started - Added reporting the player's score to Skillz when game completes
- Added ability for user to abort the match early
The commit can be viewed here and follows the rest of the instructions on this page of our documentation that were not covered in commit 2.
Changes made in this commit:
- Used Skillz random instead of default random class
- Added updating in-progress scores
This is a port of Gabriele Cirulli's 2048 game to Android, all credit for game design goes to him.
Logo redrawn by Margaret Lu.
Original code (github.com)
Download on Google Play (play.google.com)
Use governed by the MIT License.