From 47baedfac2c4bd04bb0780c261ab2f14cf50881d Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Sun, 1 Dec 2024 17:01:21 -0500 Subject: [PATCH] Change sentry to self-hosted --- .github/actions/build_android/action.yml | 5 ++--- .github/workflows/build.yml | 6 +++--- android/app/build.gradle | 2 +- ios/fastlane/Fastfile | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/actions/build_android/action.yml b/.github/actions/build_android/action.yml index 92310227..d2686d13 100644 --- a/.github/actions/build_android/action.yml +++ b/.github/actions/build_android/action.yml @@ -57,7 +57,7 @@ runs: SENTRY_ORG: ${{ inputs.sentry-org }} SENTRY_PROJECT: ${{ inputs.sentry-project }} SENTRY_DSN: ${{ inputs.sentry-dsn }} - #SENTRY_URL: ${{ inputs.sentry-url }} + SENTRY_URL: ${{ inputs.sentry-url }} - name: Build AppBundle if: inputs.build-mode == 'bundle' shell: bash @@ -69,8 +69,7 @@ runs: SENTRY_ORG: ${{ inputs.sentry-org }} SENTRY_PROJECT: ${{ inputs.sentry-project }} SENTRY_DSN: ${{ inputs.sentry-dsn }} - - #SENTRY_URL: ${{ inputs.sentry-url }} + SENTRY_URL: ${{ inputs.sentry-url }} - name: list dependencies shell: bash run: cd android && ./gradlew app:dependencies --configuration releaseCompileClasspath diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c750a1b..4c3f6217 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,7 @@ jobs: sentry-project: ${{ secrets.SENTRY_PROJECT }} sentry-dsn: ${{ secrets.SENTRY_DSN }} build-mode: ${{ matrix.build }} - #sentry-url: ${{ secrets.SENTRY_URL }} + sentry-url: ${{ secrets.SENTRY_URL }} - name: Build IOS / Upload Beta if: github.event_name == 'push' && matrix.build != 'apk' run: bash ${GITHUB_WORKSPACE}/Scripts/fastlane.sh @@ -68,7 +68,7 @@ jobs: SENTRY_ORG: ${{ secrets.SENTRY_ORG }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} SENTRY_DSN: ${{ secrets.SENTRY_DSN }} - #SENTRY_URL: ${{ secrets.SENTRY_URL }} + SENTRY_URL: ${{ secrets.SENTRY_URL }} - name: Upload Dart/Flutter debug symbols run: dart pub global activate sentry_dart_plugin && dart pub global run sentry_dart_plugin if: github.event_name == 'push' @@ -77,6 +77,6 @@ jobs: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_ORG: ${{ secrets.SENTRY_ORG }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} - #SENTRY_URL: ${{ secrets.SENTRY_URL }} + SENTRY_URL: ${{ secrets.SENTRY_URL }} SENTRY_RELEASE: ${{ steps.version.outputs.version }} SENTRY_DIST: ${{ steps.version.outputs.build-number }} diff --git a/android/app/build.gradle b/android/app/build.gradle index ce3ead8e..dbb6882e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -135,7 +135,7 @@ sentry { // The url of your Sentry instance. If you're using SAAS (not self hosting) you do not have to // set this. If you are self hosting you can set your URL here - //url = System.getenv("SENTRY_URL") + url = System.getenv("SENTRY_URL") // Disables or enables the handling of Proguard mapping for Sentry. // If enabled the plugin will generate a UUID and will take care of diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 6fee8189..30b37aab 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -38,7 +38,7 @@ platform :ios do auth_token: ENV['SENTRY_AUTH_TOKEN'], org_slug: ENV['SENTRY_ORG'], project_slug: ENV['SENTRY_PROJECT'], - #url: ENV['SENTRY_URL'], + url: ENV['SENTRY_URL'], include_sources: true, # Optional. For source context. ) end