屏蔽上报
This commit is contained in:
parent
7db300f677
commit
b4952deb67
@ -19,114 +19,114 @@ namespace BF
|
||||
public void Init()
|
||||
{
|
||||
BFLog.Log("TASdk.Init");
|
||||
TASdk.Init();
|
||||
AFSdk.Init();
|
||||
// TASdk.Init();
|
||||
// AFSdk.Init();
|
||||
}
|
||||
|
||||
// 设置账户id
|
||||
public void SetThinkingAnalyticsAccountId(string id)
|
||||
{
|
||||
TASdk.SetAccountId(id);
|
||||
// TASdk.SetAccountId(id);
|
||||
}
|
||||
|
||||
// 清除账户id
|
||||
public void ClearThinkingAnalyticsAccountId()
|
||||
{
|
||||
TASdk.ClearAccountId();
|
||||
// TASdk.ClearAccountId();
|
||||
}
|
||||
|
||||
// 数数科技上报
|
||||
// lua端使用
|
||||
public void PostThinkingAnalyticsEvent(string eventName, string data = "")
|
||||
{
|
||||
if (string.IsNullOrEmpty(data))
|
||||
{
|
||||
TASdk.Track(eventName, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
var properties = JsonConvert.DeserializeObject<Dictionary<string, object>>(data);
|
||||
TASdk.Track(eventName, properties);
|
||||
}
|
||||
// if (string.IsNullOrEmpty(data))
|
||||
// {
|
||||
// TASdk.Track(eventName, null);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// var properties = JsonConvert.DeserializeObject<Dictionary<string, object>>(data);
|
||||
// TASdk.Track(eventName, properties);
|
||||
// }
|
||||
}
|
||||
|
||||
// 数数科技上报
|
||||
// c#端使用,只上报事件名
|
||||
public void PostThinkingAnalyticsEventName(string eventName)
|
||||
{
|
||||
TASdk.Track(eventName, null);
|
||||
// TASdk.Track(eventName, null);
|
||||
}
|
||||
|
||||
// 数数科技上报
|
||||
// c#端使用,上报事件名和参数
|
||||
public void PostThinkingAnalyticsEventProperties(string eventName, Dictionary<string, object> properties)
|
||||
{
|
||||
TASdk.Track(eventName, properties);
|
||||
// TASdk.Track(eventName, properties);
|
||||
}
|
||||
|
||||
public void PostAppsflyerEvent(string eventName, string data = "")
|
||||
{
|
||||
if (string.IsNullOrEmpty(data))
|
||||
{
|
||||
AFSdk.SendEvent(eventName, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||
AFSdk.SendEvent(eventName, properties);
|
||||
}
|
||||
// if (string.IsNullOrEmpty(data))
|
||||
// {
|
||||
// AFSdk.SendEvent(eventName, null);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||
// AFSdk.SendEvent(eventName, properties);
|
||||
// }
|
||||
}
|
||||
|
||||
public void PostFireBaseEvent(string eventName, string data = "")
|
||||
{
|
||||
if (string.IsNullOrEmpty(data))
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
BFMain.Instance.SDKMgr.BFNativeSDKMgr.LogEvent(eventName, data);
|
||||
}
|
||||
// if (string.IsNullOrEmpty(data))
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// BFMain.Instance.SDKMgr.BFNativeSDKMgr.LogEvent(eventName, data);
|
||||
// }
|
||||
}
|
||||
|
||||
// 设置账户id
|
||||
public void PostAdjustSimpleTrackEvent(string key)
|
||||
{
|
||||
AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||
// BFLog.Log("PostAdjustSimpleTrackEvent");
|
||||
Adjust.trackEvent(adjustEvent);
|
||||
// AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||
// // BFLog.Log("PostAdjustSimpleTrackEvent");
|
||||
// Adjust.trackEvent(adjustEvent);
|
||||
}
|
||||
|
||||
public void PostAdjustRevenueTrackEvent(string key, double currency, string currencyCode)
|
||||
{
|
||||
AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||
adjustEvent.setRevenue(currency, currencyCode);
|
||||
// BFLog.Log("PostAdjustRevenueTrackEvent");
|
||||
Adjust.trackEvent(adjustEvent);
|
||||
// AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||
// adjustEvent.setRevenue(currency, currencyCode);
|
||||
// // BFLog.Log("PostAdjustRevenueTrackEvent");
|
||||
// Adjust.trackEvent(adjustEvent);
|
||||
}
|
||||
|
||||
public void PostAdjustCallbackTrackEvent(string key, string data = "")
|
||||
{
|
||||
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||
AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||
foreach (var item in properties)
|
||||
{
|
||||
adjustEvent.addCallbackParameter(item.Key, item.Value);
|
||||
}
|
||||
// BFLog.Log("PostAdjustCallbackTrackEvent");
|
||||
Adjust.trackEvent(adjustEvent);
|
||||
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||
// AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||
// foreach (var item in properties)
|
||||
// {
|
||||
// adjustEvent.addCallbackParameter(item.Key, item.Value);
|
||||
// }
|
||||
// // BFLog.Log("PostAdjustCallbackTrackEvent");
|
||||
// Adjust.trackEvent(adjustEvent);
|
||||
}
|
||||
|
||||
public void PostAdjustPartnerTrackEvent(string key, string data = "")
|
||||
{
|
||||
var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||
AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||
foreach (var item in properties)
|
||||
{
|
||||
adjustEvent.addPartnerParameter(item.Key, item.Value);
|
||||
}
|
||||
// BFLog.Log("PostAdjustPartnerTrackEvent");
|
||||
Adjust.trackEvent(adjustEvent);
|
||||
// var properties = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||
// AdjustEvent adjustEvent = new AdjustEvent(key);
|
||||
// foreach (var item in properties)
|
||||
// {
|
||||
// adjustEvent.addPartnerParameter(item.Key, item.Value);
|
||||
// }
|
||||
// // BFLog.Log("PostAdjustPartnerTrackEvent");
|
||||
// Adjust.trackEvent(adjustEvent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user