Sentry.io Changes (#846)

* Set the sentry.io release version explicitly.

* Include session tracking to improve crash support.

* ktlint

* Remove comments in build
This commit is contained in:
Justin Bassett 2020-08-30 15:19:20 -04:00 committed by GitHub
parent 1d31d8743a
commit 4fe2489432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View file

@ -159,7 +159,7 @@ jobs:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
tagName: ${{ env.VERSION }}
tagName: io.homeassistant.companion.android@${{ env.VERSION }}
environment: Beta
play_publish:

View file

@ -151,6 +151,7 @@ jobs:
KEYSTORE_ALIAS: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS }}
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS_PASSWORD }}
run: ./gradlew appDistributionUploadFullRelease
- name: Create a Sentry.io release
uses: tclindner/sentry-releases-action@v1.2.0
env:
@ -158,7 +159,7 @@ jobs:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
tagName: ${{ env.VERSION }}
tagName: io.homeassistant.companion.android@${{ env.VERSION }}
environment: Production
play_publish:

View file

@ -31,6 +31,8 @@ android {
versionName = System.getenv("VERSION") ?: "LOCAL"
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
manifestPlaceholders["sentryRelease"] = "$applicationId@$versionName"
}
buildFeatures {

View file

@ -6,6 +6,8 @@
<application
android:name=".HomeAssistantApplication" >
<meta-data android:name="io.sentry.auto-init" android:value="${sentryEnabled}" />
<meta-data android:name="io.sentry.release" android:value="${sentryRelease}" />
<meta-data android:name="io.sentry.session-tracking.enable" android:value="true" />
<meta-data android:name="io.sentry.dsn" android:value="https://2d646f40f9574e0b9579e301a69bb030@o427061.ingest.sentry.io/5372876" />
<receiver