Skip to content

Commit fa05395

Browse files
authored
Merge pull request matix-io#10 from rustforgg/master
Fixes the build error occurring due to missing SquarePointOfSaleSDK.h file during pod install.
2 parents 065857d + d4eedd4 commit fa05395

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ios/RNSquarePos.m

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
#import "RNSquarePos.h"
3-
#import <SquarePointOfSaleSDK/SquarePointOfSaleSDK.h>
3+
//Following have been added as the umbrella header file of SquarePointOfSaleSDK.h is no more shipped from upstream SquarePointOfSaleSDK
4+
#import <SquarePointOfSaleSDK/SCCMoney.h>
5+
#import <SquarePointOfSaleSDK/SCCAPIRequest.h>
6+
#import <SquarePointOfSaleSDK/SCCAPIConnection.h>
47
#import <Foundation/Foundation.h>
58

69
@implementation RNSquarePos
@@ -21,7 +24,7 @@ @implementation RNSquarePos
2124
NSError *error;
2225
NSURL *const callbackURL = [NSURL URLWithString:callbackUrl];
2326
SCCMoney *const amount = [SCCMoney moneyWithAmountCents:_amount currencyCode:currency error:NULL];
24-
[SCCAPIRequest setClientID:applicationId];
27+
[SCCAPIRequest setApplicationID:applicationId]; //clientID property is deprecated. Instead per documentation applicationID property needs to be set.
2528

2629
// notes
2730
NSString *notes = nil;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{
33
"name": "react-native-square-pos",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"description": "React Native wrapper around Square's Android / iOS POS SDKs",
66
"main": "index.js",
77
"scripts": {

0 commit comments

Comments
 (0)