From 9b40ca635b3c23dc16b7648dd43607f6bad94f50 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Fri, 15 Sep 2023 14:19:24 +0200 Subject: [PATCH] fix api --- posthog-v3/posthog-android/api/posthog-android.api | 4 ++++ .../internal/PostHogActivityLifecycleCallback.kt | 2 +- .../android/internal/PostHogAdvertisingIdReader.kt | 3 +-- posthog-v3/posthog/api/posthog.api | 12 ++++++++++-- .../src/main/java/com/posthog/PostHogConfig.kt | 2 +- .../src/main/java/com/posthog/PostHogEncryption.kt | 1 - 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/posthog-v3/posthog-android/api/posthog-android.api b/posthog-v3/posthog-android/api/posthog-android.api index e69de29b..53deac9d 100644 --- a/posthog-v3/posthog-android/api/posthog-android.api +++ b/posthog-v3/posthog-android/api/posthog-android.api @@ -0,0 +1,4 @@ +public final class com/posthog/android/internal/PostHogAdvertisingIdReader { + public fun ()V +} + diff --git a/posthog-v3/posthog-android/src/main/java/com/posthog/android/internal/PostHogActivityLifecycleCallback.kt b/posthog-v3/posthog-android/src/main/java/com/posthog/android/internal/PostHogActivityLifecycleCallback.kt index cec2c8ea..b2a386d7 100644 --- a/posthog-v3/posthog-android/src/main/java/com/posthog/android/internal/PostHogActivityLifecycleCallback.kt +++ b/posthog-v3/posthog-android/src/main/java/com/posthog/android/internal/PostHogActivityLifecycleCallback.kt @@ -3,4 +3,4 @@ package com.posthog.android.internal // ActivityLifecycleCallbacks, IntegrationOperation, PostHogActivityLifecycleCallbacks internal class PostHogActivityLifecycleCallback { // TODO: lifecycle events, deeplinks, record screen views -} \ No newline at end of file +} diff --git a/posthog-v3/posthog-android/src/main/java/com/posthog/android/internal/PostHogAdvertisingIdReader.kt b/posthog-v3/posthog-android/src/main/java/com/posthog/android/internal/PostHogAdvertisingIdReader.kt index 1a5af7ac..8bfc580c 100644 --- a/posthog-v3/posthog-android/src/main/java/com/posthog/android/internal/PostHogAdvertisingIdReader.kt +++ b/posthog-v3/posthog-android/src/main/java/com/posthog/android/internal/PostHogAdvertisingIdReader.kt @@ -1,5 +1,4 @@ package com.posthog.android.internal // GetAdvertisingIdTask -class PostHogAdvertisingIdReader { -} \ No newline at end of file +class PostHogAdvertisingIdReader diff --git a/posthog-v3/posthog/api/posthog.api b/posthog-v3/posthog/api/posthog.api index ecafb9b8..6f80a25a 100644 --- a/posthog-v3/posthog/api/posthog.api +++ b/posthog-v3/posthog/api/posthog.api @@ -43,11 +43,12 @@ public final class com/posthog/PostHog$Companion { } public final class com/posthog/PostHogConfig { - public fun (Ljava/lang/String;Ljava/lang/String;ZIIIILcom/posthog/PostHogDataMode;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;ZIIIILcom/posthog/PostHogDataMode;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Ljava/lang/String;ZIIIILcom/posthog/PostHogDataMode;Lcom/posthog/PostHogEncryption;)V + public synthetic fun (Ljava/lang/String;Ljava/lang/String;ZIIIILcom/posthog/PostHogDataMode;Lcom/posthog/PostHogEncryption;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun getApiKey ()Ljava/lang/String; public final fun getDataMode ()Lcom/posthog/PostHogDataMode; public final fun getDebug ()Z + public final fun getEncryption ()Lcom/posthog/PostHogEncryption; public final fun getFlushAt ()I public final fun getFlushIntervalSeconds ()I public final fun getHost ()Ljava/lang/String; @@ -55,6 +56,7 @@ public final class com/posthog/PostHogConfig { public final fun getMaxQueueSize ()I public final fun setDataMode (Lcom/posthog/PostHogDataMode;)V public final fun setDebug (Z)V + public final fun setEncryption (Lcom/posthog/PostHogEncryption;)V public final fun setFlushAt (I)V public final fun setFlushIntervalSeconds (I)V public final fun setMaxBatchSize (I)V @@ -68,6 +70,12 @@ public final class com/posthog/PostHogDataMode : java/lang/Enum { public static fun values ()[Lcom/posthog/PostHogDataMode; } +public abstract class com/posthog/PostHogEncryption { + public fun ()V + public abstract fun decrypt (Ljava/io/InputStream;)Ljava/io/InputStream; + public abstract fun encrypt (Ljava/io/OutputStream;)Ljava/io/OutputStream; +} + public final class com/posthog/PostHogEvent { public fun (Ljava/lang/String;Ljava/util/Map;Ljava/util/Date;)V public synthetic fun (Ljava/lang/String;Ljava/util/Map;Ljava/util/Date;ILkotlin/jvm/internal/DefaultConstructorMarker;)V diff --git a/posthog-v3/posthog/src/main/java/com/posthog/PostHogConfig.kt b/posthog-v3/posthog/src/main/java/com/posthog/PostHogConfig.kt index 162710ce..88753b98 100644 --- a/posthog-v3/posthog/src/main/java/com/posthog/PostHogConfig.kt +++ b/posthog-v3/posthog/src/main/java/com/posthog/PostHogConfig.kt @@ -14,7 +14,7 @@ public class PostHogConfig( public var flushIntervalSeconds: Int = 30, public var dataMode: PostHogDataMode = PostHogDataMode.ANY, - public var encryption: PostHogEncryption = PostHogEncryption.PostHogEncryptionNone() + public var encryption: PostHogEncryption = PostHogEncryption.PostHogEncryptionNone(), ) { internal var logger: PostHogLogger? = null diff --git a/posthog-v3/posthog/src/main/java/com/posthog/PostHogEncryption.kt b/posthog-v3/posthog/src/main/java/com/posthog/PostHogEncryption.kt index dca6fe09..5708d40f 100644 --- a/posthog-v3/posthog/src/main/java/com/posthog/PostHogEncryption.kt +++ b/posthog-v3/posthog/src/main/java/com/posthog/PostHogEncryption.kt @@ -16,6 +16,5 @@ public abstract class PostHogEncryption { override fun encrypt(outputStream: OutputStream): OutputStream { return outputStream } - } }