Skip to content

Commit c0bc830

Browse files
authored
Merge branch 'master' into google_play_dependency
2 parents 97b21a8 + 7f9a0c1 commit c0bc830

31 files changed

+974
-173
lines changed

AUTHORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Developers
44

5+
- Jigar Prajapati - <https://github.com/Jiggy9>
56
- Roland Geider – <https://github.com/rolandgeider>
67
- Dylan Aird - <https://github.com/Dolaned>
78
- Jannik Norden - <https://github.com/Jannik-dev>
@@ -20,6 +21,7 @@
2021
- Sandi Milohanic - <https://github.com/sandimilohanic>
2122
- Miroslav Mazel - <https://gitlab.com/12people>
2223
- artchiee - <https://github.com/artchiee>
24+
- Tejas Bir Singh - <https://github.com/tejasbirsingh>
2325

2426
## Translators
2527

flatpak/flatpak_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"--share=network",
2424
"--socket=fallback-x11",
2525
"--socket=wayland",
26+
"--socket=pulseaudio",
2627
"--device=dri"
2728
]
2829
}

ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>9.0</string>
24+
<string>11.0</string>
2525
</dict>
2626
</plist>

ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/Podfile.lock

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,71 @@
11
PODS:
2-
- camera (0.0.1):
3-
- Flutter
42
- Flutter (1.0.0)
3+
- flutter_barcode_scanner (2.0.0):
4+
- Flutter
55
- flutter_keyboard_visibility (0.0.1):
66
- Flutter
7-
- image_picker (0.0.1):
7+
- image_picker_ios (0.0.1):
88
- Flutter
9-
- package_info (0.0.1):
9+
- integration_test (0.0.1):
1010
- Flutter
11-
- shared_preferences_ios (0.0.1):
11+
- package_info_plus (0.4.5):
1212
- Flutter
13-
- url_launcher_ios (0.0.1):
13+
- rive_common (0.0.1):
1414
- Flutter
15-
- video_player (0.0.1):
15+
- shared_preferences_foundation (0.0.1):
1616
- Flutter
17-
- wakelock (0.0.1):
17+
- FlutterMacOS
18+
- url_launcher_ios (0.0.1):
1819
- Flutter
19-
- webview_flutter_wkwebview (0.0.1):
20+
- video_player_avfoundation (0.0.1):
2021
- Flutter
2122

