@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "QuickBrickApple",
3
- "version": "6.12.0",
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.12.0"
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
- // QuickBrickExceptionManager.swift
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 QuickBrickExceptionManager: RCTExceptionsManager, RCTExceptionsManagerDelegate {
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
- /// Setup Focus Guide for use
124
- private func setupFocus() {
125
- focusGuide = UIFocusGuide()
123
+ let groupFocusGuide = UIFocusGuide()
126
124
 
127
- addLayoutGuide(focusGuide)
125
+ private func setupFocus() {
126
+ addLayoutGuide(groupFocusGuide)
128
127
 
129
- focusGuide.leftAnchor.constraint(equalTo: leftAnchor).isActive = true
130
- focusGuide.topAnchor.constraint(equalTo: topAnchor).isActive = true
131
- focusGuide.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
132
- focusGuide.rightAnchor.constraint(equalTo: rightAnchor).isActive = true
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 qbExceptionManager = QuickBrickExceptionManager()
184
- let rctException = QuickBrickExceptionManager(delegate: qbExceptionManager)
187
+ let _exceptionsDelegate = QuickBrickExceptionManagerDelegate()
188
+ let rctException = RCTExceptionsManager(delegate: _exceptionsDelegate)
189
+ exceptionsDelegate = _exceptionsDelegate
185
190
 
186
- return [rctException, qbExceptionManager]
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.12.0",
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"