@applicaster/quick-brick-native-apple 6.12.0 → 6.13.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/apple/QuickBrickApple.podspec.json +2 -2
- package/apple/ios/ReactNative/{QuickBrickExceptionManager.swift → QuickBrickExceptionManagerDelegate.swift} +2 -2
- package/apple/tvos/Views/FocusableGroupView/FocusableGroupView.swift +7 -8
- package/apple/universal/ReactNative/ReactNativeManager.swift +8 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "QuickBrickApple",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"ios": "16.0",
|
|
6
6
|
"tvos": "16.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/6.
|
|
19
|
+
"tag": "@@applicaster/quick-brick-native-apple/6.13.0"
|
|
20
20
|
},
|
|
21
21
|
"requires_arc": true,
|
|
22
22
|
"source_files": "universal/**/*.{m,swift}",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// QuickBrickExceptionManagerDelegate.swift
|
|
3
3
|
// QuickBrickApple
|
|
4
4
|
//
|
|
5
5
|
// Created by Alex Zchut on 02/16/22.
|
|
@@ -11,7 +11,7 @@ import UIKit
|
|
|
11
11
|
import XrayLogger
|
|
12
12
|
import ZappCore
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class QuickBrickExceptionManagerDelegate: NSObject, RCTExceptionsManagerDelegate {
|
|
15
15
|
public lazy var logger = Logger.getLogger(for: ReactNativeManagerLogs.subsystem)
|
|
16
16
|
|
|
17
17
|
func handleSoftJSException(withMessage message: String?, stack: [Any]?, exceptionId: NSNumber, extraDataAsJSON _: String?) {
|
|
@@ -120,16 +120,15 @@ public class FocusableGroupView: RCTTVView {
|
|
|
120
120
|
customPreferredFocusEnvironment = [view]
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
private func setupFocus() {
|
|
125
|
-
focusGuide = UIFocusGuide()
|
|
123
|
+
let groupFocusGuide = UIFocusGuide()
|
|
126
124
|
|
|
127
|
-
|
|
125
|
+
private func setupFocus() {
|
|
126
|
+
addLayoutGuide(groupFocusGuide)
|
|
128
127
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
groupFocusGuide.leftAnchor.constraint(equalTo: leftAnchor).isActive = true
|
|
129
|
+
groupFocusGuide.topAnchor.constraint(equalTo: topAnchor).isActive = true
|
|
130
|
+
groupFocusGuide.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
|
|
131
|
+
groupFocusGuide.rightAnchor.constraint(equalTo: rightAnchor).isActive = true
|
|
133
132
|
|
|
134
133
|
manager.focusableItemDidUpdatePreferredFocus
|
|
135
134
|
.filter { self.groupId != nil && $0.groupId == self.itemId }
|
|
@@ -27,6 +27,10 @@ open class ReactNativeManager: NSObject, UserInterfaceLayerProtocol, UserInterfa
|
|
|
27
27
|
|
|
28
28
|
var completion: ((_ viewController: UIViewController?, _ error: Error?) -> Void)?
|
|
29
29
|
|
|
30
|
+
#if os(iOS)
|
|
31
|
+
private var exceptionsDelegate: QuickBrickExceptionManagerDelegate?
|
|
32
|
+
#endif
|
|
33
|
+
|
|
30
34
|
/// url of the react server
|
|
31
35
|
private var jsBundleUrl: URL? {
|
|
32
36
|
RCTBundleURLProvider.sharedSettings().jsLocation = reactNativePackagerRoot
|
|
@@ -180,10 +184,11 @@ extension ReactNativeManager: RCTBridgeDelegate {
|
|
|
180
184
|
|
|
181
185
|
#if os(iOS)
|
|
182
186
|
public func extraModules(for _: RCTBridge) -> [RCTBridgeModule] {
|
|
183
|
-
let
|
|
184
|
-
let rctException =
|
|
187
|
+
let _exceptionsDelegate = QuickBrickExceptionManagerDelegate()
|
|
188
|
+
let rctException = RCTExceptionsManager(delegate: _exceptionsDelegate)
|
|
189
|
+
exceptionsDelegate = _exceptionsDelegate
|
|
185
190
|
|
|
186
|
-
return [rctException
|
|
191
|
+
return [rctException]
|
|
187
192
|
}
|
|
188
193
|
#endif
|
|
189
194
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-native-apple",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
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"
|