2223
DEPENDENCIES:
23-
- camera (from `.symlinks/plugins/camera/ios`)
2424
- Flutter (from `Flutter`)
25+
- flutter_barcode_scanner (from `.symlinks/plugins/flutter_barcode_scanner/ios`)
2526
- flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`)
26-
- image_picker (from `.symlinks/plugins/image_picker/ios`)
27-
- package_info (from `.symlinks/plugins/package_info/ios`)
28-
- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
27+
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
28+
- integration_test (from `.symlinks/plugins/integration_test/ios`)
29+
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
30+
- rive_common (from `.symlinks/plugins/rive_common/ios`)
31+
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/ios`)
2932
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
30-
- video_player (from `.symlinks/plugins/video_player/ios`)
31-
- wakelock (from `.symlinks/plugins/wakelock/ios`)
32-
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
33+
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/ios`)
3334

3435
EXTERNAL SOURCES:
35-
camera:
36-
:path: ".symlinks/plugins/camera/ios"
3736
Flutter:
3837
:path: Flutter
38+
flutter_barcode_scanner:
39+
:path: ".symlinks/plugins/flutter_barcode_scanner/ios"
3940
flutter_keyboard_visibility:
4041
:path: ".symlinks/plugins/flutter_keyboard_visibility/ios"
41-
image_picker:
42-
:path: ".symlinks/plugins/image_picker/ios"
43-
package_info:
44-
:path: ".symlinks/plugins/package_info/ios"
45-
shared_preferences_ios:
46-
:path: ".symlinks/plugins/shared_preferences_ios/ios"
42+
image_picker_ios:
43+
:path: ".symlinks/plugins/image_picker_ios/ios"
44+
integration_test:
45+
:path: ".symlinks/plugins/integration_test/ios"
46+
package_info_plus:
47+
:path: ".symlinks/plugins/package_info_plus/ios"
48+
rive_common:
49+
:path: ".symlinks/plugins/rive_common/ios"
50+
shared_preferences_foundation:
51+
:path: ".symlinks/plugins/shared_preferences_foundation/ios"
4752
url_launcher_ios:
4853
:path: ".symlinks/plugins/url_launcher_ios/ios"
49-
video_player:
50-
:path: ".symlinks/plugins/video_player/ios"
51-
wakelock:
52-
:path: ".symlinks/plugins/wakelock/ios"
53-
webview_flutter_wkwebview:
54-
:path: ".symlinks/plugins/webview_flutter_wkwebview/ios"
54+
video_player_avfoundation:
55+
:path: ".symlinks/plugins/video_player_avfoundation/ios"
5556

5657
SPEC CHECKSUMS:
57-
camera: fe33292aff715a981eb34d7ce7b35b54337ff34c
58-
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
58+
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
59+
flutter_barcode_scanner: 7a1144744c28dc0c57a8de7218ffe5ec59a9e4bf
5960
flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
60-
image_picker: 9aa50e1d8cdacdbed739e925b7eea16d014367e6
61-
package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
62-
shared_preferences_ios: aef470a42dc4675a1cdd50e3158b42e3d1232b32
63-
url_launcher_ios: 02f1989d4e14e998335b02b67a7590fa34f971af
64-
video_player: ecd305f42e9044793efd34846e1ce64c31ea6fcb
65-
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
66-
webview_flutter_wkwebview: 005fbd90c888a42c5690919a1527ecc6649e1162
61+
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
62+
integration_test: a1e7d09bd98eca2fc37aefd79d4f41ad37bdbbe5
63+
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
64+
rive_common: 60ae7896ab40f9513974f36f015de33f70d2c5c5
65+
shared_preferences_foundation: 986fc17f3d3251412d18b0265f9c64113a8c2472
66+
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
67+
video_player_avfoundation: 81e49bb3d9fb63dccf9fa0f6d877dc3ddbeac126
6768

68-
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
69+
PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048
6970

70-
COCOAPODS: 1.11.2
71+
COCOAPODS: 1.12.0

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -199,6 +199,7 @@
199199
/* Begin PBXShellScriptBuildPhase section */
200200
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
201201
isa = PBXShellScriptBuildPhase;
202+
alwaysOutOfDate = 1;
202203
buildActionMask = 2147483647;
203204
files = (
204205
);
@@ -252,6 +253,7 @@
252253
};
253254
9740EEB61CF901F6004384FC /* Run Script */ = {
254255
isa = PBXShellScriptBuildPhase;
256+
alwaysOutOfDate = 1;
255257
buildActionMask = 2147483647;
256258
files = (
257259
);
@@ -339,7 +341,7 @@
339341
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
340342
GCC_WARN_UNUSED_FUNCTION = YES;
341343
GCC_WARN_UNUSED_VARIABLE = YES;
342-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
344+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
343345
MTL_ENABLE_DEBUG_INFO = NO;
344346
SDKROOT = iphoneos;
345347
SUPPORTED_PLATFORMS = iphoneos;
@@ -425,7 +427,7 @@
425427
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
426428
GCC_WARN_UNUSED_FUNCTION = YES;
427429
GCC_WARN_UNUSED_VARIABLE = YES;
428-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
430+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
429431
MTL_ENABLE_DEBUG_INFO = YES;
430432
ONLY_ACTIVE_ARCH = YES;
431433
SDKROOT = iphoneos;
@@ -474,7 +476,7 @@
474476
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
475477
GCC_WARN_UNUSED_FUNCTION = YES;
476478
GCC_WARN_UNUSED_VARIABLE = YES;
477-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
479+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
478480
MTL_ENABLE_DEBUG_INFO = NO;
479481
SDKROOT = iphoneos;
480482
SUPPORTED_PLATFORMS = iphoneos;

ios/Runner/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@
4343
<false/>
4444
<key>CADisableMinimumFrameDurationOnPhone</key>
4545
<true/>
46+
<key>UIApplicationSupportsIndirectInputEvents</key>
47+
<true/>
4648
</dict>
4749
</plist>

l10n.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ arb-dir: lib/l10n
22
template-arb-file: app_en.arb
33
output-localization-file: app_localizations.dart
44
nullable-getter: false
5+
preferred-supported-locales: [ en ]

lib/helpers/consts.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ const DEFAULT_WEIGHT_UNIT = 1;
3636
/// Default impression for a workout session (neutral)
3737
const DEFAULT_IMPRESSION = 2;
3838

39-
/// Default weight unit is "repetition"
40-
const DEFAULT_REPETITION_UNIT = 1;
39+
// Weight and repetition units for the workout logs
40+
const REP_UNIT_REPETITIONS = 1;
41+
const REP_UNIT_TILL_FAILURE = 2;
42+
43+
const WEIGHT_UNIT_KG = 1;
44+
const WEIGHT_UNIT_LB = 2;
4145

4246
/// Time to locally cache values such as ingredients, etc
4347
const DAYS_TO_CACHE = 20;

lib/helpers/i18n.dart

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ String getTranslation(String value, BuildContext context) {
2828
case 'Biceps':
2929
return AppLocalizations.of(context).biceps;
3030

31+
case 'Body Weight':
32+
return AppLocalizations.of(context).body_weight;
33+
3134
case 'Calves':
3235
return AppLocalizations.of(context).calves;
3336

@@ -58,21 +61,30 @@ String getTranslation(String value, BuildContext context) {
5861
case 'Kilometers':
5962
return AppLocalizations.of(context).kilometers;
6063

64+
case 'Kilometers Per Hour':
65+
return AppLocalizations.of(context).kilometers_per_hour;
66+
6167
case 'Lats':
6268
return AppLocalizations.of(context).lats;
6369

6470
case 'Legs':
6571
return AppLocalizations.of(context).legs;
6672

67-
case 'Lower back':
68-
return AppLocalizations.of(context).lower_back;
73+
case 'Max Reps':
74+
return AppLocalizations.of(context).max_reps;
6975

7076
case 'Miles':
7177
return AppLocalizations.of(context).miles;
7278

79+
case 'Miles Per Hour':
80+
return AppLocalizations.of(context).miles_per_hour;
81+
7382
case 'Minutes':
7483
return AppLocalizations.of(context).minutes;
7584

85+
case 'Plates':
86+
return AppLocalizations.of(context).plates;
87+
7688
case 'Pull-up bar':
7789
return AppLocalizations.of(context).pull_up_bar;
7890

@@ -100,6 +112,12 @@ String getTranslation(String value, BuildContext context) {
100112
case 'Until Failure':
101113
return AppLocalizations.of(context).until_failure;
102114

115+
case 'kg':
116+
return AppLocalizations.of(context).kg;
117+
118+
case 'lb':
119+
return AppLocalizations.of(context).lb;
120+
103121
case 'none (bodyweight exercise)':
104122
return AppLocalizations.of(context).none__bodyweight_exercise_;
105123

0 commit comments

Comments
 (0)