mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +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_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
||||||
with:
|
with:
|
||||||
tagName: ${{ env.VERSION }}
|
tagName: io.homeassistant.companion.android@${{ env.VERSION }}
|
||||||
environment: Beta
|
environment: Beta
|
||||||
|
|
||||||
play_publish:
|
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: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS }}
|
||||||
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS_PASSWORD }}
|
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS_PASSWORD }}
|
||||||
run: ./gradlew appDistributionUploadFullRelease
|
run: ./gradlew appDistributionUploadFullRelease
|
||||||
|
|
||||||
- name: Create a Sentry.io release
|
- name: Create a Sentry.io release
|
||||||
uses: tclindner/sentry-releases-action@v1.2.0
|
uses: tclindner/sentry-releases-action@v1.2.0
|
||||||
env:
|
env:
|
||||||
|
@ -158,7 +159,7 @@ jobs:
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
||||||
with:
|
with:
|
||||||
tagName: ${{ env.VERSION }}
|
tagName: io.homeassistant.companion.android@${{ env.VERSION }}
|
||||||
environment: Production
|
environment: Production
|
||||||
|
|
||||||
play_publish:
|
play_publish:
|
||||||
|
|
|
@ -31,6 +31,8 @@ android {
|
||||||
|
|
||||||
versionName = System.getenv("VERSION") ?: "LOCAL"
|
versionName = System.getenv("VERSION") ?: "LOCAL"
|
||||||
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
|
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
|
||||||
|
|
||||||
|
manifestPlaceholders["sentryRelease"] = "$applicationId@$versionName"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
<application
|
<application
|
||||||
android:name=".HomeAssistantApplication" >
|
android:name=".HomeAssistantApplication" >
|
||||||
<meta-data android:name="io.sentry.auto-init" android:value="${sentryEnabled}" />
|
<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" />
|
<meta-data android:name="io.sentry.dsn" android:value="https://2d646f40f9574e0b9579e301a69bb030@o427061.ingest.sentry.io/5372876" />
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
|
|
Loading…
Reference in a new issue