Просмотр исходного кода

feat: 修复Adjust埋点不上报问题

DoggyZhang 1 месяц назад
Родитель
Сommit
e381e7ce97

+ 1 - 1
frame/bom/build.gradle

@@ -6,7 +6,7 @@ plugins {
 ext {
     GROUP_ID = 'com.wenext.android'
     ARTIFACT_ID = 'frame-bom'
-    VERSION = '6.2.14'
+    VERSION = '6.2.15'
 }
 
 dependencies {

+ 1 - 1
frame/statistics/build.gradle

@@ -7,7 +7,7 @@ plugins {
 ext {
     GROUP_ID = 'com.wenext.android'
     ARTIFACT_ID = 'frame-statistics'
-    VERSION = '6.1.2'
+    VERSION = '6.1.3'
 }
 
 if (project.FRAME_DEBUG != "true") {

+ 3 - 3
frame/statistics/src/main/java/com/adealink/frame/statistics/report/AdjustReporter.kt

@@ -11,7 +11,7 @@ import com.adjust.sdk.AdjustEvent
 object AdjustReporter : IReport {
 
     override fun report(eventId: String, action: String?, event: HashMap<String, String>) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         action?.let {
@@ -31,7 +31,7 @@ object AdjustReporter : IReport {
     }
 
     override fun report(eventId: String, event: Bundle) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         val params = hashMapOf<String, String>()
@@ -53,7 +53,7 @@ object AdjustReporter : IReport {
     }
 
     override fun report(eventId: String, events: MutableMap<String, Any>, immediate: Boolean) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         val adjustEvent = AdjustEvent(eventId)

+ 3 - 3
frame/statistics/src/main/java/com/adealink/frame/statistics/report/AppFlyReporter.kt

@@ -10,7 +10,7 @@ import com.appsflyer.AppsFlyerLib
 object AppFlyReporter : IReport {
 
     override fun report(eventId: String, action: String?, event: HashMap<String, String>) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         action?.let {
@@ -20,7 +20,7 @@ object AppFlyReporter : IReport {
     }
 
     override fun report(eventId: String, event: Bundle) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         val params = hashMapOf<String, Any>()
@@ -33,7 +33,7 @@ object AppFlyReporter : IReport {
     }
 
     override fun report(eventId: String, events: MutableMap<String, Any>, immediate: Boolean) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         AppsFlyerLib.getInstance().logEvent(AppUtil.appContext, "af_$eventId", events.toMap())

+ 3 - 3
frame/statistics/src/main/java/com/adealink/frame/statistics/report/FacebookReporter.kt

@@ -12,7 +12,7 @@ object FacebookReporter: IReport {
     private val facebookLogger by lazy { AppEventsLogger.newLogger(AppUtil.appContext) }
 
     override fun report(eventId: String, action: String?, event: HashMap<String, String>) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         val bundle = Bundle()
@@ -26,14 +26,14 @@ object FacebookReporter: IReport {
     }
 
     override fun report(eventId: String, event: Bundle) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         facebookLogger.logEvent(eventId, event)
     }
 
     override fun report(eventId: String, events: MutableMap<String, Any>, immediate: Boolean) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         val bundle = Bundle()

+ 3 - 3
frame/statistics/src/main/java/com/adealink/frame/statistics/report/FirebaseReporter.kt

@@ -17,7 +17,7 @@ object FirebaseReporter : IReport {
     }
 
     override fun report(eventId: String, action: String?, event: HashMap<String, String>) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         val bundle = Bundle()
@@ -31,14 +31,14 @@ object FirebaseReporter : IReport {
     }
 
     override fun report(eventId: String, event: Bundle) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         firebaseAnalytics.logEvent(eventId, event)
     }
 
     override fun report(eventId: String, events: MutableMap<String, Any>, immediate: Boolean) {
-        if (!statConfig.skipReport) {
+        if (statConfig.skipReport) {
             return
         }
         val bundle = Bundle()