Skip to content

Commit

Permalink
fix: Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
omerhabib26 committed Sep 13, 2024
1 parent 83b87ec commit 6770653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.openedx.core.utils.Logger
class FirebaseAnalytics(context: Context) : Analytics {

private val logger = Logger(TAG)
private var tracker: FirebaseAnalytics = FirebaseAnalytics.getInstance(context)
private val tracker: FirebaseAnalytics = FirebaseAnalytics.getInstance(context)

override fun logScreenEvent(screenName: String, params: Map<String, Any?>) {
tracker.logEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SegmentAnalytics(context: Context, config: Config) : Analytics {
private val logger = Logger(TAG)

// Create an analytics client with the given application context and Segment write key.
private var tracker: SegmentTracker =
private val tracker: SegmentTracker =
SegmentAnalyticsBuilder(config.getSegmentConfig().segmentWriteKey, context) {
// Automatically track Lifecycle events
trackApplicationLifecycleEvents = true
Expand Down

0 comments on commit 6770653

Please sign in to comment.