Skip to content

Commit 8e90601

Browse files
authored
Merge branch 'trunk' into issue/6031-display_selected_variation_attributes
2 parents 5c2c923 + 4050960 commit 8e90601

File tree

52 files changed

+1653
-178
lines changed

Some content is hidden

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

52 files changed

+1653
-178
lines changed

.buildkite/commands/run-ui-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ install_cocoapods
2727
echo "--- 🧪 Testing"
2828
xcrun simctl list >> /dev/null
2929
rake mocks &
30-
bundle exec fastlane test_without_building name:"$TEST_NAME" try_count:3 device:"$DEVICE" ios_version:"$IOS_VERSION"
30+
bundle exec fastlane test_without_building name:"$TEST_NAME" device:"$DEVICE" ios_version:"$IOS_VERSION"

.buildkite/commands/run-unit-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ echo "--- :rubygems: Setting up Gems"
1212
install_gems
1313

1414
echo "--- 🧪 Testing"
15-
bundle exec fastlane test_without_building name:UnitTests try_count:3
15+
bundle exec fastlane test_without_building name:UnitTests

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
command: bundle --path vendor/bundle
9999
- run:
100100
name: Run Unit Tests
101-
command: bundle exec fastlane test_without_building name:UnitTests try_count:3 device:'<< parameters.device >>' ios-version:'<< parameters.ios-version >>'
101+
command: bundle exec fastlane test_without_building name:UnitTests device:'<< parameters.device >>' ios-version:'<< parameters.ios-version >>'
102102
- ios/save-xcodebuild-artifacts:
103103
result-bundle-path: build/results
104104
UI Tests:

Gemfile.lock

Lines changed: 25 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ GEM
1616
artifactory (3.0.15)
1717
atomos (0.1.3)
1818
aws-eventstream (1.2.0)
19-
aws-partitions (1.541.0)
20-
aws-sdk-core (3.124.0)
19+
aws-partitions (1.553.0)
20+
aws-sdk-core (3.126.0)
2121
aws-eventstream (~> 1, >= 1.0.2)
2222
aws-partitions (~> 1, >= 1.525.0)
2323
aws-sigv4 (~> 1.1)
2424
jmespath (~> 1.0)
25-
aws-sdk-kms (1.52.0)
26-
aws-sdk-core (~> 3, >= 3.122.0)
25+
aws-sdk-kms (1.54.0)
26+
aws-sdk-core (~> 3, >= 3.126.0)
2727
aws-sigv4 (~> 1.1)
28-
aws-sdk-s3 (1.109.0)
29-
aws-sdk-core (~> 3, >= 3.122.0)
28+
aws-sdk-s3 (1.112.0)
29+
aws-sdk-core (~> 3, >= 3.126.0)
3030
aws-sdk-kms (~> 1)
3131
aws-sigv4 (~> 1.4)
3232
aws-sigv4 (1.4.0)
@@ -77,7 +77,6 @@ GEM
7777
cocoapods-try (1.2.0)
7878
colored (1.2)
7979
colored2 (3.1.2)
80-
colorize (0.8.1)
8180
commander (4.6.0)
8281
highline (~> 2.0.0)
8382
concurrent-ruby (1.1.9)
@@ -92,17 +91,18 @@ GEM
9291
escape (0.0.4)
9392
ethon (0.15.0)
9493
ffi (>= 1.15.0)
95-
excon (0.89.0)
96-
faraday (1.8.0)
94+
excon (0.91.0)
95+
faraday (1.9.3)
9796
faraday-em_http (~> 1.0)
9897
faraday-em_synchrony (~> 1.0)
9998
faraday-excon (~> 1.1)
100-
faraday-httpclient (~> 1.0.1)
99+
faraday-httpclient (~> 1.0)
100+
faraday-multipart (~> 1.0)
101101
faraday-net_http (~> 1.0)
102-
faraday-net_http_persistent (~> 1.1)
102+
faraday-net_http_persistent (~> 1.0)
103103
faraday-patron (~> 1.0)
104104
faraday-rack (~> 1.0)
105-
multipart-post (>= 1.2, < 3)
105+
faraday-retry (~> 1.0)
106106
ruby2_keywords (>= 0.0.4)
107107
faraday-cookie_jar (0.0.7)
108108
faraday (>= 0.8.0)
@@ -111,14 +111,17 @@ GEM
111111
faraday-em_synchrony (1.0.0)
112112
faraday-excon (1.1.0)
113113
faraday-httpclient (1.0.1)
114+
faraday-multipart (1.0.3)
115+
multipart-post (>= 1.2, < 3)
114116
faraday-net_http (1.0.1)
115117
faraday-net_http_persistent (1.2.0)
116118
faraday-patron (1.0.0)
117119
faraday-rack (1.0.0)
120+
faraday-retry (1.0.3)
118121
faraday_middleware (1.2.0)
119122
faraday (~> 1.0)
120-
fastimage (2.2.5)
121-
fastlane (2.199.0)
123+
fastimage (2.2.6)
124+
fastlane (2.204.2)
122125
CFPropertyList (>= 2.3, < 4.0.0)
123126
addressable (>= 2.8, < 3.0.0)
124127
artifactory (~> 3.0)
@@ -158,16 +161,7 @@ GEM
158161
xcpretty (~> 0.3.0)
159162
xcpretty-travis-formatter (>= 0.0.3)
160163
fastlane-plugin-appcenter (1.11.1)
161-
fastlane-plugin-sentry (1.11.0)
162-
fastlane-plugin-test_center (3.15.3)
163-
colorize
164-
json
165-
plist
166-
trainer
167-
xcodeproj
168-
xctest_list (>= 1.2.1)
169-
fastlane-plugin-trainer (0.4.1)
170-
trainer (>= 0.7.0)
164+
fastlane-plugin-sentry (1.11.1)
171165
fastlane-plugin-wpmreleasetoolkit (2.3.0)
172166
activesupport (~> 5)
173167
bigdecimal (~> 1.4)
@@ -187,9 +181,9 @@ GEM
187181
gh_inspector (1.1.3)
188182
git (1.9.1)
189183
rchardet (~> 1.8)
190-
google-apis-androidpublisher_v3 (0.14.0)
184+
google-apis-androidpublisher_v3 (0.16.0)
191185
google-apis-core (>= 0.4, < 2.a)
192-
google-apis-core (0.4.1)
186+
google-apis-core (0.4.2)
193187
addressable (~> 2.5, >= 2.5.1)
194188
googleauth (>= 0.16.2, < 2.a)
195189
httpclient (>= 2.8.1, < 3.a)
@@ -198,19 +192,19 @@ GEM
198192
retriable (>= 2.0, < 4.a)
199193
rexml
200194
webrick
201-
google-apis-iamcredentials_v1 (0.9.0)
195+
google-apis-iamcredentials_v1 (0.10.0)
202196
google-apis-core (>= 0.4, < 2.a)
203-
google-apis-playcustomapp_v1 (0.6.0)
197+
google-apis-playcustomapp_v1 (0.7.0)
204198
google-apis-core (>= 0.4, < 2.a)
205-
google-apis-storage_v1 (0.10.0)
199+
google-apis-storage_v1 (0.11.0)
206200
google-apis-core (>= 0.4, < 2.a)
207201
google-cloud-core (1.6.0)
208202
google-cloud-env (~> 1.0)
209203
google-cloud-errors (~> 1.0)
210204
google-cloud-env (1.5.0)
211205
faraday (>= 0.17.3, < 2.0)
212206
google-cloud-errors (1.2.0)
213-
google-cloud-storage (1.35.0)
207+
google-cloud-storage (1.36.0)
214208
addressable (~> 2.8)
215209
digest-crc (~> 0.4)
216210
google-apis-iamcredentials_v1 (~> 0.1)
@@ -231,7 +225,7 @@ GEM
231225
httpclient (2.8.3)
232226
i18n (1.8.11)
233227
concurrent-ruby (~> 1.0)
234-
jmespath (1.4.0)
228+
jmespath (1.5.0)
235229
json (2.6.1)
236230
jsonlint (0.3.0)
237231
oj (~> 3)
@@ -301,9 +295,6 @@ GEM
301295
unicode-display_width (~> 1.1, >= 1.1.1)
302296
thread_safe (0.3.6)
303297
trailblazer-option (0.1.2)
304-
trainer (0.9.1)
305-
fastlane (>= 2.25.0)
306-
plist (>= 3.1.0, < 4.0.0)
307298
tty-cursor (0.7.1)
308299
tty-screen (0.8.1)
309300
tty-spinner (0.9.3)
@@ -333,7 +324,6 @@ GEM
333324
rouge (~> 2.0.7)
334325
xcpretty-travis-formatter (1.0.1)
335326
xcpretty (~> 0.2, >= 0.0.7)
336-
xctest_list (1.2.1)
337327

338328
PLATFORMS
339329
ruby
@@ -348,8 +338,6 @@ DEPENDENCIES
348338
fastlane (~> 2)
349339
fastlane-plugin-appcenter (~> 1.6)
350340
fastlane-plugin-sentry (~> 1.0)
351-
fastlane-plugin-test_center (~> 3.0)
352-
fastlane-plugin-trainer (~> 0.4.1)
353341
fastlane-plugin-wpmreleasetoolkit (~> 2.0)
354342
rake (~> 12.3)
355343
rmagick (~> 3.2.0)

Hardware/Hardware/CardReader/CardReaderType.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ public enum CardReaderType {
55
case chipper
66
/// Stripe M2
77
case stripeM2
8+
/// BBPOS WisePad 3
9+
case wisepad3
810
/// Other
911
case other
1012
}
@@ -22,6 +24,8 @@ extension CardReaderType {
2224
return "CHIPPER_2X"
2325
case .stripeM2:
2426
return "STRIPE_M2"
27+
case .wisepad3:
28+
return "WISEPAD_3"
2529
default:
2630
return "UNKNOWN"
2731
}

