diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e76fae..4d81a85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog -## Unreleased +## v1.2.2 β€” 2026-07-23 + +One codebase, two flavors: openGym is now also a standalone mobile app β€” and it ships as a +direct APK download, not through app stores. - πŸ“± **Standalone mobile app.** The same frontend now also builds as a native iPhone / Android app (Capacitor) β€” the install-and-done flavor of openGym: no account, no server, @@ -13,6 +16,12 @@ - Exercise images/animations load from the same CDN as the live demo. - `npm run build:mobile`, then open `android/` in Android Studio or `ios/` in Xcode β€” see **docs/MOBILE.md**. `NOTICE.md` now carries an AGPL Β§7 app-store exception. +- πŸ€– **Android APK, no Play Store.** The official build is a signed, sideloadable APK + (~4.5 MB) from [opengym.duarte-santos.ch](https://opengym.duarte-santos.ch) β€” deliberately + store-free. docs/MOBILE.md covers building and signing your own. +- 🍎 **iOS reality check.** Apple permits no installs outside the App Store, so there is no + iOS download; the docs explain the free options (self-hosted PWA on the home screen, or + running the native app onto your own iPhone from Xcode). - πŸ“₯ **Import your history from another app.** Settings β†’ Data β†’ *Import from another app* reads an export from **FitNotes** (both the Android and the FitNotes 2 iOS format), diff --git a/README.md b/README.md index 37adb3b..13b646b 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ as a home-screen app, passkey sign-in, offline support, sync across your phone a - 🌍 **12 languages** β€” full UI translation (EN, DE, ES, FR, IT, PT, PL, TR, RU, ZH, KO, HI); exercise instructions localized in 10 of them, loaded on demand so the app stays fast - πŸ“₯ **Bring your history with you** β€” import from **FitNotes** (Android and iOS), **Strong** and **Hevy**, or body weight straight out of an **Apple Health** export. Exercise names are matched against the library and anything unrecognised becomes one of your own exercises, so nothing in the file is dropped - πŸ“¦ **Yours to keep** β€” one-tap JSON export/import, guest mode, **no telemetry** +- πŸ“± **Standalone Android app** β€” the whole tracker as a sideloadable APK: no account, no server, data on the phone, native workout reminders ([download](https://opengym.duarte-santos.ch)) ## Quick start (self-host) @@ -96,11 +97,16 @@ a build step locally either way. ## Mobile app (no server at all) -The same codebase also builds a **standalone iPhone / Android app** (Capacitor): no account, -no sync, no backend β€” everything stays on the phone, with native workout-day reminders and -share-sheet backups. Self-hosting gets you multi-device sync and profiles for friends & -family; the mobile app is the install-and-done flavor. Build it yourself from -**[docs/MOBILE.md](docs/MOBILE.md)** β€” store listings are on the roadmap. +The same codebase also builds a **standalone mobile app** (Capacitor): no account, no sync, +no backend β€” everything stays on the phone, with native workout-day reminders and share-sheet +backups. Self-hosting gets you multi-device sync and profiles for friends & family; the +mobile app is the install-and-done flavor. + +- **Android:** [**download the APK**](https://opengym.duarte-santos.ch) and sideload it β€” + openGym is deliberately not on the Play Store. Or build it yourself: **[docs/MOBILE.md](docs/MOBILE.md)**. +- **iPhone:** Apple doesn't allow installing apps outside the App Store, so there is no iOS + download. Self-host and add it to your home screen from Safari (it's a full PWA), or build + the native app onto your own device from Xcode β€” see **[docs/MOBILE.md](docs/MOBILE.md)**. ## How it works @@ -147,7 +153,7 @@ Push notification keys are generated on first run and saved to `./data/vapid.jso Rough, community-driven β€” ideas and PRs welcome: -- [x] Standalone mobile app β€” built from this repo today (see docs/MOBILE.md); App Store / Play Store listings pending +- [x] Standalone mobile app β€” Android APK to sideload ([download](https://opengym.duarte-santos.ch)); on iOS as a self-hosted PWA (no store listings planned) - [ ] More starter plans (upper/lower, full-body, 5Γ—5) - [x] Importers from FitNotes / Strong / Hevy, and body weight from Apple Health - [ ] Body measurements (waist, arms…) alongside weight diff --git a/api/package.json b/api/package.json index 1fcce45..9493996 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "gym-api", - "version": "1.2.1", + "version": "1.2.2", "private": true, "type": "module", "main": "server.js", diff --git a/docs/MOBILE.md b/docs/MOBILE.md index c3b32c9..56beae2 100644 --- a/docs/MOBILE.md +++ b/docs/MOBILE.md @@ -20,8 +20,9 @@ OS share sheet instead of a browser download. - Node 20+ - **Android:** Android Studio (bundles the SDK). Java 21 for Gradle. -- **iOS:** a Mac with Xcode 15+, plus CocoaPods (`brew install cocoapods`), and an - Apple Developer account to run on a device / distribute. +- **iOS:** a Mac with Xcode 15+ and CocoaPods (`brew install cocoapods`). A free Apple ID + is enough to run the app on your own iPhone (see below); paid membership is only needed + for App Store distribution, which openGym doesn't do. ## Build & run @@ -53,13 +54,51 @@ npx @capacitor/assets generate --iconBackgroundColor '#0c0e12' --splashBackgroun (If the generator won't take the SVG directly, export it to `resources/icon.png` at 1024Γ—1024 first β€” any image tool can do it.) -## Store submission notes +## Distribution β€” deliberately no app stores -- Bump `versionName`/`versionCode` in `android/app/build.gradle` and the version in Xcode - per release; keep them in step with `frontend/package.json`. +openGym's mobile app is not on the Play Store or App Store, and that's a choice: no store +accounts, no store rules, no yearly fees between you and an open-source app. + +### Android β€” sideload the APK + +The official signed APK is at **[opengym.duarte-santos.ch](https://opengym.duarte-santos.ch)**. +Android asks you to allow installs from the browser the first time β€” that's standard for any +app outside the Play Store. + +To build and sign your own: + +```sh +cd frontend && npm run build:mobile +cd android && ./gradlew assembleRelease # β†’ app/build/outputs/apk/release/app-release-unsigned.apk + +# one-time: create a keystore. KEEP IT β€” updates must be signed with the same key, +# or Android refuses to install the new version over the old one. +keytool -genkeypair -keystore my.keystore -alias opengym -keyalg RSA -validity 10950 + +# align + sign (zipalign/apksigner ship with the Android SDK build-tools) +zipalign -f -p 4 app-release-unsigned.apk aligned.apk +apksigner sign --ks my.keystore --ks-key-alias opengym --out openGym.apk aligned.apk +``` + +### iPhone β€” what's actually possible + +Apple does not allow installing apps outside the App Store, so there is no `.ipa` download +that would simply install. Your free options: + +- **Self-host + PWA** (recommended): open your instance in Safari β†’ Share β†’ *Add to Home + Screen*. Full-screen app, no expiry, plus sync and passkeys. +- **Xcode free signing:** open `ios/` in Xcode with a free Apple ID as the team and run it + onto your own iPhone. Apple expires the signature after 7 days; re-run from Xcode to renew. +- **AltStore:** automates that 7-day re-signing over Wi-Fi via a Mac companion app. + +### Release notes for maintainers + +- Bump `versionName`/`versionCode` in `android/app/build.gradle` per release; keep them in + step with `frontend/package.json`. `versionCode` must strictly increase or updates won't + install over an existing APK. - **License:** openGym is AGPL-3.0, which by itself sits badly with app-store terms of - service. `NOTICE.md` therefore carries an app-store exception (an additional permission - under AGPL Β§7) granted by the copyright holder. + service. `NOTICE.md` carries an app-store exception (an additional permission under + AGPL Β§7) granted by the copyright holder β€” relevant only if store distribution ever happens. - The app requests notification permission only when the workout-day reminder is switched on, and (on Android) declares `SCHEDULE_EXACT_ALARM` so the reminder fires to the minute where the user allows it. diff --git a/frontend/android/app/build.gradle b/frontend/android/app/build.gradle index bd75975..0ca06ba 100644 --- a/frontend/android/app/build.gradle +++ b/frontend/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "ch.duartesantos.opengym" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 1 - versionName "1.2.1" + versionCode 2 + versionName "1.2.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/frontend/package.json b/frontend/package.json index 177a008..319879f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "opengym-frontend", "private": true, - "version": "1.2.1", + "version": "1.2.2", "type": "module", "scripts": { "dev": "vite",