Skip to content

Commit d97cc91

Browse files
romtsnclaude
andcommitted
docs: Move screenshot masking changelog entry to Unreleased with code snippets
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ee833e6 commit d97cc91

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- Add screenshot masking support using view hierarchy ([#5077](https://github.com/getsentry/sentry-java/pull/5077))
8+
- Masks sensitive content (text, images) in error screenshots using the same view hierarchy approach as Session Replay
9+
- Requires the `sentry-android-replay` module to be present at runtime for masking to work
10+
- Enable via code:
11+
```kotlin
12+
SentryAndroid.init(context) { options ->
13+
options.isAttachScreenshot = true
14+
options.screenshot.setMaskAllText(true)
15+
options.screenshot.setMaskAllImages(true)
16+
// Or mask specific view classes
17+
options.screenshot.addMaskViewClass("com.example.MyCustomView")
18+
}
19+
```
20+
- Or via `AndroidManifest.xml`:
21+
```xml
22+
<meta-data android:name="io.sentry.attach-screenshot" android:value="true" />
23+
<meta-data android:name="io.sentry.screenshot.mask-all-text" android:value="true" />
24+
<meta-data android:name="io.sentry.screenshot.mask-all-images" android:value="true" />
25+
```
26+
527
### Fixes
628

729
- Fix crash when unregistering `SystemEventsBroadcastReceiver` with try-catch block. ([#5106](https://github.com/getsentry/sentry-java/pull/5106))
@@ -10,7 +32,6 @@
1032

1133
### Features
1234

13-
- Add screenshot masking support using view hierarchy ([#5077](https://github.com/getsentry/sentry-java/pull/5077))
1435
- Add `installGroupsOverride` parameter to Build Distribution SDK for programmatic filtering, with support for configuration via properties file using `io.sentry.distribution.install-groups-override` ([#5066](https://github.com/getsentry/sentry-java/pull/5066))
1536

1637
### Fixes

0 commit comments

Comments
 (0)