react-native-security-suite 0.8.6 → 0.8.8
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.
|
@@ -11,7 +11,7 @@ class PulseUINotification: NSObject, UNUserNotificationCenterDelegate {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
|
|
14
|
-
|
|
14
|
+
completionHandler([.list])
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
|
|
@@ -27,7 +27,7 @@ class PulseUINotification: NSObject, UNUserNotificationCenterDelegate {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
func requestPermission() {
|
|
30
|
-
UNUserNotificationCenter.current().requestAuthorization(options: [.alert
|
|
30
|
+
UNUserNotificationCenter.current().requestAuthorization(options: [.alert]) { granted, error in
|
|
31
31
|
if granted {
|
|
32
32
|
// print("PulseUI Notification Permission Granted")
|
|
33
33
|
} else {
|
|
@@ -65,7 +65,7 @@ class PulseUINotification: NSObject, UNUserNotificationCenterDelegate {
|
|
|
65
65
|
@objc(openPulseUI)
|
|
66
66
|
func openPulseUI() {
|
|
67
67
|
DispatchQueue.main.async {
|
|
68
|
-
if #available(iOS
|
|
68
|
+
if #available(iOS 14.0, *) {
|
|
69
69
|
let hostingController = UIHostingController(rootView: ConsoleView())
|
|
70
70
|
if let rootViewController = UIApplication.shared.keyWindow?.rootViewController {
|
|
71
71
|
let navigationController = UINavigationController()
|
package/package.json
CHANGED
|
@@ -18,8 +18,8 @@ Pod::Spec.new do |s|
|
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
20
|
s.dependency "IOSSecuritySuite"
|
|
21
|
-
s.dependency "PulseCore"
|
|
22
|
-
s.dependency "PulseUI"
|
|
21
|
+
s.dependency "PulseCore", "~> 4.2.7"
|
|
22
|
+
s.dependency "PulseUI", "~> 4.2.7"
|
|
23
23
|
|
|
24
24
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
25
25
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|