@applicaster/quick-brick-native-apple 6.6.4 → 6.7.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.6.4",
3
+ "version": "6.7.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/6.6.4"
19
+ "tag": "@@applicaster/quick-brick-native-apple/6.7.0"
20
20
  },
21
21
  "requires_arc": true,
22
22
  "source_files": "universal/**/*.{m,swift}",
@@ -197,7 +197,7 @@ class AppLoaderBridge: NSObject, RCTBridgeModule {
197
197
  Task {
198
198
  guard let _ = await applicationData.layoutUrlContent(for: layoutId),
199
199
  let _ = await applicationData.cellStylesUrlContent(for: layoutId),
200
- self.saveActiveLayoutId(id: layoutId) else {
200
+ await self.saveActiveLayoutId(id: layoutId) else {
201
201
  DispatchQueue.main.async {
202
202
  rejecter(Errors.switchToNewLayoutMessage.code, Errors.switchToNewLayoutMessage.message, nil)
203
203
  }
@@ -247,10 +247,10 @@ class AppLoaderBridge: NSObject, RCTBridgeModule {
247
247
 
248
248
  // MARK: - Private Methods
249
249
 
250
- private func saveActiveLayoutId(id: String) -> Bool {
251
- FacadeConnector.connector?.storage?.sessionStorageSetValue(for: Consts.activeLayoutId,
252
- value: id,
253
- namespace: nil) ?? false
250
+ @MainActor private func saveActiveLayoutId(id: String) -> Bool {
251
+ FacadeConnector.instance?.storage?.sessionStorageSetValue(for: Consts.activeLayoutId,
252
+ value: id,
253
+ namespace: nil) ?? false
254
254
  }
255
255
 
256
256
  private func getActiveOrDefaultFallbackLayoutId() -> String? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-native-apple",
3
- "version": "6.6.4",
3
+ "version": "6.7.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"