Skip to content

Commit

Permalink
Sentry.io Changes (#846)
Browse files Browse the repository at this point in the history
* Set the sentry.io release version explicitly.

* Include session tracking to improve crash support.

* ktlint

* Remove comments in build
  • Loading branch information
JBassett committed Aug 30, 2020
1 parent 1d31d87 commit 4fe2489
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/beta.yml
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -151,14 +151,15 @@ 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:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
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:
Expand Down
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Expand Up @@ -31,6 +31,8 @@ android {

versionName = System.getenv("VERSION") ?: "LOCAL"
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1

manifestPlaceholders["sentryRelease"] = "$applicationId@$versionName"
}

buildFeatures {
Expand Down
2 changes: 2 additions & 0 deletions app/src/full/AndroidManifest.xml
Expand Up @@ -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
Expand Down

0 comments on commit 4fe2489

Please sign in to comment.