Skip to content

Commit bbea6a1

Browse files
committed
fix declaration clash issue
1 parent 7275b9d commit bbea6a1

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

posthog-android/src/test/java/com/posthog/android/PostHogFake.kt

-4
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,4 @@ public class PostHogFake : PostHogInterface {
127127
override fun getSessionId(): UUID? {
128128
return null
129129
}
130-
131-
override fun <T : PostHogConfig> getConfig(): T? {
132-
return null
133-
}
134130
}

posthog/src/main/java/com/posthog/PostHog.kt

-4
Original file line numberDiff line numberDiff line change
@@ -934,9 +934,5 @@ public class PostHog private constructor(
934934
override fun getSessionId(): UUID? {
935935
return shared.getSessionId()
936936
}
937-
938-
override fun <T : PostHogConfig> getConfig(): T? {
939-
return shared.getConfig()
940-
}
941937
}
942938
}

posthog/src/main/java/com/posthog/PostHogCoreInterface.kt

-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,4 @@ public interface PostHogCoreInterface {
4949
* Enables or disables the debug mode
5050
*/
5151
public fun debug(enable: Boolean = true)
52-
53-
@PostHogInternal
54-
public fun <T : PostHogConfig> getConfig(): T?
5552
}

posthog/src/main/java/com/posthog/PostHogStateless.kt

+5-14
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,12 @@ public open class PostHogStateless protected constructor(
360360

361361
protected fun hasPersonProcessing(): Boolean {
362362
return !(
363-
config?.personProfiles == PersonProfiles.NEVER ||
364-
(
365-
config?.personProfiles == PersonProfiles.IDENTIFIED_ONLY &&
366-
!isPersonProcessingEnabled
363+
config?.personProfiles == PersonProfiles.NEVER ||
364+
(
365+
config?.personProfiles == PersonProfiles.IDENTIFIED_ONLY &&
366+
!isPersonProcessingEnabled
367+
)
367368
)
368-
)
369369
}
370370

371371
protected fun requirePersonProcessing(
@@ -483,11 +483,6 @@ public open class PostHogStateless protected constructor(
483483
config?.debug = enable
484484
}
485485

486-
override fun <T : PostHogConfig> getConfig(): T? {
487-
@Suppress("UNCHECKED_CAST")
488-
return config as? T
489-
}
490-
491486
public companion object : PostHogStatelessInterface {
492487
private var shared: PostHogStatelessInterface = PostHogStateless()
493488
private var defaultSharedInstance = shared
@@ -606,9 +601,5 @@ public open class PostHogStateless protected constructor(
606601
override fun debug(enable: Boolean) {
607602
shared.debug(enable)
608603
}
609-
610-
override fun <T : PostHogConfig> getConfig(): T? {
611-
return shared.getConfig()
612-
}
613604
}
614605
}

0 commit comments

Comments
 (0)