react-native-mesmart 0.4.1 → 0.5.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.
|
@@ -14,18 +14,13 @@ class SunmiImpl(
|
|
|
14
14
|
private val reactContext: ReactApplicationContext
|
|
15
15
|
) {
|
|
16
16
|
private val payKernel = SunmiPayKernel.getInstance()
|
|
17
|
-
private
|
|
18
|
-
private
|
|
17
|
+
private var sunmiRfidHelper: SunmiRfidHelper = SunmiRfidHelper(payKernel)
|
|
18
|
+
private var sunmiPrintHelper: SunmiPrintHelper = SunmiPrintHelper(reactContext)
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
init {
|
|
21
21
|
payKernel.initPaySDK(reactContext, object : ConnectCallback {
|
|
22
|
-
override fun onConnectPaySDK() {
|
|
23
|
-
|
|
24
|
-
sunmiPrintHelper = SunmiPrintHelper(reactContext)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
override fun onDisconnectPaySDK() {
|
|
28
|
-
}
|
|
22
|
+
override fun onConnectPaySDK() {}
|
|
23
|
+
override fun onDisconnectPaySDK() {}
|
|
29
24
|
})
|
|
30
25
|
}
|
|
31
26
|
|