update: 完善 GuruInitConfig 的 Builder 写法

release/V1.1.0
胡宇飞 2024-08-02 11:40:05 +08:00
parent b3c541cb84
commit 2bde58e27e
2 changed files with 16 additions and 1 deletions

View File

@ -9,6 +9,8 @@ namespace Guru
/// </summary>
public class GuruSDKInitConfig
{
#region Properties
/// <summary>
/// 使用自定义的ConsentFlow启动流程
/// </summary>
@ -64,6 +66,8 @@ namespace Guru
/// </summary>
public byte[] GoogleKeys; // 数据取自 GooglePlayTangle.Data();
public byte[] AppleRootCerts; // 数据取自 AppleTangle.Data();
#endregion
#region Print
@ -88,6 +92,17 @@ namespace Guru
#endregion
#region Builder
/// <summary>
/// 构造器
/// </summary>
/// <returns></returns>
public static GuruSDKInitConfigBuilder Builder() => new GuruSDKInitConfigBuilder();
#endregion
}

View File

@ -92,7 +92,7 @@ namespace Guru
public static void Init(Action<bool> onComplete)
{
Init(new GuruSDKInitConfigBuilder().Build(), onComplete);
Init(GuruSDKInitConfig.Builder().Build(), onComplete);
}
public static void Init(GuruSDKInitConfig config, Action<bool> onComplete)