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.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Website, CHANGELOG, docs: three APKs (Standard 315 MB, Plus 424 MB, HD 759 MB)
Duarte Santos47e68011ba90
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a5f547eba..09d61ab7e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -29,7 +29,7 @@ https://testflight.apple.com/join/RKATb61kseparately, so you only get the one you use.- **No more boxes.** The animations in the app showed faint rectangles around the moving parts.They are re-made from the original files, frame by frame, and look like the originals now. The- APKs get the same fix (180 px built in, or 360 px in the HD one).+ APKs get the same fix (180, 240 or 360 px built in, see Android below).- **Swipe from the left edge to go back**, with the page you came from sliding in underneath.- **Notifications are asked for at the start**, not in the middle of your first rest.- The Vibrate switch works on the iPhone, and a server or Coach on your home network works over@@ -37,11 +37,11 @@ https://testflight.apple.com/join/RKATb61k- **A logo instead of a black screen** while the app starts, loading its plates.**Android.** The app now targets Android 16 and needs Android 7.0 or newer (6.0 is out). The APK-you know stays and updates itself, now in two sizes: **Standard** (`openGym-1.4.2.apk`, animations-built in at 180 px, the small one) and **HD** (`openGym-HD-1.4.2.apk`, 360 px, sharper and-heavier). Each one updates to its own kind, so nobody gets a surprise download twice the size.-Phones on v1.4.1 update to Standard; want HD? Install it on top, your data stays (same goes for-going back). A Google Play version is ready for the store too: it updates through Play and gets+you know stays and updates itself, now in three sizes: **Standard** (`openGym-1.4.2.apk`,+animations built in at 180 px, the small one), **Plus** (`openGym-Plus-1.4.2.apk`, 240 px) and+**HD** (`openGym-HD-1.4.2.apk`, 360 px, sharp and hungry). Each one updates to its own kind, so+nobody gets a surprise download twice the size. Phones on v1.4.1 update to Standard; want Plus or+HD? Install it on top, your data stays (same goes for going back). A Google Play version is ready for the store too: it updates through Play and getsthe sharper animations as Play downloads, like the iPhone, and an APK phone can move to it laterwithout losing anything.diff --git a/README.md b/README.mdindex 04a09b5f9..53fb73bdd 100644--- a/README.md+++ b/README.md@@ -191,7 +191,8 @@ on the phone, with native reminders and a rest countdown in the notification sha- **Android:** download the signed APK from the [latest release](https://github.com/DuarteSantos8/openGym/releases/latest)or the [website](https://opengym.ch): Standard (`openGym-X.Y.Z.apk`, 180 px animations, about- 315 MB) or HD (`openGym-HD-X.Y.Z.apk`, 360 px, about 760 MB). Each sits next to its `.sha256`,+ 315 MB), Plus (`openGym-Plus-X.Y.Z.apk`, 240 px, about 424 MB) or HD (`openGym-HD-X.Y.Z.apk`,+ 360 px, about 760 MB). Each sits next to its `.sha256`,checks for updates itself and stays the kind you picked. A Google Play version is on its way.- **iPhone and Apple Watch:** the App Store app, with a public[TestFlight beta](https://testflight.apple.com/join/RKATb61k) until it is out. Or self-host anddiff --git a/docs/APP_STORES.md b/docs/APP_STORES.mdindex 1bd5be06d..42a599b27 100644--- a/docs/APP_STORES.md+++ b/docs/APP_STORES.md@@ -27,7 +27,7 @@ ever sees the repo's 180 px media.it). The sharper qualities, 240 included, are on-demand **Play asset packs** (Play AssetDelivery), one per quality and figure like the iPhone's, each under Play's 1.5 GB per pack (a bigger one is split into parts),far under the 30 GB for all on-demand packs together. Google Play delivers them; the sideloaded- APKs have none and keep what they have built in (Standard 180 px, HD 360 px).+ APKs have none and keep what they have built in (Standard 180 px, Plus 240 px, HD 360 px).- **App Store:** built with Xcode 26 (the `macos-26` runner). Privacy manifest(`ios/App/App/PrivacyInfo.xcprivacy`): no tracking, no data collected. No non-exemptencryption (`ITSAppUsesNonExemptEncryption = NO`, HTTPS only). The Coach asks before anything@@ -50,13 +50,15 @@ cd gym-app # the release checkout, at the release tagexport ANDROID_HOME=/opt/android-sdkK=/root/.config/opengymscripts/android/build-release.sh $K/opengym-release.keystore $K/keystore.pass $K/key.alias ~/release-# → openGym-X.Y.Z.apk + openGym-HD-X.Y.Z.apk (each + .sha256) for the GitHub release,+# → openGym-X.Y.Z.apk, openGym-Plus-X.Y.Z.apk, openGym-HD-X.Y.Z.apk (each + .sha256, and+# SHA256SUMS) for the GitHub release (APK_ONLY=1: only these),# openGym-X.Y.Z.aab for Google Play```Each is built from its own phone build: the **Standard** APK with the box-free 180 px animations-built in (`quality/180`, about 315 MB), the **HD** APK with 360 px (`quality/360`, about 760 MB;-`HD_PX=240` makes a lighter one, `HD_PX=0` none), the bundle with 180 px (`quality/180`, like the App Store app) and an asset+built in (`quality/180`, about 315 MB), the **Plus** APK with 240 px (`quality/240`, about+424 MB; `PLUS_PX=0` none), the **HD** APK with 360 px (`quality/360`, about 760 MB; `HD_PX=0`+none), the bundle with 180 px (`quality/180`, like the App Store app) and an assetpack for every quality above 180 that has a folder in `/mnt/backup-hdd/opengym-media/quality/`(`scripts/android/make-asset-packs.mjs`, the same drawings per pack as the iPhone's); the packmodules are generated into `frontend/android/` for the build and removed after, never committed.diff --git a/docs/MOBILE.md b/docs/MOBILE.mdindex 880827f04..c6aa44eff 100644--- a/docs/MOBILE.md+++ b/docs/MOBILE.md@@ -2,7 +2,7 @@**Just want the app?** Download the APK from the[latest release](https://github.com/DuarteSantos8/openGym/releases/latest) (`openGym-X.Y.Z.apk`,-or `openGym-HD-X.Y.Z.apk` for sharper animations at about twice the size) and read+or `openGym-Plus-X.Y.Z.apk` / `openGym-HD-X.Y.Z.apk` for sharper animations at a bigger size) and read[how the phone app works](#how-the-phone-app-works) and[connecting it to your server](#connecting-the-app-to-your-own-server). On an iPhone, see[what's possible](#iphone--whats-actually-possible). Everything from [Prerequisites](#prerequisites)@@ -268,7 +268,7 @@ and **Delete**.`https://localhost/_opengym_pack/<packId>/<drawing>.webp`, never a file path. The pack modulesare generated on the release machine by `scripts/android/make-asset-packs.mjs` and nevercommitted. The `sideload` flavour (the APKs) answers "unavailable" and only ever has its- built-in animations: 180 px in the Standard APK, 360 px in the HD one. Each APK's updater+ built-in animations: 180 px in the Standard APK, 240 px in Plus, 360 px in HD. Each APK's updaterstays with its own kind (`pickApk` in `lib/update.js`, told by `VITE_APK_VARIANT`).App Store Connect, once: the App Group `group.ch.opengym.app`; the bundle id@@ -327,13 +327,14 @@ Google Play build come from the same code; how they are built and uploaded is in### Android: sideload the APK-Every release has two signed APKs on [the GitHub release](https://github.com/DuarteSantos8/openGym/releases),-each with its `.sha256` beside it, and [opengym.ch](https://opengym.ch) links to both:+Every release has three signed APKs on [the GitHub release](https://github.com/DuarteSantos8/openGym/releases),+each with its `.sha256` beside it, and [opengym.ch](https://opengym.ch) links to all three:- **`openGym-X.Y.Z.apk` (Standard):** the exercise animations built in at 180 px, about 315 MB.+- **`openGym-Plus-X.Y.Z.apk` (Plus):** the same app with 240 px animations, about 424 MB.- **`openGym-HD-X.Y.Z.apk` (HD):** the same app with 360 px animations, about 760 MB.-Same app id, same key: install one over the other and the data stays. The in-app updater keeps+Same app id, same key: install one over another and the data stays. The in-app updater keepseach on its own kind. Android asks you to allow installs from the browser the first time; that isstandard for any app outside the Play Store. Check the `.sha256` if you got the file from anywhereelse.diff --git a/website/docs.html b/website/docs.htmlindex 974b09316..4160fea7d 100644--- a/website/docs.html+++ b/website/docs.html@@ -214,13 +214,14 @@<a href="#mobile-server">connect directly to your server</a>.</p><h2 id="android">Install on Android</h2>- <p>There are two APKs, and they are the same app. <b>Standard</b> has the exercise animations- built in at 180 px and stays small. <b>HD</b> has them at 360 px: sharper on big screens,- heavier on your storage. Not sure? Take Standard. Changed your mind later? Install the- other one on top: same signing key, your data stays.</p>+ <p>There are three APKs, and they are the same app; only the exercise animations built in+ differ. <b>Standard</b> has them at 180 px and stays small, <b>Plus</b> at 240 px,+ <b>HD</b> at 360 px: sharper on big screens, heavier on your storage. Not sure? Take+ Standard. Changed your mind later? Install another one on top: same signing key, your data+ stays.</p><ol>- <li>Open <a href="/#download">the download</a> on your phone and tap <b>Android APK</b>- (or <b>Android APK, HD</b>).</li>+ <li>Open <a href="/#download">the download</a> on your phone and tap <b>Standard</b>+ (or <b>Plus</b> or <b>HD</b>).</li><li>Your browser will ask whether it may install apps. Allow it: that is how any appfrom outside the Play Store gets installed (<i>sideloading</i>), and you can take thepermission back right after.</li>@@ -228,15 +229,16 @@</ol><div class="note">A Google Play version is on its way. Until then the APK is the way in: it issigned, updates install over the old version and keep your data.</div>- <p>Every release puts both APKs on the+ <p>Every release puts all three APKs on the<a href="https://github.com/DuarteSantos8/openGym/releases" rel="noopener">GitHub release</a>for that version, each with a <code>.sha256</code> checksum beside it. Got the file fromanywhere else? Check it against that checksum before installing.</p><p><b>Updates come to you:</b> when a newer release exists, Settings → About & updatesshows "openGym vX available". One tap downloads the signed APK, checks its SHA-256 againstthe published checksum and opens the installer (no checksum, no install; the first time- Android asks for the "install unknown apps" permission). Standard updates to Standard and- HD to HD, so nobody gets surprised by a download twice the size. Everything is stored on the+ Android asks for the "install unknown apps" permission). Each APK updates to its own kind+ (Standard to Standard, Plus to Plus, HD to HD), so nobody gets surprised by a download twice+ the size. Everything is stored on thephone itself; the animations are inside the app. The app goes online for one thing only:when you open Settings → About & updates, it looks at the public release list onGitHub to see whether a newer version exists.</p>diff --git a/website/index.html b/website/index.htmlindex 7c3dc1639..eb88a25d2 100644--- a/website/index.html+++ b/website/index.html@@ -438,16 +438,21 @@ try {<li class="no">No sync across devices</li></ul><div class="push">- <!-- Two APKs per release, same app, same key, same data. Each one updates itself and+ <!-- Three APKs per release, same app, same key, same data. Each one updates itself andstays the kind it is (lib/update.js pickApk). Bump the file names, sizes and theversion on every release: releases/latest/download/<name> only finds the newest one. --><div class="dl-row">- <a class="btn" href="https://github.com/DuarteSantos8/openGym/releases/latest/download/openGym-1.4.2.apk">Android APK</a>- <a class="btn ghost" href="https://github.com/DuarteSantos8/openGym/releases/latest/download/openGym-HD-1.4.2.apk">Android APK, HD</a>+ <a class="btn" href="https://github.com/DuarteSantos8/openGym/releases/latest/download/openGym-1.4.2.apk">Standard</a>+ <a class="btn ghost" href="https://github.com/DuarteSantos8/openGym/releases/latest/download/openGym-Plus-1.4.2.apk">Plus</a>+ <a class="btn ghost" href="https://github.com/DuarteSantos8/openGym/releases/latest/download/openGym-HD-1.4.2.apk">HD</a></div>- <p class="meta">v1.4.2 · Standard 315 MB · HD 759 MB · Android 7.0+ · signed APKs.- Same app, same data. HD has sharper exercise animations built in and eats more storage for it.- Not sure? Standard. You can switch later by installing the other one on top.</p>+ <ul class="dl-sizes">+ <li><b>Standard</b> · 315 MB · light and quick, right for most phones.</li>+ <li><b>Plus</b> · 424 MB · crisper animations, still pocket-sized.</li>+ <li><b>HD</b> · 759 MB · every rep in high definition. Bring storage.</li>+ </ul>+ <p class="meta">v1.4.2 · Android 7.0+ · signed APKs. Same app, same data, only the exercise+ animations differ. Not sure? Standard. Switch any time by installing another one on top.</p><p class="meta">Your browser will ask before installing; that is normal outside the Play Store.Every release is signed and attached to the<a href="https://github.com/DuarteSantos8/openGym/releases" rel="noopener">GitHubdiff --git a/website/llms.txt b/website/llms.txtindex 52467e099..b1fec011c 100644--- a/website/llms.txt+++ b/website/llms.txt@@ -12,7 +12,7 @@## Try & get it- [Live demo](https://opengym.ch/demo/): the real app with example data, in the browser-- [Android APK](https://github.com/DuarteSantos8/openGym/releases/latest): signed, sideloadable, in two sizes (Standard with 180 px animations, HD with 360 px); each has its SHA-256 beside it on the GitHub release+- [Android APK](https://github.com/DuarteSantos8/openGym/releases/latest): signed, sideloadable, in three sizes (Standard with 180 px animations, Plus with 240 px, HD with 360 px); each has its SHA-256 beside it on the GitHub release- [About](https://opengym.ch/about.html): the story and every release## How it is builtdiff --git a/website/styles.css b/website/styles.cssindex 8fc1525d6..bdc9545d8 100644--- a/website/styles.css+++ b/website/styles.css@@ -566,7 +566,12 @@ section { padding: var(--sec) 0 0; }.card .meta + .meta { margin-top: 8px; }.card .push { margin-top: auto; }/* Two APKs side by side (Standard, HD); they stack on a narrow card. */-.card .dl-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }+.card .dl-row { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }+.card .dl-row .btn { padding-left: 8px; padding-right: 8px; }+.card ul.dl-sizes { margin: 14px 0 0; }+.card ul.dl-sizes li { font-size: 13px; color: var(--fg-3); padding: 3px 0 3px 0; }+.card ul.dl-sizes li::before { display: none; }+.card ul.dl-sizes li b { color: var(--fg-2); }/* App Store toggle: data-appstore="soon" shows the waiting line, "live" shows the badge. */.ios[data-appstore="soon"] .ios-live, .ios[data-appstore="live"] .ios-soon { display: none; }.card .store-badge { display: inline-block; margin-top: 14px; line-height: 0; }