Skip to content

Commit 2b83446

Browse files
runningcodeclaude
andauthored
feat(android): Update SAGP to 6.2.0-alpha.2 and upload roborazzi snapshots to Sentry (#756)
## Summary - Bumps the Sentry Android Gradle Plugin to `6.2.0-alpha.2` - Configures `sentry.snapshots` with the app ID and roborazzi output path (`build/outputs/roborazzi`) - Adds `sentryUploadSnapshots` to the roborazzi CI job so snapshots are uploaded to Sentry after `recordRoborazziDebug` generates them 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ef1d421 commit 2b83446

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/android_emerge_snapshots.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ jobs:
6363
run: gem install emerge
6464

6565
- name: Generate Roborazzi snapshots
66-
run: ./gradlew :app:recordRoborazziDebug
66+
run: ./gradlew :app:recordRoborazziDebug :app:sentryUploadSnapshots
67+
env:
68+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_SENTRY_AUTH_TOKEN }}
6769

6870
- name: Upload snapshots
6971
env:

android/app/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import io.github.takahirom.roborazzi.RoborazziExtension
2+
import io.sentry.android.gradle.tasks.SentryUploadSnapshotsTask
13
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
24

35
plugins {
@@ -116,6 +118,10 @@ sentry {
116118

117119
ignoredVariants.set(listOf("debug"))
118120

121+
snapshots {
122+
appId.set("com.emergetools.hackernews")
123+
}
124+
119125
sizeAnalysis {
120126
enabled = providers.environmentVariable("GITHUB_ACTIONS").isPresent
121127
}
@@ -128,6 +134,13 @@ sentry {
128134
debug = true
129135
}
130136

137+
tasks.named<SentryUploadSnapshotsTask>("sentryUploadSnapshots") {
138+
dependsOn(tasks.named("recordRoborazziDebug"))
139+
snapshotsPath.set(
140+
project.extensions.getByType<RoborazziExtension>().outputDir
141+
)
142+
}
143+
131144
dependencies {
132145

133146
implementation(libs.androidx.core.ktx)

android/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ navigation = "2.9.7"
1818
browser = "1.9.0"
1919
emergePlugin = "4.4.0"
2020
emergeSnapshots = "1.5.1"
21-
sentry = "6.1.0"
21+
sentry = "6.2.0-alpha.2"
2222
shapes = "1.1.0"
2323
datastore = "1.2.0"
2424
room = "2.8.4"

0 commit comments

Comments
 (0)