mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Bump posthog SDK version to 3.2.0 (#2788)
Co-authored-by: Mauro <34335419+Velin92@users.noreply.github.com>
This commit is contained in:
@@ -19,11 +19,9 @@ import PostHog
|
||||
|
||||
// sourcery: AutoMockable
|
||||
protocol PHGPostHogProtocol {
|
||||
var enabled: Bool { get }
|
||||
func optIn()
|
||||
|
||||
func enable()
|
||||
|
||||
func disable()
|
||||
func optOut()
|
||||
|
||||
func reset()
|
||||
|
||||
@@ -33,13 +31,14 @@ protocol PHGPostHogProtocol {
|
||||
}
|
||||
|
||||
protocol PostHogFactory {
|
||||
func createPostHog(config: PHGPostHogConfiguration) -> PHGPostHogProtocol
|
||||
func createPostHog(config: PostHogConfig) -> PHGPostHogProtocol
|
||||
}
|
||||
|
||||
class DefaultPostHogFactory: PostHogFactory {
|
||||
func createPostHog(config: PHGPostHogConfiguration) -> PHGPostHogProtocol {
|
||||
PHGPostHog(configuration: config)
|
||||
func createPostHog(config: PostHogConfig) -> PHGPostHogProtocol {
|
||||
PostHogSDK.shared.setup(config)
|
||||
return PostHogSDK.shared
|
||||
}
|
||||
}
|
||||
|
||||
extension PHGPostHog: PHGPostHogProtocol { }
|
||||
extension PostHogSDK: PHGPostHogProtocol { }
|
||||
|
||||
Reference in New Issue
Block a user