From 4dae87301c262ab3b8aa168b984ccd79d4b8c1d9 Mon Sep 17 00:00:00 2001 From: darken Date: Thu, 6 Jul 2023 12:25:53 +0200 Subject: [PATCH] Remove unused bugsnag configs --- .github/workflows/release-tag.yml | 6 +----- buildSrc/src/main/java/ProjectConfig.kt | 10 ---------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 1b13e0a7..5dc6d8bb 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -48,7 +48,6 @@ jobs: STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} KEY_ALIAS: release KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} - BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }} - name: Assemble production APK if: "!contains(steps.tagger.outputs.tag, '-beta')" @@ -58,7 +57,6 @@ jobs: STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} KEY_ALIAS: release KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} - BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }} - name: Create pre-release if: contains(steps.tagger.outputs.tag, '-beta') @@ -141,7 +139,6 @@ jobs: STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} KEY_ALIAS: ${{ secrets.KEY_ALIAS }} KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} - BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }} - name: Assemble production and upload to Google Play if: "!contains(steps.tagger.outputs.tag, '-beta')" @@ -149,5 +146,4 @@ jobs: env: STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} KEY_ALIAS: ${{ secrets.KEY_ALIAS }} - KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} - BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }} \ No newline at end of file + KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} \ No newline at end of file diff --git a/buildSrc/src/main/java/ProjectConfig.kt b/buildSrc/src/main/java/ProjectConfig.kt index e79a62ec..5aea2cd0 100644 --- a/buildSrc/src/main/java/ProjectConfig.kt +++ b/buildSrc/src/main/java/ProjectConfig.kt @@ -110,14 +110,4 @@ fun com.android.build.api.dsl.SigningConfig.setupCredentials( keyPassword = props.getProperty("release.keyPassword") } } -} - -fun getBugSnagApiKey( - propertiesPath: File? -): String? { - val bugsnagProps = Properties().apply { - propertiesPath?.takeIf { it.canRead() }?.let { load(FileInputStream(it)) } - } - println("Bugsnag API key: $propertiesPath (canRead:${propertiesPath?.canRead()})") - return System.getenv("BUGSNAG_API_KEY") ?: bugsnagProps.getProperty("bugsnag.apikey") } \ No newline at end of file