* Add handy extension "VariantDimension.buildConfigFieldStr" * Update configuration for MapTiler. * Update configuration for Sentry. * Build AnalyticsConfig depending on analytics configuration. * Configure analytics policy url. * Add handy extension "VariantDimension.buildConfigFieldBoolean" * Configure legal urls. * Add a way to disable rageshake / reporting bugs. * Update screenshots * Quality * Fix test * Use `ifBlank` extension * Add missing configuration for PostHog * Update configuration for Rageshake. * Add build log. * Disable crash detection if rageshake feature is not available. Disabled twice. * Hide link to analytics policy if the link is missing. * Fix test when run in enterprise context. * Use RageshakeFeatureAvailability where appropriate. * Rename file. * Move some classes to their correct module. * Update screenshots --------- Co-authored-by: ElementBot <android@element.io>
53 lines
1.3 KiB
Kotlin
53 lines
1.3 KiB
Kotlin
import config.BuildTimeConfig
|
|
import extension.buildConfigFieldStr
|
|
|
|
/*
|
|
* 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-library")
|
|
}
|
|
|
|
android {
|
|
namespace = "io.element.android.appconfig"
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
defaultConfig {
|
|
buildConfigFieldStr(
|
|
name = "URL_POLICY",
|
|
value = if (isEnterpriseBuild) {
|
|
BuildTimeConfig.URL_POLICY ?: ""
|
|
} else {
|
|
"https://element.io/cookie-policy"
|
|
},
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "BUG_REPORT_URL",
|
|
value = if (isEnterpriseBuild) {
|
|
BuildTimeConfig.BUG_REPORT_URL ?: ""
|
|
} else {
|
|
"https://riot.im/bugreports/submit"
|
|
},
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "BUG_REPORT_APP_NAME",
|
|
value = if (isEnterpriseBuild) {
|
|
BuildTimeConfig.BUG_REPORT_APP_NAME ?: ""
|
|
} else {
|
|
"element-x-android"
|
|
},
|
|
)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.annotationjvm)
|
|
implementation(projects.libraries.matrix.api)
|
|
}
|