Skip to content

Commit

Permalink
feat: upgrade ios native sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
peterc-dojo committed May 16, 2023
1 parent 289c229 commit a2e8f00
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ npm install @dojo-engineering/react-native-pay-sdk
Add the native dependencies to your `Podfile`

```ruby
pod 'dojo-ios-sdk', :git => '[email protected]:Dojo-Engineering/dojo-ios-sdk.git', :tag => '1.1.0'
pod 'dojo-ios-sdk-drop-in-ui', :git => '[email protected]:dojo-engineering/dojo-ios-sdk-drop-in-ui.git', :tag => '1.1.1'
pod 'dojo-ios-sdk', :git => '[email protected]:Dojo-Engineering/dojo-ios-sdk.git', :tag => '1.2.1'
pod 'dojo-ios-sdk-drop-in-ui', :git => '[email protected]:dojo-engineering/dojo-ios-sdk-drop-in-ui.git', :tag => '1.2.1'
```

### Android
Expand Down
4 changes: 2 additions & 2 deletions dojo-react-native-pay-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Pod::Spec.new do |s|
s.dependency "React-Core"

# Dojo iOS SDK Dependencies
s.dependency 'dojo-ios-sdk-drop-in-ui', '1.1.1'
s.dependency 'dojo-ios-sdk', '1.1.0'
s.dependency 'dojo-ios-sdk-drop-in-ui', '1.2.1'
s.dependency 'dojo-ios-sdk', '1.2.1'

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

pod 'dojo-ios-sdk', :git => '[email protected]:Dojo-Engineering/dojo-ios-sdk.git', :tag => '1.1.0'
pod 'dojo-ios-sdk-drop-in-ui', :git => '[email protected]:dojo-engineering/dojo-ios-sdk-drop-in-ui.git', :tag => '1.1.1'
pod 'dojo-ios-sdk', :git => '[email protected]:Dojo-Engineering/dojo-ios-sdk.git', :tag => '1.2.1'
pod 'dojo-ios-sdk-drop-in-ui', :git => '[email protected]:dojo-engineering/dojo-ios-sdk-drop-in-ui.git', :tag => '1.2.1'

platform :ios, min_ios_version_supported
prepare_react_native_project!
Expand Down
32 changes: 16 additions & 16 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PODS:
- boost (1.76.0)
- CocoaAsyncSocket (7.6.5)
- dojo-ios-sdk (1.1.0)
- dojo-ios-sdk-drop-in-ui (1.1.1):
- dojo-ios-sdk (= 1.1.0)
- dojo-react-native-pay-sdk (0.3.1):
- dojo-ios-sdk (= 1.1.0)
- dojo-ios-sdk-drop-in-ui (= 1.1.1)
- dojo-ios-sdk (1.2.1)
- dojo-ios-sdk-drop-in-ui (1.2.1):
- dojo-ios-sdk (= 1.2.1)
- dojo-react-native-pay-sdk (0.5.0):
- dojo-ios-sdk (= 1.2.1)
- dojo-ios-sdk-drop-in-ui (= 1.2.1)
- React-Core
- DoubleConversion (1.1.6)
- FBLazyVector (0.71.3)
Expand Down Expand Up @@ -427,8 +427,8 @@ PODS:

DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- "dojo-ios-sdk (from `[email protected]:Dojo-Engineering/dojo-ios-sdk.git`, tag `1.1.0`)"
- "dojo-ios-sdk-drop-in-ui (from `[email protected]:dojo-engineering/dojo-ios-sdk-drop-in-ui.git`, tag `1.1.1`)"
- "dojo-ios-sdk (from `[email protected]:Dojo-Engineering/dojo-ios-sdk.git`, tag `1.2.1`)"
- "dojo-ios-sdk-drop-in-ui (from `[email protected]:dojo-engineering/dojo-ios-sdk-drop-in-ui.git`, tag `1.2.1`)"
- dojo-react-native-pay-sdk (from `../..`)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
Expand Down Expand Up @@ -512,10 +512,10 @@ EXTERNAL SOURCES:
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
dojo-ios-sdk:
:git: "[email protected]:Dojo-Engineering/dojo-ios-sdk.git"
:tag: 1.1.0
:tag: 1.2.1
dojo-ios-sdk-drop-in-ui:
:git: "[email protected]:dojo-engineering/dojo-ios-sdk-drop-in-ui.git"
:tag: 1.1.1
:tag: 1.2.1
dojo-react-native-pay-sdk:
:path: "../.."
DoubleConversion:
Expand Down Expand Up @@ -588,17 +588,17 @@ EXTERNAL SOURCES:
CHECKOUT OPTIONS:
dojo-ios-sdk:
:git: "[email protected]:Dojo-Engineering/dojo-ios-sdk.git"
:tag: 1.1.0
:tag: 1.2.1
dojo-ios-sdk-drop-in-ui:
:git: "[email protected]:dojo-engineering/dojo-ios-sdk-drop-in-ui.git"
:tag: 1.1.1
:tag: 1.2.1

SPEC CHECKSUMS:
boost: 57d2868c099736d80fcd648bf211b4431e51a558
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
dojo-ios-sdk: 9b10ad6961b932b013147b5afa90d0804e1b8cb9
dojo-ios-sdk-drop-in-ui: 0fcde5050bc4fa2926a11f720c72e11777b956f1
dojo-react-native-pay-sdk: ec49e9b12ec718ada72b9479aa0dfef4d34d858f
dojo-ios-sdk: a7d4068ec2c09b510f32576c5fe7a81344852031
dojo-ios-sdk-drop-in-ui: 3aeb700befcc4973b1d55005c17fabbbee18a311
dojo-react-native-pay-sdk: 82c21972d55fe4f24c3f644f16683c6559aae1fc
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FBLazyVector: 60195509584153283780abdac5569feffb8f08cc
FBReactNativeSpec: 9c191fb58d06dc05ab5559a5505fc32139e9e4a2
Expand Down Expand Up @@ -647,6 +647,6 @@ SPEC CHECKSUMS:
Yoga: 5ed1699acbba8863755998a4245daa200ff3817b
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: 9d8a32a8166c3f9f7d4ca0a6f870f9349e87f4f0
PODFILE CHECKSUM: e05a98c9383f2ef1dfcb2724100a50fb773fa654

COCOAPODS: 1.12.0
1 change: 1 addition & 0 deletions ios/DojoReactNativePaySdk.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ - (dispatch_queue_t)methodQueue
customerSecret:customerSecret
applePayConfig:applePayConfig
themeSettings:theme
debugConfig:nil
completion:^(NSInteger result) {
NSLog(@"%ld", (long)result);
resolve(@(result));
Expand Down

0 comments on commit a2e8f00

Please sign in to comment.