IMPORTANT: The file content has been truncated. Status: Showing lines 80-120 of 178 total lines. Action: To read more of the file, you can use the 'start_line' and 'end_line' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use start_line: 121. --- FILE CONTENT (truncated) --- } } internal fun configureSentryOptions( options: SentryAndroidOptions, dsn: String, ) { options.dsn = dsn options.environment = sentryEnvironment options.release = sentryRelease options.sampleRate = 1.0 options.tracesSampleRate = 0.0 options.isSendDefaultPii = false options.isEnableUserInteractionTracing = false options.isEnableAutoSessionTracking = false options.isAttachScreenshot = false options.isAttachViewHierarchy = false options.setBeforeSend(::beforeSend) } /** * Sentry tag values, internal-only because ReportBugViewModel.performSubmission * needs them for the lazy-init path. */ internal open val sentryEnvironment: String get() = if (BuildConfig.DEBUG) "debug" else "release" internal open val sentryRelease: String get() = "${BuildConfig.APPLICATION_ID}@${BuildConfig.VERSION_NAME}+${BuildConfig.VERSION_CODE}" fun enableSentryNow() { val dsn = sentryDsn if (dsn.isNotEmpty() && !Sentry.isEnabled()) { doSentryInit(dsn) } } /** Closes Sentry and flushes pending events on [Dispatchers.IO]; may block up to ~2 s. */ suspend fun disableSentryNow() { if (Sentry.isEnabled()) { withContext(Dispatchers.IO) {