Found 2 matches for pattern "sentryEnvironment" in path "app/src/main/java/com/servicebook": --- File: ServiceBookApplication.kt L73- doSentryInit(dsn) L74- } L75- } L76- L77- protected open fun doSentryInit(dsn: String) { L78- SentryAndroid.init(this) { options -> L79- configureSentryOptions(options, dsn) L80- } L81- } L82- L83- internal fun configureSentryOptions( L84- options: SentryAndroidOptions, L85- dsn: String, L86- ) { L87- options.dsn = dsn L88: options.environment = sentryEnvironment L89- options.release = sentryRelease L90- options.sampleRate = 1.0 L91- options.tracesSampleRate = 0.0 L92- options.isSendDefaultPii = false L93- options.isEnableUserInteractionTracing = false L94- options.isEnableAutoSessionTracking = false L95- options.isAttachScreenshot = false L96- options.isAttachViewHierarchy = false L97- options.setBeforeSend(::beforeSend) L98- } L99- L100: protected open val sentryEnvironment: String L101- get() = if (BuildConfig.DEBUG) "debug" else "release" L102- L103- protected open val sentryRelease: String L104- get() = "${BuildConfig.APPLICATION_ID}@${BuildConfig.VERSION_NAME}+${BuildConfig.VERSION_CODE}" L105- L106- fun enableSentryNow() { L107- val dsn = sentryDsn L108- if (dsn.isNotEmpty() && !Sentry.isEnabled()) { L109- doSentryInit(dsn) L110- } L111- } L112- L113- /** Closes Sentry and flushes pending events on [Dispatchers.IO]; may block up to ~2 s. */ L114- suspend fun disableSentryNow() { L115- if (Sentry.isEnabled()) { ---