Skip to content
Open
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
4 changes: 4 additions & 0 deletions .changeset/android-v4-major.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@
- **Breaking:** make SDK-internal helpers in the `com.posthog.internal` and `com.posthog.android.replay.internal` packages non-public
- **Breaking:** remove the deprecated `remoteConfig` config option; the SDK now always loads remote config at setup
- **Breaking:** replace `PostHogOnFeatureFlags` with `PostHogFeatureFlagsCallback` in `PostHogConfig.onFeatureFlags` and `reloadFeatureFlags()`; it receives a `PostHogFeatureFlagsLoaded` with the enabled flags, their values, and `errorsLoading`
- **Breaking:** remove wireframe session replay; replay always records masked screenshots, the mode `screenshot = true` already used. `PostHogSessionReplayConfig.screenshot` is removed, and so are `drawableConverter` and `PostHogDrawableConverter`, which only wireframe capture read
- Apps that relied on the default now upload screenshots. Masking still covers text inputs, images, `WebView`s, Compose semantics and `ph-no-capture` views and `Modifier.postHogMask()`, but custom-drawn views and other content the SDK doesn't recognize (for example maps or video) can now appear; mask them, or turn replay off with `sessionReplay = false`
- Jetpack Compose screens, which wireframe captured as empty boxes, are now recorded
- Wrapper SDKs: the internal `RRWireframe` keeps only `id`, `x`, `y`, `width`, `height`, `type` and `base64`, and `RRStyle` is removed; screenshot frames no longer send an empty `style`
16 changes: 3 additions & 13 deletions posthog-android/api/posthog-android.api
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ public final class com/posthog/android/internal/PostHogAndroidUtilsKt {
public static final fun getApplicationInfo (Landroid/content/Context;)Landroid/content/pm/ApplicationInfo;
}

public abstract interface class com/posthog/android/replay/PostHogDrawableConverter {
public abstract fun convert (Landroid/graphics/drawable/Drawable;)Landroid/graphics/Bitmap;
}

public abstract interface annotation class com/posthog/android/replay/PostHogInternalReplayApi : java/lang/annotation/Annotation {
}

Expand Down Expand Up @@ -118,30 +114,24 @@ public final class com/posthog/android/replay/PostHogSessionReplayConfig {
public fun <init> (Z)V
public fun <init> (ZZ)V
public fun <init> (ZZZ)V
public fun <init> (ZZZLcom/posthog/android/replay/PostHogDrawableConverter;)V
public fun <init> (ZZZLcom/posthog/android/replay/PostHogDrawableConverter;Z)V
public fun <init> (ZZZLcom/posthog/android/replay/PostHogDrawableConverter;ZJ)V
public fun <init> (ZZZLcom/posthog/android/replay/PostHogDrawableConverter;ZJLjava/lang/Double;)V
public synthetic fun <init> (ZZZLcom/posthog/android/replay/PostHogDrawableConverter;ZJLjava/lang/Double;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun <init> (ZZZJ)V
public fun <init> (ZZZJLjava/lang/Double;)V
public synthetic fun <init> (ZZZJLjava/lang/Double;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getCaptureLogcat ()Z
public final fun getCaptureTouches ()Z
public final fun getDrawableConverter ()Lcom/posthog/android/replay/PostHogDrawableConverter;
public final fun getMaskAllImages ()Z
public final fun getMaskAllTextInputs ()Z
public final fun getSampleRate ()Ljava/lang/Double;
public final fun getScreenshot ()Z
public final fun getScreenshotColorMode ()Lcom/posthog/android/replay/PostHogScreenshotColorMode;
public final fun getScreenshotCompressionQuality ()I
public final fun getScreenshotScale ()F
public final fun getThrottleDelayMs ()J
public final fun getVerifyScreenshotMaskAlignment ()Z
public final fun setCaptureLogcat (Z)V
public final fun setCaptureTouches (Z)V
public final fun setDrawableConverter (Lcom/posthog/android/replay/PostHogDrawableConverter;)V
public final fun setMaskAllImages (Z)V
public final fun setMaskAllTextInputs (Z)V
public final fun setSampleRate (Ljava/lang/Double;)V
public final fun setScreenshot (Z)V
public final fun setScreenshotColorMode (Lcom/posthog/android/replay/PostHogScreenshotColorMode;)V
public final fun setScreenshotCompressionQuality (I)V
public final fun setScreenshotScale (F)V
Expand Down

This file was deleted.

Loading
Loading