f0a6cba6db
* Update android.gradle.plugin to v9 * Separate extensions between app and library ones `CommonExtension` has been split and its properties are now duplicated in `ApplicationExtension` and `LibraryExtension` without a shared interface, so we now need to duplicate the helper extension functions * Bump Gradle wrapper to `9.3.1` * Remove `kotlin-android` plugin usage: it's no longer needed * Enable `resValues` build feature for the modules that have resources in custom variants like gplay, debug, etc. Otherwise this now fails saying the resources are there but the feature is disabled * Remove `retrofit` dependency from `:features:call:impl` It wasn't in use and the build was failing * Update kotlin to v2.4.0 * Update plugin paparazzi to v2.0.0-alpha05 * Update gradle wrapper to 9.5.1 ./gradlew wrapper --gradle-version 9.5.1 --gradle-distribution-sha256-sum bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f * Update com.android.tools.build:gradle to 9.2.1 * Update plugin sonarqube to v7.3.1.8318 * Kotlin 2.4.0 * Context parameters are enabled by default in Kotlin 2.4.0 * Fix code issue * Fix record screenshot issue * Workaround for https://github.com/cashapp/paparazzi/issues/2342 * Workaround for another issue with Paparazzi * Remove unused import * Update screenshots --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io> Co-authored-by: Benoit Marty <benoitm@element.io> Co-authored-by: Benoit Marty <benoit@matrix.org> Co-authored-by: ElementBot <android@element.io>
103 lines
3.5 KiB
Kotlin
103 lines
3.5 KiB
Kotlin
import extension.buildConfigFieldStr
|
|
import extension.readLocalProperty
|
|
import extension.setupDependencyInjection
|
|
import extension.testCommonDependencies
|
|
|
|
/*
|
|
* Copyright (c) 2025 Element Creations Ltd.
|
|
* Copyright 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.features.call.impl"
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
testOptions {
|
|
unitTests.isIncludeAndroidResources = true
|
|
}
|
|
|
|
defaultConfig {
|
|
buildConfigFieldStr(
|
|
name = "SENTRY_DSN",
|
|
value = System.getenv("ELEMENT_CALL_SENTRY_DSN")
|
|
?: readLocalProperty("features.call.sentry.dsn")
|
|
?: ""
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "POSTHOG_USER_ID",
|
|
value = System.getenv("ELEMENT_CALL_POSTHOG_USER_ID")
|
|
?: readLocalProperty("features.call.posthog.userid")
|
|
?: ""
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "POSTHOG_API_HOST",
|
|
value = System.getenv("ELEMENT_CALL_POSTHOG_API_HOST")
|
|
?: readLocalProperty("features.call.posthog.api.host")
|
|
?: ""
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "POSTHOG_API_KEY",
|
|
value = System.getenv("ELEMENT_CALL_POSTHOG_API_KEY")
|
|
?: readLocalProperty("features.call.posthog.api.key")
|
|
?: ""
|
|
)
|
|
buildConfigFieldStr(
|
|
name = "RAGESHAKE_URL",
|
|
value = System.getenv("ELEMENT_CALL_RAGESHAKE_URL")
|
|
?: readLocalProperty("features.call.regeshake.url")
|
|
?: ""
|
|
)
|
|
}
|
|
}
|
|
|
|
setupDependencyInjection()
|
|
|
|
dependencies {
|
|
implementation(projects.appconfig)
|
|
implementation(projects.features.enterprise.api)
|
|
implementation(projects.libraries.architecture)
|
|
implementation(projects.libraries.androidutils)
|
|
implementation(projects.libraries.audio.api)
|
|
implementation(projects.libraries.core)
|
|
implementation(projects.libraries.designsystem)
|
|
implementation(projects.libraries.featureflag.api)
|
|
implementation(projects.libraries.matrix.api)
|
|
implementation(projects.libraries.matrixmedia.api)
|
|
implementation(projects.libraries.network)
|
|
implementation(projects.libraries.preferences.api)
|
|
implementation(projects.libraries.push.api)
|
|
implementation(projects.libraries.uiStrings)
|
|
implementation(projects.services.analytics.api)
|
|
implementation(projects.services.appnavstate.api)
|
|
implementation(projects.services.toolbox.api)
|
|
implementation(libs.androidx.webkit)
|
|
implementation(libs.coil.compose)
|
|
implementation(libs.serialization.json)
|
|
implementation(libs.element.call.embedded)
|
|
api(projects.features.call.api)
|
|
|
|
testCommonDependencies(libs, true)
|
|
testImplementation(projects.features.call.test)
|
|
testImplementation(projects.libraries.featureflag.test)
|
|
testImplementation(projects.libraries.preferences.test)
|
|
testImplementation(projects.libraries.matrix.test)
|
|
testImplementation(projects.libraries.matrixmedia.test)
|
|
testImplementation(projects.libraries.push.test)
|
|
testImplementation(projects.services.analytics.test)
|
|
testImplementation(projects.services.appnavstate.impl)
|
|
testImplementation(projects.services.appnavstate.test)
|
|
testImplementation(projects.services.toolbox.test)
|
|
}
|