mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +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.
|
* Cannot be empty.
|
||||||
* For Element, the value is "Element".
|
* 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.
|
* Used in the strings to reference the Element Desktop client, for instance Element Web.
|
||||||
* Cannot be empty.
|
* Cannot be empty.
|
||||||
* For Element, the value is "Element". We use the same name for desktop and mobile for now.
|
* 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 isEnterpriseUser(sessionId: SessionId) = false
|
||||||
override suspend fun tweakMasUrl(url: String, homeserver: String) = url
|
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 isAllowedToConnectToHomeserver(homeserverUrl: String) = true
|
||||||
|
|
||||||
override suspend fun overrideBrandColor(sessionId: SessionId?, brandColor: String?) = Unit
|
override suspend fun overrideBrandColor(sessionId: SessionId?, brandColor: String?) = Unit
|
||||||
|
|||||||
+2
-2
@@ -25,9 +25,9 @@ class DefaultEnterpriseServiceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `defaultHomeserverList should return empty list`() {
|
fun `defaultHomeserverList should return the HealthChat homeserver only`() {
|
||||||
val defaultEnterpriseService = DefaultEnterpriseService()
|
val defaultEnterpriseService = DefaultEnterpriseService()
|
||||||
assertThat(defaultEnterpriseService.defaultHomeserverList()).isEmpty()
|
assertThat(defaultEnterpriseService.defaultHomeserverList()).containsExactly("matrix.healthchat.ch")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -9,19 +9,24 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
object BuildTimeConfig {
|
object BuildTimeConfig {
|
||||||
const val APPLICATION_ID = "io.element.android.x"
|
const val APPLICATION_ID = "ch.healthchat.element"
|
||||||
const val APPLICATION_NAME = "Element X"
|
const val APPLICATION_NAME = "HealthChat"
|
||||||
const val GOOGLE_APP_ID_RELEASE = "1:912726360885:android:d097de99a4c23d2700427c"
|
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_DEBUG = "1:912726360885:android:def0a4e454042e9b00427c"
|
||||||
const val GOOGLE_APP_ID_NIGHTLY = "1:912726360885:android:e17435e0beb0303000427c"
|
const val GOOGLE_APP_ID_NIGHTLY = "1:912726360885:android:e17435e0beb0303000427c"
|
||||||
|
|
||||||
val METADATA_HOST_REVERSED: String? = null
|
// OIDC redirect scheme base. MAS requires the custom scheme to be the
|
||||||
val URL_WEBSITE: String? = null
|
// reverse-DNS of the CLIENT_URI (URL_WEBSITE) host, or an extension of it.
|
||||||
val URL_LOGO: String? = null
|
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_COPYRIGHT: String? = null
|
||||||
val URL_ACCEPTABLE_USE: String? = null
|
val URL_ACCEPTABLE_USE: String? = "https://www.healthchat.ch/datenschutz"
|
||||||
val URL_PRIVACY: String? = null
|
val URL_PRIVACY: String? = "https://www.healthchat.ch/datenschutz"
|
||||||
val URL_POLICY: String? = null
|
val URL_POLICY: String? = "https://www.healthchat.ch/datenschutz"
|
||||||
val SERVICES_MAPTILER_BASE_URL: String? = null
|
val SERVICES_MAPTILER_BASE_URL: String? = null
|
||||||
val SERVICES_MAPTILER_APIKEY: String? = null
|
val SERVICES_MAPTILER_APIKEY: String? = null
|
||||||
val SERVICES_MAPTILER_LIGHT_MAPID: String? = null
|
val SERVICES_MAPTILER_LIGHT_MAPID: String? = null
|
||||||
|
|||||||
Reference in New Issue
Block a user