Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

android: Settings → About says which APK this is (Standard 180, Plus 240 or HD 360 px)

Duarte Santos4d930df3d5a4
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 71920c71e..db3a711aa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -114,6 +114,8 @@ per muscle. Settings → Workout → Fine-tuning turns it off.
hiccup and it reuses the APK it already has instead of fetching 300 MB twice, and the leftover
APK is cleaned up once you're on the new version. (The fix lives in the updater itself, so it
helps from the update after 1.4.3 on: for this one, keep openGym open while it downloads.)
+- **Which APK is this?** Settings → About now tells you whether your Android app is the Standard
+ (180 px), Plus (240 px) or HD (360 px) one, no guessing from the file size.
**Security.** Follow-ups to v1.4.2's audit.
- **Pairing the phone app asks you to confirm it's you** (passkey, or your password where that
diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.js
index 66a97a5af..999e3c482 100644
--- a/frontend/src/lib/pt-br-locale.test.js
+++ b/frontend/src/lib/pt-br-locale.test.js
@@ -41,7 +41,7 @@ describe('Brazilian Portuguese locale', () => {
// has to be taught is a number nobody reads. What the numbers stood for is asserted above.
// If the hash fails, review the changed keys and wording before accepting a new one. From
// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list
- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('1c6650cfb2c4eaca1bb601191bed943d103c9c0632a662833c543821c366279e')
+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('baa367df46975d712bc78ae6af922128280fd8e2fdcee13b4713bce9761348fb')
})
// pt-PT labelled Unpair 'Desfazer': Undo, in Portuguese (it is pt-BR's Undo), on the button that
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index efc353c32..4cd62d61c 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -2278,6 +2278,7 @@ export default {
'Animation quality': 'جودة الرسوم المتحركة',
'Auto ({0})': 'تلقائي ({0})',
'Built in ({0} px)': 'مدمجة ({0} px)',
+ '{0} APK, animations at {1} px': 'حزمة APK {0}، رسوم متحركة بدقة {1} px',
'Download failed. Tap to try again.': 'فشل التنزيل. اضغط للمحاولة مجددًا.',
'Download over Wi-Fi only': 'التنزيل عبر Wi-Fi فقط',
'Downloaded · {0}': 'تم التنزيل · {0}',
diff --git a/frontend/src/locales/bn.js b/frontend/src/locales/bn.js
index 11f72aa4a..a5d715358 100644
--- a/frontend/src/locales/bn.js
+++ b/frontend/src/locales/bn.js
@@ -2302,6 +2302,7 @@ export default {
'Animation quality': 'অ্যানিমেশনের মান',
'Auto ({0})': 'অটো ({0})',
'Built in ({0} px)': 'অন্তর্ভুক্ত ({0} px)',
+ '{0} APK, animations at {1} px': '{0} APK, অ্যানিমেশন {1} px-এ',
'Download failed. Tap to try again.': 'ডাউনলোড ব্যর্থ। আবার চেষ্টা করতে ট্যাপ করুন।',
'Download over Wi-Fi only': 'শুধু Wi-Fi-তে ডাউনলোড',
'Downloaded · {0}': 'ডাউনলোড হয়েছে · {0}',
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 2f618e952..197208eaf 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -2243,6 +2243,7 @@ export default {
'Animation quality': 'Animationsqualität',
'Auto ({0})': 'Auto ({0})',
'Built in ({0} px)': 'Eingebaut ({0} px)',
+ '{0} APK, animations at {1} px': '{0}-APK, Animationen in {1} px',
'Download failed. Tap to try again.': 'Download fehlgeschlagen. Tippen zum erneuten Versuch.',
'Download over Wi-Fi only': 'Nur über WLAN laden',
'Downloaded · {0}': 'Geladen · {0}',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 8017bcd43..fdba74b67 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': 'Calidad de las animaciones',
'Auto ({0})': 'Auto ({0})',
'Built in ({0} px)': 'Integradas ({0} px)',
+ '{0} APK, animations at {1} px': 'APK {0}, animaciones a {1} px',
'Download failed. Tap to try again.': 'La descarga falló. Toca para reintentar.',
'Download over Wi-Fi only': 'Descargar solo con Wi-Fi',
'Downloaded · {0}': 'Descargadas · {0}',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index e08a2f304..75642000c 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': 'Qualité des animations',
'Auto ({0})': 'Auto ({0})',
'Built in ({0} px)': 'Intégrées ({0} px)',
+ '{0} APK, animations at {1} px': 'APK {0}, animations en {1} px',
'Download failed. Tap to try again.': 'Le téléchargement a échoué. Touche pour réessayer.',
'Download over Wi-Fi only': 'Télécharger en Wi-Fi uniquement',
'Downloaded · {0}': 'Téléchargées · {0}',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 86bbb632e..0acc379c2 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': 'एनिमेशन की क्वालिटी',
'Auto ({0})': 'ऑटो ({0})',
'Built in ({0} px)': 'बिल्ट-इन ({0} px)',
+ '{0} APK, animations at {1} px': '{0} APK, एनिमेशन {1} px में',
'Download failed. Tap to try again.': 'डाउनलोड नहीं हुआ। फिर से कोशिश के लिए टैप करें।',
'Download over Wi-Fi only': 'सिर्फ़ Wi-Fi पर डाउनलोड करें',
'Downloaded · {0}': 'डाउनलोड हो गया · {0}',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 440f67c85..9d0a3d011 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -2226,6 +2226,7 @@ export default {
'Animation quality': 'Animációk minősége',
'Auto ({0})': 'Auto ({0})',
'Built in ({0} px)': 'Beépített ({0} px)',
+ '{0} APK, animations at {1} px': '{0} APK, {1} px-es animációk',
'Download failed. Tap to try again.': 'A letöltés nem sikerült. Koppints az újrapróbáláshoz.',
'Download over Wi-Fi only': 'Letöltés csak Wi-Fin',
'Downloaded · {0}': 'Letöltve · {0}',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index ae79e7871..aa2a63096 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': 'Qualità delle animazioni',
'Auto ({0})': 'Auto ({0})',
'Built in ({0} px)': 'Integrate ({0} px)',
+ '{0} APK, animations at {1} px': 'APK {0}, animazioni a {1} px',
'Download failed. Tap to try again.': 'Download non riuscito. Tocca per riprovare.',
'Download over Wi-Fi only': 'Scarica solo con Wi-Fi',
'Downloaded · {0}': 'Scaricate · {0}',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index 4e1d2dce4..6b404e853 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': '애니메이션 화질',
'Auto ({0})': '자동 ({0})',
'Built in ({0} px)': '기본 내장 ({0} px)',
+ '{0} APK, animations at {1} px': '{0} APK, 애니메이션 {1} px',
'Download failed. Tap to try again.': '다운로드에 실패했어요. 탭해서 다시 시도하세요.',
'Download over Wi-Fi only': 'Wi-Fi에서만 다운로드',
'Downloaded · {0}': '다운로드됨 · {0}',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index 02438983c..c9ae156d5 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': 'Jakość animacji',
'Auto ({0})': 'Auto ({0})',
'Built in ({0} px)': 'Wbudowane ({0} px)',
+ '{0} APK, animations at {1} px': 'APK {0}, animacje w {1} px',
'Download failed. Tap to try again.': 'Pobieranie nie powiodło się. Stuknij, aby spróbować ponownie.',
'Download over Wi-Fi only': 'Pobieraj tylko przez Wi-Fi',
'Downloaded · {0}': 'Pobrane · {0}',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index a7f57a7c3..fbcb6f311 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': 'Qualidade das animações',
'Auto ({0})': 'Auto ({0})',
'Built in ({0} px)': 'Incluídas ({0} px)',
+ '{0} APK, animations at {1} px': 'APK {0}, animações a {1} px',
'Download failed. Tap to try again.': 'A transferência falhou. Toca para tentar de novo.',
'Download over Wi-Fi only': 'Transferir só por Wi-Fi',
'Downloaded · {0}': 'Transferidas · {0}',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 0283963ad..f971cdae5 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -2227,6 +2227,7 @@ export default {
'Animation quality': 'Качество анимаций',
'Auto ({0})': 'Авто ({0})',
'Built in ({0} px)': 'Встроенные ({0} px)',
+ '{0} APK, animations at {1} px': 'APK {0}, анимации {1} px',
'Download failed. Tap to try again.': 'Загрузка не удалась. Нажмите, чтобы повторить.',
'Download over Wi-Fi only': 'Загружать только по Wi-Fi',
'Downloaded · {0}': 'Загружено · {0}',
diff --git a/frontend/src/locales/sv.js b/frontend/src/locales/sv.js
index 183b962b1..1886d4522 100644
--- a/frontend/src/locales/sv.js
+++ b/frontend/src/locales/sv.js
@@ -2248,6 +2248,7 @@ export default {
'Animation quality': 'Animationskvalitet',
'Auto ({0})': 'Auto ({0})',
'Built in ({0} px)': 'Inbyggd ({0} px)',
+ '{0} APK, animations at {1} px': '{0}-APK, animationer i {1} px',
'Download failed. Tap to try again.': 'Nedladdningen misslyckades. Tryck för att försöka igen.',
'Download over Wi-Fi only': 'Ladda bara ner via wifi',
'Downloaded · {0}': 'Nedladdad · {0}',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index 209a0eee6..f9907addf 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -2234,6 +2234,7 @@ export default {
'Animation quality': 'คุณภาพภาพเคลื่อนไหว',
'Auto ({0})': 'อัตโนมัติ ({0})',
'Built in ({0} px)': 'ในตัวแอป ({0} px)',
+ '{0} APK, animations at {1} px': 'APK รุ่น {0} แอนิเมชัน {1} px',
'Download failed. Tap to try again.': 'ดาวน์โหลดไม่สำเร็จ แตะเพื่อลองอีกครั้ง',
'Download over Wi-Fi only': 'ดาวน์โหลดผ่าน Wi-Fi เท่านั้น',
'Downloaded · {0}': 'ดาวน์โหลดแล้ว · {0}',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 47bbcd91e..e1b08b7d9 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': 'Animasyon kalitesi',
'Auto ({0})': 'Otomatik ({0})',
'Built in ({0} px)': 'Yerleşik ({0} px)',
+ '{0} APK, animations at {1} px': '{0} APK, animasyonlar {1} px',
'Download failed. Tap to try again.': 'İndirme başarısız. Tekrar denemek için dokun.',
'Download over Wi-Fi only': 'Yalnızca Wi-Fi ile indir',
'Downloaded · {0}': 'İndirildi · {0}',
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index 45c23ca65..4d67487a0 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -2220,6 +2220,7 @@ export default {
'Animation quality': 'Якість анімацій',
'Auto ({0})': 'Авто ({0})',
'Built in ({0} px)': 'Вбудовані ({0} px)',
+ '{0} APK, animations at {1} px': 'APK {0}, анімації {1} px',
'Download failed. Tap to try again.': 'Завантаження не вдалося. Торкніться, щоб повторити.',
'Download over Wi-Fi only': 'Завантажувати лише через Wi-Fi',
'Downloaded · {0}': 'Завантажено · {0}',
diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js
index bd3cb2e6d..27d847a7b 100644
--- a/frontend/src/locales/zh-TW.js
+++ b/frontend/src/locales/zh-TW.js
@@ -2216,6 +2216,7 @@ export default {
'Animation quality': '動畫畫質',
'Auto ({0})': '自動({0})',
'Built in ({0} px)': '內建({0} px)',
+ '{0} APK, animations at {1} px': '{0} 版 APK,動畫 {1} px',
'Download failed. Tap to try again.': '下載失敗。點一下再試一次。',
'Download over Wi-Fi only': '僅透過 Wi-Fi 下載',
'Downloaded · {0}': '已下載 · {0}',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 3021f9929..ff9f83cf5 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -2223,6 +2223,7 @@ export default {
'Animation quality': '动画清晰度',
'Auto ({0})': '自动({0})',
'Built in ({0} px)': '内置({0} px)',
+ '{0} APK, animations at {1} px': '{0} 版 APK,动画 {1} px',
'Download failed. Tap to try again.': '下载失败。点按重试。',
'Download over Wi-Fi only': '仅通过 Wi-Fi 下载',
'Downloaded · {0}': '已下载 · {0}',
diff --git a/frontend/src/views/Settings.jsx b/frontend/src/views/Settings.jsx
index eec60d78a..a3cf8c2ac 100644
--- a/frontend/src/views/Settings.jsx
+++ b/frontend/src/views/Settings.jsx
@@ -33,6 +33,8 @@ import { limitsFrom, fmtMB, MB } from '../lib/media-limits.js'
import { setRestAccent } from '../lib/rest-alert.js'
import { CUSTOM, accentKey, adjustedIn, applyAccent, cleanHex, inkOn, isGrey } from '../lib/accent.js'
import { checkForUpdate, downloadAndInstall, fetchChecksum, forgetDownloadedUpdate, RELEASES_PAGE } from '../lib/update.js'
+import { APK_VARIANT, VARIANT_NAMES } from '../lib/apk-variant.js'
+import { BUILTIN_PX } from '../lib/anim-quality.js'
import { selfUpdates } from '../lib/channel.js'
import { forgetCoach } from '../lib/coach-api.js'
import { REST_MAX, REST_PAUSE_MIN, REST_PAUSE_MAX, fmtRest, fmtDuration } from '../lib/duration.js'
@@ -908,7 +910,10 @@ export default function Settings({ page = null, find = null, via = null, entryKe
with its server, so the row points at the APK for the phone instead. iOS and the Google
Play build are updated by their store. */}
<Section footer={MOBILE ? (selfUpdate ? t('Releases are checked on GitHub. The download is verified against its checksum before the installer opens.') : null) : t('The web app updates together with your server. The Android app installs its own updates from here.')}>
- <Row icon="info" iconTint="var(--grey)" title={t('Version')} value={'v' + __APP_VERSION__} />
+ {/* The sideloaded APK comes in three kinds that differ only in the animations built in
+ (lib/apk-variant.js): which one this is, so nobody has to guess from the file size. */}
+ <Row icon="info" iconTint="var(--grey)" title={t('Version')} value={'v' + __APP_VERSION__}
+ subtitle={MOBILE && selfUpdate ? t('{0} APK, animations at {1} px', VARIANT_NAMES[APK_VARIANT], BUILTIN_PX) : undefined} />
{MOBILE
? selfUpdate && <Row icon="download" iconTint="var(--green)"
title={updateInfo?.hasUpdate ? t('Update to openGym v{0}', updateInfo.latestVersion) : t('Check for updates')}
diff --git a/frontend/src/views/Settings.update.test.jsx b/frontend/src/views/Settings.update.test.jsx
index 4eeef76a3..ca3d69c80 100644
--- a/frontend/src/views/Settings.update.test.jsx
+++ b/frontend/src/views/Settings.update.test.jsx
@@ -170,3 +170,26 @@ describe('Settings — in-app update check', () => {
})
})
+const versionRow = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Version'))
+describe('Settings → About: which APK this is', () => {
+ it('the sideloaded APK names its kind and the animation size built in', async () => {
+ mocks.MOBILE = true
+ mocks.android = true
+ await mount()
+ expect(versionRow().textContent).toContain('Standard APK, animations at 180 px')
+ })
+
+ it('not on the web, iOS or the Google Play build', async () => {
+ await mount()
+ expect(versionRow().textContent).not.toContain('APK,')
+ for (const [android, channel] of [[false, 'sideload'], [true, 'play']]) {
+ act(() => root.unmount())
+ root = createRoot(host)
+ mocks.MOBILE = true
+ mocks.android = android
+ mocks.channel = channel
+ await mount()
+ expect(versionRow().textContent).not.toContain('APK,')
+ }
+ })
+})