mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
Merge pull request #8436 from vector-im/feature/bca/update_analytics
Add sentry config for rust crypto
This commit is contained in:
commit
c9ed3abc36
3 changed files with 8 additions and 2 deletions
1
changelog.d/8436.misc
Normal file
1
changelog.d/8436.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Updated posthog url (cosmetic, target same server) and added a new sentry env.
|
|
@ -83,7 +83,7 @@ object Config {
|
|||
* Can be disabled by providing Analytics.Disabled
|
||||
*/
|
||||
val RELEASE_ANALYTICS_CONFIG = Analytics.Enabled(
|
||||
postHogHost = "https://posthog.hss.element.io",
|
||||
postHogHost = "https://posthog.element.io",
|
||||
postHogApiKey = "phc_Jzsm6DTm6V2705zeU5dcNvQDlonOR68XvX2sh1sEOHO",
|
||||
policyLink = "https://element.io/cookie-policy",
|
||||
sentryDSN = "https://f6acc9cfc2024641b28c87ad95e73e66@sentry.tools.element.io/49",
|
||||
|
@ -95,6 +95,7 @@ object Config {
|
|||
* Can be disabled by providing Analytics.Disabled
|
||||
*/
|
||||
val NIGHTLY_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "NIGHTLY")
|
||||
val RELEASE_R_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "RELEASE-R")
|
||||
val ER_NIGHTLY_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "element-r")
|
||||
val ER_DEBUG_ANALYTICS_CONFIG = DEBUG_ANALYTICS_CONFIG.copy(sentryEnvironment = "element-r")
|
||||
|
||||
|
|
|
@ -48,7 +48,11 @@ object ConfigurationModule {
|
|||
} else {
|
||||
Config.NIGHTLY_ANALYTICS_CONFIG
|
||||
}
|
||||
"release" -> Config.RELEASE_ANALYTICS_CONFIG
|
||||
"release" -> if (BuildConfig.FLAVOR == "rustCrypto") {
|
||||
Config.RELEASE_R_ANALYTICS_CONFIG
|
||||
} else {
|
||||
Config.RELEASE_ANALYTICS_CONFIG
|
||||
}
|
||||
else -> throw IllegalStateException("Unhandled build type: ${BuildConfig.BUILD_TYPE}")
|
||||
}
|
||||
return when (config) {
|
||||
|
|
Loading…
Reference in a new issue