-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from PlayFab/master
Weekly SDK Publish
- Loading branch information
Showing
17 changed files
with
612 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,71 @@ | ||
# AndroidSDK | ||
Android Studio SDK for PlayFab | ||
AndroidStudio example in JavaSDK for PlayFab README | ||
======== | ||
1. Overview: | ||
---- | ||
This document describes the AndroidStudio example in the JavaSDK. | ||
|
||
TODO: Describe the INTERNET requirement in the manifest. | ||
|
||
2. Prerequisites: | ||
---- | ||
* Users should be very familiar with the topics covered in our [getting started guide](https://playfab.com/docs/getting-started-with-playfab/). | ||
|
||
To connect to the PlayFab service, your machine must be running TLS v1.2 or better. | ||
* For Windows, this means Windows 7 and above | ||
* [Official Microsoft Documentation](https://msdn.microsoft.com/en-us/library/windows/desktop/aa380516%28v=vs.85%29.aspx) | ||
* [Support for SSL/TLS protocols on Windows](http://blogs.msdn.com/b/kaushal/archive/2011/10/02/support-for-ssl-tls-protocols-on-windows.aspx) | ||
|
||
|
||
3. Contents, Installation & Configuration Instructions: | ||
---- | ||
This package contains the standard JavaSDKs and the Android Studio Example. | ||
* AndroidStudioExample - Client-only integration of PlayFabSDK into an AndroidStudio example project | ||
|
||
The JavaSDK/PlayFabClientSDK folder is ready-made for integration with an existing AndroidStudio project. | ||
* Unzip JavaSDK to {JavaSDK-Location} | ||
* Locate your AndroidStudio project at {YourProject-Location} | ||
* Navigate to {JavaSDK-Location}/PlayFabClientSDK/src | ||
* Copy the {JavaSDK-Location}/PlayFabClientSDK/src/com folder to: | ||
* {YourProject-Location}\app\src\main\java | ||
* This will install PlayFab and Google-gson (a requirement), into your project. | ||
* Modify your AndroidManifest.xml | ||
* {JavaSDK-Location}\AndroidStudioExample\app\src\main\AndroidManifest.xml | ||
* Add this line: | ||
* <uses-permission android:name="android.permission.INTERNET" /> | ||
* The PlayFab service is an online cloud service, and internet access is required | ||
|
||
The JavaSDK/AndroidStudioExample is a suitable starting place for a new project, or to test PlayFab api-calls | ||
* Unzip JavaSDK to {JavaSDK-Location} | ||
* Open the {JavaSDK-Location}/AndroidStudioExample project in Android Studio | ||
* Expand the Project tab | ||
* Navigate to "app/java/com.playfab/PlayFabApiTests" | ||
* Double clicking this file will open the test suite, and allow you to set your title information | ||
* The AndroidStudio does not currently load a TestTitleData.json file like other projects | ||
* Set your own title id and user information at the top of the file. | ||
* The example information is not valid, and you must set it to your own title and login information | ||
* Right click (in project "app/java/com.playfab/PlayFabApiTests") and "run PlayFabApiTests" | ||
* This will prompt to launch an android emulator - accept | ||
* You should see output in the Event Log and Run windows to indicate test execution and results | ||
|
||
|
||
4. Troubleshooting: | ||
---- | ||
For a complete list of available APIs, check out the [online documentation](http://api.playfab.com/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](https://community.playfab.com/hc/en-us) | ||
|
||
|
||
5. 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,12 @@ public PlayFabApiTests() { | |
// One time set-up for this suite of tests | ||
|
||
// TODO: your own, real client info, and preferably real title info | ||
PlayFabSettings.TitleId = "6195"; | ||
TITLE_CAN_UPDATE_SETTINGS = true; | ||
USER_NAME = "paul"; | ||
USER_EMAIL = "[email protected]"; | ||
USER_PASSWORD = "testPassword"; | ||
CHAR_NAME = "Ragnar"; | ||
PlayFabSettings.TitleId = "put titleId here"; | ||
TITLE_CAN_UPDATE_SETTINGS = true; // Please create a test title which can update settings from the client. This is an option in your game manager | ||
USER_NAME = "your user name"; | ||
USER_EMAIL = "valid email for username above"; | ||
USER_PASSWORD = "valid password for username above"; | ||
CHAR_NAME = "Pre-existing character within the account above"; | ||
} | ||
|
||
// Constants | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
AndroidStudioExample/app/src/main/java/com/playfab/internal/PlayFabVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.