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.
@@ -10,5 +10,5 @@
10
10
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
11
11
  s.ios.deployment_target = '12.0'
12
12
  s.dependency 'Capacitor'
13
- s.dependency 'StripeTerminal', '2.4.0'
13
+ s.dependency 'StripeTerminal', '2.8.0'
14
14
  end
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
@@ -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.6.0"
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
@@ -5,7 +5,7 @@ def capacitor_pods
5
5
  use_frameworks!
6
6
  pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
7
7
  pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
8
- pod 'StripeTerminal', '2.5.0'
8
+ pod 'StripeTerminal', '2.8.0'
9
9
  end
10
10
 
11
11
  target 'Plugin' do
package/ios/Podfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PODS:
2
- - Capacitor (3.3.2):
2
+ - Capacitor (3.4.3):
3
3
  - CapacitorCordova
4
- - CapacitorCordova (3.3.2)
5
- - StripeTerminal (2.5.0)
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.5.0)
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: b8a7b81d33f3b7dcf934e2efc833feb6a1a8495f
24
- CapacitorCordova: a971c79c2186c6291c839c855ef2c31d0ca26ede
25
- StripeTerminal: 2c7d261881b0039693a6ba30c00e1e6133e6d393
23
+ Capacitor: a8d7fa9fb3b50adc610247bb8d0310e83424f746
24
+ CapacitorCordova: 687b7d3ef4872c03aa2a2eb052d23008be9ad76b
25
+ StripeTerminal: 6a941bb9feec23d9933eaf330fc398cdce95e252
26
26
 
27
- PODFILE CHECKSUM: 0881f6d846624c2f1db42572a8a3591d17bb782d
27
+ PODFILE CHECKSUM: 0642bdce9608c719a72e34cdb16f710918a165fb
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",
3
+ "version": "2.1.0-beta.4",
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",