@capacitor-community/stripe-terminal 7.1.2 → 7.2.0-0
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/CapacitorCommunityStripeTerminal.podspec +1 -1
- package/Package.swift +1 -1
- package/android/build.gradle +3 -3
- package/android/src/main/java/com/getcapacitor/community/stripe/terminal/StripeTerminal.kt +5 -0
- package/ios/Sources/StripeTerminalPlugin/StripeTerminal.swift +3 -0
- package/ios/Sources/StripeTerminalPlugin/TerminalEvents.swift +1 -0
- package/package.json +1 -1
|
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
14
|
s.ios.deployment_target = '14.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
|
-
s.dependency 'StripeTerminal', '~> 4.
|
|
16
|
+
s.dependency 'StripeTerminal', '~> 4.5.0'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
end
|
package/Package.swift
CHANGED
|
@@ -11,7 +11,7 @@ let package = Package(
|
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
13
|
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
|
|
14
|
-
.package(url: "https://github.com/stripe/stripe-terminal-ios.git", exact: "4.
|
|
14
|
+
.package(url: "https://github.com/stripe/stripe-terminal-ios.git", exact: "4.5.0")
|
|
15
15
|
],
|
|
16
16
|
targets: [
|
|
17
17
|
.target(
|
package/android/build.gradle
CHANGED
|
@@ -6,9 +6,9 @@ ext {
|
|
|
6
6
|
|
|
7
7
|
playServicesWalletVersion = project.hasProperty('playServicesWalletVersion') ? rootProject.ext.playServicesWalletVersion : '19.2.+'
|
|
8
8
|
volleyVersion = project.hasProperty('volleyVersion') ? rootProject.ext.volleyVersion : '1.2.1'
|
|
9
|
-
stripeterminalTapToPayVersion = project.hasProperty('stripeterminalTapToPayVersion') ? rootProject.ext.stripeterminalTapToPayVersion : '4.
|
|
10
|
-
stripeterminalCoreVersion = project.hasProperty('stripeterminalCoreVersion') ? rootProject.ext.stripeterminalCoreVersion : '4.
|
|
11
|
-
stripeterminalHandoffClientVersion = project.hasProperty('stripeterminalHandoffClientVersion') ? rootProject.ext.stripeterminalHandoffClientVersion : '4.
|
|
9
|
+
stripeterminalTapToPayVersion = project.hasProperty('stripeterminalTapToPayVersion') ? rootProject.ext.stripeterminalTapToPayVersion : '4.5.0'
|
|
10
|
+
stripeterminalCoreVersion = project.hasProperty('stripeterminalCoreVersion') ? rootProject.ext.stripeterminalCoreVersion : '4.5.0'
|
|
11
|
+
stripeterminalHandoffClientVersion = project.hasProperty('stripeterminalHandoffClientVersion') ? rootProject.ext.stripeterminalHandoffClientVersion : '4.5.0'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
buildscript {
|
|
@@ -59,6 +59,8 @@ public class StripeTerminal: NSObject, DiscoveryDelegate, TerminalDelegate, Read
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
self.discoverCall = call
|
|
62
|
+
self.plugin?.notifyListeners(TerminalEvents.DiscoveringReaders.rawValue, data: [:])
|
|
63
|
+
|
|
62
64
|
self.discoverCancelable = Terminal.shared.discoverReaders(config, delegate: self) { error in
|
|
63
65
|
if let error = error {
|
|
64
66
|
print("discoverReaders failed: \(error)")
|
|
@@ -377,6 +379,7 @@ public class StripeTerminal: NSObject, DiscoveryDelegate, TerminalDelegate, Read
|
|
|
377
379
|
if let error = error {
|
|
378
380
|
call.reject(error.localizedDescription)
|
|
379
381
|
} else {
|
|
382
|
+
self.plugin?.notifyListeners(TerminalEvents.CancelDiscoveredReaders.rawValue, data: [:])
|
|
380
383
|
call.resolve()
|
|
381
384
|
}
|
|
382
385
|
}
|
|
@@ -3,6 +3,7 @@ public enum TerminalEvents: String {
|
|
|
3
3
|
case DiscoveringReaders = "terminalDiscoveringReaders"
|
|
4
4
|
case DiscoveredReaders = "terminalDiscoveredReaders"
|
|
5
5
|
case ConnectedReader = "terminalConnectedReader"
|
|
6
|
+
case CancelDiscoveredReaders = "terminalCancelDiscoveredReaders"
|
|
6
7
|
case DisconnectedReader = "terminalDisconnectedReader"
|
|
7
8
|
case ConnectionStatusChange = "terminalConnectionStatusChange"
|
|
8
9
|
case UnexpectedReaderDisconnect = "terminalUnexpectedReaderDisconnect"
|