Release v1.2.2: history import, standalone mobile app, APK distribution

Consolidates everything since v1.2.1: the FitNotes/Strong/Hevy/Apple
Health importer, the Capacitor-based standalone mobile flavor, and the
store-free distribution story — signed Android APK from
opengym.duarte-santos.ch, docs corrected to match (no store listings;
iOS via self-hosted PWA or Xcode free signing).
This commit is contained in:
Duarte Santos committed 2026-07-23 15:36:05 +02:00
1 parent 4888fed0c4
commit 768dee50ca
6 files changed
+72 -18

No files matched your search

+46 -7
View File
@@ -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.