Skip to content

Commit

Permalink
Adjust analytics to send event only if is not debug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregpereira committed Jan 14, 2024
1 parent 2e83319 commit d59a0b4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ internal class FirebaseAnalytics(
is Double -> bundle.putDouble(key, value)
}
}
analytics.logEvent(eventNameNormalized, bundle)

if (BuildConfig.DEBUG) {
Log.d("FirebaseAnalytics", "event name: $eventNameNormalized. params: $params")
} else {
analytics.logEvent(eventNameNormalized, bundle)
}
}

Expand Down

0 comments on commit d59a0b4

Please sign in to comment.