@applicaster/quick-brick-native-apple 6.6.1 → 6.6.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": "6.6.1",
3
+ "version": "6.6.2",
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.1"
19
+ "tag": "@@applicaster/quick-brick-native-apple/6.6.2"
20
20
  },
21
21
  "requires_arc": true,
22
22
  "source_files": "universal/**/*.{m,swift}",
@@ -40,6 +40,7 @@ class AppLoaderBridge: NSObject, RCTBridgeModule {
40
40
  static let canNotGetCellStylesContent = (message: "Can not get the layout from content id", code: "9")
41
41
  static let canNotGetStylesContent = (message: "Can not get the stylescontent", code: "10")
42
42
  static let canNotGetPipesEndpointContent = (message: "Can not get the pipes endpoint content", code: "11")
43
+ static let canNotGetPresetsMappingContent = (message: "Can not get the prisets mapping content", code: "12")
43
44
  }
44
45
 
45
46
  enum ContentType: String {
@@ -49,6 +50,7 @@ class AppLoaderBridge: NSObject, RCTBridgeModule {
49
50
  case styles
50
51
  case cellStyles
51
52
  case pipesEndpoints
53
+ case presetsMapping
52
54
  }
53
55
 
54
56
  enum Consts {
@@ -142,6 +144,12 @@ class AppLoaderBridge: NSObject, RCTBridgeModule {
142
144
  return
143
145
  }
144
146
  resolver(pipesEndpointContent.getJsonString())
147
+ case .presetsMapping:
148
+ guard let presetsMappingContent = applicationData.presetsMappingContent() else {
149
+ rejecter(Errors.canNotGetPresetsMappingContent.code, Errors.canNotGetPresetsMappingContent.message, nil)
150
+ return
151
+ }
152
+ resolver(presetsMappingContent.getJsonString())
145
153
  }
146
154
  }
147
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-native-apple",
3
- "version": "6.6.1",
3
+ "version": "6.6.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"