9d14530660
Sonar / Sonar Quality Checks (push) Has been cancelled
Code Quality Checks / Search for forbidden patterns (push) Has been cancelled
Code Quality Checks / Search for invalid screenshot files (push) Has been cancelled
Code Quality Checks / Search for invalid dependencies (push) Has been cancelled
Code Quality Checks / Konsist tests (push) Has been cancelled
Code Quality Checks / Compose tests (push) Has been cancelled
Code Quality Checks / Android lint check (push) Has been cancelled
Code Quality Checks / Detekt checks (push) Has been cancelled
Code Quality Checks / Ktlint checks (push) Has been cancelled
Code Quality Checks / Doc checks (push) Has been cancelled
Code Quality Checks / Check shell scripts (push) Has been cancelled
Code Quality Checks / Run zizmor (push) Has been cancelled
Code Quality Checks / Project Check Suite (push) Has been cancelled
Create release App Bundle and APKs / Create App Bundle (Gplay) (push) Has been cancelled
Create release App Bundle and APKs / Create App Bundle Enterprise (push) Has been cancelled
Create release App Bundle and APKs / Create APKs (FDroid) (push) Has been cancelled
Test / Runs unit tests (push) Has been cancelled
Post-release / post-release (push) Has been cancelled
Everything from port rounds 1-5 plus today's fixes, on top of upstream develop: - Branding: Blap name/id (lol.utn.blap), purple #7c66e0 accent (both colorGreen* and colorAlphaGreen* Compound ramps remapped), Hanken Grotesk, squircle avatars, five-dot notification icon, de-branded strings across all locales - Push: new libraries/pushproviders/ntfy module — FGS websocket to an ntfy server's Matrix gateway, no Google. Includes base64 payload decode, restart on boot/update/app-open, background-FGS-start crash guard, and a proactive battery-optimization banner (Doze kills the socket without the exemption) - Spoilers (MSC2010, interops with Blap desktop 1.0.3): render + tap-to-reveal, Discord ||text|| send syntax, SPOILER_ filename convention for media both ways - Home: Discord-style space rail, client-side room-list sections, DM-first sort - Calls: embedded Element Call fork 0.20.3 assets (camera-off joins, bottom strip) - Threads on by default; RTC ping timeline items hidden; reply-quote restyle - URLs now point at git.utn.lol/enki/blap (was codeberg); version 26.07.2 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
105 lines
3.7 KiB
Kotlin
105 lines
3.7 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)
|
|
// Blap: the stock element-call-embedded AAR is replaced by our EC fork's dist,
|
|
// vendored under src/main/assets/element-call/ (same layout the AAR provided).
|
|
// 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)
|
|
}
|