[U] add PlayFab SDK and SNS login improvements
- Add PlayFabSDK as local package dependency - Add PlayFabTool.cs for PlayFab API integration - Implement LoginBySns method in TYSdkFacade - Add Android SNS login support in SDKManager and UnityBridgeFunc - Add Build Android With Debug menu option - Improve exception handling and timeout management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using UnityEngine;
|
||||
using PlayFab;
|
||||
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
[CreateAssetMenu(fileName = "PlayFabSharedSettings", menuName = "PlayFab/CreateSharedSettings", order = 1)]
|
||||
#endif
|
||||
public class PlayFabSharedSettings : ScriptableObject
|
||||
{
|
||||
public string TitleId;
|
||||
|
||||
internal string VerticalName = null;
|
||||
#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API || UNITY_EDITOR || ENABLE_PLAYFAB_SECRETKEY
|
||||
public string DeveloperSecretKey;
|
||||
#endif
|
||||
public string ProductionEnvironmentUrl = "";
|
||||
|
||||
#if UNITY_2017_2_OR_NEWER
|
||||
public WebRequestType RequestType = WebRequestType.UnityWebRequest;
|
||||
#else
|
||||
public WebRequestType RequestType = WebRequestType.UnityWww;
|
||||
#endif
|
||||
|
||||
public bool DisableDeviceInfo;
|
||||
public bool DisableFocusTimeCollection;
|
||||
|
||||
public int RequestTimeout = 2000;
|
||||
public bool RequestKeepAlive = true;
|
||||
|
||||
public PlayFabLogLevel LogLevel = PlayFabLogLevel.Warning | PlayFabLogLevel.Error;
|
||||
public string LoggerHost = "";
|
||||
public int LoggerPort = 0;
|
||||
public bool EnableRealTimeLogging = false;
|
||||
public int LogCapLimit = 30;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 093286084a3d1994a9c28281a1c38b1d
|
||||
timeCreated: 1467748518
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,44 @@
|
||||
using PlayFab.Internal;
|
||||
|
||||
namespace PlayFab.SharedModels
|
||||
{
|
||||
public class HttpResponseObject
|
||||
{
|
||||
public int code;
|
||||
public string status;
|
||||
public object data;
|
||||
}
|
||||
|
||||
public class PlayFabBaseModel
|
||||
{
|
||||
public string ToJson()
|
||||
{
|
||||
var json = PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer);
|
||||
return json.SerializeObject(this);
|
||||
}
|
||||
}
|
||||
|
||||
public interface IPlayFabInstanceApi { }
|
||||
|
||||
public class PlayFabRequestCommon : PlayFabBaseModel
|
||||
{
|
||||
public PlayFabAuthenticationContext AuthenticationContext;
|
||||
}
|
||||
|
||||
public class PlayFabResultCommon : PlayFabBaseModel
|
||||
{
|
||||
public PlayFabRequestCommon Request;
|
||||
public object CustomData;
|
||||
}
|
||||
|
||||
public class PlayFabLoginResultCommon : PlayFabResultCommon
|
||||
{
|
||||
public PlayFabAuthenticationContext AuthenticationContext;
|
||||
}
|
||||
|
||||
public class PlayFabResult<TResult> where TResult : PlayFabResultCommon
|
||||
{
|
||||
public TResult Result;
|
||||
public object CustomData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8e2ad5324972b434883785ddddf9c851
|
||||
timeCreated: 1467491766
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user