Skip to content

walterh/JavaSDK

 
 

Repository files navigation

Java SDK for PlayFab README

  1. Overview:

This document describes the process of configuring and building the PlayFab Java SDK.

  1. Prerequisites:

To connect to the PlayFab service, your machine must be running TLS v1.2 or better.

  1. Source Code & Key Repository Components:

This package contains three different versions of the PlayFab SDK.

  • PlayFabClientSDK - This version contains only client libraries and is designed for integration with your game client
  • PlayFabServerSDK - Contains server and admin APIs designed to be called from your custom logic server or build process
  • PlayFabSDK - Contains all APIs in one SDK.
  • AndroidStudioExample - Client-only integration of PlayFabSDK into an AndroidStudio example project
  1. Installation & Configuration Instructions:

The playfab API source code is located within:

{JavaSDK-Location}/PlayFabSDK/src/playfab

The playfab API relies on the Google gson library, located within:

{JavaSDK-Location}/PlayFabSDK/src/com

To create a new project using PlayFab, copy the indicated playfab and com directories into the source directory for your project.

  1. Using the example project:

The PlayFabApiTest example project can be run from the console. These instructions assume Windows operating system.

  • Extract the JavaSDK Sdk to your computer (referenced as {JavaSDK-Location} within this document)
  • Navigate to: {JavaSDK-Location}/PlayFabSDK/src
  • Open {JavaSDK-Location}/PlayFabSDK/src/RunPfTests.bat in a text editor such as Notepad++ or FlashDevelop (Regular notepad may not load unix line endings properly)
  • Update the titleData path in your RunPfTests.bat file:
  • java -DtestTitleData=C:\depot\pf-main\tools\SDKBuildScripts\testTitleData.json ... etc
  • You will need to create a new testTitleData.json file, and change the above path to match your new file (see next section for details)
  • Executing RunPfTests.bat should compile the example project, execute the project, make a handful of API calls, and exit
  • This uses the standard JUnit testing suite
  • The exit code for the example will be 0 for success, or non-zero for failure
  • Detailed info about test failures will be in the console output (stdout)
  1. testTitleData.json file required for example test files.

This sdk includes an optional example project that is used by PlayFab to verify sdk features are fully functional.

Please read about the testTitleData.json format, and purpose here:

  1. Troubleshooting:

For a complete list of available APIs, check out the online documentation.

Contact Us

We love to hear from our developer community! Do you have ideas on how we can make our products and services better?

Our Developer Success Team can assist with answering any questions as well as process any feedback you have about PlayFab services.

Forums, Support and Knowledge Base

  1. Acknowlegements

The PlayFab Java SDK was initially created and submitted to PlayFab by nicosio2

The PlayFab Java SDK has been restructured for Maven support by Will Iverson at Game Studio One

  1. Copyright and Licensing Information:

Apache License -- Version 2.0, January 2004 http://www.apache.org/licenses/

Full details available within the LICENSE file.

Initial code Submitted to PlayFab by nicosio2 (https://github.com/nicosio2)

About

PlayFab SDK for Java applications

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Java 100.0%