Skip to content

Commit b60e19c

Browse files
committed
Merge branch 'master' into feature/ingredient-images
# Conflicts: # lib/main.dart # lib/providers/nutrition.dart # pubspec.yaml # test/nutrition/nutritional_plan_screen_test.dart # test/nutrition/nutritional_plans_screen_test.dart
2 parents 9630e2b + 03b433b commit b60e19c

File tree

63 files changed

+7870
-1328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+7870
-1328
lines changed

Gemfile.lock

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.5)
4+
CFPropertyList (3.0.6)
55
rexml
66
addressable (2.8.1)
77
public_suffix (>= 2.0.2, < 6.0)
88
artifactory (3.0.15)
99
atomos (0.1.3)
1010
aws-eventstream (1.2.0)
11-
aws-partitions (1.671.0)
12-
aws-sdk-core (3.168.3)
11+
aws-partitions (1.728.0)
12+
aws-sdk-core (3.170.0)
1313
aws-eventstream (~> 1, >= 1.0.2)
1414
aws-partitions (~> 1, >= 1.651.0)
1515
aws-sigv4 (~> 1.5)
1616
jmespath (~> 1, >= 1.6.1)
17-
aws-sdk-kms (1.60.0)
17+
aws-sdk-kms (1.63.0)
1818
aws-sdk-core (~> 3, >= 3.165.0)
1919
aws-sigv4 (~> 1.1)
20-
aws-sdk-s3 (1.117.2)
20+
aws-sdk-s3 (1.119.1)
2121
aws-sdk-core (~> 3, >= 3.165.0)
2222
aws-sdk-kms (~> 1)
2323
aws-sigv4 (~> 1.4)
@@ -36,8 +36,8 @@ GEM
3636
unf (>= 0.0.5, < 1.0.0)
3737
dotenv (2.8.1)
3838
emoji_regex (3.2.3)
39-
excon (0.94.0)
40-
faraday (1.10.2)
39+
excon (0.99.0)
40+
faraday (1.10.3)
4141
faraday-em_http (~> 1.0)
4242
faraday-em_synchrony (~> 1.0)
4343
faraday-excon (~> 1.1)
@@ -66,7 +66,7 @@ GEM
6666
faraday_middleware (1.2.0)
6767
faraday (~> 1.0)
6868
fastimage (2.2.6)
69-
fastlane (2.211.0)
69+
fastlane (2.212.1)
7070
CFPropertyList (>= 2.3, < 4.0.0)
7171
addressable (>= 2.8, < 3.0.0)
7272
artifactory (~> 3.0)
@@ -107,9 +107,9 @@ GEM
107107
xcpretty-travis-formatter (>= 0.0.3)
108108
fastlane-plugin-versioning (0.5.1)
109109
gh_inspector (1.1.3)
110-
google-apis-androidpublisher_v3 (0.31.0)
111-
google-apis-core (>= 0.9.1, < 2.a)
112-
google-apis-core (0.9.1)
110+
google-apis-androidpublisher_v3 (0.36.0)
111+
google-apis-core (>= 0.11.0, < 2.a)
112+
google-apis-core (0.11.0)
113113
addressable (~> 2.5, >= 2.5.1)
114114
googleauth (>= 0.16.2, < 2.a)
115115
httpclient (>= 2.8.1, < 3.a)
@@ -118,18 +118,18 @@ GEM
118118
retriable (>= 2.0, < 4.a)
119119
rexml
120120
webrick
121-
google-apis-iamcredentials_v1 (0.16.0)
122-
google-apis-core (>= 0.9.1, < 2.a)
123-
google-apis-playcustomapp_v1 (0.12.0)
124-
google-apis-core (>= 0.9.1, < 2.a)
121+
google-apis-iamcredentials_v1 (0.17.0)
122+
google-apis-core (>= 0.11.0, < 2.a)
123+
google-apis-playcustomapp_v1 (0.13.0)
124+
google-apis-core (>= 0.11.0, < 2.a)
125125
google-apis-storage_v1 (0.19.0)
126126
google-apis-core (>= 0.9.0, < 2.a)
127127
google-cloud-core (1.6.0)
128128
google-cloud-env (~> 1.0)
129129
google-cloud-errors (~> 1.0)
130130
google-cloud-env (1.6.0)
131131
faraday (>= 0.17.3, < 3.0)
132-
google-cloud-errors (1.3.0)
132+
google-cloud-errors (1.3.1)
133133
google-cloud-storage (1.44.0)
134134
addressable (~> 2.8)
135135
digest-crc (~> 0.4)
@@ -151,18 +151,18 @@ GEM
151151
httpclient (2.8.3)
152152
jmespath (1.6.2)
153153
json (2.6.3)
154-
jwt (2.5.0)
154+
jwt (2.7.0)
155155
memoist (0.16.2)
156-
mini_magick (4.11.0)
156+
mini_magick (4.12.0)
157157
mini_mime (1.1.2)
158158
multi_json (1.15.0)
159159
multipart-post (2.0.0)
160160
nanaimo (0.3.0)
161161
naturally (2.2.1)
162162
optparse (0.1.1)
163163
os (1.1.4)
164-
plist (3.6.0)
165-
public_suffix (5.0.0)
164+
plist (3.7.0)
165+
public_suffix (5.0.1)
166166
rake (13.0.6)
167167
representable (3.2.0)
168168
declarative (< 0.1.0)
@@ -179,7 +179,7 @@ GEM
179179
faraday (>= 0.17.5, < 3.a)
180180
jwt (>= 1.5, < 3.0)
181181
multi_json (~> 1.10)
182-
simctl (1.6.8)
182+
simctl (1.6.10)
183183
CFPropertyList
184184
naturally
185185
terminal-notifier (2.0.0)
@@ -195,7 +195,7 @@ GEM
195195
unf_ext
196196
unf_ext (0.0.8.2)
197197
unicode-display_width (1.8.0)
198-
webrick (1.7.0)
198+
webrick (1.8.1)
199199
word_wrap (1.0.0)
200200
xcodeproj (1.22.0)
201201
CFPropertyList (>= 2.3.3, < 4.0)

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,40 @@ If you want to contribute, hop on the Discord server and say hi!
88

