Skip to content

Commit 0be591b

Browse files
committed
v7.0.2
1 parent 8cf9d15 commit 0be591b

File tree

10 files changed

+15
-21
lines changed

10 files changed

+15
-21
lines changed

LabelStoreMax/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [7.0.2] - 2024-03-28
2+
3+
* Small refactor to project
4+
15
## [7.0.1] - 2024-03-27
26

37
* Pubspec.yaml dependency updates

LabelStoreMax/lib/app/events/logout_event.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'package:woosignal/woosignal.dart';
2+
13
import '/app/models/cart.dart';
24
import 'package:nylo_framework/nylo_framework.dart';
35
import 'package:wp_json_api/wp_json_api.dart';
@@ -12,6 +14,7 @@ class DefaultListener extends NyListener {
1214
handle(dynamic event) async {
1315
await WPJsonAPI.wpLogout();
1416
await Cart.getInstance.clear();
15-
routeToInitial();
17+
WooSignal.instance.setWpUserId("");
18+
await routeToInitial();
1619
}
1720
}

LabelStoreMax/lib/app/providers/app_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class AppProvider implements NyProvider {
7878
wooSignalApp.locale != null) {
7979
locale = Locale(wooSignalApp.locale!);
8080
} else {
81-
locale = Locale(envVal('DEFAULT_LOCALE', defaultValue: 'en'));
81+
locale = Locale(getEnv('DEFAULT_LOCALE', defaultValue: 'en'));
8282
}
8383
}
8484

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ stripePay(context, {TaxRate? taxRate}) async {
7474
? ThemeMode.light
7575
: ThemeMode.dark,
7676
merchantDisplayName:
77-
envVal('APP_NAME', defaultValue: wooSignalApp?.appName),
77+
getEnv('APP_NAME', defaultValue: wooSignalApp?.appName),
7878
customerId: rsp!['customer'],
7979
paymentIntentClientSecret: rsp!['client_secret'],
8080
customerEphemeralKeySecret: rsp!['ephemeral_key'],

LabelStoreMax/lib/bootstrap/helpers.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ Future<List<PaymentType?>> getPaymentTypes() async {
9595
return paymentTypes.where((v) => v != null).toList();
9696
}
9797

98-
dynamic envVal(String envVal, {dynamic defaultValue}) =>
99-
(getEnv(envVal) ?? defaultValue);
100-
10198
PaymentType addPayment(
10299
{required int id,
103100
required String name,

LabelStoreMax/lib/config/localization.dart

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,13 @@ final List<String> languagesList = const [
2525
'hi',
2626
'it',
2727
'pt',
28-
'zh'
28+
'zh',
29+
'th',
30+
'id'
2931
];
3032

3133
/* assetsDirectory
3234
|--------------------------------------------------------------------------
3335
| Asset directory for your languages.
3436
|-------------------------------------------------------------------------- */
3537
final String assetsDirectory = 'lang/';
36-
37-
/* valuesAsMap
38-
|--------------------------------------------------------------------------
39-
| If you want to define your own language map in code rather than using
40-
| the asset json files.
41-
|--------------------------------------------------------------------------*/
42-
final Map<String, String> valuesAsMap = {};

LabelStoreMax/lib/config/payment_gateways.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import 'package:nylo_framework/nylo_framework.dart';
1414

1515
const appPaymentGateways = [];
1616
// Available: "Stripe", "CashOnDelivery", "PayPal", "RazorPay"
17-
// e.g. app_payment_gateways = ["Stripe", "CashOnDelivery"]; will only use Stripe and Cash on Delivery.
17+
// e.g. appPaymentGateways = ["Stripe", "CashOnDelivery"]; will only use Stripe and Cash on Delivery.
1818

1919
List<PaymentType> paymentTypeList = [
2020
addPayment(

LabelStoreMax/lib/config/storage_keys.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
| Learn more: https://nylo.dev/docs/5.20.0/storage#storage-keys
88
|-------------------------------------------------------------------------- */
99

10-
import 'package:nylo_framework/nylo_framework.dart';
11-
1210
class StorageKey {
13-
static String userToken = "USER_TOKEN";
14-
static String authUser = getEnv('AUTH_USER_KEY', defaultValue: 'AUTH_USER');
1511

1612
/// Add your storage keys here...
1713
}

LabelStoreMax/lib/config/theme.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:nylo_framework/nylo_framework.dart';
2-
32
import '/resources/themes/dark_theme.dart';
43
import '/resources/themes/light_theme.dart';
54
import '/resources/themes/styles/color_styles.dart';

LabelStoreMax/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Official WooSignal App Template for WooCommerce
22

33
# Label StoreMax
4-
# Version: 7.0.1
4+
# Version: 7.0.2
55
# Author: Anthony Gordon
66
# Homepage: https://woosignal.com
77
# Documentation: https://woosignal.com/docs/app/label-storemax

0 commit comments

Comments
 (0)