|
@@ -1,7 +1,9 @@
|
|
|
package com.adealink.frame.statistics.report
|
|
package com.adealink.frame.statistics.report
|
|
|
|
|
|
|
|
import android.os.Bundle
|
|
import android.os.Bundle
|
|
|
|
|
+import com.adealink.frame.base.AppBase
|
|
|
import com.adealink.frame.statistics.CommonEventKey
|
|
import com.adealink.frame.statistics.CommonEventKey
|
|
|
|
|
+import com.adealink.frame.statistics.TAG_STAT
|
|
|
import com.adealink.frame.statistics.statConfig
|
|
import com.adealink.frame.statistics.statConfig
|
|
|
import com.adealink.frame.util.AppUtil
|
|
import com.adealink.frame.util.AppUtil
|
|
|
import com.appsflyer.AppsFlyerLib
|
|
import com.appsflyer.AppsFlyerLib
|
|
@@ -11,6 +13,7 @@ object AppFlyReporter : IReport {
|
|
|
|
|
|
|
|
override fun report(eventId: String, action: String?, event: HashMap<String, String>) {
|
|
override fun report(eventId: String, action: String?, event: HashMap<String, String>) {
|
|
|
if (statConfig.skipReport) {
|
|
if (statConfig.skipReport) {
|
|
|
|
|
+ AppBase.log.d(TAG_STAT, "AppFlyReporter return, for skipReport == true")
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
action?.let {
|
|
action?.let {
|
|
@@ -21,6 +24,7 @@ object AppFlyReporter : IReport {
|
|
|
|
|
|
|
|
override fun report(eventId: String, event: Bundle) {
|
|
override fun report(eventId: String, event: Bundle) {
|
|
|
if (statConfig.skipReport) {
|
|
if (statConfig.skipReport) {
|
|
|
|
|
+ AppBase.log.d(TAG_STAT, "AppFlyReporter return, for skipReport == true")
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
val params = hashMapOf<String, Any>()
|
|
val params = hashMapOf<String, Any>()
|
|
@@ -34,6 +38,7 @@ object AppFlyReporter : IReport {
|
|
|
|
|
|
|
|
override fun report(eventId: String, events: MutableMap<String, Any>, immediate: Boolean) {
|
|
override fun report(eventId: String, events: MutableMap<String, Any>, immediate: Boolean) {
|
|
|
if (statConfig.skipReport) {
|
|
if (statConfig.skipReport) {
|
|
|
|
|
+ AppBase.log.d(TAG_STAT, "AppFlyReporter return, for skipReport == true")
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
AppsFlyerLib.getInstance().logEvent(AppUtil.appContext, "af_$eventId", events.toMap())
|
|
AppsFlyerLib.getInstance().logEvent(AppUtil.appContext, "af_$eventId", events.toMap())
|