mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Disable the default analytics configurations for forks. (#5688)
* Disable the default analytics configurations for forks. * Check the analytics configuration instead of the PostHog Config.
This commit is contained in:
@@ -18,11 +18,12 @@ import PostHog
|
||||
|
||||
extension PHGPostHogConfiguration {
|
||||
static var standard: PHGPostHogConfiguration? {
|
||||
guard let apiKey = BuildSettings.analyticsKey, let host = BuildSettings.analyticsHost else { return nil }
|
||||
let analyticsConfiguration = BuildSettings.analyticsConfiguration
|
||||
guard analyticsConfiguration.isEnabled else { return nil }
|
||||
|
||||
let configuration = PHGPostHogConfiguration(apiKey: apiKey, host: host)
|
||||
configuration.shouldSendDeviceID = false
|
||||
let postHogConfiguration = PHGPostHogConfiguration(apiKey: analyticsConfiguration.apiKey, host: analyticsConfiguration.host)
|
||||
postHogConfiguration.shouldSendDeviceID = false
|
||||
|
||||
return configuration
|
||||
return postHogConfiguration
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user