Commit ad8c266f authored by wanglei's avatar wanglei

上报

parent ac37879f
...@@ -9,6 +9,7 @@ import android.text.style.UnderlineSpan ...@@ -9,6 +9,7 @@ import android.text.style.UnderlineSpan
import com.base.easyfilemanager.MyApplication import com.base.easyfilemanager.MyApplication
import com.base.easyfilemanager.databinding.ActivityLayoutSplashBinding import com.base.easyfilemanager.databinding.ActivityLayoutSplashBinding
import com.base.easyfilemanager.helps.ConfigHelper import com.base.easyfilemanager.helps.ConfigHelper
import com.base.easyfilemanager.helps.EventHelper
class PrivacyAgreementManager { class PrivacyAgreementManager {
...@@ -53,13 +54,9 @@ class PrivacyAgreementManager { ...@@ -53,13 +54,9 @@ class PrivacyAgreementManager {
return@setOnClickListener return@setOnClickListener
} }
clicked = true clicked = true
// binding.idTvStart.isVisible = false
// binding.idLlJindu.isVisible = true
// binding.idLlYinsi.isVisible = false
ConfigHelper.ifAgreePrivacy = true ConfigHelper.ifAgreePrivacy = true
(context.application as com.base.easyfilemanager.MyApplication).initApp() (context.application as MyApplication).initApp()
// EventHelper.event("click_start_to_use") EventHelper.event("click_start_to_use")
// EventHelper.event("page_${javaClass.simpleName}")
listener.onAgreePrivacy() listener.onAgreePrivacy()
} }
} }
......
...@@ -73,7 +73,7 @@ object PushStrategy { ...@@ -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") LogEx.logDebug(TAG, "isResumed=$isResumed")
if (isResumed) { if (isResumed) {
LogEx.logDebug(TAG, "================================app在前台拦截===============================") LogEx.logDebug(TAG, "================================app在前台拦截===============================")
......
...@@ -43,12 +43,17 @@ object EventHelper { ...@@ -43,12 +43,17 @@ object EventHelper {
val filterKey = arrayOf( val filterKey = arrayOf(
"click_start_to_use", "click_start_to_use",
"install_referrer", "install_referrer",
"ad_pull_start",
"ad_prepare_show",
"notification_jump",
"ad_pull",
"ad_show", "ad_show",
"ad_click", "ad_click",
"bigimage_ad_click",
"bigimage_ad_show",
"ad_price", "ad_price",
"fcm_receiver", "fcm_receiver",
"fcm_message_received", "fcm_message_received"
"notification_jump",
) )
if (!filterKey.contains(key)) { if (!filterKey.contains(key)) {
return return
......
...@@ -551,7 +551,11 @@ object AdmobUtils { ...@@ -551,7 +551,11 @@ object AdmobUtils {
obj.put("credentials", credentials.toString()) obj.put("credentials", credentials.toString())
obj.put("session_id", responseInfo?.responseId) obj.put("session_id", responseInfo?.responseId)
obj.put("from", activity?.javaClass?.simpleName) 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 private var lastObj: Any? = null
...@@ -588,7 +592,11 @@ object AdmobUtils { ...@@ -588,7 +592,11 @@ object AdmobUtils {
obj.put("credentials", credentials.toString()) obj.put("credentials", credentials.toString())
obj.put("session_id", responseInfo?.responseId) obj.put("session_id", responseInfo?.responseId)
obj.put("networkname", responseInfo?.mediationAdapterClassName) 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 { 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