@wavemaker/rn-codegen 11.7.0-patch.4 → 11.7.0-patch.5
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/package.json
CHANGED
|
@@ -69,11 +69,11 @@ class App extends BaseApp {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
getServiceDefinitions() {
|
|
72
|
+
{{#if profile.useLocalMetadata}}
|
|
73
|
+
return Promise.resolve(require('./metadata/app/service-definitions.json'))
|
|
74
|
+
{{else}}
|
|
72
75
|
return axios.get(this.baseUrl + '/services/servicedefs')
|
|
73
76
|
.then((response) => response?.data || {})
|
|
74
|
-
{{#if profile.useLocalMetadata}}
|
|
75
|
-
.catch(() => import('./metadata/app/service-definitions.json').then(mod => mod.default))
|
|
76
|
-
{{else}}
|
|
77
77
|
.catch(() => ({}))
|
|
78
78
|
{{/if}}
|
|
79
79
|
.then(data => {
|
|
@@ -93,13 +93,14 @@ class App extends BaseApp {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
loadWmProperties() {
|
|
96
|
+
{{#if profile.useLocalMetadata}}
|
|
97
|
+
return Promise.resolve(require('./src/wmProperties').default)
|
|
98
|
+
{{else}}
|
|
96
99
|
return axios.get(this.baseUrl + '/services/application/wmProperties.js')
|
|
97
100
|
.then((response) => {
|
|
98
101
|
const data = response.data;
|
|
99
102
|
return JSON.parse(data.substring(data.indexOf('{'), data.length - 1));
|
|
100
103
|
})
|
|
101
|
-
{{#if profile.useLocalMetadata}}
|
|
102
|
-
.catch(() => import('./src/wmProperties').then(mod => mod.default))
|
|
103
104
|
{{/if}}
|
|
104
105
|
.then(appProperties => {
|
|
105
106
|
this.appConfig.appProperties = appProperties;
|
|
@@ -264,36 +265,39 @@ class App extends BaseApp {
|
|
|
264
265
|
{{/if}}
|
|
265
266
|
|
|
266
267
|
componentDidMount() {
|
|
268
|
+
console.log(moment().format('HH:mm:ss:SSS') + ': Component Did Mount');
|
|
267
269
|
{{#if animatedSplash}}
|
|
268
270
|
SplashScreen.hideAsync().then(() => {});{{/if}}
|
|
269
271
|
this.appConfig.getServiceDefinitions = this.getServiceDefinitions.bind(this);
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
272
|
+
Promise.all([
|
|
273
|
+
NetworkService.start(this.appConfig)
|
|
274
|
+
{{#if profile.useLocalMetadata}}
|
|
275
|
+
{{else}}
|
|
276
|
+
.then(() => {
|
|
277
|
+
NetworkService.connect(true);
|
|
278
|
+
})
|
|
279
|
+
{{/if}}
|
|
280
|
+
.then(() => {console.log(moment().format('HH:mm:ss:SSS') + ': NetworkService started')}),
|
|
281
|
+
this.getSecurityInfo()
|
|
282
|
+
.then(() => {console.log(moment().format('HH:mm:ss:SSS') + ': Security info loaded')}),
|
|
283
|
+
this.loadWmProperties()
|
|
284
|
+
.then(() => {console.log(moment().format('HH:mm:ss:SSS') + ': WmProperties loaded')})
|
|
285
|
+
{{#if sslPinning}}
|
|
286
|
+
.then(() => this.initSSLPininng())
|
|
287
|
+
.then((flag) => {flag && console.log('SSL Pinning loaded')})
|
|
288
|
+
{{/if}}
|
|
289
|
+
.then(() => this.loadTheme())
|
|
290
|
+
.then(() => {console.log(moment().format('HH:mm:ss:SSS') + ': Theme loaded')})
|
|
291
|
+
.then(() => AppI18nService.init())
|
|
292
|
+
.then(() => this.changeLocale())
|
|
293
|
+
.then(() => {console.log(moment().format('HH:mm:ss:SSS') + ': Locale files loaded')})
|
|
294
|
+
.then(() => this.loadFonts())
|
|
295
|
+
.then(() => {console.log(moment().format('HH:mm:ss:SSS') + ': Font files loaded')})
|
|
296
|
+
.then(() => initializeDeviceOperations())
|
|
297
|
+
.then(() => {console.log(moment().format('HH:mm:ss:SSS') + ': Loaded device operations loaded')})
|
|
298
|
+
.then(() => this.bootstrap())
|
|
299
|
+
.then(() => {console.log(moment().format('HH:mm:ss:SSS') + ': Bootstrap Complete')})
|
|
300
|
+
])
|
|
297
301
|
.then(() => super.componentDidMount())
|
|
298
302
|
.catch(error => {
|
|
299
303
|
console.error(error);
|
|
@@ -372,6 +376,9 @@ export default (props) => {
|
|
|
372
376
|
setVisible(true);
|
|
373
377
|
}, 100);
|
|
374
378
|
}, [visible]);
|
|
379
|
+
useCallback(() => {
|
|
380
|
+
console.log(moment().format('HH:mm:ss:SSS') + ': First App Render');
|
|
381
|
+
}, []);
|
|
375
382
|
return visible ? (
|
|
376
383
|
<>
|
|
377
384
|
{{#if animatedSplash}}
|
|
@@ -89,8 +89,7 @@ export default class {{name}}{{typeLabel}} extends Base{{typeLabel}} {
|
|
|
89
89
|
componentDidMount() {
|
|
90
90
|
{{#ifEquals lType 'prefab' this}}
|
|
91
91
|
{{#if profile.useLocalMetadata}}
|
|
92
|
-
|
|
93
|
-
.then(mod => mod.default?.serviceDefs)
|
|
92
|
+
Promise.resolve(require('../../../service-definitions.json').serviceDefs)
|
|
94
93
|
{{else}}
|
|
95
94
|
this.getServiceDefinitions()
|
|
96
95
|
{{/if}}
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@unimodules/react-native-adapter": "6.3.9",
|
|
13
|
-
"@wavemaker/app-rn-runtime": "11.7.0-patch.
|
|
14
|
-
"@wavemaker/variables": "11.7.0-patch.
|
|
15
|
-
"@wavemaker/rn-codegen": "11.7.0-patch.
|
|
13
|
+
"@wavemaker/app-rn-runtime": "11.7.0-patch.5",
|
|
14
|
+
"@wavemaker/variables": "11.7.0-patch.5",
|
|
15
|
+
"@wavemaker/rn-codegen": "11.7.0-patch.5",
|
|
16
16
|
"axios": "^1.4.0",
|
|
17
17
|
"css-mediaquery": "^0.1.2",
|
|
18
18
|
"deprecated-react-native-prop-types": "~4.1.0",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@unimodules/react-native-adapter": "6.3.9",
|
|
13
|
-
"@wavemaker/app-rn-runtime": "11.7.0-patch.
|
|
14
|
-
"@wavemaker/variables": "11.7.0-patch.
|
|
15
|
-
"@wavemaker/rn-codegen": "11.7.0-patch.
|
|
13
|
+
"@wavemaker/app-rn-runtime": "11.7.0-patch.5",
|
|
14
|
+
"@wavemaker/variables": "11.7.0-patch.5",
|
|
15
|
+
"@wavemaker/rn-codegen": "11.7.0-patch.5",
|
|
16
16
|
"axios": "^1.4.0",
|
|
17
17
|
"css-mediaquery": "^0.1.2",
|
|
18
18
|
"deprecated-react-native-prop-types": "~4.1.0",
|