Skip to content

Commit b8f9b1d

Browse files
authored
Merge branch 'trunk' into replace-clear-button-with-icon
2 parents d1ff575 + cc047c7 commit b8f9b1d

File tree

54 files changed

+2367
-614
lines changed

Some content is hidden

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

54 files changed

+2367
-614
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<!--
22
Contains editorialized release notes. Raw release notes should go into `RELEASE-NOTES.txt`.
33
-->
4+
## 22.7
5+
Say hello to smoother shipping and sales! 🎉 We’ve enhanced Shipping Labels with UPS extras and smarter forms, fixed price and display glitches, and made shipment management easier. Plus, Point of Sale now has its own tab for eligible stores, barcode scanning, and smoother product refresh for faster checkout.
6+
47
## 22.6
58
Shipping just got a major upgrade! Our revamped flow makes it easier than ever to create and manage shipping labels for stores using WooCommerce Shipping. We've also improved some icons and fixed a display issue with the order list's last updated time. This release includes some behind-the-scenes performance improvements too.
69

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ gem 'fastlane-plugin-sentry', '~> 1.0'
1515
# This comment avoids typing to switch to a development version for testing.
1616
#
1717
# gem 'fastlane-plugin-wpmreleasetoolkit', git: '[email protected]:wordpress-mobile/release-toolkit', branch: ''
18-
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.0'
18+
#
19+
# The '>= 13.3.1' aftre '~> 13.3' ensures that we resolve to any version compatible with 13.3 starting from 13.3.1
20+
# Using '~> 13.3.1' would constrain us to 13.3.2, 13.3.3, etc. without ever going up to 13.4
21+
# We need 13.3.1 because of a fix in screenshots generation we depend upon.
22+
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.3', '>= 13.3.1'
1923
gem 'rake', '~> 12.3'
2024
gem 'rubocop', '~> 1.65'
2125
gem 'rubocop-rake', '~> 0.6'

Gemfile.lock

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (7.2.2.1)
8+
activesupport (8.0.2)
99
base64
1010
benchmark (>= 0.3)
1111
bigdecimal
@@ -17,6 +17,7 @@ GEM
1717
minitest (>= 5.1)
1818
securerandom (>= 0.3)
1919
tzinfo (~> 2.0, >= 2.0.5)
20+
uri (>= 0.13.1)
2021
addressable (2.8.7)
2122
public_suffix (>= 2.0.2, < 7.0)
2223
artifactory (3.0.17)
@@ -40,8 +41,8 @@ GEM
4041
aws-eventstream (~> 1, >= 1.0.2)
4142
babosa (1.0.4)
4243
base64 (0.2.0)
43-
benchmark (0.4.0)
44-
bigdecimal (3.1.9)
44+
benchmark (0.4.1)
45+
bigdecimal (3.2.2)
4546
buildkit (1.6.1)
4647
sawyer (>= 0.6)
4748
chroma (0.2.0)
@@ -54,8 +55,8 @@ GEM
5455
colored2 (3.1.2)
5556
commander (4.6.0)
5657
highline (~> 2.0.0)
57-
concurrent-ruby (1.3.4)
58-
connection_pool (2.4.1)
58+
concurrent-ruby (1.3.5)
59+
connection_pool (2.5.3)
5960
cork (0.3.0)
6061
colored2 (~> 3.1)
6162
danger (9.5.1)
@@ -83,12 +84,12 @@ GEM
8384
danger
8485
rubocop (~> 1.0)
8586
declarative (0.0.20)
86-
diffy (3.4.3)
87+
diffy (3.4.4)
8788
digest-crc (0.6.5)
8889
rake (>= 12.0.0, < 14.0.0)
8990
domain_name (0.6.20240107)
9091
dotenv (2.8.1)
91-
drb (2.2.1)
92+
drb (2.2.3)
9293
emoji_regex (3.2.3)
9394
excon (0.112.0)
9495
faraday (1.10.4)
@@ -169,7 +170,7 @@ GEM
169170
google-apis-firebaseappdistribution_v1alpha (~> 0.2.0)
170171
fastlane-plugin-sentry (1.25.1)
171172
os (~> 1.1, >= 1.1.4)
172-
fastlane-plugin-wpmreleasetoolkit (13.0.0)
173+
fastlane-plugin-wpmreleasetoolkit (13.3.1)
173174
activesupport (>= 6.1.7.1)
174175
buildkit (~> 1.5)
175176
chroma (= 0.2.0)
@@ -236,7 +237,7 @@ GEM
236237
http-cookie (1.0.8)
237238
domain_name (~> 0.5)
238239
httpclient (2.8.3)
239-
i18n (1.14.6)
240+
i18n (1.14.7)
240241
concurrent-ruby (~> 1.0)
241242
java-properties (0.3.0)
242243
jmespath (1.6.2)
@@ -248,21 +249,21 @@ GEM
248249
kramdown-parser-gfm (1.1.0)
249250
kramdown (~> 2.0)
250251
language_server-protocol (3.17.0.3)
251-
logger (1.6.4)
252+
logger (1.7.0)
252253
mini_magick (4.13.2)
253254
mini_mime (1.1.5)
254-
mini_portile2 (2.8.8)
255-
minitest (5.25.4)
255+
mini_portile2 (2.8.9)
256+
minitest (5.25.5)
256257
multi_json (1.15.0)
257258
multipart-post (2.4.1)
258259
nanaimo (0.4.0)
259260
nap (1.1.0)
260261
naturally (2.2.1)
261262
nkf (0.2.0)
262-
nokogiri (1.18.3)
263+
nokogiri (1.18.8)
263264
mini_portile2 (~> 2.8.2)
264265
racc (~> 1.4)
265-
nokogiri (1.18.3-x86_64-darwin)
266+
nokogiri (1.18.8-x86_64-darwin)
266267
racc (~> 1.4)
267268
octokit (6.1.1)
268269
faraday (>= 1, < 3)
@@ -284,7 +285,7 @@ GEM
284285
racc (1.8.1)
285286
rainbow (3.1.1)
286287
rake (12.3.3)
287-
rake-compiler (1.2.9)
288+
rake-compiler (1.3.0)
288289
rake
289290
rchardet (1.8.0)
290291
regexp_parser (2.9.2)
@@ -339,6 +340,7 @@ GEM
339340
concurrent-ruby (~> 1.0)
340341
uber (0.1.0)
341342
unicode-display_width (2.6.0)
343+
uri (1.0.3)
342344
word_wrap (1.0.0)
343345
xcode-install (2.8.1)
344346
claide (>= 0.9.1)
@@ -367,7 +369,7 @@ DEPENDENCIES
367369
fastlane (~> 2.217)
368370
fastlane-plugin-firebase_app_distribution (~> 0.10)
369371
fastlane-plugin-sentry (~> 1.0)
370-
fastlane-plugin-wpmreleasetoolkit (~> 13.0)
372+
fastlane-plugin-wpmreleasetoolkit (~> 13.3, >= 13.3.1)
371373
rake (~> 12.3)
372374
rmagick (~> 4.1)
373375
rubocop (~> 1.65)

