@extscreen/es-core 2.2.31 → 2.2.33
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 +12 -0
- 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
|
);
|