mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Replace String by AccountProvider to be able to get baseUrl and serverName.
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 2026 Element Creations 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.libraries.matrix.test.accountprovider
|
||||
|
||||
import io.element.android.libraries.matrix.api.accountprovider.AccountProvider
|
||||
import io.element.android.libraries.matrix.test.AN_ACCOUNT_PROVIDER
|
||||
import io.element.android.libraries.matrix.test.AN_ACCOUNT_PROVIDER_URL
|
||||
|
||||
fun anAccountProviderGeneric(
|
||||
serverName: String = AN_ACCOUNT_PROVIDER,
|
||||
) = AccountProvider.Generic(
|
||||
serverName = serverName,
|
||||
)
|
||||
|
||||
fun anAccountProviderManaged(
|
||||
baseUrl: String = AN_ACCOUNT_PROVIDER_URL,
|
||||
serverName: String = AN_ACCOUNT_PROVIDER,
|
||||
canUseServerName: Boolean = true,
|
||||
) = AccountProvider.Managed(
|
||||
serverName = serverName,
|
||||
baseUrl = baseUrl,
|
||||
canUseServerName = canUseServerName,
|
||||
)
|
||||
Reference in New Issue
Block a user