@extscreen/es-core 2.2.32 → 2.2.34
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/dist/index.js +19 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -199,6 +199,9 @@ var ESDeviceModule$1 = new ESDeviceModule();
|
|
199
199
|
* 设备信息管理
|
200
200
|
*
|
201
201
|
*/
|
202
|
+
|
203
|
+
const TAG$6 = 'ESDeviceManager';
|
204
|
+
|
202
205
|
class ESDeviceManager {
|
203
206
|
|
204
207
|
//内存
|
@@ -255,6 +258,9 @@ class ESDeviceManager {
|
|
255
258
|
this.initAndroidDevice();
|
256
259
|
ESDeviceModule$1.getDevice().then(
|
257
260
|
(device) => {
|
261
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
262
|
+
ESLog.d(TAG$6, '#----------init---------->>>>>' + JSON.stringify(device));
|
263
|
+
}
|
258
264
|
this._device = device;
|
259
265
|
|
260
266
|
try {
|
@@ -305,11 +311,17 @@ class ESDeviceManager {
|
|
305
311
|
this._buildVersionRelease = device.buildVersionRelease;
|
306
312
|
}
|
307
313
|
} catch (e) {
|
314
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
315
|
+
ESLog.d(TAG$6, '#----------init---解析--error----->>>>>' + e);
|
316
|
+
}
|
308
317
|
}
|
309
318
|
resolve(device);
|
310
319
|
},
|
311
320
|
//
|
312
321
|
error => {
|
322
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
323
|
+
ESLog.d(TAG$6, '#----------init-----error----->>>>>' + error);
|
324
|
+
}
|
313
325
|
resolve(error);
|
314
326
|
}
|
315
327
|
);
|
@@ -2463,7 +2475,12 @@ class ESLaunchManager {
|
|
2463
2475
|
|
2464
2476
|
launchNativePage(intent) {
|
2465
2477
|
return ESModule$1.launchESPage({
|
2466
|
-
|
2478
|
+
pkg: intent.pkg,
|
2479
|
+
args: intent.args,
|
2480
|
+
flags: intent.flags,
|
2481
|
+
pageTag: intent.pageTag,
|
2482
|
+
pageLimit: intent.pageLimit,
|
2483
|
+
backgroundColor: intent.backgroundColor,
|
2467
2484
|
});
|
2468
2485
|
}
|
2469
2486
|
|
@@ -4337,7 +4354,7 @@ var ESApplication = {
|
|
4337
4354
|
);
|
4338
4355
|
},
|
4339
4356
|
_initESApplication() {
|
4340
|
-
|
4357
|
+
ESLaunchManager$1.setRouteListener(this._routeListener);
|
4341
4358
|
this._initESAppParams();
|
4342
4359
|
},
|
4343
4360
|
_routeListener(url, params) {
|