Skip to content

Commit 22ef2f6

Browse files
PlayFab SDK TeamPlayFab SDK Team
authored andcommitted
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#220801
1 parent 38904b6 commit 22ef2f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+339
-137
lines changed

PlayFabSdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playfab-web-sdk",
3-
"version": "1.118.220718",
3+
"version": "1.119.220801",
44
"description": "Playfab SDK for JS client applications",
55
"license": "Apache-2.0",
66
"repository": {

PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";
@@ -793,6 +793,30 @@ PlayFab.ClientApi = {
793793
return new Promise(function(resolve){resolve(authenticationContext);});
794794
},
795795

796+
LoginWithGooglePlayGamesServices: function (request, callback, customData, extraHeaders) {
797+
request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
798+
// PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
799+
// Deep-copy the authenticationContext here to safely update it
800+
var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
801+
var overloadCallback = function (result, error) {
802+
if (result != null) {
803+
if(result.data.SessionTicket != null) {
804+
PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
805+
}
806+
if (result.data.EntityToken != null) {
807+
PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
808+
}
809+
// Apply the updates for the AuthenticationContext returned to the client
810+
authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
811+
}
812+
if (callback != null && typeof (callback) === "function")
813+
callback(result, error);
814+
};
815+
PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithGooglePlayGamesServices", request, null, overloadCallback, customData, extraHeaders);
816+
// Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
817+
return new Promise(function(resolve){resolve(authenticationContext);});
818+
},
819+
796820
LoginWithIOSDeviceID: function (request, callback, customData, extraHeaders) {
797821
request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
798822
// PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts

PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabDataApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabEconomyApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabEventsApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.118.220718",
17+
sdkVersion: "1.119.220801",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.118.220718"
19+
sdk: "JavaScriptSDK-1.119.220801"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "adobuild_javascriptsdk_116";
227-
PlayFab.sdkVersion = "1.118.220718";
226+
PlayFab.buildIdentifier = "adobuild_javascriptsdk_114";
227+
PlayFab.sdkVersion = "1.119.220801";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

0 commit comments

Comments
 (0)