From 28720b06bb29b16e07bab66bf396eae6838e6055 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 3 Jan 2025 14:23:21 +0530 Subject: [PATCH 1/2] chore(build): ensure AboutLibraries tasks avoid rate limits --- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 1 + android/build.gradle.kts | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c0fe8a5..0a0c4d8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,8 @@ jobs: - name: Run unit tests run: ./gradlew --no-configuration-cache --stacktrace :build-logic:check check -PslimTests + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: (Fail-only) Upload test report if: failure() diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0c1763c..6fb0bf6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,6 +59,7 @@ jobs: env: SENTRY_DSN: ${{ secrets.SENTRY_DSN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | ./gradlew --no-configuration-cache assembleRelease collectReleaseApks collectReleaseBundle -PenableSentry diff --git a/android/build.gradle.kts b/android/build.gradle.kts index d5c70ea0..6fd88f06 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -48,6 +48,8 @@ extensions.configure { experimentalProperties["android.experimental.enableScreenshotTest"] = true } +aboutLibraries.gitHubApiToken = providers.environmentVariable("GITHUB_TOKEN").orNull + baselineProfile { mergeIntoMain = true saveInSrc = true From c1b4af7484432c209515af87307e50d2e4f94078 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:52:27 +0000 Subject: [PATCH 2/2] fix(deps): update sentry to v7.20.0 msfjarvis: disable Session Replay now that it's out of beta and paid --- .../msfjarvis/claw/android/plugins/SentryAndroidPlugin.kt | 7 ++----- gradle/libs.versions.toml | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/android/src/main/kotlin/dev/msfjarvis/claw/android/plugins/SentryAndroidPlugin.kt b/android/src/main/kotlin/dev/msfjarvis/claw/android/plugins/SentryAndroidPlugin.kt index 078ba6d5..ad2e44ad 100644 --- a/android/src/main/kotlin/dev/msfjarvis/claw/android/plugins/SentryAndroidPlugin.kt +++ b/android/src/main/kotlin/dev/msfjarvis/claw/android/plugins/SentryAndroidPlugin.kt @@ -1,5 +1,5 @@ /* - * Copyright © 2022-2024 Harsh Shandilya. + * Copyright © 2022-2025 Harsh Shandilya. * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. @@ -16,9 +16,6 @@ import javax.inject.Inject @ContributesMultibinding(ApplicationScope::class) class SentryAndroidPlugin @Inject constructor() : AppPlugin { override fun apply(application: Application) { - SentryAndroid.init(application) { options -> - options.experimental.sessionReplay.onErrorSampleRate = 1.0 - options.experimental.sessionReplay.sessionSampleRate = 0.1 - } + SentryAndroid.init(application) } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b76667e1..ed875e47 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -19,7 +19,7 @@ lifecycle = "2.9.0-alpha08" navigation = "2.9.0-alpha04" retrofit = "2.11.0" richtext = "1.0.0-alpha02" -sentry-sdk = "7.19.1" +sentry-sdk = "7.20.0" serialization = "1.7.3" sqldelight = "2.0.2" store = "5.1.0-alpha05"