Skip to content

Commit f14aa79

Browse files
author
pgilmorepf
committed
https://api.playfab.com/releaseNotes/#170130
Summary: https://api.playfab.com/releaseNotes/#170130 Separating sdk into a proper source only folder and example folder Rebuilding the Example project to utilize typescript. Moving some build constants out of InternalSettings, so that that object can stay entirely hidden. Converting PlayFabApitest.js to .ts, and adding a bunch of TypeScript syntax. Fixing the type-errors in the timestamp checks. Test Plan: Jenker! Reviewers: Marco.Williams Maniphest Tasks: T2184 Differential Revision: https://phab.playfabdev.com/D3171
1 parent de8e913 commit f14aa79

30 files changed

+34607
-187
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
testTitleData.json
1+
bin/
2+
obj/
3+
.vs/
4+
5+
*.map
6+
*.user
7+
8+
testTitleData.json

PlayFabApiTest.html

Lines changed: 0 additions & 19 deletions
This file was deleted.

PlayFabSDK/PlayFabAdminApi.js renamed to PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var PlayFab = typeof PlayFab != 'undefined' ? PlayFab : {};
1+
/// <reference path="../typings/PlayFab/PlayFabAdminApi.d.ts" />
2+
3+
var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
24

35
if(!PlayFab.settings) {
46
PlayFab.settings = {
@@ -18,8 +20,6 @@ if(!PlayFab.settings) {
1820
if(!PlayFab._internalSettings) {
1921
PlayFab._internalSettings = {
2022
sessionTicket: null,
21-
sdkVersion: "0.36.170109",
22-
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424

2525
GetServerUrl: function () {
@@ -99,6 +99,9 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102+
PlayFab.buildIdentifier = "javascriptsdk_manual";
103+
PlayFab.sdkVersion = "1.-1.170109";
104+
102105
PlayFab.AdminApi = {
103106

104107
GetPolicy: function (request, callback) {

PlayFabSDK/PlayFabClientApi.js renamed to PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var PlayFab = typeof PlayFab != 'undefined' ? PlayFab : {};
1+
/// <reference path="../typings/PlayFab/PlayFabClientApi.d.ts" />
2+
3+
var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
24

35
if(!PlayFab.settings) {
46
PlayFab.settings = {
@@ -18,8 +20,6 @@ if(!PlayFab.settings) {
1820
if(!PlayFab._internalSettings) {
1921
PlayFab._internalSettings = {
2022
sessionTicket: null,
21-
sdkVersion: "0.36.170109",
22-
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424

2525
GetServerUrl: function () {
@@ -99,6 +99,9 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102+
PlayFab.buildIdentifier = "javascriptsdk_manual";
103+
PlayFab.sdkVersion = "1.-1.170109";
104+
102105
PlayFab.ClientApi = {
103106

104107
IsClientLoggedIn: function () {

PlayFabSDK/PlayFabMatchmakerApi.js renamed to PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var PlayFab = typeof PlayFab != 'undefined' ? PlayFab : {};
1+
/// <reference path="../typings/PlayFab/PlayFabMatchmakerApi.d.ts" />
2+
3+
var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
24

35
if(!PlayFab.settings) {
46
PlayFab.settings = {
@@ -18,8 +20,6 @@ if(!PlayFab.settings) {
1820
if(!PlayFab._internalSettings) {
1921
PlayFab._internalSettings = {
2022
sessionTicket: null,
21-
sdkVersion: "0.36.170109",
22-
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424

2525
GetServerUrl: function () {
@@ -99,6 +99,9 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102+
PlayFab.buildIdentifier = "javascriptsdk_manual";
103+
PlayFab.sdkVersion = "1.-1.170109";
104+
102105
PlayFab.MatchmakerApi = {
103106

104107
AuthUser: function (request, callback) {

PlayFabSDK/PlayFabServerApi.js renamed to PlayFabSdk/src/PlayFab/PlayFabServerApi.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var PlayFab = typeof PlayFab != 'undefined' ? PlayFab : {};
1+
/// <reference path="../typings/PlayFab/PlayFabServerApi.d.ts" />
2+
3+
var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
24

35
if(!PlayFab.settings) {
46
PlayFab.settings = {
@@ -18,8 +20,6 @@ if(!PlayFab.settings) {
1820
if(!PlayFab._internalSettings) {
1921
PlayFab._internalSettings = {
2022
sessionTicket: null,
21-
sdkVersion: "0.36.170109",
22-
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424

2525
GetServerUrl: function () {
@@ -99,6 +99,9 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102+
PlayFab.buildIdentifier = "javascriptsdk_manual";
103+
PlayFab.sdkVersion = "1.-1.170109";
104+
102105
PlayFab.ServerApi = {
103106

104107
AuthenticateSessionTicket: function (request, callback) {

PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts

Lines changed: 4696 additions & 0 deletions
Large diffs are not rendered by default.

PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts

Lines changed: 5464 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)