* Login: more logs. * Login: map Oidc error to provide more information in the error dialog. * Oidc: use the application name. * Oidc: move configuration from OidcConfigurationProvider to OidcConfig and add some comments. * Oidc: limit to only 1 contact in the configuration. * Oidc: Move configuration to BuildConfig file. * Remove unused const. * Add missing test on Exception mapping * Remove contacts from OidcConfiguration. https://github.com/matrix-org/matrix-rust-sdk/pull/4958
68 lines
2 KiB
Kotlin
68 lines
2 KiB
Kotlin
import config.BuildTimeConfig
|
|
import extension.buildConfigFieldStr
|
|
import extension.setupAnvil
|
|
|
|
/*
|
|
* Copyright 2022-2024 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.
|
|
*/
|
|
|
|
plugins {
|
|
id("io.element.android-compose-library")
|
|
id("kotlin-parcelize")
|
|
alias(libs.plugins.kotlin.serialization)
|
|
}
|
|
|
|
android {
|
|
namespace = "io.element.android.libraries.matrix.api"
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
defaultConfig {
|
|
buildConfigFieldStr(
|
|
name = "CLIENT_URI",
|
|
value = BuildTimeConfig.URL_WEBSITE ?: "https://element.io"
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "REDIRECT_URI",
|
|
value = buildString {
|
|
append(BuildTimeConfig.METADATA_HOST_REVERSED ?: "io.element")
|
|
append(":/callback")
|
|
}
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "LOGO_URI",
|
|
value = BuildTimeConfig.URL_LOGO ?: "https://element.io/mobile-icon.png"
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "TOS_URI",
|
|
value = BuildTimeConfig.URL_ACCEPTABLE_USE ?: "https://element.io/acceptable-use-policy-terms"
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "POLICY_URI",
|
|
value = BuildTimeConfig.URL_POLICY ?: "https://element.io/privacy"
|
|
)
|
|
}
|
|
}
|
|
|
|
setupAnvil()
|
|
|
|
dependencies {
|
|
implementation(projects.libraries.di)
|
|
implementation(libs.dagger)
|
|
implementation(projects.libraries.androidutils)
|
|
implementation(projects.libraries.core)
|
|
implementation(projects.services.analytics.api)
|
|
implementation(libs.serialization.json)
|
|
api(projects.libraries.sessionStorage.api)
|
|
implementation(libs.coroutines.core)
|
|
api(projects.libraries.architecture)
|
|
|
|
testImplementation(libs.test.junit)
|
|
testImplementation(libs.test.truth)
|
|
testImplementation(projects.libraries.matrix.test)
|
|
}
|