F: disable loom and fix event reporting

Signed-off-by: huyufei <yufei.hu@castbox.fm>
deeplink
胡宇飞 2024-05-11 08:38:31 +08:00
parent 4c899f9aeb
commit a9346bc1bb
2 changed files with 12 additions and 15 deletions

View File

@ -171,20 +171,17 @@ namespace Guru
{ {
if (adInfo == null) return; if (adInfo == null) return;
// 在主线程中计算相关的收益值 // #1. ad_impression
Loom.QueueOnMainThread(() => OnAdImpression(adInfo);
{
// #1. ad_impression // #2. tch_ad_rev_roas calculation
OnAdImpression(adInfo); double revenue = adInfo.Revenue;
CalcTaichi001Value(revenue);
// #2. tch_ad_rev_roas calculation CalcTaichi02Value(revenue);
double revenue = adInfo.Revenue;
CalcTaichi001Value(revenue); // #3. Adjust ad_revenue
CalcTaichi02Value(revenue); AdjustService.TrackADRevenue(adInfo);
// #3. Adjust ad_revenue
AdjustService.TrackADRevenue(adInfo);
});
} }
/// <summary> /// <summary>

View File

@ -28,7 +28,7 @@ namespace Guru
_isDebug = isDebug; _isDebug = isDebug;
Analytics.InitAnalytics(); // 打点提前初始化 Analytics.InitAnalytics(); // 打点提前初始化
Loom.StartUp(); // 确保主线程开启 // Loom.StartUp(); // 确保主线程开启
// 初始化 Fireabse 依赖 // 初始化 Fireabse 依赖
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task => { FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task => {