Sentry Config (#3191)

Hide Sentry Config
This commit is contained in:
Justin Bassett 2022-12-30 20:34:20 -05:00 committed by GitHub
parent a9e3a5daee
commit 1bbd047626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View file

@ -29,6 +29,7 @@ android {
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
manifestPlaceholders["sentryRelease"] = "$applicationId@$versionName"
manifestPlaceholders["sentryDsn"] = System.getenv("SENTRY_DSN") ?: ""
bundle {
language {

View file

@ -5,6 +5,7 @@
android:name="io.homeassistant.companion.android.HomeAssistantApplication" >
<meta-data android:name="io.sentry.auto-init" android:value="false" />
<meta-data android:name="io.sentry.release" android:value="${sentryRelease}" />
<meta-data android:name="io.sentry.dsn" android:value="${sentryDsn}" />
<activity
android:name=".matter.MatterCommissioningActivity"

View file

@ -29,7 +29,6 @@ fun initCrashReporting(context: Context, enabled: Boolean) {
SentryAndroid.init(context) { options ->
options.isEnableAutoSessionTracking = true
options.isEnableNdk = false
options.dsn = "https://2d646f40f9574e0b9579e301a69bb030@o427061.ingest.sentry.io/5372876"
options.beforeSend = SentryOptions.BeforeSendCallback { event, _ ->
if (event.isCrashed && event.throwable != null) {