update: 完善 GuruInitConfig 的 Builder 写法
parent
b3c541cb84
commit
2bde58e27e
|
|
@ -9,6 +9,8 @@ namespace Guru
|
|||
/// </summary>
|
||||
public class GuruSDKInitConfig
|
||||
{
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// 使用自定义的ConsentFlow启动流程
|
||||
/// </summary>
|
||||
|
|
@ -65,6 +67,8 @@ namespace Guru
|
|||
public byte[] GoogleKeys; // 数据取自 GooglePlayTangle.Data();
|
||||
public byte[] AppleRootCerts; // 数据取自 AppleTangle.Data();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Print
|
||||
|
||||
public override string ToString()
|
||||
|
|
@ -88,6 +92,17 @@ namespace Guru
|
|||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Builder
|
||||
|
||||
/// <summary>
|
||||
/// 构造器
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static GuruSDKInitConfigBuilder Builder() => new GuruSDKInitConfigBuilder();
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue