Skip to content

Commit dcbc7df

Browse files
authored
Merge branch 'trunk' into issue/7686-fix-card-reader-connection-modal-transitions
2 parents 8b0ff28 + a585234 commit dcbc7df

File tree

93 files changed

+869
-623
lines changed

Some content is hidden

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

93 files changed

+869
-623
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Contains editorialized release notes. Raw release notes should go into `RELEASE-NOTES.txt`.
33
-->
44

5+
## 10.3
6+
7+
More love for In-Person Payments and Analytics this time around. We fixed a bug which could prevent you from collecting payments in the app. Card reader connections are more stable. And we fixed an issue where your store's analytics are sometimes not updated.
8+
9+
510
## 10.2
611
Even though this release doesn’t have any new features, we still put a lot of love into it! You can now enable or disable the option to take card or cash payments on collection or delivery. We also added a new Help Center page that makes it easier for you to login to the app.
712

Experiments/Experiments/DefaultFeatureFlagService.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
77
switch featureFlag {
88
case .barcodeScanner:
99
return buildConfig == .localDeveloper || buildConfig == .alpha
10-
case .couponView:
11-
return true
1210
case .productSKUInputScanner:
1311
return true
1412
case .inbox:
@@ -17,20 +15,10 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
1715
return buildConfig == .localDeveloper || buildConfig == .alpha
1816
case .splitViewInOrdersTab:
1917
return buildConfig == .localDeveloper || buildConfig == .alpha
20-
case .couponDeletion:
21-
return true
22-
case .couponEditing:
23-
return true
24-
case .couponCreation:
25-
return true
2618
case .updateOrderOptimistically:
2719
return buildConfig == .localDeveloper || buildConfig == .alpha
2820
case .shippingLabelsOnboardingM1:
2921
return buildConfig == .localDeveloper || buildConfig == .alpha
30-
case .backgroundProductImageUpload:
31-
return true
32-
case .appleIDAccountDeletion:
33-
return true
3422
case .newToWooCommerceLinkInLoginPrologue:
3523
return true
3624
case .loginPrologueOnboarding:

Experiments/Experiments/FeatureFlag.swift

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ public enum FeatureFlag: Int {
1414
///
1515
case reviews
1616

17-
/// Displays the option to view coupons
18-
///
19-
case couponView
20-
2117
/// Barcode scanner for product SKU input
2218
///
2319
case productSKUInputScanner
@@ -34,18 +30,6 @@ public enum FeatureFlag: Int {
3430
///
3531
case splitViewInOrdersTab
3632

37-
/// Displays the option to delete coupons
38-
///
39-
case couponDeletion
40-
41-
/// Displays the option to edit a coupon
42-
///
43-
case couponEditing
44-
45-
/// Displays the option to create a coupon
46-
///
47-
case couponCreation
48-
4933
/// Enable optimistic updates for orders
5034
///
5135
case updateOrderOptimistically
@@ -54,18 +38,10 @@ public enum FeatureFlag: Int {
5438
///
5539
case shippingLabelsOnboardingM1
5640

57-
/// Enable image upload after leaving the product form
58-
///
59-
case backgroundProductImageUpload
60-
6141
/// Enable IPP reader manuals consolidation screen
6242
///
6343
case consolidatedCardReaderManuals
6444

65-
/// Apple ID account deletion
66-
///
67-
case appleIDAccountDeletion
68-
6945
/// Showing a "New to WooCommerce" link in the login prologue screen
7046
///
7147
case newToWooCommerceLinkInLoginPrologue

Podfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ def tracks
3333
# pod 'Automattic-Tracks-iOS', :path => '../Automattic-Tracks-iOS'
3434
end
3535

36+
def keychain
37+
pod 'KeychainAccess', '~> 4.2.2'
38+
end
39+
3640
# Main Target!
3741
# ============
3842
#
@@ -66,7 +70,7 @@ target 'WooCommerce' do
6670
# ==================
6771
#
6872
pod 'Alamofire', '~> 4.8'
69-
pod 'KeychainAccess', '~> 4.2.2'
73+
keychain
7074
pod 'CocoaLumberjack', '~> 3.7.4'
7175
pod 'CocoaLumberjack/Swift', '~> 3.7.4'
7276
pod 'XLPagerTabStrip', '~> 9.0'
@@ -89,6 +93,7 @@ end
8993
target 'StoreWidgetsExtension' do
9094
project 'WooCommerce/WooCommerce.xcodeproj'
9195
tracks
96+
keychain
9297
end
9398

9499
# Yosemite Layer:

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ SPEC CHECKSUMS:
179179
ZendeskSupportProvidersSDK: 2bdf8544f7cd0fd4c002546f5704b813845beb2a
180180
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
181181

182-
PODFILE CHECKSUM: 80d9a174d49019dc7c51488f07c2d792de8f991d
182+
PODFILE CHECKSUM: a9915adfd885798e630904e5ae74f77f8555ccfe
183183

184184
COCOAPODS: 1.11.2

RELEASE-NOTES.txt

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

33
10.4
44
-----
5+
- [*] Help center: Added help center web page with FAQs for "Pick a WooCommerce Store" screen. [https://github.com/woocommerce/woocommerce-ios/pull/7641]
56
- [*] In-Person Payments: Fixed a bug where cancelling a card reader connection would temporarily prevent further connections [https://github.com/woocommerce/woocommerce-ios/pull/7689]
67
- [*] In-Person Payments: Improvements to the card reader connection flow UI [https://github.com/woocommerce/woocommerce-ios/pull/7687]
78

@@ -12,6 +13,7 @@
1213
- [*] In-Person Payments: Fixed an issue where the Pay in Person toggle could be out of sync with the setting on the website. [https://github.com/woocommerce/woocommerce-ios/pull/7656]
1314
- [*] In-Person Payments: Removed the need to sign in when purchasing a card reader [https://github.com/woocommerce/woocommerce-ios/pull/7670]
1415
- [*] In-Person Payments: Fixed a bug where canceling a reader connection could result in being unable to connect a reader in future [https://github.com/woocommerce/woocommerce-ios/pull/7678]
16+
- [*] In-Person Payments: Fixed a bug which prevented the Collect Payment button from being shown for Cash on Delivery orders [https://github.com/woocommerce/woocommerce-ios/pull/7694]
1517

1618
10.2
1719
-----

WooCommerce.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WooCommerce/Classes/Authentication/Epilogue/StorePickerViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ private extension StorePickerViewController {
289289
}
290290

291291
func presentHelp() {
292-
ServiceLocator.authenticationManager.presentSupport(from: self, sourceTag: .generalLogin)
292+
ServiceLocator.authenticationManager.presentSupport(from: self, screen: .storePicker)
293293
}
294294
}
295295

@@ -637,7 +637,6 @@ extension StorePickerViewController: UITableViewDataSource {
637637
hideActionButton()
638638
let cell = tableView.dequeueReusableCell(EmptyStoresTableViewCell.self, for: indexPath)
639639
let isRemoveAppleIDAccessButtonVisible = appleIDCredentialChecker.hasAppleUserID()
640-
&& featureFlagService.isFeatureFlagEnabled(.appleIDAccountDeletion)
641640
cell.updateRemoveAppleIDAccessButtonVisibility(isVisible: isRemoveAppleIDAccessButtonVisible)
642641
if isRemoveAppleIDAccessButtonVisible {
643642
cell.onCloseAccountButtonTapped = { [weak self] in

WooCommerce/Classes/Authentication/Keychain+Entries.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ extension Keychain {
1212
get { self[WooConstants.anonymousIDKey] }
1313
set { self[WooConstants.anonymousIDKey] = newValue }
1414
}
15+
16+
/// Auth token for the current selected store
17+
///
18+
var currentAuthToken: String? {
19+
get { self[WooConstants.authToken] }
20+
set { self[WooConstants.authToken] = newValue }
21+
}
1522
}

WooCommerce/Classes/Extensions/UserDefaults+Woo.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ extension UserDefaults {
1010
case defaultUsername
1111
case defaultSiteAddress
1212
case defaultStoreID
13+
case defaultStoreName
1314
case defaultAnonymousID
1415
case defaultRoles
1516
case deviceID
@@ -25,6 +26,12 @@ extension UserDefaults {
2526
}
2627
}
2728

29+
extension UserDefaults {
30+
/// User defaults instance ready to be shared between extensions of the same group.
31+
///
32+
static let group = UserDefaults(suiteName: WooConstants.sharedUserDefaultsSuiteName)
33+
}
34+
2835

2936
// MARK: - Convenience Methods
3037
//

0 commit comments

Comments
 (0)