mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +00:00
parent
a9e3a5daee
commit
1bbd047626
|
@ -29,6 +29,7 @@ android {
|
|||
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
|
||||
|
||||
manifestPlaceholders["sentryRelease"] = "$applicationId@$versionName"
|
||||
manifestPlaceholders["sentryDsn"] = System.getenv("SENTRY_DSN") ?: ""
|
||||
|
||||
bundle {
|
||||
language {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue