feat(checkin): gym membership QR check-in (mobile-only)
Add a mobile-only gym check-in screen: saved membership codes shown as QR codes in a swipeable carousel, reached from a 'Check in' card on Home. Cards are added by typing the code, importing a photo, or scanning with the camera. Only the code value + symbology are stored — never a photo; the QR is regenerated from the value on every display. Rendering uses lean-qr (MIT); camera scan and photo decode use @capacitor-mlkit/barcode-scanning (Apache-2.0), pinned to the 7.x line for Capacitor 7. Both are documented in NOTICE.md and bundled only in the mobile build — the whole feature folds away in web/demo builds via MOBILE, so nothing new lands in the web bundle. No backend/schema change: gymCards rides the existing state sync and backup like every other field. Non-QR symbologies are readable but not reproducible, so capture refuses them rather than storing a code that would display wrong bars. Native wiring: CAMERA permission + ML Kit barcode_ui meta-data (AndroidManifest), NSCameraUsageDescription (iOS Info.plist), mlkit plugin registered via cap sync. Debug builds get an applicationIdSuffix '.test' and an 'OpenGymTest' label so a test build installs alongside the real app.
This commit is contained in:
1 parent
272bf785ee
commit
a797729dd0
19 files changed
+587
No files matched your search
@@ -45,5 +45,7 @@
|
||||
</array>
|
||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||
<true/>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>Used to scan your gym membership QR code so you can check in from the app.</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in new issue
Block a user