@connexup/react-native-square-mobile-payment-sdk 0.1.2 → 0.1.3
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.
|
@@ -33,21 +33,17 @@ public class MobilePaymentAuthorization: NSObject {
|
|
|
33
33
|
public weak var emitter: RCTMobilePaymentAuthorizationEventEmitter?
|
|
34
34
|
|
|
35
35
|
deinit {
|
|
36
|
-
print("deinit")
|
|
37
36
|
invalidate()
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
public func initialize() {
|
|
41
|
-
print("auth initialize")
|
|
42
40
|
NotificationUtils.addObserver(self, selector: #selector(onSDKInitialize), name: MobilePaymentNotificationKeys.sdkInitialized.rawValue)
|
|
43
41
|
if MobilePaymentSDK.shared.isInitialized {
|
|
44
|
-
print("auth onSDKInitialize")
|
|
45
42
|
onSDKInitialize()
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
public func invalidate() {
|
|
50
|
-
print("auth invalidate")
|
|
51
47
|
NotificationUtils.removeObserver(self)
|
|
52
48
|
if MobilePaymentSDK.shared.isInitialized {
|
|
53
49
|
MobilePaymentsSDK.shared.authorizationManager.remove(observer)
|
package/package.json
CHANGED