diff --git a/CHANGELOG.md b/CHANGELOG.md index 38969b7..59bf797 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,27 +4,28 @@ ### Feature -* 新增篝火测试资格交验 +* 新增篝火测试资格校验 ``` - Bootstrap.GetTestQualification(bool,tapError=>{}): + Bootstrap.GetTestQualification((bool, error)=>{ }): ``` * TapDB 通过 TapConfig 进行自动初始化 * 支持性改动用于 TapTap.Friends ### Breaking changes -* 废弃 Bind 接口 * LoginType 删除 Apple、Guest 登陆方式 +* TDS-Info.plist 删除 Apple_SignIn_Enable 配置 +* 废弃 Bind 接口 * TapConfig Refactor Constructor ```c# //建议使用以下 TapConfig 构造方法进行初始化 var config = new TapConfig.TapConfigBuilder() - .ClientID("client_id") - .ClientSecrect("client_secret") - .RegionType(RegionType.CN) - .Builder(); - - Bootstrap.Init(config); + .ClientID("client_id") + .ClientSecret("client_secret") + .RegionType(RegionType.CN) + .TapDBConfig("channel", "gameVersion") + .Builder(); + TapBootstrap.Init(config); ``` ### Dependencies diff --git a/Documentation/README.md b/Documentation/README.md index dc02880..ba5dd18 100644 --- a/Documentation/README.md +++ b/Documentation/README.md @@ -16,7 +16,13 @@ using TapTap.Bootstrap; ### 初始化 ```c# -TapConfig config = new TapConfig(string clientId,bool isCN); +var config = new TapConfig.TapConfigBuilder() + .ClientID("client_id") + .ClientSecret("client_secret") + .RegionType(RegionType.CN) + .TapDBConfig("channel", "gameVersion") + .Builder(); + TapBootstrap.Init(config); ``` diff --git a/Editor/TapBootstrapIOSProcessor.cs b/Editor/TapBootstrapIOSProcessor.cs index 6464446..b9767ce 100644 --- a/Editor/TapBootstrapIOSProcessor.cs +++ b/Editor/TapBootstrapIOSProcessor.cs @@ -36,8 +36,6 @@ namespace TapTap.Bootstrap.Editor TapCommonCompile.HandlerPlist(path, plistFile.FullName); - HandlerAppleSignIn(proj, target, path, plistFile.FullName); - if (TapCommonCompile.HandlerIOSSetting(path, Application.dataPath, "TapBootstrapResource", @@ -53,26 +51,5 @@ namespace TapTap.Bootstrap.Editor Debug.LogWarning("TapBootstrap add Bundle Failed!"); } - private static void HandlerAppleSignIn(PBXProject proj, string target, string path, string plistPath) - { - var appleSignInEnable = TapCommonCompile.GetValueFromPlist(plistPath, "Apple_SignIn_Enable"); - var appleSignInEnableKey = "com.apple.developer.applesignin"; - if (string.IsNullOrEmpty(appleSignInEnable) || appleSignInEnable.Equals("false")) - { - Debug.LogWarning("TapSDK can't open Apple SignIn in XCode, Please Check Info.plist."); - return; - } - - var entitleFilePath = $"{path}/Unity-iPhone.entitlements"; - var tempEntitlements = new PlistDocument(); - if (!((tempEntitlements.root[appleSignInEnableKey] = new PlistElementArray()) is PlistElementArray arrSigninWithApple)) - { - Debug.LogWarning($"TapSDK can't find {appleSignInEnableKey}."); - return; - } - arrSigninWithApple.values.Add(new PlistElementString("Default")); - proj.AddCapability(target, PBXCapabilityType.SignInWithApple, entitleFilePath); - tempEntitlements.WriteToFile(entitleFilePath); - } } } \ No newline at end of file diff --git a/Plugins/Android/libs/TapBootstrap_2.1.0.aar b/Plugins/Android/libs/TapBootstrap_2.1.0.aar index 0991736..9d52592 100644 Binary files a/Plugins/Android/libs/TapBootstrap_2.1.0.aar and b/Plugins/Android/libs/TapBootstrap_2.1.0.aar differ diff --git a/Plugins/TapTap.Bootstrap.dll b/Plugins/TapTap.Bootstrap.dll index e376773..f2e15a8 100644 Binary files a/Plugins/TapTap.Bootstrap.dll and b/Plugins/TapTap.Bootstrap.dll differ diff --git a/Plugins/TapTap.Bootstrap.pdb b/Plugins/TapTap.Bootstrap.pdb index 4c6f6ba..9e42fac 100644 Binary files a/Plugins/TapTap.Bootstrap.pdb and b/Plugins/TapTap.Bootstrap.pdb differ diff --git a/README.md b/README.md index a168ffa..ab05ace 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,13 @@ using TapTap.Bootstrap; ### 初始化 ```c# -TapConfig config = new TapConfig(string clientId,bool isCN); +var config = new TapConfig.TapConfigBuilder() + .ClientID("client_id") + .ClientSecret("client_secret") + .RegionType(RegionType.CN) + .TapDBConfig("channel", "gameVersion") + .Builder(); + TapBootstrap.Init(config); ``` @@ -57,6 +63,11 @@ TapBootstrap.GetUser(Action action); TapBootstrap.GetDetailUser(Action action); ``` +### 篝火测试资格 +```c# +TapBootstrap.GetTestQualification(Action action); +``` + ### 获取AccessToken ```c# TapBootstrap.GetDetailUser(Action action);