mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
feat(branding): rebrand app identity to HealthChat
App id ch.healthchat.element, locked matrix.healthchat.ch homeserver.
This commit is contained in:
@@ -24,12 +24,12 @@ object ApplicationConfig {
|
||||
* Cannot be empty.
|
||||
* For Element, the value is "Element".
|
||||
*/
|
||||
const val PRODUCTION_APPLICATION_NAME: String = "Element"
|
||||
const val PRODUCTION_APPLICATION_NAME: String = "HealthChat"
|
||||
|
||||
/**
|
||||
* Used in the strings to reference the Element Desktop client, for instance Element Web.
|
||||
* Cannot be empty.
|
||||
* For Element, the value is "Element". We use the same name for desktop and mobile for now.
|
||||
*/
|
||||
const val DESKTOP_APPLICATION_NAME: String = "Element"
|
||||
const val DESKTOP_APPLICATION_NAME: String = "HealthChat"
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ class DefaultEnterpriseService : EnterpriseService {
|
||||
|
||||
override suspend fun isEnterpriseUser(sessionId: SessionId) = false
|
||||
override suspend fun tweakMasUrl(url: String, homeserver: String) = url
|
||||
override fun defaultHomeserverList(): List<String> = emptyList()
|
||||
override fun defaultHomeserverList(): List<String> = listOf("matrix.healthchat.ch")
|
||||
override suspend fun isAllowedToConnectToHomeserver(homeserverUrl: String) = true
|
||||
|
||||
override suspend fun overrideBrandColor(sessionId: SessionId?, brandColor: String?) = Unit
|
||||
|
||||
+2
-2
@@ -25,9 +25,9 @@ class DefaultEnterpriseServiceTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `defaultHomeserverList should return empty list`() {
|
||||
fun `defaultHomeserverList should return the HealthChat homeserver only`() {
|
||||
val defaultEnterpriseService = DefaultEnterpriseService()
|
||||
assertThat(defaultEnterpriseService.defaultHomeserverList()).isEmpty()
|
||||
assertThat(defaultEnterpriseService.defaultHomeserverList()).containsExactly("matrix.healthchat.ch")
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -9,19 +9,24 @@
|
||||
package config
|
||||
|
||||
object BuildTimeConfig {
|
||||
const val APPLICATION_ID = "io.element.android.x"
|
||||
const val APPLICATION_NAME = "Element X"
|
||||
const val APPLICATION_ID = "ch.healthchat.element"
|
||||
const val APPLICATION_NAME = "HealthChat"
|
||||
const val GOOGLE_APP_ID_RELEASE = "1:912726360885:android:d097de99a4c23d2700427c"
|
||||
const val GOOGLE_APP_ID_DEBUG = "1:912726360885:android:def0a4e454042e9b00427c"
|
||||
const val GOOGLE_APP_ID_NIGHTLY = "1:912726360885:android:e17435e0beb0303000427c"
|
||||
|
||||
val METADATA_HOST_REVERSED: String? = null
|
||||
val URL_WEBSITE: String? = null
|
||||
val URL_LOGO: String? = null
|
||||
// OIDC redirect scheme base. MAS requires the custom scheme to be the
|
||||
// reverse-DNS of the CLIENT_URI (URL_WEBSITE) host, or an extension of it.
|
||||
val METADATA_HOST_REVERSED: String? = "ch.healthchat.element"
|
||||
// Must stay the apex host: the OIDC client_uri host must reverse-match
|
||||
// METADATA_HOST_REVERSED, and logo/tos/policy URIs must be on this host
|
||||
// or a subdomain of it.
|
||||
val URL_WEBSITE: String? = "https://healthchat.ch"
|
||||
val URL_LOGO: String? = "https://www.healthchat.ch/favicon.ico"
|
||||
val URL_COPYRIGHT: String? = null
|
||||
val URL_ACCEPTABLE_USE: String? = null
|
||||
val URL_PRIVACY: String? = null
|
||||
val URL_POLICY: String? = null
|
||||
val URL_ACCEPTABLE_USE: String? = "https://www.healthchat.ch/datenschutz"
|
||||
val URL_PRIVACY: String? = "https://www.healthchat.ch/datenschutz"
|
||||
val URL_POLICY: String? = "https://www.healthchat.ch/datenschutz"
|
||||
val SERVICES_MAPTILER_BASE_URL: String? = null
|
||||
val SERVICES_MAPTILER_APIKEY: String? = null
|
||||
val SERVICES_MAPTILER_LIGHT_MAPID: String? = null
|
||||
|
||||
Reference in New Issue
Block a user