@applicaster/quick-brick-native-apple 5.13.0 → 5.13.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "QuickBrickApple",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.2",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"ios": "12.0",
|
|
6
6
|
"tvos": "12.0"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"authors": "Applicaster LTD.",
|
|
17
17
|
"source": {
|
|
18
18
|
"git": "https://github.com/applicaster/Zapp-Frameworks.git",
|
|
19
|
-
"tag": "@@applicaster/quick-brick-native-apple/5.13.
|
|
19
|
+
"tag": "@@applicaster/quick-brick-native-apple/5.13.2"
|
|
20
20
|
},
|
|
21
21
|
"requires_arc": true,
|
|
22
22
|
"source_files": "universal/**/*.{m,swift}",
|
|
@@ -18,9 +18,6 @@ public let suspendApp = "suspend"
|
|
|
18
18
|
open class ReactNativeManager: NSObject, UserInterfaceLayerProtocol, UserInterfaceLayerDelegate {
|
|
19
19
|
lazy var logger = Logger.getLogger(for: ReactNativeManagerLogs.subsystem)
|
|
20
20
|
|
|
21
|
-
public var applicationDelegate: UIApplicationDelegate?
|
|
22
|
-
public var userNotificationCenterDelegate: UNUserNotificationCenterDelegate?
|
|
23
|
-
|
|
24
21
|
static var applicationData: [String: Any] = [:]
|
|
25
22
|
|
|
26
23
|
var launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
@@ -28,20 +25,6 @@ open class ReactNativeManager: NSObject, UserInterfaceLayerProtocol, UserInterfa
|
|
|
28
25
|
|
|
29
26
|
var completion: ((_ viewController: UIViewController?, _ error: Error?) -> Void)?
|
|
30
27
|
|
|
31
|
-
public required init(launchOptions: [UIApplication.LaunchOptionsKey: Any]?,
|
|
32
|
-
applicationData: [String: Any] = [:]) {
|
|
33
|
-
super.init()
|
|
34
|
-
self.launchOptions = launchOptions
|
|
35
|
-
|
|
36
|
-
if let reactNativePackagerRoot = applicationData["reactNativePackagerRoot"] as? String {
|
|
37
|
-
self.reactNativePackagerRoot = reactNativePackagerRoot
|
|
38
|
-
}
|
|
39
|
-
applicationDelegate = self
|
|
40
|
-
userNotificationCenterDelegate = self
|
|
41
|
-
|
|
42
|
-
ReactNativeManager.applicationData = applicationData
|
|
43
|
-
}
|
|
44
|
-
|
|
45
28
|
/// url of the react server
|
|
46
29
|
private var jsBundleUrl: URL? {
|
|
47
30
|
RCTBundleURLProvider.sharedSettings()?.jsLocation = reactNativePackagerRoot
|
|
@@ -81,6 +64,27 @@ open class ReactNativeManager: NSObject, UserInterfaceLayerProtocol, UserInterfa
|
|
|
81
64
|
return retVal
|
|
82
65
|
}
|
|
83
66
|
|
|
67
|
+
// MARK: UserInterfaceLayerDelegate
|
|
68
|
+
|
|
69
|
+
public var applicationDelegate: UIApplicationDelegate?
|
|
70
|
+
public var userNotificationCenterDelegate: UNUserNotificationCenterDelegate?
|
|
71
|
+
|
|
72
|
+
// MARK: UserInterfaceLayerProtocol
|
|
73
|
+
|
|
74
|
+
public required init(launchOptions: [UIApplication.LaunchOptionsKey: Any]?,
|
|
75
|
+
applicationData: [String: Any] = [:]) {
|
|
76
|
+
super.init()
|
|
77
|
+
self.launchOptions = launchOptions
|
|
78
|
+
|
|
79
|
+
if let reactNativePackagerRoot = applicationData["reactNativePackagerRoot"] as? String {
|
|
80
|
+
self.reactNativePackagerRoot = reactNativePackagerRoot
|
|
81
|
+
}
|
|
82
|
+
applicationDelegate = self
|
|
83
|
+
userNotificationCenterDelegate = self
|
|
84
|
+
|
|
85
|
+
ReactNativeManager.applicationData = applicationData
|
|
86
|
+
}
|
|
87
|
+
|
|
84
88
|
public func prepareLayerForUse(completion: @escaping (_ viewController: UIViewController?, _ error: Error?) -> Void) {
|
|
85
89
|
setRightToLeftFlag {
|
|
86
90
|
self.mountReactApp(self.launchOptions)
|
|
@@ -88,6 +92,14 @@ open class ReactNativeManager: NSObject, UserInterfaceLayerProtocol, UserInterfa
|
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
94
|
|
|
95
|
+
#if os(iOS)
|
|
96
|
+
public func currentOrientationMask() -> UIInterfaceOrientationMask? {
|
|
97
|
+
return rootViewController?.orientationStack.last
|
|
98
|
+
}
|
|
99
|
+
#endif
|
|
100
|
+
|
|
101
|
+
// MARK: Public methods
|
|
102
|
+
|
|
91
103
|
/**
|
|
92
104
|
Creates the react bridge and the react root view. At this point, React execution starts
|
|
93
105
|
- Parameter launchOptions: launchOptions coming from AppDelegate which need to be passed to React
|
|
@@ -172,7 +184,6 @@ extension ReactNativeManager: QuickBrickManagerDelegate {
|
|
|
172
184
|
}
|
|
173
185
|
}
|
|
174
186
|
|
|
175
|
-
|
|
176
187
|
public func setPrefersHomeIndicatorAutoHidden(_ payload: Dictionary<String, Any>) {
|
|
177
188
|
FacadeConnector.connector?.uiLayer?.setPrefersHomeIndicatorAutoHidden(autoHidden: payload["autoHidden"] as? Bool ?? true)
|
|
178
189
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-native-apple",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.2",
|
|
4
4
|
"description": "iOS and tvOS native code for QuickBrick applications. This package is used to provide native logic for QuickBrick",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|