Skip to content

Commit fedd76f

Browse files
committed
v6.8.0
1 parent 456f313 commit fedd76f

File tree

20 files changed

+375
-340
lines changed

20 files changed

+375
-340
lines changed

LabelStoreMax/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [6.8.0] - 2023-07-03
2+
3+
* UI fixes.
4+
* Fix price on coupon page error alerts.
5+
* Fix issue where IOS builds were not using the correct build version.
6+
* Small refactor to the project.
7+
* Pubspec.yaml dependency updates.
8+
19
## [6.7.0] - 2023-06-20
210

311
* Refactor project for Nylo 5.x.

LabelStoreMax/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Full documentation this available [here](https://woosignal.com/docs/app/label-st
4343
- Browse products, make orders, customer login (via WordPress)
4444
- Change app name, logo, customize default language, currency + more
4545
- Light and dark mode
46-
- Stripe, Cash On Delivery, PayPal
46+
- Stripe, Cash On Delivery, PayPal, RazorPay
4747
- Localized for en, es, pt, it, hi, fr, zh, tr, nl, de
4848
- Orders show as normal in WooCommerce
4949

LabelStoreMax/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@
373373
"$(inherited)",
374374
"$(PROJECT_DIR)/Flutter",
375375
);
376+
MARKETING_VERSION = 1.0.0;
376377
PRODUCT_BUNDLE_IDENTIFIER = com.flutter.app;
377378
PRODUCT_NAME = "$(TARGET_NAME)";
378379
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -511,6 +512,7 @@
511512
"$(inherited)",
512513
"$(PROJECT_DIR)/Flutter",
513514
);
515+
MARKETING_VERSION = 1.0.0;
514516
PRODUCT_BUNDLE_IDENTIFIER = com.flutter.app;
515517
PRODUCT_NAME = "$(TARGET_NAME)";
516518
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -543,6 +545,7 @@
543545
"$(inherited)",
544546
"$(PROJECT_DIR)/Flutter",
545547
);
548+
MARKETING_VERSION = 1.0.0;
546549
PRODUCT_BUNDLE_IDENTIFIER = com.flutter.app;
547550
PRODUCT_NAME = "$(TARGET_NAME)";
548551
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";

LabelStoreMax/ios/Runner/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>$(FLUTTER_BUILD_NAME)</string>
20+
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleURLTypes</key>
@@ -34,7 +34,7 @@
3434
</dict>
3535
</array>
3636
<key>CFBundleVersion</key>
37-
<string>$(FLUTTER_BUILD_NUMBER)</string>
37+
<string>$(CURRENT_PROJECT_VERSION)</string>
3838
<key>LSRequiresIPhoneOS</key>
3939
<true/>
4040
<key>MinimumOSVersion</key>

LabelStoreMax/lib/app/models/user.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class User extends Model {
1919

2020
toJson() => {"token": token, "user_id": userId};
2121

22-
fromJson(dynamic data) {
22+
User.fromJson(dynamic data) {
2323
token = data['token'];
2424
userId = data['user_id'];
2525
}

LabelStoreMax/lib/app/providers/firebase_provider.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import 'package:woosignal/woosignal.dart';
66

77
class FirebaseProvider implements NyProvider {
88

9+
@override
910
boot(Nylo nylo) async {
1011

1112
return null;
1213
}
1314

15+
@override
1416
afterBoot(Nylo nylo) async {
15-
if (getEnv('FCM_ENABLED') != true) return;
17+
if (getEnv('FCM_ENABLED', defaultValue: false) != true) return;
1618

1719
await Firebase.initializeApp(
1820
options: DefaultFirebaseOptions.currentPlatform,

LabelStoreMax/lib/bootstrap/data/order_wc.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import 'package:flutter_app/app/models/cart.dart';
1515
import 'package:flutter_app/app/models/cart_line_item.dart';
1616
import 'package:flutter_app/app/models/checkout_session.dart';
1717
import 'package:flutter_app/bootstrap/app_helper.dart';
18+
import 'package:flutter_app/bootstrap/helpers.dart';
1819
import 'package:flutter_app/bootstrap/shared_pref/sp_auth.dart';
1920
import 'package:woosignal/models/payload/order_wc.dart';
2021
import 'package:woosignal/models/response/tax_rate.dart';
@@ -51,7 +52,7 @@ Future<OrderWC> buildOrderWC({TaxRate? taxRate, bool markPaid = true}) async {
5152
tmpLineItem.variationId = cartItem.variationId;
5253
}
5354

54-
tmpLineItem.subtotal = cartItem.subtotal;
55+
tmpLineItem.subtotal = (parseWcPrice(cartItem.subtotal) * parseWcPrice(cartItem.quantity.toString())).toString();
5556
lineItems.add(tmpLineItem);
5657
}
5758

LabelStoreMax/lib/config/decoders.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:flutter_app/app/models/user.dart';
12
import 'package:flutter_app/app/networking/api_service.dart';
23
import 'package:flutter_app/app/networking/dio/base_api_service.dart';
34

@@ -12,6 +13,7 @@ import 'package:flutter_app/app/networking/dio/base_api_service.dart';
1213

1314
final Map<Type, dynamic> modelDecoders = {
1415
// ...
16+
User: (data) => User.fromJson(data)
1517
};
1618

1719
/*

LabelStoreMax/lib/config/events.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ import 'package:nylo_framework/nylo_framework.dart';
1515
final Map<Type, NyEvent> events = {
1616
LoginEvent: LoginEvent(),
1717
LogoutEvent: LogoutEvent(),
18+
AuthUserEvent: AuthUserEvent(),
1819
};

0 commit comments

Comments
 (0)