From 2dfd76825b992437ff28a0433cc90be5dbf8ef27 Mon Sep 17 00:00:00 2001 From: QIU Date: Mon, 3 Aug 2026 08:38:21 +0000 Subject: [PATCH] fix: fork under own applicationId com.rtbishop.look4sat.bg7nta The official app signs com.rtbishop.look4sat with its own certificate. A fork sharing that applicationId cannot be installed over the official build (signature mismatch) and users saw overwrite/install failures. - Add applicationId version catalog entry; namespace stays com.rtbishop.look4sat so source imports are untouched, applicationId becomes com.rtbishop.look4sat.bg7nta. - Update PROPERTY_SATELLITE_DATA_OPTIMIZED meta-data to the fork id. - Document the fork-applicationId requirement in the version catalog. --- app/src/main/AndroidManifest.xml | 2 +- .../com/rtbishop/look4sat/convention/PluginSetupUtils.kt | 2 +- gradle/libs.versions.toml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 25895b98..a57d1d1c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -43,7 +43,7 @@ + android:value="com.rtbishop.look4sat.bg7nta" /> diff --git a/build-logic/convention/src/main/java/com/rtbishop/look4sat/convention/PluginSetupUtils.kt b/build-logic/convention/src/main/java/com/rtbishop/look4sat/convention/PluginSetupUtils.kt index 334a9308..6126a2d0 100644 --- a/build-logic/convention/src/main/java/com/rtbishop/look4sat/convention/PluginSetupUtils.kt +++ b/build-logic/convention/src/main/java/com/rtbishop/look4sat/convention/PluginSetupUtils.kt @@ -57,7 +57,7 @@ internal fun Project.setupAndroidApp() { namespace = libs.versions.packageName.get() compileSdk = libs.versions.compileSdk.get().toInt() defaultConfig { - applicationId = libs.versions.packageName.get() + applicationId = libs.versions.applicationId.get() minSdk = libs.versions.minSdk.get().toInt() versionCode = libs.versions.appVersionCode.get().toInt() versionName = libs.versions.appVersionName.get() diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6f817fc0..a126fec4 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -11,6 +11,11 @@ minSdk = "24" jdkVersion = "21" #noinspection UnusedVersionCatalogEntry packageName = "com.rtbishop.look4sat" +# Fork application ID: official app uses com.rtbishop.look4sat with a different +# signing cert. Installing a fork with the same applicationId would conflict +# with the official build (signature mismatch / cannot overwrite), so the fork +# ships under its own applicationId suffix. +applicationId = "com.rtbishop.look4sat.bg7nta" android-gradle-plugin = "9.3.1"