@applicaster/quick-brick-core 13.0.0-alpha.6714678893 → 13.0.0-alpha.7120331332
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/App/ActionsProvider/__tests__/__snapshots__/ActionsProvider.test.js.snap +7 -7
- package/App/AssetCache/__tests__/__snapshots__/assetCache.test.ts.snap +103 -103
- package/App/AssetCache/__tests__/assetCache.test.ts +3 -2
- package/App/DeepLinking/URLSchemeHandler/SchemeHandlerHooks/__tests__/__snapshots__/schemeHandlerHooks.test.ts.snap +1 -1
- package/App/DeepLinking/URLSchemeHandler/SchemeHandlerHooks/__tests__/useOpenSchemeHandler.test.tsx +45 -116
- package/App/DeepLinking/URLSchemeHandler/__tests__/__snapshots__/URLSchemeHandler.test.tsx.snap +3 -3
- package/App/NavigationProvider/__tests__/__snapshots__/navigationProvider.test.tsx.snap +19 -19
- package/App/NavigationProvider/navigator/__tests__/__snapshots__/reducer.test.ts.snap +189 -189
- package/App/RouteManager/__tests__/__snapshots__/routeManager.test.js.snap +2 -2
- package/App/StoreConnector/__tests__/__snapshots__/storeConnector.test.js.snap +5 -5
- package/App/appLifeCycleManager/__tests__/__snapshots__/appLifeCycleManager.test.js.snap +4 -4
- package/App/appLifeCycleManager/__tests__/appLifeCycleManager.test.js +5 -5
- package/App/remoteContextReloader/__tests__/__snapshots__/remoteContextReloader.test.js.snap +9 -9
- package/createZappApp/__tests__/__snapshots__/createZappApp.test.js.snap +33 -33
- package/package.json +8 -8
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
exports[`Actions Provider renders children 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
actions={
|
|
6
|
-
|
|
7
|
-
"favs-action":
|
|
6
|
+
{
|
|
7
|
+
"favs-action": {
|
|
8
8
|
"identifier": "favs-action",
|
|
9
|
-
"module":
|
|
9
|
+
"module": {
|
|
10
10
|
"actionName": "faves",
|
|
11
|
-
"context":
|
|
11
|
+
"context": {
|
|
12
12
|
"$$typeof": Symbol(react.context),
|
|
13
|
-
"Consumer":
|
|
13
|
+
"Consumer": {
|
|
14
14
|
"$$typeof": Symbol(react.context),
|
|
15
15
|
"_calculateChangedBits": null,
|
|
16
16
|
"_context": [Circular],
|
|
17
17
|
},
|
|
18
|
-
"Provider":
|
|
18
|
+
"Provider": {
|
|
19
19
|
"$$typeof": Symbol(react.provider),
|
|
20
20
|
"_context": [Circular],
|
|
21
21
|
},
|
|
22
22
|
"_calculateChangedBits": null,
|
|
23
23
|
"_currentRenderer": null,
|
|
24
|
-
"_currentRenderer2":
|
|
24
|
+
"_currentRenderer2": {},
|
|
25
25
|
"_currentValue": null,
|
|
26
26
|
"_currentValue2": null,
|
|
27
27
|
"_threadCount": 0,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`asset cache when only a few files changed returns the remapped layout files 1`] = `
|
|
4
|
-
|
|
5
|
-
"cellStyles":
|
|
6
|
-
"cellId1":
|
|
7
|
-
"configuration":
|
|
8
|
-
"assets":
|
|
4
|
+
{
|
|
5
|
+
"cellStyles": {
|
|
6
|
+
"cellId1": {
|
|
7
|
+
"configuration": {
|
|
8
|
+
"assets": {
|
|
9
9
|
"cell_asset": "http://img.com/cell_asset.png",
|
|
10
10
|
},
|
|
11
|
-
"styles":
|
|
11
|
+
"styles": {},
|
|
12
12
|
},
|
|
13
13
|
"plugin_identifier": "cell-style",
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
|
-
"layout":
|
|
17
|
-
"content_types":
|
|
18
|
-
"type":
|
|
16
|
+
"layout": {
|
|
17
|
+
"content_types": {
|
|
18
|
+
"type": {
|
|
19
19
|
"screen_id": "screen1",
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
"id": "A1234",
|
|
23
|
-
"screens":
|
|
24
|
-
|
|
25
|
-
"general":
|
|
23
|
+
"screens": [
|
|
24
|
+
{
|
|
25
|
+
"general": {
|
|
26
26
|
"icon": "/path/rivers/fca006fff4ecd7d607e11be81e5d681c.png",
|
|
27
27
|
},
|
|
28
28
|
"home": true,
|
|
@@ -31,17 +31,17 @@ Object {
|
|
|
31
31
|
"name": "home",
|
|
32
32
|
"supports_offline": false,
|
|
33
33
|
},
|
|
34
|
-
|
|
35
|
-
"general":
|
|
34
|
+
{
|
|
35
|
+
"general": {},
|
|
36
36
|
"home": false,
|
|
37
37
|
"home_offline": false,
|
|
38
38
|
"id": "screen2",
|
|
39
39
|
"name": "show screen",
|
|
40
|
-
"navigations":
|
|
41
|
-
|
|
40
|
+
"navigations": [
|
|
41
|
+
{
|
|
42
42
|
"category": "tabs",
|
|
43
|
-
"nav_items":
|
|
44
|
-
|
|
43
|
+
"nav_items": [
|
|
44
|
+
{
|
|
45
45
|
"asset": "/path/rivers/f717cc29f30fb8376953a5cdb4666501.png",
|
|
46
46
|
"target": "screen3",
|
|
47
47
|
},
|
|
@@ -50,26 +50,26 @@ Object {
|
|
|
50
50
|
],
|
|
51
51
|
"supports_offline": false,
|
|
52
52
|
},
|
|
53
|
-
|
|
54
|
-
"general":
|
|
53
|
+
{
|
|
54
|
+
"general": {},
|
|
55
55
|
"home": false,
|
|
56
56
|
"home_offline": false,
|
|
57
57
|
"id": "screen3",
|
|
58
58
|
"name": "other screen",
|
|
59
|
-
"styles":
|
|
59
|
+
"styles": {
|
|
60
60
|
"failing_asset": "http://img.com/failing_asset.png",
|
|
61
61
|
},
|
|
62
62
|
"supports_offline": false,
|
|
63
63
|
},
|
|
64
64
|
],
|
|
65
65
|
},
|
|
66
|
-
"pluginConfigurations":
|
|
67
|
-
|
|
68
|
-
"configuration_json":
|
|
66
|
+
"pluginConfigurations": [
|
|
67
|
+
{
|
|
68
|
+
"configuration_json": {
|
|
69
69
|
"plugin_asset": "/path/plugins/beeef54b948ce2a8f5b376f8033a720e.png",
|
|
70
70
|
},
|
|
71
|
-
"plugin":
|
|
72
|
-
"api":
|
|
71
|
+
"plugin": {
|
|
72
|
+
"api": {},
|
|
73
73
|
"dependency_name": "plugin_1",
|
|
74
74
|
"dependency_version": "0.0.1",
|
|
75
75
|
"identifier": "plugin_1",
|
|
@@ -82,28 +82,28 @@ Object {
|
|
|
82
82
|
`;
|
|
83
83
|
|
|
84
84
|
exports[`asset cache when there are files to cache returns the remapped layout files 1`] = `
|
|
85
|
-
|
|
86
|
-
"cellStyles":
|
|
87
|
-
"cellId1":
|
|
88
|
-
"configuration":
|
|
89
|
-
"assets":
|
|
85
|
+
{
|
|
86
|
+
"cellStyles": {
|
|
87
|
+
"cellId1": {
|
|
88
|
+
"configuration": {
|
|
89
|
+
"assets": {
|
|
90
90
|
"cell_asset": "/path/cellStyles/f630eba55c478d558c165ababac30c02.png",
|
|
91
91
|
},
|
|
92
|
-
"styles":
|
|
92
|
+
"styles": {},
|
|
93
93
|
},
|
|
94
94
|
"plugin_identifier": "cell-style",
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
|
-
"layout":
|
|
98
|
-
"content_types":
|
|
99
|
-
"type":
|
|
97
|
+
"layout": {
|
|
98
|
+
"content_types": {
|
|
99
|
+
"type": {
|
|
100
100
|
"screen_id": "screen1",
|
|
101
101
|
},
|
|
102
102
|
},
|
|
103
103
|
"id": "A1234",
|
|
104
|
-
"screens":
|
|
105
|
-
|
|
106
|
-
"general":
|
|
104
|
+
"screens": [
|
|
105
|
+
{
|
|
106
|
+
"general": {
|
|
107
107
|
"icon": "/path/rivers/fca006fff4ecd7d607e11be81e5d681c.png",
|
|
108
108
|
},
|
|
109
109
|
"home": true,
|
|
@@ -112,17 +112,17 @@ Object {
|
|
|
112
112
|
"name": "home",
|
|
113
113
|
"supports_offline": false,
|
|
114
114
|
},
|
|
115
|
-
|
|
116
|
-
"general":
|
|
115
|
+
{
|
|
116
|
+
"general": {},
|
|
117
117
|
"home": false,
|
|
118
118
|
"home_offline": false,
|
|
119
119
|
"id": "screen2",
|
|
120
120
|
"name": "show screen",
|
|
121
|
-
"navigations":
|
|
122
|
-
|
|
121
|
+
"navigations": [
|
|
122
|
+
{
|
|
123
123
|
"category": "tabs",
|
|
124
|
-
"nav_items":
|
|
125
|
-
|
|
124
|
+
"nav_items": [
|
|
125
|
+
{
|
|
126
126
|
"asset": "/path/rivers/f717cc29f30fb8376953a5cdb4666501.png",
|
|
127
127
|
"target": "screen3",
|
|
128
128
|
},
|
|
@@ -131,26 +131,26 @@ Object {
|
|
|
131
131
|
],
|
|
132
132
|
"supports_offline": false,
|
|
133
133
|
},
|
|
134
|
-
|
|
135
|
-
"general":
|
|
134
|
+
{
|
|
135
|
+
"general": {},
|
|
136
136
|
"home": false,
|
|
137
137
|
"home_offline": false,
|
|
138
138
|
"id": "screen3",
|
|
139
139
|
"name": "other screen",
|
|
140
|
-
"styles":
|
|
140
|
+
"styles": {
|
|
141
141
|
"failing_asset": "http://img.com/failing_asset.png",
|
|
142
142
|
},
|
|
143
143
|
"supports_offline": false,
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
146
|
},
|
|
147
|
-
"pluginConfigurations":
|
|
148
|
-
|
|
149
|
-
"configuration_json":
|
|
147
|
+
"pluginConfigurations": [
|
|
148
|
+
{
|
|
149
|
+
"configuration_json": {
|
|
150
150
|
"plugin_asset": "/path/plugins/beeef54b948ce2a8f5b376f8033a720e.png",
|
|
151
151
|
},
|
|
152
|
-
"plugin":
|
|
153
|
-
"api":
|
|
152
|
+
"plugin": {
|
|
153
|
+
"api": {},
|
|
154
154
|
"dependency_name": "plugin_1",
|
|
155
155
|
"dependency_version": "0.0.1",
|
|
156
156
|
"identifier": "plugin_1",
|
|
@@ -163,28 +163,28 @@ Object {
|
|
|
163
163
|
`;
|
|
164
164
|
|
|
165
165
|
exports[`asset cache when there are no files to cache returns the remapped layout files 1`] = `
|
|
166
|
-
|
|
167
|
-
"cellStyles":
|
|
168
|
-
"cellId1":
|
|
169
|
-
"configuration":
|
|
170
|
-
"assets":
|
|
166
|
+
{
|
|
167
|
+
"cellStyles": {
|
|
168
|
+
"cellId1": {
|
|
169
|
+
"configuration": {
|
|
170
|
+
"assets": {
|
|
171
171
|
"cell_asset": "http://img.com/cell_asset.png",
|
|
172
172
|
},
|
|
173
|
-
"styles":
|
|
173
|
+
"styles": {},
|
|
174
174
|
},
|
|
175
175
|
"plugin_identifier": "cell-style",
|
|
176
176
|
},
|
|
177
177
|
},
|
|
178
|
-
"layout":
|
|
179
|
-
"content_types":
|
|
180
|
-
"type":
|
|
178
|
+
"layout": {
|
|
179
|
+
"content_types": {
|
|
180
|
+
"type": {
|
|
181
181
|
"screen_id": "screen1",
|
|
182
182
|
},
|
|
183
183
|
},
|
|
184
184
|
"id": "A1234",
|
|
185
|
-
"screens":
|
|
186
|
-
|
|
187
|
-
"general":
|
|
185
|
+
"screens": [
|
|
186
|
+
{
|
|
187
|
+
"general": {
|
|
188
188
|
"icon": "http://img.com/icon.png",
|
|
189
189
|
},
|
|
190
190
|
"home": true,
|
|
@@ -193,17 +193,17 @@ Object {
|
|
|
193
193
|
"name": "home",
|
|
194
194
|
"supports_offline": false,
|
|
195
195
|
},
|
|
196
|
-
|
|
197
|
-
"general":
|
|
196
|
+
{
|
|
197
|
+
"general": {},
|
|
198
198
|
"home": false,
|
|
199
199
|
"home_offline": false,
|
|
200
200
|
"id": "screen2",
|
|
201
201
|
"name": "show screen",
|
|
202
|
-
"navigations":
|
|
203
|
-
|
|
202
|
+
"navigations": [
|
|
203
|
+
{
|
|
204
204
|
"category": "tabs",
|
|
205
|
-
"nav_items":
|
|
206
|
-
|
|
205
|
+
"nav_items": [
|
|
206
|
+
{
|
|
207
207
|
"asset": "http://img.com/tab_asset.png",
|
|
208
208
|
"target": "screen3",
|
|
209
209
|
},
|
|
@@ -212,26 +212,26 @@ Object {
|
|
|
212
212
|
],
|
|
213
213
|
"supports_offline": false,
|
|
214
214
|
},
|
|
215
|
-
|
|
216
|
-
"general":
|
|
215
|
+
{
|
|
216
|
+
"general": {},
|
|
217
217
|
"home": false,
|
|
218
218
|
"home_offline": false,
|
|
219
219
|
"id": "screen3",
|
|
220
220
|
"name": "other screen",
|
|
221
|
-
"styles":
|
|
221
|
+
"styles": {
|
|
222
222
|
"failing_asset": "http://img.com/failing_asset.png",
|
|
223
223
|
},
|
|
224
224
|
"supports_offline": false,
|
|
225
225
|
},
|
|
226
226
|
],
|
|
227
227
|
},
|
|
228
|
-
"pluginConfigurations":
|
|
229
|
-
|
|
230
|
-
"configuration_json":
|
|
228
|
+
"pluginConfigurations": [
|
|
229
|
+
{
|
|
230
|
+
"configuration_json": {
|
|
231
231
|
"plugin_asset": "http://img.com/plugin_asset.png",
|
|
232
232
|
},
|
|
233
|
-
"plugin":
|
|
234
|
-
"api":
|
|
233
|
+
"plugin": {
|
|
234
|
+
"api": {},
|
|
235
235
|
"dependency_name": "plugin_1",
|
|
236
236
|
"dependency_version": "0.0.1",
|
|
237
237
|
"identifier": "plugin_1",
|
|
@@ -244,11 +244,11 @@ Object {
|
|
|
244
244
|
`;
|
|
245
245
|
|
|
246
246
|
exports[`getLayoutAssets returns the list of assets in the layout 1`] = `
|
|
247
|
-
|
|
248
|
-
"assetFiles":
|
|
249
|
-
|
|
247
|
+
{
|
|
248
|
+
"assetFiles": [
|
|
249
|
+
{
|
|
250
250
|
"file": "/path/cellStyles/f630eba55c478d558c165ababac30c02.png",
|
|
251
|
-
"path":
|
|
251
|
+
"path": [
|
|
252
252
|
"cellId1",
|
|
253
253
|
"configuration",
|
|
254
254
|
"assets",
|
|
@@ -257,9 +257,9 @@ Object {
|
|
|
257
257
|
"source": "cellStyles",
|
|
258
258
|
"url": "http://img.com/cell_asset.png",
|
|
259
259
|
},
|
|
260
|
-
|
|
260
|
+
{
|
|
261
261
|
"file": "/path/plugins/beeef54b948ce2a8f5b376f8033a720e.png",
|
|
262
|
-
"path":
|
|
262
|
+
"path": [
|
|
263
263
|
0,
|
|
264
264
|
"configuration_json",
|
|
265
265
|
"plugin_asset",
|
|
@@ -267,9 +267,9 @@ Object {
|
|
|
267
267
|
"source": "plugins",
|
|
268
268
|
"url": "http://img.com/plugin_asset.png",
|
|
269
269
|
},
|
|
270
|
-
|
|
270
|
+
{
|
|
271
271
|
"file": "/path/rivers/bcfa75eacd166d575dee8da3c1d7b2f1.png",
|
|
272
|
-
"path":
|
|
272
|
+
"path": [
|
|
273
273
|
"screens",
|
|
274
274
|
2,
|
|
275
275
|
"styles",
|
|
@@ -278,9 +278,9 @@ Object {
|
|
|
278
278
|
"source": "rivers",
|
|
279
279
|
"url": "http://img.com/failing_asset.png",
|
|
280
280
|
},
|
|
281
|
-
|
|
281
|
+
{
|
|
282
282
|
"file": "/path/rivers/f717cc29f30fb8376953a5cdb4666501.png",
|
|
283
|
-
"path":
|
|
283
|
+
"path": [
|
|
284
284
|
"screens",
|
|
285
285
|
1,
|
|
286
286
|
"navigations",
|
|
@@ -292,9 +292,9 @@ Object {
|
|
|
292
292
|
"source": "rivers",
|
|
293
293
|
"url": "http://img.com/tab_asset.png",
|
|
294
294
|
},
|
|
295
|
-
|
|
295
|
+
{
|
|
296
296
|
"file": "/path/rivers/fca006fff4ecd7d607e11be81e5d681c.png",
|
|
297
|
-
"path":
|
|
297
|
+
"path": [
|
|
298
298
|
"screens",
|
|
299
299
|
0,
|
|
300
300
|
"general",
|
|
@@ -304,10 +304,10 @@ Object {
|
|
|
304
304
|
"url": "http://img.com/icon.png",
|
|
305
305
|
},
|
|
306
306
|
],
|
|
307
|
-
"cellAssets":
|
|
308
|
-
|
|
307
|
+
"cellAssets": [
|
|
308
|
+
{
|
|
309
309
|
"file": "/path/cellStyles/f630eba55c478d558c165ababac30c02.png",
|
|
310
|
-
"path":
|
|
310
|
+
"path": [
|
|
311
311
|
"cellId1",
|
|
312
312
|
"configuration",
|
|
313
313
|
"assets",
|
|
@@ -317,10 +317,10 @@ Object {
|
|
|
317
317
|
"url": "http://img.com/cell_asset.png",
|
|
318
318
|
},
|
|
319
319
|
],
|
|
320
|
-
"layoutAssets":
|
|
321
|
-
|
|
320
|
+
"layoutAssets": [
|
|
321
|
+
{
|
|
322
322
|
"file": "/path/rivers/fca006fff4ecd7d607e11be81e5d681c.png",
|
|
323
|
-
"path":
|
|
323
|
+
"path": [
|
|
324
324
|
"screens",
|
|
325
325
|
0,
|
|
326
326
|
"general",
|
|
@@ -329,9 +329,9 @@ Object {
|
|
|
329
329
|
"source": "rivers",
|
|
330
330
|
"url": "http://img.com/icon.png",
|
|
331
331
|
},
|
|
332
|
-
|
|
332
|
+
{
|
|
333
333
|
"file": "/path/rivers/f717cc29f30fb8376953a5cdb4666501.png",
|
|
334
|
-
"path":
|
|
334
|
+
"path": [
|
|
335
335
|
"screens",
|
|
336
336
|
1,
|
|
337
337
|
"navigations",
|
|
@@ -343,9 +343,9 @@ Object {
|
|
|
343
343
|
"source": "rivers",
|
|
344
344
|
"url": "http://img.com/tab_asset.png",
|
|
345
345
|
},
|
|
346
|
-
|
|
346
|
+
{
|
|
347
347
|
"file": "/path/rivers/bcfa75eacd166d575dee8da3c1d7b2f1.png",
|
|
348
|
-
"path":
|
|
348
|
+
"path": [
|
|
349
349
|
"screens",
|
|
350
350
|
2,
|
|
351
351
|
"styles",
|
|
@@ -355,10 +355,10 @@ Object {
|
|
|
355
355
|
"url": "http://img.com/failing_asset.png",
|
|
356
356
|
},
|
|
357
357
|
],
|
|
358
|
-
"pluginAssets":
|
|
359
|
-
|
|
358
|
+
"pluginAssets": [
|
|
359
|
+
{
|
|
360
360
|
"file": "/path/plugins/beeef54b948ce2a8f5b376f8033a720e.png",
|
|
361
|
-
"path":
|
|
361
|
+
"path": [
|
|
362
362
|
0,
|
|
363
363
|
"configuration_json",
|
|
364
364
|
"plugin_asset",
|
|
@@ -87,7 +87,7 @@ const mockedStoreFiles = (files) => {
|
|
|
87
87
|
return Promise.resolve(result);
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
jest.
|
|
90
|
+
jest.doMock("@applicaster/zapp-react-native-bridge/OfflineAssets", () => ({
|
|
91
91
|
isAssetCacheEnabled: jest.fn(() => assetCacheEnabled),
|
|
92
92
|
getNativeRootPath: jest.fn(() => Promise.resolve("/path")),
|
|
93
93
|
storeFiles: jest.fn((files) => mockedStoreFiles(files)),
|
|
@@ -96,7 +96,7 @@ jest.mock("@applicaster/zapp-react-native-bridge/OfflineAssets", () => ({
|
|
|
96
96
|
fileIsSaved: jest.fn(offlineAssetsBridge.fileIsSaved),
|
|
97
97
|
}));
|
|
98
98
|
|
|
99
|
-
jest.
|
|
99
|
+
jest.doMock("@applicaster/zapp-react-native-utils/reactUtils", () => ({
|
|
100
100
|
isTV: jest.fn(() => isTV),
|
|
101
101
|
platformSelect: jest.fn(
|
|
102
102
|
(specs) => specs.ios || specs.android || specs.default
|
|
@@ -104,6 +104,7 @@ jest.mock("@applicaster/zapp-react-native-utils/reactUtils", () => ({
|
|
|
104
104
|
isApplePlatform: jest.fn(() => true),
|
|
105
105
|
}));
|
|
106
106
|
|
|
107
|
+
// to use import instead of require it's required to use jest.mock above
|
|
107
108
|
const { CacheManager } = require("../CacheManager");
|
|
108
109
|
|
|
109
110
|
const {
|