Skip to content

Commit

Permalink
Add experimental annotation for Session Replay and Add it for Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
ambushwork committed Nov 6, 2024
1 parent cd1b01e commit 2f03af4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ class com.datadog.android.sessionreplay.compose.ComposeExtensionSupport : com.da
override fun getCustomViewMappers(): List<com.datadog.android.sessionreplay.MapperTypeWrapper<*>>
override fun getOptionSelectorDetectors(): List<com.datadog.android.sessionreplay.recorder.OptionSelectorDetector>
override fun getCustomDrawableMapper(): List<com.datadog.android.sessionreplay.utils.DrawableToColorMapper>
annotation com.datadog.android.sessionreplay.compose.ExperimentalSessionReplayApi
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ public final class com/datadog/android/sessionreplay/compose/ComposeExtensionSup
public fun getOptionSelectorDetectors ()Ljava/util/List;
}

public abstract interface annotation class com/datadog/android/sessionreplay/compose/ExperimentalSessionReplayApi : java/lang/annotation/Annotation {
}

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.datadog.android.sessionreplay.utils.ViewIdentifierResolver
* Jetpack Compose extension support implementation to be used in the Session Replay
* configuration.
*/
@ExperimentalSessionReplayApi
class ComposeExtensionSupport : ExtensionSupport {

private val viewIdentifierResolver: ViewIdentifierResolver = DefaultViewIdentifierResolver
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/

package com.datadog.android.sessionreplay.compose

/**
* Marker for the experimental Session Replay API.
*/
@RequiresOptIn(
message = "This is an experimental Session Replay API. It may change in the future.",
level = RequiresOptIn.Level.WARNING
)
@Retention(AnnotationRetention.BINARY)
annotation class ExperimentalSessionReplayApi

0 comments on commit 2f03af4

Please sign in to comment.