[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,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using PlayFab.SharedModels;
|
||||
|
||||
namespace PlayFab.Internal
|
||||
{
|
||||
public enum AuthType
|
||||
{
|
||||
None,
|
||||
PreLoginSession, // Not yet defined
|
||||
LoginSession, // "X-Authorization"
|
||||
DevSecretKey, // "X-SecretKey"
|
||||
EntityToken, // "X-EntityToken"
|
||||
}
|
||||
|
||||
public enum HttpRequestState
|
||||
{
|
||||
Sent,
|
||||
Received,
|
||||
Idle,
|
||||
Error
|
||||
}
|
||||
|
||||
public class CallRequestContainer
|
||||
{
|
||||
#if !UNITY_WSA && !UNITY_WP8
|
||||
public HttpRequestState HttpState = HttpRequestState.Idle;
|
||||
public System.Net.HttpWebRequest HttpRequest = null;
|
||||
#endif
|
||||
#if PLAYFAB_REQUEST_TIMING
|
||||
public PlayFabHttp.RequestTiming Timing;
|
||||
public System.Diagnostics.Stopwatch Stopwatch;
|
||||
#endif
|
||||
|
||||
// This class stores the state of the request and all associated data
|
||||
public string ApiEndpoint = null;
|
||||
public string FullUrl = null;
|
||||
public byte[] Payload = null;
|
||||
public string JsonResponse = null;
|
||||
public PlayFabRequestCommon ApiRequest;
|
||||
public Dictionary<string, string> RequestHeaders;
|
||||
public PlayFabResultCommon ApiResult;
|
||||
public PlayFabError Error;
|
||||
public Action DeserializeResultJson;
|
||||
public Action InvokeSuccessCallback;
|
||||
public Action<PlayFabError> ErrorCallback;
|
||||
public object CustomData = null;
|
||||
public PlayFabApiSettings settings;
|
||||
public PlayFabAuthenticationContext context;
|
||||
public IPlayFabInstanceApi instanceApi;
|
||||
public bool CalledGetResponse = false;
|
||||
|
||||
public CallRequestContainer()
|
||||
{
|
||||
#if PLAYFAB_REQUEST_TIMING
|
||||
Stopwatch = System.Diagnostics.Stopwatch.StartNew();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user