Hardware/Hardware/CardReader/StripeCardReader/CardReaderType+Stripe.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ extension CardReaderType {
1111
return .chipper
1212
case .stripeM2:
1313
return .stripeM2
14+
case .wisePad3:
15+
return .wisepad3
1416
default:
1517
return .other
1618
}

Hardware/HardwareTests/CardReaderTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ final class CardReaderTests: XCTestCase {
5959
XCTAssertEqual(cardReader.readerType, .stripeM2)
6060
}
6161

62+
func test_card_reader_maps_reader_type_for_wisepad3() {
63+
let mockReader = MockStripeCardReader.wisepad3()
64+
let cardReader = CardReader(reader: mockReader)
65+
66+
XCTAssertEqual(cardReader.readerType, .wisepad3)
67+
}
68+
6269
func test_card_reader_maps_reader_type_for_verifone() {
6370
let mockReader = MockStripeCardReader.verifoneP400()
6471
let cardReader = CardReader(reader: mockReader)

Hardware/HardwareTests/Mocks/MockStripeCardReader.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,15 @@ extension MockStripeCardReader {
5353
batteryLevel: NSNumber(floatLiteral: 0.5),
5454
locationId: "st_simulated")
5555
}
56+
57+
static func wisepad3() -> Self {
58+
MockStripeCardReader(serialNumber: "W3E-SIMULATOR-1",
59+
stripeId: "SIMULATOR",
60+
label: "Simulated WisePad 3",
61+
status: .online,
62+
deviceSoftwareVersion: "0.0.0.1",
63+
deviceType: .wisePad3,
64+
batteryLevel: NSNumber(floatLiteral: 0.5),
65+
locationId: "st_simulated")
66+
}
5667
}

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
8.6
44
-----
55
- [*] Orders: In the experimental Order Creation feature, product variations added to a new order now show a list of their attributes. [https://github.com/woocommerce/woocommerce-ios/pull/6131]
6+
- [*] Enlarged the tap area for the action button on the notice view. [https://github.com/woocommerce/woocommerce-ios/pull/6146]
67

78
8.5
89
-----

Storage/Storage/Model/Copiable/Models+Copiable.generated.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ extension GeneralAppSettings {
1313
isStripeInPersonPaymentsSwitchEnabled: CopiableProp<Bool> = .copy,
1414
isCanadaInPersonPaymentsSwitchEnabled: CopiableProp<Bool> = .copy,
1515
isProductSKUInputScannerSwitchEnabled: CopiableProp<Bool> = .copy,
16+
isCouponManagementSwitchEnabled: CopiableProp<Bool> = .copy,
1617
knownCardReaders: CopiableProp<[String]> = .copy,
1718
lastEligibilityErrorInfo: NullableCopiableProp<EligibilityErrorInfo> = .copy,
1819
lastJetpackBenefitsBannerDismissedTime: NullableCopiableProp<Date> = .copy
@@ -24,6 +25,7 @@ extension GeneralAppSettings {
2425
let isStripeInPersonPaymentsSwitchEnabled = isStripeInPersonPaymentsSwitchEnabled ?? self.isStripeInPersonPaymentsSwitchEnabled
2526
let isCanadaInPersonPaymentsSwitchEnabled = isCanadaInPersonPaymentsSwitchEnabled ?? self.isCanadaInPersonPaymentsSwitchEnabled
2627
let isProductSKUInputScannerSwitchEnabled = isProductSKUInputScannerSwitchEnabled ?? self.isProductSKUInputScannerSwitchEnabled
28+
let isCouponManagementSwitchEnabled = isCouponManagementSwitchEnabled ?? self.isCouponManagementSwitchEnabled
2729
let knownCardReaders = knownCardReaders ?? self.knownCardReaders
2830
let lastEligibilityErrorInfo = lastEligibilityErrorInfo ?? self.lastEligibilityErrorInfo
2931
let lastJetpackBenefitsBannerDismissedTime = lastJetpackBenefitsBannerDismissedTime ?? self.lastJetpackBenefitsBannerDismissedTime
@@ -36,6 +38,7 @@ extension GeneralAppSettings {
3638
isStripeInPersonPaymentsSwitchEnabled: isStripeInPersonPaymentsSwitchEnabled,
3739
isCanadaInPersonPaymentsSwitchEnabled: isCanadaInPersonPaymentsSwitchEnabled,
3840
isProductSKUInputScannerSwitchEnabled: isProductSKUInputScannerSwitchEnabled,
41+
isCouponManagementSwitchEnabled: isCouponManagementSwitchEnabled,
3942
knownCardReaders: knownCardReaders,
4043
lastEligibilityErrorInfo: lastEligibilityErrorInfo,
4144
lastJetpackBenefitsBannerDismissedTime: lastJetpackBenefitsBannerDismissedTime

0 commit comments

Comments
 (0)