Skip to content

Commit ebe5bef

Browse files
committed
tweak
1 parent e11f630 commit ebe5bef

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

posthog/api/posthog.api

+32-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public final class com/posthog/PostHog$Companion : com/posthog/PostHogInterface
4040
public fun distinctId ()Ljava/lang/String;
4141
public fun endSession ()V
4242
public fun flush ()V
43-
public fun getConfig ()Lcom/posthog/PostHogConfig;
4443
public fun getFeatureFlag (Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
4544
public fun getFeatureFlagPayload (Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
4645
public fun getSessionId ()Ljava/util/UUID;
@@ -136,7 +135,6 @@ public abstract interface class com/posthog/PostHogCoreInterface {
136135
public abstract fun close ()V
137136
public abstract fun debug (Z)V
138137
public abstract fun flush ()V
139-
public abstract fun getConfig ()Lcom/posthog/PostHogConfig;
140138
public abstract fun identify (Ljava/lang/String;Ljava/util/Map;Ljava/util/Map;)V
141139
public abstract fun isOptOut ()Z
142140
public abstract fun optIn ()V
@@ -256,21 +254,34 @@ public class com/posthog/PostHogStateless : com/posthog/PostHogStatelessInterfac
256254
public fun close ()V
257255
public fun debug (Z)V
258256
public fun flush ()V
259-
public fun getConfig ()Lcom/posthog/PostHogConfig;
257+
protected final fun getConfig ()Lcom/posthog/PostHogConfig;
258+
protected final fun getEnabled ()Z
260259
public fun getFeatureFlagPayloadStateless (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
261260
public fun getFeatureFlagStateless (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
261+
protected final fun getFeatureFlags ()Lcom/posthog/internal/PostHogFeatureFlagsInterface;
262+
protected final fun getMemoryPreferences ()Lcom/posthog/internal/PostHogPreferences;
263+
protected final fun getPersonProcessingLock ()Ljava/lang/Object;
262264
protected final fun getPreferences ()Lcom/posthog/internal/PostHogPreferences;
265+
protected final fun getQueue ()Lcom/posthog/internal/PostHogQueueInterface;
266+
protected final fun getSetupLock ()Ljava/lang/Object;
263267
public fun groupStateless (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
264268
protected final fun hasPersonProcessing ()Z
265269
public fun identify (Ljava/lang/String;Ljava/util/Map;Ljava/util/Map;)V
266270
protected final fun isEnabled ()Z
267271
public fun isFeatureEnabledStateless (Ljava/lang/String;Ljava/lang/String;Z)Z
268272
public fun isOptOut ()Z
273+
protected final fun isPersonProcessingLoaded ()Z
269274
protected final fun mergeGroups (Ljava/util/Map;)Ljava/util/Map;
270275
public fun optIn ()V
271276
public fun optOut ()V
272277
protected final fun requirePersonProcessing (Ljava/lang/String;Z)Z
273278
public static synthetic fun requirePersonProcessing$default (Lcom/posthog/PostHogStateless;Ljava/lang/String;ZILjava/lang/Object;)Z
279+
protected final fun setConfig (Lcom/posthog/PostHogConfig;)V
280+
protected final fun setEnabled (Z)V
281+
protected final fun setFeatureFlags (Lcom/posthog/internal/PostHogFeatureFlagsInterface;)V
282+
protected final fun setMemoryPreferences (Lcom/posthog/internal/PostHogPreferences;)V
283+
protected final fun setPersonProcessingLoaded (Z)V
284+
protected final fun setQueue (Lcom/posthog/internal/PostHogQueueInterface;)V
274285
public fun setup (Lcom/posthog/PostHogConfig;)V
275286
}
276287

@@ -280,7 +291,6 @@ public final class com/posthog/PostHogStateless$Companion : com/posthog/PostHogS
280291
public fun close ()V
281292
public fun debug (Z)V
282293
public fun flush ()V
283-
public fun getConfig ()Lcom/posthog/PostHogConfig;
284294
public fun getFeatureFlagPayloadStateless (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
285295
public fun getFeatureFlagStateless (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
286296
public fun groupStateless (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
@@ -328,6 +338,16 @@ public abstract interface class com/posthog/internal/PostHogDateProvider {
328338
public abstract fun nanoTime ()J
329339
}
330340

341+
public abstract interface class com/posthog/internal/PostHogFeatureFlagsInterface {
342+
public abstract fun clear ()V
343+
public abstract fun getFeatureFlag (Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
344+
public abstract fun getFeatureFlagPayload (Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
345+
public abstract fun getFeatureFlags ()Ljava/util/Map;
346+
public abstract fun isFeatureEnabled (Ljava/lang/String;Z)Z
347+
public abstract fun isSessionReplayFlagActive ()Z
348+
public abstract fun loadFeatureFlags (Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/posthog/PostHogOnFeatureFlags;)V
349+
}
350+
331351
public abstract interface class com/posthog/internal/PostHogLogger {
332352
public abstract fun isEnabled ()Z
333353
public abstract fun log (Ljava/lang/String;)V
@@ -388,6 +408,14 @@ public final class com/posthog/internal/PostHogPrintLogger : com/posthog/interna
388408
public fun log (Ljava/lang/String;)V
389409
}
390410

411+
public abstract interface class com/posthog/internal/PostHogQueueInterface {
412+
public abstract fun add (Lcom/posthog/PostHogEvent;)V
413+
public abstract fun clear ()V
414+
public abstract fun flush ()V
415+
public abstract fun start ()V
416+
public abstract fun stop ()V
417+
}
418+
391419
public final class com/posthog/internal/PostHogSerializer {
392420
public fun <init> (Lcom/posthog/PostHogConfig;)V
393421
public final fun deserializeString (Ljava/lang/String;)Ljava/lang/Object;

0 commit comments

Comments
 (0)