Commit c8d010e
authored
chore: Android SR - cleanup privacy settings (#341)
## Summary
1. Rename maskSensitive to maskBySemanticsKeywords and set default false
2. Changes default `maskText` to `false`
3. removes `maskAdditionalMatchers` (they might return later under
different name and rework to be more universal)
<!--
Ideally, there is an attached GitHub issue that will describe the "why".
If relevant, use this section to call out any additional information
you'd like to _highlight_ to the reviewer.
-->
## How did you test this change?
<!--
Frontend - Leave a screencast or a screenshot to visually describe the
changes.
-->
## Are there any deployment considerations?
<!--
Backend - Do we need to consider migrations or backfilling data?
-->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Streamlines Session Replay masking configuration and docs.
>
> - Renames `maskSensitive` to `maskBySemanticsKeywords` and wires it
into `asMatchersList()`; default `false`
> - Changes `PrivacyProfile.maskText` default to `false`
> - Removes `maskAdditionalMatchers`; drops corresponding `addAll(...)`
in `asMatchersList()`
> - Restricts matcher properties (`viewsMatcher`, `xmlViewIdsMatcher`,
`textInputMatcher`, `textMatcher`, `sensitiveMatcher`) to `internal`
> - Minor KDoc tweaks and parameter order; `maskImageViews` remains,
moved after lists
> - README updates to show new toggles and example `PrivacyProfile`
usage
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
987e957. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 49f65f4 commit c8d010e
File tree
2 files changed
+19
-16
lines changed- sdk/@launchdarkly/observability-android
- lib/src/main/kotlin/com/launchdarkly/observability/replay
2 files changed
+19
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
| |||
Lines changed: 14 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
32 | | - | |
33 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | | - | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | | - | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
81 | | - | |
| 79 | + | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
| |||
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
97 | | - | |
| 95 | + | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
| |||
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
107 | | - | |
| 105 | + | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| |||
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
117 | | - | |
| 115 | + | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
| |||
0 commit comments