Revert "Force analytics off"

This reverts commit d310db5f67.
This commit is contained in:
Jarno Rankinen 2023-08-28 21:28:23 +03:00
parent 3bc029839e
commit 4b4e2efe08
1 changed files with 8 additions and 8 deletions

View File

@ -57,14 +57,14 @@ object ConfigurationModule {
}
return when (config) {
Analytics.Disabled -> AnalyticsConfig(isEnabled = false, "", "", "", "", "")
is Analytics.Enabled -> AnalyticsConfig(isEnabled = false, "", "", "", "", "")
// isEnabled = true,
// postHogHost = config.postHogHost,
// postHogApiKey = config.postHogApiKey,
// policyLink = config.policyLink,
// sentryDSN = config.sentryDSN,
// sentryEnvironment = config.sentryEnvironment
// )
is Analytics.Enabled -> AnalyticsConfig(
isEnabled = true,
postHogHost = config.postHogHost,
postHogApiKey = config.postHogApiKey,
policyLink = config.policyLink,
sentryDSN = config.sentryDSN,
sentryEnvironment = config.sentryEnvironment
)
}
}