Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
For #3074 - Checks to see if we have a Sentry token before initializi…
Browse files Browse the repository at this point in the history
…ng crash reporting
  • Loading branch information
boek committed Nov 9, 2018
1 parent 6171b89 commit 76e19d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ object CrashReporterWrapper {
// The BuildConfig value is populated from a file at compile time.
// If the file did not exist, the value will be null.
val supportedBuild = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
if (!supportedBuild || BuildConfig.SENTRY_TOKEN.isEmpty()) return
val hasSentryToken = BuildConfig.SENTRY_TOKEN != null
if (!hasSentryToken || !supportedBuild || BuildConfig.SENTRY_TOKEN.isEmpty()) return

val sentryDsn = BuildConfig.SENTRY_TOKEN

Expand Down

0 comments on commit 76e19d3

Please sign in to comment.