diff --git a/posthog-android/src/main/java/com/posthog/android/internal/PostHogActivityLifecycleCallbackIntegration.kt b/posthog-android/src/main/java/com/posthog/android/internal/PostHogActivityLifecycleCallbackIntegration.kt index 6a5f4931..350001d2 100644 --- a/posthog-android/src/main/java/com/posthog/android/internal/PostHogActivityLifecycleCallbackIntegration.kt +++ b/posthog-android/src/main/java/com/posthog/android/internal/PostHogActivityLifecycleCallbackIntegration.kt @@ -6,6 +6,7 @@ import android.app.Application.ActivityLifecycleCallbacks import android.os.Bundle import com.posthog.PostHog import com.posthog.PostHogIntegration +import com.posthog.ScreenTracker import com.posthog.android.PostHogAndroidConfig /** diff --git a/posthog/api/posthog.api b/posthog/api/posthog.api index bfe07b5c..836cdbfe 100644 --- a/posthog/api/posthog.api +++ b/posthog/api/posthog.api @@ -75,6 +75,7 @@ public class com/posthog/PostHogConfig { public fun (Ljava/lang/String;Ljava/lang/String;ZZZZIIIILcom/posthog/PostHogEncryption;Lcom/posthog/PostHogOnFeatureFlags;ZLcom/posthog/PostHogPropertiesSanitizer;Lkotlin/jvm/functions/Function1;Lcom/posthog/PersonProfiles;)V public synthetic fun (Ljava/lang/String;Ljava/lang/String;ZZZZIIIILcom/posthog/PostHogEncryption;Lcom/posthog/PostHogOnFeatureFlags;ZLcom/posthog/PostHogPropertiesSanitizer;Lkotlin/jvm/functions/Function1;Lcom/posthog/PersonProfiles;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun addIntegration (Lcom/posthog/PostHogIntegration;)V + public final fun addProcessor (Lcom/posthog/PostHogPropertiesProcessor;)V public final fun getApiKey ()Ljava/lang/String; public final fun getCachePreferences ()Lcom/posthog/internal/PostHogPreferences; public final fun getContext ()Lcom/posthog/internal/PostHogContext; @@ -95,6 +96,7 @@ public class com/posthog/PostHogConfig { public final fun getOptOut ()Z public final fun getPersonProfiles ()Lcom/posthog/PersonProfiles; public final fun getPreloadFeatureFlags ()Z + public final fun getProcessors ()Ljava/util/List; public final fun getPropertiesSanitizer ()Lcom/posthog/PostHogPropertiesSanitizer; public final fun getReplayStoragePrefix ()Ljava/lang/String; public final fun getSdkName ()Ljava/lang/String; @@ -236,13 +238,28 @@ public abstract interface class com/posthog/PostHogOnFeatureFlags { public abstract fun loaded ()V } +public abstract interface class com/posthog/PostHogPropertiesProcessor { + public abstract fun process (Ljava/util/Map;)Ljava/util/Map; +} + public abstract interface class com/posthog/PostHogPropertiesSanitizer { public abstract fun sanitize (Ljava/util/Map;)Ljava/util/Map; } +public final class com/posthog/PostHogScreenProcessor : com/posthog/PostHogPropertiesProcessor { + public fun ()V + public fun process (Ljava/util/Map;)Ljava/util/Map; +} + public abstract interface annotation class com/posthog/PostHogVisibleForTesting : java/lang/annotation/Annotation { } +public final class com/posthog/ScreenTracker { + public static final field INSTANCE Lcom/posthog/ScreenTracker; + public final fun getCurrentScreenName ()Ljava/lang/String; + public final fun setCurrentScreen (Ljava/lang/String;)V +} + public abstract interface class com/posthog/internal/PostHogContext { public abstract fun getDynamicContext ()Ljava/util/Map; public abstract fun getSdkInfo ()Ljava/util/Map;