99

1010
<p>
11-
<img src="https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/01%20-%20workout%20plan.png" width="200" />
11+
<img src="https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/01%20-%20dashboard.png" width="200" />
1212

13-
<img src="https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/02%20-%20workout%20log.png" width="200" />
13+
<img src="https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/04%20-%20measurements.png" width="200" />
1414

15-
<img src="https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/04%20-%20nutritional%20plan.png" width="200" />
15+
<img src="https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/05%20-%20nutritional%20plan.png" width="200" />
1616
</p>
1717

1818
## Installation
19+
1920
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png"
20-
alt="Get it on Google Play"
21-
height="80">](https://play.google.com/store/apps/details?id=de.wger.flutter)
21+
alt="Get it on Google Play"
22+
height="80">](https://play.google.com/store/apps/details?id=de.wger.flutter)
2223
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
23-
alt="Get it on F-Droid"
24-
height="80">](https://f-droid.org/packages/de.wger.flutter/)
24+
alt="Get it on F-Droid"
25+
height="80">](https://f-droid.org/packages/de.wger.flutter/)
2526

2627
## Development
2728

2829
### 1
30+
2931
Install the [wger server](https://github.com/wger-project/wger), the easiest way
3032
is to start the development docker-compose: <https://github.com/wger-project/docker>
3133

3234
Alternatively, you can use one of our test servers, just ask us for access.
3335

3436
### 2
37+
3538
Install Flutter, and all its dependencies, and create a new virtual device:
3639
<https://flutter.dev/docs/get-started/install>.
3740

3841
The app currently uses flutter 3.3
3942

4043
### 3
44+
4145
Create a new file ``wger.properties`` in ``fastlane/metadata/envfiles/``:
4246

4347
```properties
@@ -50,17 +54,18 @@ to allow (a probably dedicated) user on the wger server to register users on its
5054
behalf. For this, generate an API KEY by visiting <http://localhost:8000/de/user/api-key>
5155
on your local instance and then run ``python3 manage.py add-user-rest the username``
5256

53-
You can later list all the registered users with: ``python3 manage.py list-users-api``
54-
57+
You can later list all the registered users with: ``python3 manage.py list-users-api``
5558

5659
### 4
60+
5761
Start the application with ``flutter run`` or use your IDE
58-
(please note that depending on how you run your emulator you will need to change the IP address of the server)
62+
(please note that depending on how you run your emulator you will need to change the IP address of
63+
the server)
5964

6065
You can run the tests with the ``flutter test``
6166

62-
6367
## Translation
68+
6469
Translate the app to your language on [Weblate](https://hosted.weblate.org/engage/wger/).
6570

6671
[![translation status](https://hosted.weblate.org/widgets/wger/-/mobile/multi-blue.svg)](https://hosted.weblate.org/engage/wger/)
@@ -86,7 +91,6 @@ conditions that are incompatible with the AGPL, provided that the source is also
8691
available under the AGPL with or without this permission through a channel without
8792
those restrictive terms and conditions.
8893

89-
9094
The initial exercise and ingredient data is licensed additionally under one of
9195
the Creative Commons licenses, see the individual exercises for more details.
9296

integration_test/3_gym_mode.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ import 'package:wger/screens/gym_mode.dart';
88
import 'package:wger/screens/workout_plan_screen.dart';
99
import 'package:wger/theme/theme.dart';
1010

11-
import '../test/other/base_provider_test.mocks.dart';
1211
import '../test/utils.dart';
1312
import '../test/workout/gym_mode_screen_test.mocks.dart';
1413
import '../test_data/exercises.dart';
1514
import '../test_data/workouts.dart';
1615

1716
Widget createGymModeScreen({locale = 'en'}) {
1817
final key = GlobalKey<NavigatorState>();
19-
final client = MockClient();
2018
final bases = getTestExerciseBases();
2119
final workout = getWorkout();
2220

@@ -29,10 +27,9 @@ Widget createGymModeScreen({locale = 'en'}) {
2927

3028
return ChangeNotifierProvider<WorkoutPlansProvider>(
3129
create: (context) => WorkoutPlansProvider(
32-
testAuthProvider,
30+
mockBaseProvider,
3331
mockExerciseProvider,
3432
[workout],
35-
client,
3633
),
3734
child: ChangeNotifierProvider<ExercisesProvider>(
3835
create: (context) => mockExerciseProvider,

0 commit comments

Comments
 (0)