Modules/Sources/Experiments/DefaultFeatureFlagService.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
9393
return false
9494
case .pointOfSaleAsATabi1:
9595
return true
96+
case .pointOfSaleOrdersi1:
97+
return buildConfig == .localDeveloper || buildConfig == .alpha
9698
default:
9799
return true
98100
}

Modules/Sources/Experiments/FeatureFlag.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,8 @@ public enum FeatureFlag: Int {
195195
/// Enables displaying POS as a tab in the tab bar with the same eligibility as the previous entry point
196196
///
197197
case pointOfSaleAsATabi1
198+
199+
/// Enables displaying Point Of Sale details in order list and order details
200+
///
201+
case pointOfSaleOrdersi1
198202
}

Modules/Sources/Networking/Model/ShippingLabel/Packages/CarriersAndRates/ShippingLabelPackageSelected.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ extension ShippingLabelPackageSelected: Encodable {
4646
try container.encode(boxID.isEmpty ? "0" : boxID, forKey: .boxID)
4747
try container.encode(length, forKey: .length)
4848
try container.encode(width, forKey: .width)
49-
try container.encode(height, forKey: .height)
49+
50+
// workaround because 0 would cause an error for the API request
51+
try container.encode(height > 0 ? height : 0.25, forKey: .height)
52+
5053
try container.encode(weight, forKey: .weight)
5154
try container.encode(isLetter, forKey: .isLetter)
5255
try container.encodeIfPresent(hazmatCategory, forKey: .hazmatCategory)

Modules/Sources/Networking/Model/ShippingLabel/Packages/PredefinedPackage/WooShippingPredefinedPackage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public struct WooShippingPredefinedPackage: Equatable, GeneratedFakeable, Identi
3838
}
3939

4040
public func getLength() -> Double {
41-
let firstComponent = dimensions.components(separatedBy: " x ").first ?? ""
41+
let firstComponent = dimensions.components(separatedBy: " x ")[safe: 0] ?? ""
4242
return Double(firstComponent) ?? 0
4343
}
4444

@@ -48,7 +48,7 @@ public struct WooShippingPredefinedPackage: Equatable, GeneratedFakeable, Identi
4848
}
4949

5050
public func getHeight() -> Double {
51-
let lastComponent = dimensions.components(separatedBy: " x ").last ?? ""
51+
let lastComponent = dimensions.components(separatedBy: " x ")[safe: 2] ?? ""
5252
return Double(lastComponent) ?? 0
5353
}
5454
}

Modules/Sources/Storage/Model/MIGRATIONS.md

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

33
This file documents changes in the WCiOS Storage data model. Please explain any changes to the data model as well as any custom migrations.
44

5+
## Model 123 (Release 22.8.0.0)
6+
- @iamgabrielma 2025-06-30
7+
- Added `createdVia` attribute to `Order` entity.
8+
59
## Model 122 (Release 22.7.0.0)
610
- @itsmeichigo 2025-06-20
711
- Added `shipmentID` attribute to `ShippingLabel` entity.

Modules/Sources/Storage/Model/Order+CoreDataProperties.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ extension Order {
2020
@NSManaged public var billingPostcode: String?
2121
@NSManaged public var billingState: String?
2222
@NSManaged public var chargeID: String?
23+
@NSManaged public var createdVia: String?
2324
@NSManaged public var currency: String?
2425
@NSManaged public var customerID: Int64
2526
@NSManaged public var customerNote: String?

Modules/Sources/Storage/Resources/WooCommerce.xcdatamodeld/.xccurrentversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<plist version="1.0">
44
<dict>
55
<key>_XCCurrentVersionName</key>
6-
<string>Model 122.xcdatamodel</string>
6+
<string>Model 123.xcdatamodel</string>
77
</dict>
88
</plist>

0 commit comments

Comments
 (0)