-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
louiszawadzki
committed
Oct 27, 2023
1 parent
5c58db4
commit 23e3209
Showing
5 changed files
with
121 additions
and
4 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
24 changes: 24 additions & 0 deletions
24
.../android/src/main/kotlin/com/datadog/reactnative/sessionreplay/SessionReplaySDKWrapper.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,24 @@ | ||
/* | ||
* 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.reactnative.sessionreplay | ||
|
||
import com.datadog.android.sessionreplay.SessionReplay | ||
import com.datadog.android.sessionreplay.SessionReplayConfiguration | ||
|
||
internal class SessionReplaySDKWrapper : SessionReplayWrapper { | ||
/** | ||
* Enables a SessionReplay feature based on the configuration provided. | ||
* @param sessionReplayConfiguration Configuration to use for the feature. | ||
*/ | ||
override fun enable( | ||
sessionReplayConfiguration: SessionReplayConfiguration, | ||
) { | ||
SessionReplay.enable( | ||
sessionReplayConfiguration, | ||
) | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...lay/android/src/main/kotlin/com/datadog/reactnative/sessionreplay/SessionReplayWrapper.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,22 @@ | ||
/* | ||
* 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.reactnative.sessionreplay | ||
|
||
import com.datadog.android.sessionreplay.SessionReplayConfiguration | ||
|
||
/** | ||
* Wrapper around [SessionReplay]. | ||
*/ | ||
interface SessionReplayWrapper { | ||
/** | ||
* Enables a SessionReplay feature based on the configuration provided. | ||
* @param sessionReplayConfiguration Configuration to use for the feature. | ||
*/ | ||
fun enable( | ||
sessionReplayConfiguration: SessionReplayConfiguration, | ||
) | ||
} |
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