Commit ad8c266f authored by wanglei's avatar wanglei

上报

parent ac37879f
......@@ -9,6 +9,7 @@ import android.text.style.UnderlineSpan
import com.base.easyfilemanager.MyApplication
import com.base.easyfilemanager.databinding.ActivityLayoutSplashBinding
import com.base.easyfilemanager.helps.ConfigHelper
import com.base.easyfilemanager.helps.EventHelper
class PrivacyAgreementManager {
......@@ -53,13 +54,9 @@ class PrivacyAgreementManager {
return@setOnClickListener
}
clicked = true
// binding.idTvStart.isVisible = false
// binding.idLlJindu.isVisible = true
// binding.idLlYinsi.isVisible = false
ConfigHelper.ifAgreePrivacy = true
(context.application as com.base.easyfilemanager.MyApplication).initApp()
// EventHelper.event("click_start_to_use")
// EventHelper.event("page_${javaClass.simpleName}")
(context.application as MyApplication).initApp()
EventHelper.event("click_start_to_use")
listener.onAgreePrivacy()
}
}
......
......@@ -73,7 +73,7 @@ object PushStrategy {
}
//是否在前台推送
val isResumed = com.base.easyfilemanager.MyApplication.PAUSED_VALUE == 1
val isResumed = MyApplication.PAUSED_VALUE == 1
LogEx.logDebug(TAG, "isResumed=$isResumed")
if (isResumed) {
LogEx.logDebug(TAG, "================================app在前台拦截===============================")
......
......@@ -43,12 +43,17 @@ object EventHelper {
val filterKey = arrayOf(
"click_start_to_use",
"install_referrer",
"ad_pull_start",
"ad_prepare_show",
"notification_jump",
"ad_pull",
"ad_show",
"ad_click",
"bigimage_ad_click",
"bigimage_ad_show",
"ad_price",
"fcm_receiver",
"fcm_message_received",
"notification_jump",
"fcm_message_received"
)
if (!filterKey.contains(key)) {
return
......
......@@ -551,7 +551,11 @@ object AdmobUtils {
obj.put("credentials", credentials.toString())
obj.put("session_id", responseInfo?.responseId)
obj.put("from", activity?.javaClass?.simpleName)
EventHelper.event("ad_show", ext = obj)
if(adUnit != "nativeAd"){
EventHelper.event("ad_show", ext = obj)
}else{
EventHelper.event("bigimage_ad_show", ext = obj)
}
}
private var lastObj: Any? = null
......@@ -588,7 +592,11 @@ object AdmobUtils {
obj.put("credentials", credentials.toString())
obj.put("session_id", responseInfo?.responseId)
obj.put("networkname", responseInfo?.mediationAdapterClassName)
EventHelper.event("ad_click", ext = obj)
if(adUnit != "nativeAd"){
EventHelper.event("ad_click", ext = obj)
}else{
EventHelper.event("bigimage_ad_click", ext = obj)
}
}
private val taichiPref by lazy {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment