diff --git a/posthog/api/posthog.api b/posthog/api/posthog.api index c7cf0826..bfe07b5c 100644 --- a/posthog/api/posthog.api +++ b/posthog/api/posthog.api @@ -1,3 +1,11 @@ +public final class com/posthog/PersonProfiles : java/lang/Enum { + public static final field ALWAYS Lcom/posthog/PersonProfiles; + public static final field IDENTIFIED_ONLY Lcom/posthog/PersonProfiles; + public static final field NEVER Lcom/posthog/PersonProfiles; + public static fun valueOf (Ljava/lang/String;)Lcom/posthog/PersonProfiles; + public static fun values ()[Lcom/posthog/PersonProfiles; +} + public final class com/posthog/PostHog : com/posthog/PostHogInterface { public static final field Companion Lcom/posthog/PostHog$Companion; public synthetic fun (Ljava/util/concurrent/ExecutorService;Ljava/util/concurrent/ExecutorService;Ljava/util/concurrent/ExecutorService;Ljava/util/concurrent/ExecutorService;ZLkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -64,8 +72,8 @@ public final class com/posthog/PostHog$Companion : com/posthog/PostHogInterface public class com/posthog/PostHogConfig { public static final field Companion Lcom/posthog/PostHogConfig$Companion; public static final field DEFAULT_HOST Ljava/lang/String; - public fun (Ljava/lang/String;Ljava/lang/String;ZZZZIIIILcom/posthog/PostHogEncryption;Lcom/posthog/PostHogOnFeatureFlags;ZLcom/posthog/PostHogPropertiesSanitizer;Lkotlin/jvm/functions/Function1;Lcom/posthog/internal/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/internal/PersonProfiles;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + 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 getApiKey ()Ljava/lang/String; public final fun getCachePreferences ()Lcom/posthog/internal/PostHogPreferences; @@ -85,7 +93,7 @@ public class com/posthog/PostHogConfig { public final fun getNetworkStatus ()Lcom/posthog/internal/PostHogNetworkStatus; public final fun getOnFeatureFlags ()Lcom/posthog/PostHogOnFeatureFlags; public final fun getOptOut ()Z - public final fun getPersonProfiles ()Lcom/posthog/internal/PersonProfiles; + public final fun getPersonProfiles ()Lcom/posthog/PersonProfiles; public final fun getPreloadFeatureFlags ()Z public final fun getPropertiesSanitizer ()Lcom/posthog/PostHogPropertiesSanitizer; public final fun getReplayStoragePrefix ()Ljava/lang/String; @@ -112,7 +120,7 @@ public class com/posthog/PostHogConfig { public final fun setNetworkStatus (Lcom/posthog/internal/PostHogNetworkStatus;)V public final fun setOnFeatureFlags (Lcom/posthog/PostHogOnFeatureFlags;)V public final fun setOptOut (Z)V - public final fun setPersonProfiles (Lcom/posthog/internal/PersonProfiles;)V + public final fun setPersonProfiles (Lcom/posthog/PersonProfiles;)V public final fun setPreloadFeatureFlags (Z)V public final fun setPropertiesSanitizer (Lcom/posthog/PostHogPropertiesSanitizer;)V public final fun setReplayStoragePrefix (Ljava/lang/String;)V @@ -235,14 +243,6 @@ public abstract interface class com/posthog/PostHogPropertiesSanitizer { public abstract interface annotation class com/posthog/PostHogVisibleForTesting : java/lang/annotation/Annotation { } -public final class com/posthog/internal/PersonProfiles : java/lang/Enum { - public static final field ALWAYS Lcom/posthog/internal/PersonProfiles; - public static final field IDENTIFIED_ONLY Lcom/posthog/internal/PersonProfiles; - public static final field NEVER Lcom/posthog/internal/PersonProfiles; - public static fun valueOf (Ljava/lang/String;)Lcom/posthog/internal/PersonProfiles; - public static fun values ()[Lcom/posthog/internal/PersonProfiles; -} - public abstract interface class com/posthog/internal/PostHogContext { public abstract fun getDynamicContext ()Ljava/util/Map; public abstract fun getSdkInfo ()Ljava/util/Map; diff --git a/posthog/src/main/java/com/posthog/internal/PersonProfiles.kt b/posthog/src/main/java/com/posthog/PersonProfiles.kt similarity index 73% rename from posthog/src/main/java/com/posthog/internal/PersonProfiles.kt rename to posthog/src/main/java/com/posthog/PersonProfiles.kt index 67f7499a..bb31fcbb 100644 --- a/posthog/src/main/java/com/posthog/internal/PersonProfiles.kt +++ b/posthog/src/main/java/com/posthog/PersonProfiles.kt @@ -1,4 +1,4 @@ -package com.posthog.internal +package com.posthog public enum class PersonProfiles { NEVER, diff --git a/posthog/src/main/java/com/posthog/PostHog.kt b/posthog/src/main/java/com/posthog/PostHog.kt index 2aeb47b9..e4372300 100644 --- a/posthog/src/main/java/com/posthog/PostHog.kt +++ b/posthog/src/main/java/com/posthog/PostHog.kt @@ -1,6 +1,5 @@ package com.posthog -import com.posthog.internal.PersonProfiles import com.posthog.internal.PostHogApi import com.posthog.internal.PostHogApiEndpoint import com.posthog.internal.PostHogFeatureFlags diff --git a/posthog/src/main/java/com/posthog/PostHogConfig.kt b/posthog/src/main/java/com/posthog/PostHogConfig.kt index 74ecaae2..7cae8f72 100644 --- a/posthog/src/main/java/com/posthog/PostHogConfig.kt +++ b/posthog/src/main/java/com/posthog/PostHogConfig.kt @@ -1,6 +1,5 @@ package com.posthog -import com.posthog.internal.PersonProfiles import com.posthog.internal.PostHogContext import com.posthog.internal.PostHogDateProvider import com.posthog.internal.PostHogDeviceDateProvider diff --git a/posthog/src/test/java/com/posthog/PostHogPersonProfilesTest.kt b/posthog/src/test/java/com/posthog/PostHogPersonProfilesTest.kt index 280bd4aa..c14be5b1 100644 --- a/posthog/src/test/java/com/posthog/PostHogPersonProfilesTest.kt +++ b/posthog/src/test/java/com/posthog/PostHogPersonProfilesTest.kt @@ -1,6 +1,5 @@ package com.posthog -import com.posthog.internal.PersonProfiles import com.posthog.internal.PostHogBatchEvent import com.posthog.internal.PostHogMemoryPreferences import com.posthog.internal.PostHogSerializer