Skip to content

Commit 8cd7118

Browse files
author
WooSignal
committed
Flutter 1.17.0 support, Sort by feature, Cash on delivery added, Login/register flow change for Apple user guidelines, Bug fixes, Pubspec.yaml update, AndroidManifest.xml bug fix
1 parent 54e2155 commit 8cd7118

Some content is hidden

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

48 files changed

+1123
-668
lines changed

LabelStoreMax/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
## [2.0.2] - 2020-05-04
1+
## [2.0.2] - 2020-05-08
22

3+
* Flutter 1.17.0 support
4+
* Sort by feature
5+
* Cash on delivery added
6+
* RazorPay added
7+
* Login/register flow change for Apple user guidelines
8+
* Bug fixes
9+
* Pubspec.yaml update
310
* AndroidManifest.xml bug fix
411

512
## [2.0.1] - 2020-04-30
-9.24 KB
Binary file not shown.
12.5 KB
Loading

LabelStoreMax/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@
264264
);
265265
inputPaths = (
266266
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
267-
"${BUILT_PRODUCTS_DIR}/Braintree/Braintree.framework",
268-
"${PODS_ROOT}/Braintree/Frameworks/CardinalMobile.framework",
269-
"${BUILT_PRODUCTS_DIR}/BraintreeDropIn/BraintreeDropIn.framework",
270267
"${BUILT_PRODUCTS_DIR}/FMDB/FMDB.framework",
271268
"${PODS_ROOT}/../Flutter/Flutter.framework",
272269
"${BUILT_PRODUCTS_DIR}/Stripe/Stripe.framework",
@@ -275,16 +272,15 @@
275272
"${BUILT_PRODUCTS_DIR}/flutter_web_browser/flutter_web_browser.framework",
276273
"${BUILT_PRODUCTS_DIR}/package_info/package_info.framework",
277274
"${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
275+
"${PODS_ROOT}/razorpay-pod/Pod/Razorpay.framework",
276+
"${BUILT_PRODUCTS_DIR}/razorpay_flutter/razorpay_flutter.framework",
278277
"${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
279278
"${BUILT_PRODUCTS_DIR}/sqflite/sqflite.framework",
280279
"${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
281280
"${BUILT_PRODUCTS_DIR}/woosignal_stripe/woosignal_stripe.framework",
282281
);
283282
name = "[CP] Embed Pods Frameworks";
284283
outputPaths = (
285-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Braintree.framework",
286-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CardinalMobile.framework",
287-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BraintreeDropIn.framework",
288284
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FMDB.framework",
289285
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
290286
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Stripe.framework",
@@ -293,6 +289,8 @@
293289
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_web_browser.framework",
294290
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/package_info.framework",
295291
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
292+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Razorpay.framework",
293+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/razorpay_flutter.framework",
296294
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
297295
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/sqflite.framework",
298296
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",

LabelStoreMax/ios/Runner/AppDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import UIKit
22
import Flutter
3-
import Braintree
43

54
@UIApplicationMain
65
@objc class AppDelegate: FlutterAppDelegate {

LabelStoreMax/lang/en.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,18 @@
129129
"Shipping Details": "Shipping Details",
130130
"State": "State",
131131
"Country": "Country",
132-
"UPDATE DETAILS": "UPDATE DETAILS"
132+
"UPDATE DETAILS": "UPDATE DETAILS",
133+
"No more products": "No more products",
134+
"release to load more": "release to load more",
135+
"Load Failed! Click retry!": "Load Failed! Click retry!",
136+
"pull up load": "pull up load",
137+
"Sort: Low to high": "Sort: Low to high",
138+
"Sort: High to low": "Sort: High to low",
139+
"Sort: Name A-Z": "Sort: Name A-Z",
140+
"Sort: Name Z-A": "Sort: Name Z-A",
141+
"Cancel": "Cancel",
142+
"Sort results": "Sort results",
143+
"you're now logged in": "You're now logged in",
144+
"Hello": "Hello",
145+
"Welcome back": "Welcome back"
133146
}

LabelStoreMax/lib/app_payment_methods.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import 'package:label_storemax/helpers/tools.dart';
1212
import 'package:label_storemax/models/payment_type.dart';
13+
import 'package:label_storemax/providers/cash_on_delivery.dart';
1314
import 'package:label_storemax/providers/stripe_pay.dart';
1415

1516
// Payment methods available for uses in the app
@@ -25,11 +26,21 @@ List<PaymentType> arrPaymentMethods = [
2526
),
2627
),
2728

29+
addPayment(
30+
PaymentType(
31+
id: 2,
32+
name: "CashOnDelivery",
33+
desc: "Cash on delivery",
34+
assetImage: "cash_on_delivery.jpeg",
35+
pay: cashOnDeliveryPay,
36+
),
37+
),
38+
2839
// e.g. add more here
2940

3041
// addPayment(
3142
// PaymentType(
32-
// id: 2,
43+
// id: 3,
3344
// name: "MyNewPaymentMethod",
3445
// desc: "Debit or Credit Card",
3546
// assetImage: "add icon image to assets/images/myimage.png",

LabelStoreMax/lib/helpers/app_localizations.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ class _AppLocalizationsDelegate
5050
const _AppLocalizationsDelegate();
5151

5252
@override
53-
bool isSupported(Locale locale) =>
54-
app_locales_supported.contains(locale.languageCode);
53+
bool isSupported(Locale locale) => app_locales_supported
54+
.map((e) => e.languageCode)
55+
.toList()
56+
.contains(locale.languageCode);
5557

5658
@override
5759
bool shouldReload(_AppLocalizationsDelegate old) => false;

LabelStoreMax/lib/helpers/app_themes.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ TextTheme textThemePrimary() {
8282
fontWeight: FontWeight.w600),
8383
headline: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
8484
title: new TextStyle(
85-
color: Colors.black,
86-
fontFamily: appFontFamily,
87-
),
85+
color: Colors.black87,
86+
fontFamily: appFontFamily,
87+
fontWeight: FontWeight.w600),
8888
subhead: new TextStyle(
8989
color: Colors.black,
9090
fontFamily: appFontFamily,

LabelStoreMax/lib/helpers/data/order_wc.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import 'package:label_storemax/models/checkout_session.dart';
1919
import 'package:woosignal/models/payload/order_wc.dart';
2020
import 'package:woosignal/models/response/tax_rate.dart';
2121

22-
Future<OrderWC> buildOrderWC({TaxRate taxRate}) async {
22+
Future<OrderWC> buildOrderWC({TaxRate taxRate, bool markPaid = true}) async {
2323
OrderWC orderWC = OrderWC();
2424

2525
String paymentMethodName = CheckoutSession.getInstance.paymentType.name ?? "";
@@ -30,7 +30,7 @@ Future<OrderWC> buildOrderWC({TaxRate taxRate}) async {
3030

3131
orderWC.paymentMethodTitle = paymentMethodName.toLowerCase();
3232

33-
orderWC.setPaid = true;
33+
orderWC.setPaid = markPaid;
3434
orderWC.status = "pending";
3535
orderWC.currency = app_currency_iso.toUpperCase();
3636
orderWC.customerId =

0 commit comments

Comments
 (0)