Skip to content

Commit f2c0c49

Browse files
runningcodeclaude
andcommitted
fix(replay): Add @ApiStatus.Experimental to ReplaySnapshotObserver (JAVA-504)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2b576be commit f2c0c49

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

sentry-android-replay/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ android {
6161

6262
buildFeatures { buildConfig = true }
6363

64+
configurations.all { resolutionStrategy.force(libs.jetbrains.annotations.get()) }
65+
6466
androidComponents.beforeVariants {
6567
it.enable = !Config.Android.shouldSkipDebugVariant(it.buildType)
6668
}
@@ -71,6 +73,7 @@ kotlin { explicitApi() }
7173
dependencies {
7274
api(projects.sentry)
7375

76+
compileOnly(libs.jetbrains.annotations)
7477
compileOnly(libs.androidx.compose.ui.replay)
7578
implementation(kotlin(Config.kotlinStdLib, Config.kotlinStdLibVersionAndroid))
7679
// tests

sentry-android-replay/src/main/java/io/sentry/android/replay/SessionReplayOptions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package io.sentry.android.replay
22

33
import android.graphics.Bitmap
44
import io.sentry.SentryReplayOptions
5+
import org.jetbrains.annotations.ApiStatus
56

67
// since we don't have getters for maskAllText and maskAllimages, they won't be accessible as
78
// properties in Kotlin, therefore we create these extensions where a getter is dummy, but a setter
@@ -40,9 +41,8 @@ public var SentryReplayOptions.maskAllImages: Boolean
4041
* file) within this method if you need it later. Do not recycle the bitmap.
4142
*
4243
* The callback runs on a background thread (the replay executor).
43-
*
44-
* This API is experimental and may change without notice.
4544
*/
45+
@ApiStatus.Experimental
4646
public fun interface ReplaySnapshotObserver {
4747
public fun onSnapshotCaptured(bitmap: Bitmap, frameTimestamp: Long, screenName: String?)
4848
}

0 commit comments

Comments
 (0)