Let enterprise build be able to override (or disable) the bug report URL.
This commit is contained in:
parent
76849c4374
commit
d7e4e00b5d
40 changed files with 266 additions and 78 deletions
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.enterprise.api
|
||||
|
||||
sealed interface BugReportUrl {
|
||||
data object UseDefault : BugReportUrl
|
||||
data object Disabled : BugReportUrl
|
||||
data class Custom(
|
||||
val url: String,
|
||||
) : BugReportUrl
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@ package io.element.android.features.enterprise.api
|
|||
|
||||
import io.element.android.compound.tokens.generated.SemanticColors
|
||||
import io.element.android.libraries.matrix.api.core.SessionId
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface EnterpriseService {
|
||||
val isEnterpriseBuild: Boolean
|
||||
|
|
@ -22,6 +23,8 @@ interface EnterpriseService {
|
|||
fun firebasePushGateway(): String?
|
||||
fun unifiedPushDefaultPushGateway(): String?
|
||||
|
||||
val bugReportUrlFlow: Flow<BugReportUrl>
|
||||
|
||||
companion object {
|
||||
const val ANY_ACCOUNT_PROVIDER = "*"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,4 +9,6 @@ package io.element.android.features.enterprise.api
|
|||
|
||||
interface SessionEnterpriseService {
|
||||
suspend fun isElementCallAvailable(): Boolean
|
||||
|
||||
suspend fun init()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue