Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: session replay - ga #215

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Next

- chore: Session Replay - GA

## 3.10.0 - 2025-01-07

- chore: change screenshots debouncing approach to throttling ([#214](https://github.com/PostHog/posthog-flutter/pull/214))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.posthog.android

import com.posthog.PostHogConfig
import com.posthog.PostHogExperimental
import com.posthog.android.replay.PostHogSessionReplayConfig

/**
Expand All @@ -19,6 +18,5 @@ public open class PostHogAndroidConfig
public var captureApplicationLifecycleEvents: Boolean = true,
public var captureDeepLinks: Boolean = true,
public var captureScreenViews: Boolean = true,
@PostHogExperimental
public var sessionReplayConfig: PostHogSessionReplayConfig = PostHogSessionReplayConfig(),
) : PostHogConfig(apiKey, host)
Original file line number Diff line number Diff line change
@@ -1,42 +1,34 @@
package com.posthog.android.replay

import com.posthog.PostHogExperimental

@PostHogExperimental
public class PostHogSessionReplayConfig
@JvmOverloads
constructor(
/**
* Enable masking of all text and text input fields
* Defaults to true
*/
@PostHogExperimental
public var maskAllTextInputs: Boolean = true,
/**
* Enable masking of all images to a placeholder
* Defaults to true
*/
@PostHogExperimental
public var maskAllImages: Boolean = true,
/**
* Enable capturing of logcat as console events
* Defaults to true
*/
@PostHogExperimental
public var captureLogcat: Boolean = true,
/**
* Converts custom Drawable to Bitmap
* By default PostHog tries to convert the Drawable to Bitmap, the supported types are
* BitmapDrawable, ColorDrawable, GradientDrawable, InsetDrawable, LayerDrawable, RippleDrawable
*/
@PostHogExperimental
public var drawableConverter: PostHogDrawableConverter? = null,
/**
* By default Session replay will capture all the views on the screen as a wireframe,
* By enabling this option, PostHog will capture the screenshot of the screen.
* The screenshot may contain sensitive information, use with caution.
*/
@PostHogExperimental
public var screenshot: Boolean = false,
/**
* Deboucer delay used to reduce the number of snapshots captured and reduce performance impact
Expand All @@ -53,7 +45,6 @@ public class PostHogSessionReplayConfig
* The lower the number more snapshots will be captured but higher the performance impact
* Defaults to 1000ms = 1s
*/
@PostHogExperimental
public var throttleDelayMs: Long = 1000,
) {
init {
Expand Down
1 change: 0 additions & 1 deletion posthog/src/main/java/com/posthog/PostHogConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public open class PostHogConfig(
* Requires Record user sessions to be enabled in the PostHog Project Settings
* Defaults to false
*/
@PostHogExperimental
public var sessionReplay: Boolean = false,
/**
* Hook that allows to sanitize the event properties
Expand Down
Loading