-
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/support-feedback-sentry-item-type
- Loading branch information
Showing
23 changed files
with
488 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
sentry-android-replay/src/main/java/io/sentry/android/replay/SessionReplayOptions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.sentry.android.replay | ||
|
||
import io.sentry.SentryReplayOptions | ||
|
||
// since we don't have getters for redactAllText and redactAllImages, they won't be accessible as | ||
// properties in Kotlin, therefore we create these extensions where a getter is dummy, but a setter | ||
// delegates to the corresponding method in SentryReplayOptions | ||
|
||
/** | ||
* Redact all text content. Draws a rectangle of text bounds with text color on top. By default | ||
* only views extending TextView are redacted. | ||
* | ||
* <p>Default is enabled. | ||
*/ | ||
var SentryReplayOptions.redactAllText: Boolean | ||
@Deprecated("Getter is unsupported.", level = DeprecationLevel.ERROR) | ||
get() = error("Getter not supported") | ||
set(value) = setRedactAllText(value) | ||
|
||
/** | ||
* Redact all image content. Draws a rectangle of image bounds with image's dominant color on top. | ||
* By default only views extending ImageView with BitmapDrawable or custom Drawable type are | ||
* redacted. ColorDrawable, InsetDrawable, VectorDrawable are all considered non-PII, as they come | ||
* from the apk. | ||
* | ||
* <p>Default is enabled. | ||
*/ | ||
var SentryReplayOptions.redactAllImages: Boolean | ||
@Deprecated("Getter is unsupported.", level = DeprecationLevel.ERROR) | ||
get() = error("Getter not supported") | ||
set(value) = setRedactAllImages(value) |
18 changes: 18 additions & 0 deletions
18
sentry-android-replay/src/main/java/io/sentry/android/replay/ViewExtensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.sentry.android.replay | ||
|
||
import android.view.View | ||
|
||
/** | ||
* Marks this view to be redacted in session replay. | ||
*/ | ||
fun View.sentryReplayRedact() { | ||
setTag(R.id.sentry_privacy, "redact") | ||
} | ||
|
||
/** | ||
* Marks this view to be ignored from redaction in session. | ||
* All its content will be visible in the replay, use with caution. | ||
*/ | ||
fun View.sentryReplayIgnore() { | ||
setTag(R.id.sentry_privacy, "ignore") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<public name="sentry_privacy" type="id"/> | ||
<item name="sentry_privacy" type="id" format="string"/> | ||
</resources> |
Oops, something went wrong.