Skip to content

Commit 40303f8

Browse files
committed
Merge branch 'main' into andrey/cleanupSR-API
* main: feat: Added privacy options: maskViews, maskXMLViewIds, maskImageViews (#339) # Conflicts: # sdk/@launchdarkly/observability-android/README.md # sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt
2 parents 611edbc + 1c57dc0 commit 40303f8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay

sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ data class PrivacyProfile(
6363
*
6464
* Note: this uses `target.view.javaClass` equality; it does not match subclasses.
6565
*/
66-
val viewsMatcher: MaskMatcher = object : MaskMatcher {
66+
private val viewsMatcher: MaskMatcher = object : MaskMatcher {
6767
override fun isMatch(target: MaskTarget): Boolean {
6868
return viewClassSet.contains(target.view.javaClass)
6969
}
@@ -76,7 +76,7 @@ data class PrivacyProfile(
7676
* IDs are compared using `resources.getResourceEntryName(view.id)`, so this only applies to
7777
* Views with a non-[View.NO_ID] id that resolves to a resource entry.
7878
*/
79-
val xmlViewIdsMatcher: MaskMatcher = object : MaskMatcher {
79+
private val xmlViewIdsMatcher: MaskMatcher = object : MaskMatcher {
8080
fun View.idNameOrNull(): String? =
8181
if (id == View.NO_ID) null
8282
else runCatching { resources.getResourceEntryName(id) }.getOrNull()
@@ -92,7 +92,7 @@ data class PrivacyProfile(
9292
* This matcher will match most text inputs, but there may be special cases where it will
9393
* miss as we can't account for all possible future semantic properties.
9494
*/
95-
val textInputMatcher: MaskMatcher = object : MaskMatcher {
95+
private val textInputMatcher: MaskMatcher = object : MaskMatcher {
9696
override fun isMatch(target: MaskTarget): Boolean {
9797
return target.isTextInput()
9898
}
@@ -102,7 +102,7 @@ data class PrivacyProfile(
102102
* This matcher will match most text, but there may be special cases where it will
103103
* miss as we can't account for all possible future semantic properties.
104104
*/
105-
val textMatcher: MaskMatcher = object : MaskMatcher {
105+
private val textMatcher: MaskMatcher = object : MaskMatcher {
106106
override fun isMatch(target: MaskTarget): Boolean {
107107
return target.isText()
108108
}
@@ -112,7 +112,7 @@ data class PrivacyProfile(
112112
* This matcher will match all items having the semantic property
113113
* and all text or context descriptions that have substring matches with any of the [sensitiveKeywords]
114114
*/
115-
val sensitiveMatcher: MaskMatcher = object : MaskMatcher {
115+
private val sensitiveMatcher: MaskMatcher = object : MaskMatcher {
116116
override fun isMatch(target: MaskTarget): Boolean {
117117
return target.isSensitive(sensitiveKeywords)
118118
}

0 commit comments

Comments
 (0)