47 Commits

Author SHA1 Message Date
Roland Geider
9b0dffa722 Use the horizontal dumbbell of the app icon in the status bar 2026-10-30 19:14:09 +01:00
Roland Geider
6ce9f4bb0d Schedule exact rest alarms on Android and add a status bar icon 2026-10-25 11:28:45 +01:00
Roland Geider
d7774a5994 Merge branch 'master' into feature/gym-notifications
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 10:58:08 +01:00
Roland Geider
c5e70c1169 Register Swedish as a supported language 2026-10-24 20:23:56 +02:00
Roland Geider
f34542d535 Add flutter_local_notifications and its platform setup 2026-10-10 16:35:28 +02:00
Roland Geider
c196eb082f Register Khmer (km) locale 2026-10-03 14:50:26 +02:00
Roland Geider
3cdb991bab Keep the health database out of Android cloud backups 2026-08-27 16:11:29 +02:00
Roland Geider
1b746846f7 Show the privacy policy when Health Connect asks for it 2026-08-22 21:25:18 +02:00
Roland Geider
9cd9aaac17 Import lean body mass from the health platforms 2026-08-07 16:48:42 +02:00
Roland Geider
3855dbc423 Import blood oxygen from the health platforms 2026-08-07 16:24:18 +02:00
Roland Geider
3dc9789500 Activate the rest of the metric types 2026-08-07 14:42:19 +02:00
Roland Geider
c1c59ed903 Give debug builds their own name and launcher colour 2026-08-01 14:17:03 +02:00
Roland Geider
830a03aa9e Declare every imported type in the Android manifest 2026-08-01 14:08:14 +02:00
Roland Geider
41623e3d55 Merge remote-tracking branch 'origin/master' into feature/health-sync 2026-07-30 16:31:11 +02:00
Roland Geider
d939989d31 Add language key 2026-07-29 18:23:59 +02:00
Roland Geider
18b745f365 Start reworking the sync logic
We don't just want to sync the weight entries
2026-07-02 21:45:53 +02:00
Roland Geider
ee084f1000 Merge branch 'pr-1156' into feature/health-sync 2026-07-02 21:17:16 +02:00
Roland Geider
de43775f64 Disable Flutter's built-in deep linking on Android and iOS
The web-handoff login redirects back to wger://app-auth#token=<jwt>, which
the app handles itself via app_link_router (app_links). With Flutter's
built-in deep linking enabled (the engine default), the engine also forwards
the callback URL to the Navigator as the named route "/#token=...&state=...",
which then matches nothing and it falls through to onUnknownRoute
2026-06-17 16:44:36 +02:00
Roland Geider
8213c44342 Add "login via web"
This allows the user to login via all supported methods, such as social auth,
passkeys, etc. without needing to implement them individually here.
2026-05-22 20:11:14 +02:00
Roland Geider
e79f46e2fc Add missing languages 2026-05-21 09:39:00 +02:00
Roland Geider
1f69683af0 Generated splash screen assets with flutter_native_splash 2026-05-07 16:36:24 +02:00
aria-tec
01f68546dc fix: address review comments (fix syntax and update README) 2026-05-01 08:56:45 +07:00
aria-tec
b7b8a50537 feat(android): implement Android 13 per-app language support (#550)
- added locales_config.xml with supported languages
- linked localeConfig in AndroidManifest.xml
- updated MaterialApp with localeListResolutionCallback for system sync
2026-04-29 21:13:41 +07:00
John Weidner
a4d03bcc46 feat: import all health history instead of last 30 days
Remove the 30-day lookback limit on initial sync. Pull all available
weight data from Health Connect on first enable. Add
READ_HEALTH_DATA_HISTORY permission to AndroidManifest to allow
reading data older than 30 days.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:44:43 -05:00
John Weidner
a92897b2f9 feat: add automatic weight sync from Apple Health and Google Health Connect
Import body weight data from Apple Health (iOS) and Google Health Connect
(Android) into wger when the app is opened. Uses the Flutter `health` package
for cross-platform access. Feature is opt-in via a settings toggle.

Key changes:
- Add HealthSyncNotifier (Riverpod) for sync orchestration
- Add HealthSyncSettingsTile in settings page
- Add health package dependency and platform permissions
- Fix WeightEntry.copyWith parameter type (int? -> num?)
- Fix BodyWeightProvider.findByDate() to use calendar-date comparison
- Raise Android minSdkVersion to 26 (Health Connect requirement)
- Change MainActivity to extend FlutterFragmentActivity

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 14:12:49 -05:00
Roland Geider
e4b550ab52 Refactor app version handling and update authentication flow
Previously, this was only triggered when logging in to the application. If a user
just opened the app, it would just stop working. We also now always check this min
version and have removed the option from the android manifest file since disabling
this doesn't make much sense and we have many other platforms as well (iOS, flatpak)
2025-03-28 17:22:36 +01:00
Roland Geider
d1c77875cd Add enableOnBackInvokedCallback to Android manifest 2025-03-13 14:10:58 +01:00
Roland Geider
3978b4bd8b Remove WGER_API_KEY, this registration key is not needed anymore 2024-11-09 13:07:36 +01:00
Roland Geider
cf30ad6594 Add tablet screenshots as well
While these don't look as pretty as the phone ones, the application is
still usable
2023-11-19 10:59:06 +01:00
Miroslav Mazel
734525b2bb Vector Android icon, also as monochrome variant 2023-11-06 01:16:21 +01:00
Roland Geider
4746e320e2 Correctly link the network security config file
See #116
2022-12-07 21:18:48 +01:00
Roland Geider
9db063d65c Allow self signed certificates
Specially useful for self hosted instances that are not reachable over the
internet or similar

Closes #116
2022-12-06 17:56:12 +01:00
Tolu ogundoyin
21138b0b8c Splash Screen Error Fixed 2022-07-08 23:46:04 +01:00
Roland Geider
2e9356ecda Bump some versions, build app with flutter 2.10 2022-02-19 21:47:07 +01:00
Sylvia van Os
a1b4a8df16 Fix launching on Android 12 2022-01-11 23:32:58 +01:00
Roland Geider
cf882c194f Move flag checking for minimum required version to manifest
This is still not the best solution, ideally we would save this to some kind
of configuration file that we can use for dev/prod etc. Also, this solution
doesn't work with iOS or web
2021-11-08 09:42:32 +01:00
Roland Geider
df8beaa379 Add WAKE_LOCK permission
This might help with a potential crash on (some) Samsung phones

SEe #59
2021-07-17 13:35:45 +02:00
Roland Geider
b9229b0ea3 Add button to take pictures or load images from gallery
At the moment not functional and nothing is done with the data
2021-05-07 13:49:15 +02:00
Roland Geider
292460eb42 Update build.gradle
This is needed to accept the <queries> in AndroidManifest.xml, which is needed
to open links when targeting Android API 30 or later
2021-05-01 15:13:33 +02:00
Roland Geider
9bc7b9856c Start implementing automatic builds 2021-04-20 20:42:07 +02:00
Roland Geider
d78d061971 Allow non HTTPS traffic during development 2021-03-04 14:49:58 +01:00
Roland Geider
e9c9ae93d6 Allow users to register via the app 2021-02-15 22:27:06 +01:00
Roland Geider
9fb7da9a51 Change settings to allow for building releases 2021-01-29 21:21:49 +01:00
Roland Geider
e8706b719b Rename package to de.wger.flutter 2021-01-28 22:22:42 +01:00
ImgBotApp
7cef351402 [ImgBot] Optimize images
*Total -- 1,264.92kb -> 1,251.03kb (1.1%)

/assets_dev/logo.png -- 2.26kb -> 0.86kb (61.84%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -- 1.47kb -> 0.71kb (51.99%)
/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png -- 4.17kb -> 2.18kb (47.72%)
/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png -- 1.56kb -> 0.84kb (46.19%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -- 1.62kb -> 0.90kb (44.57%)
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -- 1.62kb -> 0.90kb (44.28%)
/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png -- 1.79kb -> 1.00kb (44.12%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -- 1.11kb -> 0.62kb (44.04%)
/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png -- 1.37kb -> 0.77kb (43.58%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -- 1.54kb -> 0.90kb (41.75%)
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -- 1.46kb -> 0.86kb (41.19%)
/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png -- 1.14kb -> 0.70kb (38.23%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -- 1.30kb -> 0.84kb (35.24%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -- 1.30kb -> 0.84kb (35.24%)
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -- 1.21kb -> 0.81kb (32.47%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -- 1.20kb -> 0.82kb (31.66%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -- 1.18kb -> 0.82kb (30.38%)
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -- 1.12kb -> 0.82kb (26.88%)
/assets_dev/logo_adaptive.png -- 1.48kb -> 1.08kb (26.72%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -- 0.95kb -> 0.77kb (18.67%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -- 0.92kb -> 0.76kb (17.04%)
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -- 0.84kb -> 0.74kb (11.5%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -- 0.76kb -> 0.71kb (6.57%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -- 0.76kb -> 0.71kb (6.57%)
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -- 15.50kb -> 14.76kb (4.77%)
/assets/images/main.jpg -- 1,215.29kb -> 1,215.29kb (0%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-11-04 17:05:10 +00:00
Roland Geider
786a871380 Add first draft for app icons 2020-11-04 16:45:00 +01:00
Dylan Aird
85c0832398 first push 2020-09-12 20:25:00 +10:00