@@ -11,26 +11,21 @@ if(!PlayFab.settings) {
11
11
// Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
12
12
disableAdvertising : false ,
13
13
AD_TYPE_IDFA : "Idfa" ,
14
- AD_TYPE_ANDROID_ID : "Android_Id "
14
+ AD_TYPE_ANDROID_ID : "Adid "
15
15
}
16
16
}
17
17
18
18
if ( ! PlayFab . _internalSettings ) {
19
19
PlayFab . _internalSettings = {
20
20
sessionTicket : null ,
21
- sdkVersion : "0.31.161003 " ,
21
+ sdkVersion : "0.32.161017 " ,
22
22
buildIdentifier : "jbuild_javascriptsdk_1" ,
23
23
productionServerUrl : ".playfabapi.com" ,
24
- logicServerUrl : null ,
25
24
26
25
GetServerUrl : function ( ) {
27
26
return "https://" + PlayFab . settings . titleId + PlayFab . _internalSettings . productionServerUrl ;
28
27
} ,
29
28
30
- GetLogicServerUrl : function ( ) {
31
- return PlayFab . _internalSettings . logicServerUrl ;
32
- } ,
33
-
34
29
ExecuteRequest : function ( completeUrl , data , authkey , authValue , callback ) {
35
30
if ( callback != null && typeof ( callback ) != "function" )
36
31
throw "Callback must be null of a function" ;
@@ -496,15 +491,6 @@ PlayFab.ClientApi = {
496
491
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetFriendLeaderboard" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
497
492
} ,
498
493
499
- /**
500
- * @deprecated Please use GetFriendLeaderboardAroundPlayer instead.
501
- */
502
- GetFriendLeaderboardAroundCurrentUser : function ( request , callback ) {
503
- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
504
-
505
- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetFriendLeaderboardAroundCurrentUser" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
506
- } ,
507
-
508
494
GetFriendLeaderboardAroundPlayer : function ( request , callback ) {
509
495
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
510
496
@@ -517,15 +503,6 @@ PlayFab.ClientApi = {
517
503
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetLeaderboard" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
518
504
} ,
519
505
520
- /**
521
- * @deprecated Please use GetLeaderboardAroundPlayer instead.
522
- */
523
- GetLeaderboardAroundCurrentUser : function ( request , callback ) {
524
- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
525
-
526
- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetLeaderboardAroundCurrentUser" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
527
- } ,
528
-
529
506
GetLeaderboardAroundPlayer : function ( request , callback ) {
530
507
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
531
508
@@ -568,15 +545,6 @@ PlayFab.ClientApi = {
568
545
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetUserReadOnlyData" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
569
546
} ,
570
547
571
- /**
572
- * @deprecated Please use GetPlayerStatistics instead.
573
- */
574
- GetUserStatistics : function ( request , callback ) {
575
- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
576
-
577
- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetUserStatistics" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
578
- } ,
579
-
580
548
UpdatePlayerStatistics : function ( request , callback ) {
581
549
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
582
550
@@ -595,15 +563,6 @@ PlayFab.ClientApi = {
595
563
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UpdateUserPublisherData" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
596
564
} ,
597
565
598
- /**
599
- * @deprecated Please use UpdatePlayerStatistics instead.
600
- */
601
- UpdateUserStatistics : function ( request , callback ) {
602
- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
603
-
604
- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UpdateUserStatistics" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
605
- } ,
606
-
607
566
GetCatalogItems : function ( request , callback ) {
608
567
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
609
568
@@ -796,15 +755,6 @@ PlayFab.ClientApi = {
796
755
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/ValidateGooglePlayPurchase" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
797
756
} ,
798
757
799
- /**
800
- * @deprecated Please use WritePlayerEvent instead.
801
- */
802
- LogEvent : function ( request , callback ) {
803
- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
804
-
805
- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LogEvent" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
806
- } ,
807
-
808
758
WriteCharacterEvent : function ( request , callback ) {
809
759
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
810
760
@@ -859,29 +809,6 @@ PlayFab.ClientApi = {
859
809
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/ExecuteCloudScript" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
860
810
} ,
861
811
862
- /**
863
- * @deprecated Please use ExecuteCloudScript instead.
864
- */
865
- GetCloudScriptUrl : function ( request , callback ) {
866
- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
867
-
868
- var overloadCallback = function ( result , error ) {
869
- PlayFab . _internalSettings . logicServerUrl = result . data . Url ;
870
- if ( callback != null && typeof ( callback ) == "function" )
871
- callback ( result , error ) ;
872
- } ;
873
- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetCloudScriptUrl" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , overloadCallback ) ;
874
- } ,
875
-
876
- /**
877
- * @deprecated Please use ExecuteCloudScript instead.
878
- */
879
- RunCloudScript : function ( request , callback ) {
880
- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
881
-
882
- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetLogicServerUrl ( ) + "/Client/RunCloudScript" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
883
- } ,
884
-
885
812
GetContentDownloadUrl : function ( request , callback ) {
886
813
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
887
814
@@ -1015,7 +942,7 @@ PlayFab.ClientApi = {
1015
942
if ( PlayFab . settings . advertisingIdType === PlayFab . settings . AD_TYPE_IDFA )
1016
943
request . Idfa = PlayFab . settings . advertisingIdValue ;
1017
944
else if ( PlayFab . settings . advertisingIdType === PlayFab . settings . AD_TYPE_ANDROID_ID )
1018
- request . Android_Id = PlayFab . settings . advertisingIdValue ;
945
+ request . Adid = PlayFab . settings . advertisingIdValue ;
1019
946
else
1020
947
return ;
1021
948
PlayFab . ClientApi . AttributeInstall ( request , null ) ;
0 commit comments