diff --git a/Runtime/ABTest/ABTestManager.cs b/Runtime/ABTest/ABTestManager.cs
index 64a7432..97c82e1 100644
--- a/Runtime/ABTest/ABTestManager.cs
+++ b/Runtime/ABTest/ABTestManager.cs
@@ -1,10 +1,11 @@
namespace Guru
{
+ using System.Linq;
using System;
using System.Collections.Generic;
using Firebase.RemoteConfig;
- using Guru.LitJson;
+ using Newtonsoft.Json;
using UnityEngine;
///
@@ -12,7 +13,7 @@ namespace Guru
///
public class ABTestManager : Singleton
{
- public const string Version = "1.0.0";
+ public const string Version = "1.0.2";
private FirebaseRemoteConfig _remoteConfig;
private List _params;
@@ -51,10 +52,13 @@ namespace Guru
_remoteConfig = FirebaseRemoteConfig.DefaultInstance;
+ Debug.Log($"[AB] --- remoteConfig Counts: {_remoteConfig.Keys.Count()}");
+
string strValue;
foreach (var key in _remoteConfig.Keys)
{
strValue = _remoteConfig.GetValue(key).StringValue;
+ Debug.Log($"[AB] --- raw config: [{key}] : {strValue}");
AddParam(strValue);
}
@@ -135,7 +139,8 @@ namespace Guru
try
{
// 发现Guru AB测试标志位
- var dict = JsonMapper.ToObject>(value);
+ // var dict = JsonMapper.ToObject>(value);
+ var dict = JsonConvert.DeserializeObject>(value);
if (null != dict)
{
foreach (var k in dict.Keys)