From aa41d560dd89acb2fba34e05b2982f9666c7ad3e Mon Sep 17 00:00:00 2001 From: Jeena Date: Thu, 7 May 2026 04:13:25 +0000 Subject: [PATCH] build: decouple app namespace from applicationId MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hardcoding `namespace = "org.fossify.messages"` in app/build.gradle.kts lets a fork override `applicationId` (via gradle.properties APP_ID) without rebasing the R class location and breaking thousands of `org.fossify.messages.R` imports across the codebase. No effect on the upstream build — applicationId still defaults to APP_ID, only namespace stops following it. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ab24b77e..74e2f0d2 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -116,7 +116,9 @@ android { ) } - namespace = project.property("APP_ID").toString() + // Source-package namespace stays decoupled from applicationId so a fork + // can ship under its own ID without breaking thousands of `R` imports. + namespace = "org.fossify.messages" lint { checkReleaseBuilds = false @@ -142,6 +144,7 @@ detekt { dependencies { implementation(libs.fossify.commons) + implementation(project(":translate")) implementation(libs.eventbus) implementation(libs.indicator.fast.scroll) implementation(libs.mmslib)