@applicaster/quick-brick-native-apple 5.22.3 → 6.0.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": "5.22.3",
3
+ "version": "6.0.0",
4
4
  "platforms": {
5
5
  "ios": "14.0",
6
6
  "tvos": "14.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.22.3"
19
+ "tag": "@@applicaster/quick-brick-native-apple/6.0.0"
20
20
  },
21
21
  "requires_arc": true,
22
22
  "source_files": "universal/**/*.{m,swift}",
@@ -144,12 +144,13 @@ public class FocusableGroupView: RCTTVView {
144
144
  return true
145
145
  }
146
146
 
147
- /// Focus guide that will catch the focus of the groups
148
- var focusGuide = UIFocusGuide()
149
-
150
147
  /// Manager that connects View instance to FocusableGroupViewModule
151
148
  var manager: FocusableGroupViewModule?
152
149
 
150
+ override init(bridge: RCTBridge) {
151
+ super.init(bridge: bridge)
152
+ }
153
+
153
154
  public required init?(coder aDecoder: NSCoder) {
154
155
  super.init(coder: aDecoder)
155
156
  setupFocus()
@@ -160,6 +161,12 @@ public class FocusableGroupView: RCTTVView {
160
161
  setupFocus()
161
162
  }
162
163
 
164
+ func initializeFocusGuideIfNeeded() {
165
+ if focusGuide == nil {
166
+ focusGuide = UIFocusGuide()
167
+ }
168
+ }
169
+
163
170
  /// Update customPrefferedFocusEnvironment
164
171
  ///
165
172
  /// - Parameter view: view instance that should be preffered
@@ -169,6 +176,8 @@ public class FocusableGroupView: RCTTVView {
169
176
 
170
177
  /// Setup Focus Guide for use
171
178
  func setupFocus() {
179
+ initializeFocusGuideIfNeeded()
180
+
172
181
  addLayoutGuide(focusGuide)
173
182
 
174
183
  focusGuide.leftAnchor.constraint(equalTo: leftAnchor).isActive = true
@@ -29,7 +29,7 @@ open class ReactNativeManager: NSObject, UserInterfaceLayerProtocol, UserInterfa
29
29
  /// url of the react server
30
30
  private var jsBundleUrl: URL? {
31
31
  RCTBundleURLProvider.sharedSettings()?.jsLocation = reactNativePackagerRoot
32
- return RCTBundleURLProvider.sharedSettings()?.jsBundleURL(forBundleRoot: "index", fallbackResource: nil)
32
+ return RCTBundleURLProvider.sharedSettings()?.jsBundleURL(forBundleRoot: "index")
33
33
  }
34
34
 
35
35
  /// url of the react bundle file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-native-apple",
3
- "version": "5.22.3",
3
+ "version": "6.0.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"