From 0b5be85f2995610c16974bef78548e6a38731d5c Mon Sep 17 00:00:00 2001 From: First-Terraner Date: Thu, 29 Feb 2024 14:01:45 +0100 Subject: [PATCH] show donate option in beta, dev and android builds --- src/screens/Settings/index.tsx | 4 ++-- utils/update-translations.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens/Settings/index.tsx b/src/screens/Settings/index.tsx index d7e09895..9a491d6f 100644 --- a/src/screens/Settings/index.tsx +++ b/src/screens/Settings/index.tsx @@ -2,7 +2,7 @@ import { AboutIcon, HeartIcon, MintBoardIcon, OptionsIcon } from '@comps/Icons' import { ZapModal } from '@comps/modal/Zap' import Screen from '@comps/Screen' import Txt from '@comps/Txt' -import { appVersion, isIOS } from '@consts/env' +import { appVersion, env, isIOS } from '@consts/env' import { BottomModal } from '@modal/Question' import type { TSettingsPageProps } from '@model/nav' import BottomNav from '@nav/BottomNav' @@ -59,7 +59,7 @@ export default function Settings({ navigation, route }: TSettingsPageProps) { onPress={() => navigation.navigate('About settings')} hasSeparator={__DEV__} /> - {!isIOS && + {(__DEV__ || env.isExpoBeta || !isIOS) && } diff --git a/utils/update-translations.js b/utils/update-translations.js index d71dc421..4d847a1f 100644 --- a/utils/update-translations.js +++ b/utils/update-translations.js @@ -15,7 +15,7 @@ const loadJSON = (filename) => { } // paste unused keys from the jest test output here -const unusedKeys = ['newRelease', 'releaseNotes', 'publishedOn', 'openOnTestflight', 'downloadApk', 'showOnGithub', 'hideReleaseNotes', 'noReleaseData'] +const unusedKeys = [] const updateTranslationFiles = (unusedKeys) => { const translationDir = path.resolve(__dirname, tlPath)