capacitor-stripe-terminal 2.1.0-beta.3 → 2.1.0-beta.4
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/README.md
CHANGED
|
@@ -172,6 +172,20 @@ inputSubscription.unsubscribe()
|
|
|
172
172
|
|
|
173
173
|
See the full API docs [here](https://oss.eventone.page/capacitor-stripe-terminal).
|
|
174
174
|
|
|
175
|
+
## Sponsors
|
|
176
|
+
|
|
177
|
+
<p>
|
|
178
|
+
<a href="https://event1.io/?utm_medium=opensource&utm_source=capacitor-stripe-terminal">
|
|
179
|
+
<img src="https://e1-com.eventone.page/brand/wordmark/wm.svg" width="200px">
|
|
180
|
+
</a>
|
|
181
|
+
</p>
|
|
182
|
+
|
|
183
|
+
<p>
|
|
184
|
+
<a href="https://tableneeds.com/?utm_medium=opensource&utm_source=capacitor-stripe-terminal">
|
|
185
|
+
<img src="https://tableneeds.com/wp-content/uploads/2021/08/tn-new.svg" width="200px">
|
|
186
|
+
</a>
|
|
187
|
+
</p>
|
|
188
|
+
|
|
175
189
|
## Acknowledgements
|
|
176
190
|
|
|
177
191
|
- Thanks [Stripe](https://stripe.com/terminal) for creating such an amazing product
|
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.9.0"
|
|
59
59
|
implementation "com.google.code.gson:gson:2.8.8"
|
|
60
60
|
}
|
|
@@ -24,6 +24,7 @@ import com.stripe.stripeterminal.external.callable.LocationListCallback;
|
|
|
24
24
|
import com.stripe.stripeterminal.external.callable.PaymentIntentCallback;
|
|
25
25
|
import com.stripe.stripeterminal.external.callable.ReaderCallback;
|
|
26
26
|
import com.stripe.stripeterminal.external.callable.TerminalListener;
|
|
27
|
+
import com.stripe.stripeterminal.external.models.BatteryStatus;
|
|
27
28
|
import com.stripe.stripeterminal.external.models.Cart;
|
|
28
29
|
import com.stripe.stripeterminal.external.models.CartLineItem;
|
|
29
30
|
import com.stripe.stripeterminal.external.models.ConnectionConfiguration.BluetoothConnectionConfiguration;
|
|
@@ -921,6 +922,20 @@ public class StripeTerminal
|
|
|
921
922
|
notifyListeners("didReportAvailableUpdate", ret);
|
|
922
923
|
}
|
|
923
924
|
|
|
925
|
+
@Override
|
|
926
|
+
public void onBatteryLevelUpdate(
|
|
927
|
+
float batteryLevel,
|
|
928
|
+
@NonNull BatteryStatus batteryStatus,
|
|
929
|
+
boolean isCharging
|
|
930
|
+
) {
|
|
931
|
+
JSObject ret = new JSObject();
|
|
932
|
+
ret.put("batteryLevel", batteryLevel);
|
|
933
|
+
ret.put("batteryStatus", batteryStatus.ordinal());
|
|
934
|
+
ret.put("isCharging", isCharging);
|
|
935
|
+
|
|
936
|
+
notifyListeners("didReportBatteryLevel", ret);
|
|
937
|
+
}
|
|
938
|
+
|
|
924
939
|
@Override
|
|
925
940
|
public void onStartInstallingUpdate(
|
|
926
941
|
@NonNull ReaderSoftwareUpdate readerSoftwareUpdate,
|
package/ios/Podfile
CHANGED
package/ios/Podfile.lock
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- Capacitor (3.3
|
|
2
|
+
- Capacitor (3.4.3):
|
|
3
3
|
- CapacitorCordova
|
|
4
|
-
- CapacitorCordova (3.3
|
|
5
|
-
- StripeTerminal (2.
|
|
4
|
+
- CapacitorCordova (3.4.3)
|
|
5
|
+
- StripeTerminal (2.8.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.8.0)
|
|
11
11
|
|
|
12
12
|
SPEC REPOS:
|
|
13
13
|
trunk:
|
|
@@ -20,10 +20,10 @@ EXTERNAL SOURCES:
|
|
|
20
20
|
:path: "../node_modules/@capacitor/ios"
|
|
21
21
|
|
|
22
22
|
SPEC CHECKSUMS:
|
|
23
|
-
Capacitor:
|
|
24
|
-
CapacitorCordova:
|
|
25
|
-
StripeTerminal:
|
|
23
|
+
Capacitor: a8d7fa9fb3b50adc610247bb8d0310e83424f746
|
|
24
|
+
CapacitorCordova: 687b7d3ef4872c03aa2a2eb052d23008be9ad76b
|
|
25
|
+
StripeTerminal: 6a941bb9feec23d9933eaf330fc398cdce95e252
|
|
26
26
|
|
|
27
|
-
PODFILE CHECKSUM:
|
|
27
|
+
PODFILE CHECKSUM: 0642bdce9608c719a72e34cdb16f710918a165fb
|
|
28
28
|
|
|
29
29
|
COCOAPODS: 1.10.2
|
package/package.json
CHANGED