Skip to content

Commit da2301a

Browse files
committed
v6.6.0 updates
1 parent 004c146 commit da2301a

38 files changed

+270
-1524
lines changed

LabelStoreMax/.env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ RAZORPAY_API_KEY=""
4949
# *<! ------ EXTRAS ------!>*
5050

5151
PRODUCT_PLACEHOLDER_IMAGE="https://woosignal.com/images/woocommerce-placeholder.png"
52-
# Sets the default placeholder image for products with no image
52+
# Sets the default placeholder image for products with no image
53+
54+
AUTH_USER_KEY="AUTH_USER"

LabelStoreMax/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [6.6.0] - 2023-05-18
2+
3+
* Nylo v5.0.0 migration
4+
* Refactor project
5+
* Flutter v3.10.0 compatibility
6+
17
## [6.5.1] - 2023-03-04
28

39
* New translation added.

LabelStoreMax/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# WooCommerce App: Label StoreMax
66

7-
### Label StoreMax - v6.5.1
7+
### Label StoreMax - v6.6.0
88

99

1010
[Official WooSignal WooCommerce App](https://woosignal.com)
@@ -44,7 +44,7 @@ Full documentation this available [here](https://woosignal.com/docs/app/label-st
4444
- Browse products, make orders, customer login (via WordPress)
4545
- Change app name, logo, customize default language, currency + more
4646
- Light and dark mode
47-
- Stripe, Cash On Delivery, PayPal, RazorPay
47+
- Stripe, Cash On Delivery, PayPal
4848
- Localized for en, es, pt, it, hi, fr, zh, tr, nl, de
4949
- Orders show as normal in WooCommerce
5050

LabelStoreMax/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
files = (
205205
);
206206
inputPaths = (
207+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
207208
);
208209
name = "Thin Binary";
209210
outputPaths = (

LabelStoreMax/ios/Runner/Info.plist

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>$(DEVELOPMENT_LANGUAGE)</string>
79
<key>CFBundleExecutable</key>
@@ -16,12 +18,8 @@
1618
<string>APPL</string>
1719
<key>CFBundleShortVersionString</key>
1820
<string>$(FLUTTER_BUILD_NAME)</string>
19-
<key>NSCameraUsageDescription</key>
20-
<string>You can take photos of your payment details.</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
23-
<key>MinimumOSVersion</key>
24-
<string>13.0</string>
2523
<key>CFBundleURLTypes</key>
2624
<array>
2725
<dict>
@@ -39,11 +37,17 @@
3937
<string>$(FLUTTER_BUILD_NUMBER)</string>
4038
<key>LSRequiresIPhoneOS</key>
4139
<true/>
40+
<key>MinimumOSVersion</key>
41+
<string>13.0</string>
4242
<key>NSAppTransportSecurity</key>
4343
<dict>
4444
<key>NSAllowsArbitraryLoads</key>
4545
<true/>
4646
</dict>
47+
<key>NSCameraUsageDescription</key>
48+
<string>You can take photos of your payment details.</string>
49+
<key>UIApplicationSupportsIndirectInputEvents</key>
50+
<true/>
4751
<key>UILaunchStoryboardName</key>
4852
<string>LaunchScreen</string>
4953
<key>UIMainStoryboardFile</key>
@@ -61,9 +65,5 @@
6165
</array>
6266
<key>UIViewControllerBasedStatusBarAppearance</key>
6367
<false/>
64-
<key>CADisableMinimumFrameDurationOnPhone</key>
65-
<true/>
66-
<key>UIApplicationSupportsIndirectInputEvents</key>
67-
<true/>
6868
</dict>
6969
</plist>

LabelStoreMax/lib/app/models/user.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@
1010

1111
import 'package:nylo_framework/nylo_framework.dart';
1212

13-
class User extends Storable {
13+
class User extends Model {
1414
String? userId;
1515
String? token;
1616

1717
User();
1818
User.fromUserAuthResponse({this.userId, this.token});
1919

20-
@override
21-
toStorage() => {"token": token, "user_id": userId};
20+
toJson() => {"token": token, "user_id": userId};
2221

23-
@override
24-
fromStorage(dynamic data) {
22+
fromJson(dynamic data) {
2523
token = data['token'];
2624
userId = data['user_id'];
2725
}

LabelStoreMax/lib/app/networking/api_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'package:nylo_framework/nylo_framework.dart';
88
| ApiService
99
| -------------------------------------------------------------------------
1010
| Define your API endpoints
11-
| Learn more https://nylo.dev/docs/4.x/networking
11+
| Learn more https://nylo.dev/docs/5.x/networking
1212
|--------------------------------------------------------------------------
1313
*/
1414

LabelStoreMax/lib/app/providers/app_provider.dart

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import 'package:flutter/material.dart';
44
import 'package:flutter/services.dart';
55
import 'package:flutter_app/bootstrap/app_helper.dart';
66
import 'package:flutter_app/bootstrap/helpers.dart';
7+
import 'package:flutter_app/config/decoders.dart';
78
import 'package:flutter_app/config/design.dart';
89
import 'package:flutter_app/config/theme.dart';
10+
import 'package:flutter_app/config/validation_rules.dart';
911
import 'package:nylo_framework/nylo_framework.dart';
1012
import 'package:flutter_app/config/localization.dart';
1113
import 'package:woosignal/models/response/woosignal_app.dart';
@@ -112,12 +114,14 @@ class AppProvider implements NyProvider {
112114
nylo.appLoader = loader;
113115
nylo.appLogo = logo;
114116

115-
String initialRoute = AppHelper.instance.appConfig!.appStatus != null
116-
? '/home'
117-
: '/no-connection';
118-
119-
nylo.initialRoute = initialRoute;
117+
nylo.addModelDecoders(modelDecoders);
118+
nylo.addValidationRules(validationRules);
120119

121120
return nylo;
122121
}
122+
123+
@override
124+
afterBoot(Nylo nylo) async {
125+
126+
}
123127
}

LabelStoreMax/lib/app/providers/event_provider.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ class EventProvider implements NyProvider {
88

99
return nylo;
1010
}
11+
12+
@override
13+
afterBoot(Nylo nylo) async {
14+
15+
}
1116
}

LabelStoreMax/lib/app/providers/payments/razorpay_pay.dart

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)