Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: disable updates check in fdroid release

ammarahm-ed6904045c7f10
diff --git a/apps/mobile/app/hooks/use-app-events.js b/apps/mobile/app/hooks/use-app-events.js
index 82daf5800..55874ab29 100644
--- a/apps/mobile/app/hooks/use-app-events.js
+++ b/apps/mobile/app/hooks/use-app-events.js
@@ -656,7 +656,7 @@ const doAppLoadActions = async () => {
};
const checkAppUpdateAvailable = async () => {
- if (__DEV__ || Config.isTesting === "true") return;
+ if (__DEV__ || Config.isTesting === "true" || Config.FDROID_BUILD) return;
try {
const version =
Config.GITHUB_RELEASE === "true"
diff --git a/apps/mobile/native/android/app/build.gradle b/apps/mobile/native/android/app/build.gradle
index 648bd0ccc..bb2abacf8 100644
--- a/apps/mobile/native/android/app/build.gradle
+++ b/apps/mobile/native/android/app/build.gradle
@@ -143,6 +143,7 @@ android {
buildTypes {
debug {
signingConfig signingConfigs.debug
+ buildConfigField "boolean", "FDROID_BUILD", "${fdroidBuild()}"
}
release {
if (file("debug.keystore").exists()) {
@@ -152,6 +153,7 @@ android {
shrinkResources false
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
proguardFile "${rootProject.projectDir}/../../node_modules/detox/android/detox/proguard-rules-app.pro"
+ buildConfigField "boolean", "FDROID_BUILD", "${fdroidBuild()}"
}
}