mirror of
https://github.com/home-assistant/android
synced 2024-07-22 02:45:11 +00:00
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:
parent
1d31d8743a
commit
4fe2489432
2
.github/workflows/beta.yml
vendored
2
.github/workflows/beta.yml
vendored
|
@ -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:
|
||||
|
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -31,6 +31,8 @@ android {
|
|||
|
||||
versionName = System.getenv("VERSION") ?: "LOCAL"
|
||||
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
|
||||
|
||||
manifestPlaceholders["sentryRelease"] = "$applicationId@$versionName"
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue