Skip to content

Commit 4fbfa1e

Browse files
committed
1 parent fa05395 commit 4fbfa1e

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

RNSquarePos.podspec

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

22
Pod::Spec.new do |s|
33
s.name = "RNSquarePos"
4-
s.version = "1.0.13"
4+
s.version = "1.1.0"
55
s.summary = "RNSquarePos"
66
s.description = <<-DESC
77
RNSquarePos
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.license = "MIT"
1111
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
1212
s.author = { "author" => "[email protected]" }
13-
s.platform = :ios, "7.0"
13+
s.platform = :ios, "12.0"
1414
s.source = { :git => "https://github.com/matix-io/react-native-square-pos.git", :tag => "master" }
1515
s.source_files = "ios/**/*.{h,m}"
1616
s.requires_arc = true

android/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ buildscript {
1212
apply plugin: 'com.android.library'
1313

1414
android {
15-
compileSdkVersion 28
15+
compileSdkVersion 30
1616
buildToolsVersion "28.0.3"
1717

1818
defaultConfig {
1919
minSdkVersion 16
20-
targetSdkVersion 22
20+
targetSdkVersion 30
2121
versionCode 1
2222
versionName "1.0"
2323
}
@@ -31,7 +31,7 @@ repositories {
3131
}
3232

3333
dependencies {
34-
compile 'com.facebook.react:react-native:+'
35-
compile 'com.squareup.sdk:point-of-sale-sdk:2.+'
34+
implementation 'com.facebook.react:react-native:+'
35+
implementation 'com.squareup.sdk:point-of-sale-sdk:2.+'
3636
}
37-
37+

android/src/main/AndroidManifest.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="io.matix">
4-
3+
package="io.matix">
4+
<queries>
5+
<package android:name="com.squareup" />
6+
</queries>
57
</manifest>
68

ios/RNSquarePos.m

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ @implementation RNSquarePos
4646
currType = SCCAPIRequestTenderTypeCash;
4747
} else if ([tenderType isEqualToString:@"CARD"]) {
4848
currType = SCCAPIRequestTenderTypeCard;
49+
} else if ([tenderType isEqualToString:@"GIFT_CARD"]) {
50+
currType = SCCAPIRequestTenderTypeSquareGiftCard;
4951
} else if ([tenderType isEqualToString:@"CARD_ON_FILE"]) {
5052
currType = SCCAPIRequestTenderTypeCardOnFile;
5153
} else if ([tenderType isEqualToString:@"OTHER"]) {

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.2",
4+
"version": "1.1.3",
55
"description": "React Native wrapper around Square's Android / iOS POS SDKs",
66
"main": "index.js",
77
"scripts": {

0 commit comments

Comments
 (0)