Commit Graph

114 Commits

Author SHA1 Message Date
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
c0c47af074 Remove legacy android options 2026-06-15 23:53:42 +02:00
Roland Geider
168b703622 Update gradle.properties 2026-06-15 23:01:07 +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
2e0915c082 Bump android build versions 2025-11-25 21:10:33 +01:00
Roland Geider
fecfcf2b20 Bump flutter to 3.38 2025-11-18 17:55:21 +01:00
Roland Geider
407db9cd61 Bump kotlin, SDK, NDK and gradle versions 2025-09-08 13:39:20 +02:00
Roland Geider
0d4fe52d3b Bump ndk version used and manually set the sdk version 2025-08-28 12:30:06 +02:00
Roland Geider
ff1a68ddb8 Bump gradle version and bump max memory 2025-06-17 20:00:15 +02: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
d071d143df Update flutter to 3.29
The translations are not stored in a synthetic package anymore, but the
files are just copied to a specific folder so it can be more easily imported

Also, flutter_barcode_scanner was replaced by simple_barcode_scanner since
the first hasn't been updated in 3 years and was already causing problems
for some time
2025-03-18 17:28:19 +01:00
Roland Geider
d1c77875cd Add enableOnBackInvokedCallback to Android manifest 2025-03-13 14:10:58 +01:00
Roland Geider
d35ff240a7 Update/fix android configuration
It seems some packages that have not been updated in some years are causing
problems. android_metadata has been removed here, but flutter_barcode_scanner
is still needed
2024-12-12 20:49:24 +01:00
Roland Geider
e330d90521 Add workaround to build the rive plugin for linux 2024-11-21 11:05:50 +01:00
Roland Geider
02d41be487 Use only one subprojects block 2024-11-09 17:35:03 +01:00
Roland Geider
e91d2961b0 Add workaround for APK builds 2024-11-09 14:45:47 +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
c664ccedfa Update generated files 2024-10-29 19:05:20 +01:00
Roland Geider
1d7028e81d Update gradle plugins
https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply
2024-04-12 19:44:07 +02: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
Roland Geider
95f863a0b6 Merge branch 'master' into feature/material-3
# Conflicts:
#	lib/widgets/nutrition/meal.dart
#	lib/widgets/workouts/day.dart
2023-11-10 19:27:27 +01:00
Roland Geider
7659d06ea6 Merge branch 'master' into 12people_maintenance
# Conflicts:
#	lib/theme/theme.dart
#	lib/widgets/core/charts.dart
#	lib/widgets/dashboard/widgets.dart
#	lib/widgets/nutrition/charts.dart
#	lib/widgets/workouts/charts.dart
#	pubspec.lock
#	pubspec.yaml
#	test_driver/screenshot_driver.dart
2023-11-09 20:24:01 +01:00
Roland Geider
1b09cfd73a Add prefix to application id during debug
This allows to install the application side by side on a real device where the
production app is installed as well
2023-11-09 19:37:59 +01:00
Miroslav Mazel
734525b2bb Vector Android icon, also as monochrome variant 2023-11-06 01:16:21 +01:00
Abhishek Saini
3d948dfec4 measurement and nutrition chart issues fixes 2023-11-05 22:23:16 +05:30
Roland Geider
0e0ae643cb Update gradle plugin version and other properties
This was basically done by creating a new flutter project and comparing the
different generated files
2023-02-07 21:39:14 +01:00
Roland Geider
5bdb3e9bf4 Bump compile sdk version and set ndk version
The last one required for rive:
https://github.com/rive-app/rive-flutter/blob/master/platform_considerations.md
2023-01-27 19:45:52 +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
Roland Geider
a8e4fdb4e0 Merge branch 'master' into feature/exercise-crowdsourcing
# Conflicts:
#	lib/models/workouts/log.dart
#	test/gallery/gallery_screen_test.mocks.dart
#	test/measurements/measurement_categories_screen_test.mocks.dart
#	test/measurements/measurement_provider_test.mocks.dart
#	test/nutrition/nutritional_plan_form_test.mocks.dart
#	test/other/base_provider_test.mocks.dart
#	test/workout/workout_form_test.mocks.dart
#	test/workout/workout_set_form_test.mocks.dart
2022-10-10 15:50:50 +02:00
Roland Geider
92cc1b7e58 Show correct path in error message 2022-10-05 16:57:28 +02:00
Roland Geider
23313de67a Remove unused file 2022-10-05 16:57:28 +02:00
Roland Geider
084bab1735 Update compile and target SDK version 2022-09-10 22:33:46 +02: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