Skip to content

Commit a959e62

Browse files
runningcodeclaude
andauthored
Update Sentry Android Gradle Plugin to 6.6.0 (#799)
## Summary - Bump SAGP from 6.5.0 to 6.6.0 - Migrate `theme` from `snapshots {}` into the new nested `previews {}` block (breaking DSL change in 6.6.0) - Add `sentry-snapshots-runtime` dependency and annotate `MetadataTagPreview` with `@SentrySnapshot(diffThreshold = 0.1f)` diffThreshold correctly appears in the metadata: <img width="461" height="339" alt="Screenshot 2026-05-04 at 13 26 18" src="https://github.com/user-attachments/assets/6e7f3981-b907-4f54-8a81-446b49ef3fc5" /> 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5680250 commit a959e62

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

android/app/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ sentry {
127127
snapshots {
128128
enabled = true
129129

130-
theme = "android:Theme.Transluscent.NoTitleBar"
130+
previews {
131+
theme = "android:Theme.Transluscent.NoTitleBar"
132+
}
131133
}
132134

133135
debug = true
@@ -153,6 +155,7 @@ dependencies {
153155
implementation(libs.extendedspans)
154156

155157
implementation(libs.emerge.snapshots.runtime)
158+
implementation(libs.sentry.snapshots.runtime)
156159
implementation(libs.okhttp)
157160
implementation(libs.retrofit)
158161
implementation(libs.retrofit.kotlinx.serialization)

android/app/src/main/java/com/emergetools/hackernews/ui/components/MetadataTag.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import com.emergetools.hackernews.R
2525
import com.emergetools.hackernews.ui.theme.HackerBlue
2626
import com.emergetools.hackernews.ui.theme.HackerGreen
2727
import com.emergetools.hackernews.ui.theme.HackerNewsTheme
28+
import io.sentry.snapshots.runtime.SentrySnapshot
2829

2930
@Composable
3031
fun MetadataTag(
@@ -47,6 +48,7 @@ fun MetadataTag(
4748
}
4849
}
4950

51+
@SentrySnapshot(diffThreshold = 0.1f)
5052
@PreviewLightDark
5153
@Composable
5254
fun MetadataTagPreview() {

android/gradle/libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ viewmodel = "2.10.0"
1515
navigation = "2.9.7"
1616
browser = "1.10.0"
1717
emergePlugin = "4.4.0"
18-
sentry = "6.5.0"
18+
sentry = "6.6.0"
1919
shapes = "1.1.0"
2020
datastore = "1.2.1"
2121
room = "2.8.4"
@@ -59,6 +59,7 @@ kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-
5959
jsoup = { group = "org.jsoup", name = "jsoup", version.ref = "jsoup" }
6060

6161
emerge-snapshots-runtime = { group = "com.emergetools.snapshots", name = "snapshots-runtime", version = "1.5.1" }
62+
sentry-snapshots-runtime = { group = "io.sentry", name = "sentry-snapshots-runtime", version.ref = "sentry" }
6263

6364
junit = { group = "junit", name = "junit", version.ref = "junit" }
6465
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }

0 commit comments

Comments
 (0)