Skip to content

Commit

Permalink
feat: enable countly crash reporting [WPB-12186] (#3641)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara authored Nov 20, 2024
1 parent c1fc003 commit 9d6d30d
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ class AnonymousAnalyticsRecorderImpl : AnonymousAnalyticsRecorder {
context,
analyticsSettings.countlyAppKey,
analyticsSettings.countlyServerUrl
)
.enableTemporaryDeviceIdMode() // Nothing is sent until a proper ID is placed
.setLoggingEnabled(analyticsSettings.enableDebugLogging)
countlyConfig.apm.enableAppStartTimeTracking()
countlyConfig.apm.enableForegroundBackgroundTracking()
countlyConfig.setApplication(context.applicationContext as Application)
).apply {
setApplication(context.applicationContext as Application)
enableTemporaryDeviceIdMode() // Nothing is sent until a proper ID is placed
setLoggingEnabled(analyticsSettings.enableDebugLogging)
crashes.apply {
enableCrashReporting()
}
apm.apply {
enableAppStartTimeTracking()
enableForegroundBackgroundTracking()
}
}

Countly.sharedInstance().init(countlyConfig)
Countly.sharedInstance().consent().giveConsent(arrayOf("apm"))
Expand Down

0 comments on commit 9d6d30d

Please sign in to comment.