capacitor-stripe-terminal 2.1.0-beta.1 → 2.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -55,6 +55,6 @@ dependencies {
|
|
|
55
55
|
testImplementation "junit:junit:$junitVersion"
|
|
56
56
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
57
57
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
58
|
-
implementation "com.stripe:stripeterminal:2.
|
|
58
|
+
implementation "com.stripe:stripeterminal:2.6.0"
|
|
59
59
|
implementation "com.google.code.gson:gson:2.8.8"
|
|
60
60
|
}
|
|
@@ -2,6 +2,7 @@ package io.event1.capacitorstripeterminal;
|
|
|
2
2
|
|
|
3
3
|
import android.Manifest;
|
|
4
4
|
import android.bluetooth.BluetoothAdapter;
|
|
5
|
+
import android.os.Build;
|
|
5
6
|
import androidx.annotation.NonNull;
|
|
6
7
|
import com.getcapacitor.JSArray;
|
|
7
8
|
import com.getcapacitor.JSObject;
|
|
@@ -101,7 +102,10 @@ public class StripeTerminal
|
|
|
101
102
|
public void initialize(PluginCall call) {
|
|
102
103
|
if (getPermissionState("location") != PermissionState.GRANTED) {
|
|
103
104
|
requestPermissionForAlias("location", call, "locationPermsCallback");
|
|
104
|
-
} else if (
|
|
105
|
+
} else if (
|
|
106
|
+
getPermissionState("bluetooth") != PermissionState.GRANTED &&
|
|
107
|
+
Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
|
|
108
|
+
) {
|
|
105
109
|
requestPermissionForAlias("bluetooth", call, "bluetoothPermsCallback");
|
|
106
110
|
} else {
|
|
107
111
|
_initialize(call);
|
|
@@ -110,7 +114,10 @@ public class StripeTerminal
|
|
|
110
114
|
|
|
111
115
|
@PermissionCallback
|
|
112
116
|
private void bluetoothPermsCallback(PluginCall call) {
|
|
113
|
-
if (
|
|
117
|
+
if (
|
|
118
|
+
getPermissionState("bluetooth") == PermissionState.GRANTED ||
|
|
119
|
+
Build.VERSION.SDK_INT < Build.VERSION_CODES.S
|
|
120
|
+
) {
|
|
114
121
|
_initialize(call);
|
|
115
122
|
} else {
|
|
116
123
|
call.reject("Bluetooth permissions are required.");
|
package/ios/Podfile
CHANGED
package/ios/Podfile.lock
CHANGED
|
@@ -2,12 +2,12 @@ PODS:
|
|
|
2
2
|
- Capacitor (3.3.2):
|
|
3
3
|
- CapacitorCordova
|
|
4
4
|
- CapacitorCordova (3.3.2)
|
|
5
|
-
- StripeTerminal (2.
|
|
5
|
+
- StripeTerminal (2.5.0)
|
|
6
6
|
|
|
7
7
|
DEPENDENCIES:
|
|
8
8
|
- "Capacitor (from `../node_modules/@capacitor/ios`)"
|
|
9
9
|
- "CapacitorCordova (from `../node_modules/@capacitor/ios`)"
|
|
10
|
-
- StripeTerminal (= 2.
|
|
10
|
+
- StripeTerminal (= 2.5.0)
|
|
11
11
|
|
|
12
12
|
SPEC REPOS:
|
|
13
13
|
trunk:
|
|
@@ -22,8 +22,8 @@ EXTERNAL SOURCES:
|
|
|
22
22
|
SPEC CHECKSUMS:
|
|
23
23
|
Capacitor: b8a7b81d33f3b7dcf934e2efc833feb6a1a8495f
|
|
24
24
|
CapacitorCordova: a971c79c2186c6291c839c855ef2c31d0ca26ede
|
|
25
|
-
StripeTerminal:
|
|
25
|
+
StripeTerminal: 2c7d261881b0039693a6ba30c00e1e6133e6d393
|
|
26
26
|
|
|
27
|
-
PODFILE CHECKSUM:
|
|
27
|
+
PODFILE CHECKSUM: 0881f6d846624c2f1db42572a8a3591d17bb782d
|
|
28
28
|
|
|
29
29
|
COCOAPODS: 1.10.2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-stripe-terminal",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.2",
|
|
4
4
|
"description": "Capacitor plugin for Stripe Terminal (credit card readers).",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"prettier": "^2.4.1",
|
|
28
28
|
"prettier-plugin-java": "^1.4.0",
|
|
29
29
|
"pretty-quick": "^3.1.1",
|
|
30
|
-
"semantic-release": "^
|
|
30
|
+
"semantic-release": "^19.0.2",
|
|
31
31
|
"typedoc": "^0.22.4",
|
|
32
32
|
"typescript": "^4.4.3"
|
|
33
33
|
},
|