mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
954eb731e7
Remove dependencies flagged as unused by the Dependency Analysis Gradle Plugin (`./gradlew buildHealth`) and explicitly declared in module build files. Removals were skipped when the dependency provides transitively something the module (or a consumer of an `api` dependency) uses directly, as well as for runtime-only dependencies (element-call-embedded, sentry-android, rustls-platform-verifier). Dependencies added by the convention plugin helpers (composeDependencies, testCommonDependencies) are left untouched. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
53 lines
2.0 KiB
Kotlin
53 lines
2.0 KiB
Kotlin
import extension.setupDependencyInjection
|
|
import extension.testCommonDependencies
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
plugins {
|
|
id("io.element.android-compose-library")
|
|
}
|
|
|
|
android {
|
|
namespace = "io.element.android.features.callnative.impl"
|
|
}
|
|
|
|
setupDependencyInjection()
|
|
|
|
// Temporary: `-PelementCallLocalVersion` points this at a locally published build of
|
|
// element-call-android, because the library has no remote repository yet. Goes with the mavenLocal
|
|
// block in settings.gradle.kts. Only the BOM carries a version; every other artifact follows it.
|
|
val elementCallVersion: String = providers.gradleProperty("elementCallLocalVersion")
|
|
.getOrElse(libs.versions.element.call.get())
|
|
|
|
dependencies {
|
|
api(projects.features.callnative.api)
|
|
|
|
implementation(platform("io.element.android:element-call-bom:$elementCallVersion"))
|
|
implementation(libs.element.call.api)
|
|
implementation(libs.element.call.impl)
|
|
implementation(libs.element.call.ui)
|
|
|
|
implementation(projects.features.call.api)
|
|
implementation(projects.libraries.designsystem)
|
|
implementation(projects.libraries.architecture)
|
|
implementation(projects.libraries.di)
|
|
implementation(projects.libraries.featureflag.api)
|
|
implementation(projects.libraries.matrix.api)
|
|
implementation(projects.libraries.preferences.api)
|
|
// For NotificationIdProvider: the ongoing-call notification id is shared with the WebView call's
|
|
// foreground service, so that the two paths cannot leave two call notifications in the shade.
|
|
implementation(projects.libraries.push.api)
|
|
implementation(projects.services.appnavstate.api)
|
|
implementation(libs.androidx.corektx)
|
|
|
|
testCommonDependencies(libs)
|
|
testImplementation(libs.element.call.test)
|
|
testImplementation(projects.features.call.test)
|
|
testImplementation(projects.libraries.matrix.test)
|
|
testImplementation(projects.services.appnavstate.test)
|
|
}
|