Skip to content

Commit 17fb077

Browse files
authored
Upgrade iOS (#41)
* Update iOS to 0.8.0 * Use checkoutURL from response * Upgrade macos CI container to 13
1 parent 2439a95 commit 17fb077

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
7575
test-ios:
7676
name: Run iOS Tests
77-
runs-on: macos-latest
77+
runs-on: macos-13
7878
steps:
7979
- name: Checkout
8080
uses: actions/checkout@v3

modules/react-native-shopify-checkout-kit/react-native-shopify-checkout-kit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
2020
s.source_files = "ios/*.{h,m,mm,swift}"
2121

2222
s.dependency "React-Core"
23-
s.dependency "ShopifyCheckoutKit", "~> 0.7.0"
23+
s.dependency "ShopifyCheckoutKit", "~> 0.8.0"
2424

2525
if fabric_enabled
2626
install_modules_dependencies(s)

sample/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require Pod::Executable.execute_command('node', ['-p',
55
{paths: [process.argv[1]]},
66
)', __dir__]).strip
77

8-
platform :ios, '13'
8+
platform :ios, '13.0'
99

1010
prepare_react_native_project!
1111

sample/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ PODS:
319319
- React-Core
320320
- react-native-shopify-checkout-kit (0.1.0):
321321
- React-Core
322-
- ShopifyCheckoutKit (~> 0.7.0)
322+
- ShopifyCheckoutKit (~> 0.8.0)
323323
- React-NativeModulesApple (0.72.7):
324324
- hermes-engine
325325
- React-callinvoker
@@ -467,7 +467,7 @@ PODS:
467467
- RNVectorIcons (10.0.2):
468468
- RCT-Folly (= 2021.07.22.00)
469469
- React-Core
470-
- ShopifyCheckoutKit (0.7.0)
470+
- ShopifyCheckoutKit (0.8.0)
471471
- SocketRocket (0.6.1)
472472
- SwiftLint (0.54.0)
473473
- Yoga (1.14.0)
@@ -648,7 +648,7 @@ SPEC CHECKSUMS:
648648
React-jsinspector: 8baadae51f01d867c3921213a25ab78ab4fbcd91
649649
React-logger: 8edc785c47c8686c7962199a307015e2ce9a0e4f
650650
react-native-safe-area-context: 2cd91d532de12acdb0a9cbc8d43ac72a8e4c897c
651-
react-native-shopify-checkout-kit: b3afc2a24011d6e7f7e68fa1a9bf52afcf9b0cf7
651+
react-native-shopify-checkout-kit: 1be7cb61bb6858c1d757d5f1360a2f914e327d3c
652652
React-NativeModulesApple: b6868ee904013a7923128892ee4a032498a1024a
653653
React-perflogger: 31ea61077185eb1428baf60c0db6e2886f141a5a
654654
React-RCTActionSheet: 392090a3abc8992eb269ef0eaa561750588fc39d
@@ -670,11 +670,11 @@ SPEC CHECKSUMS:
670670
RNReanimated: b3fe5092e7c7da790180e28c48f31e6b2bd3bfec
671671
RNScreens: 3c2d122f5e08c192e254c510b212306da97d2581
672672
RNVectorIcons: 23b6e11af4aaf104d169b1b0afa7e5cf96c676ce
673-
ShopifyCheckoutKit: 6451baa4f635ad4cefed1a6b72d0698b62fed52a
673+
ShopifyCheckoutKit: bc3965f57c8efb4436c38b919be144faca71d508
674674
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
675675
SwiftLint: c1de071d9d08c8aba837545f6254315bc900e211
676676
Yoga: 4c3aa327e4a6a23eeacd71f61c81df1bcdf677d5
677677

678-
PODFILE CHECKSUM: 0e82d5cccf7ec17c1a1b27c8005c71326de66766
678+
PODFILE CHECKSUM: 2fac0a2970da51a4ec464974ea24d63658e85748
679679

680680
COCOAPODS: 1.14.3

sample/src/context/Cart.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ export const CartProvider: React.FC<PropsWithChildren> = ({children}) => {
130130
setCheckoutURL(data.cartLinesAdd.cart.checkoutUrl);
131131
setTotalQuantity(data.cartLinesAdd.cart.totalQuantity);
132132

133-
if (checkoutURL) {
134-
ShopifyCheckoutKit.preload(checkoutURL);
133+
if (data.cartLinesAdd.cart.checkoutUrl) {
134+
ShopifyCheckoutKit.preload(data.cartLinesAdd.cart.checkoutUrl);
135135
}
136136

137137
if (id) {
@@ -147,7 +147,6 @@ export const CartProvider: React.FC<PropsWithChildren> = ({children}) => {
147147
addLineItems,
148148
setCheckoutURL,
149149
setTotalQuantity,
150-
checkoutURL,
151150
createCart,
152151
setCartId,
153152
ShopifyCheckoutKit,

0 commit comments

Comments
 (0)