@extscreen/es-core 2.2.60 → 2.2.62
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 +22 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2313,6 +2313,7 @@ class ESManager {
|
|
2313
2313
|
_esMiniProgramPath = null;
|
2314
2314
|
_esKitVersionCode = -1;
|
2315
2315
|
_esSdkSchemes = [];
|
2316
|
+
_runtimePath = null;
|
2316
2317
|
|
2317
2318
|
_esSdkInfo = null;
|
2318
2319
|
|
@@ -2335,6 +2336,8 @@ class ESManager {
|
|
2335
2336
|
if (result.eskit_ver_code) {
|
2336
2337
|
this._esKitVersionCode = result.eskit_ver_code;
|
2337
2338
|
}
|
2339
|
+
//
|
2340
|
+
this._runtimePath = result.runtimePath;
|
2338
2341
|
}
|
2339
2342
|
return Promise.resolve();
|
2340
2343
|
}
|
@@ -2369,6 +2372,10 @@ class ESManager {
|
|
2369
2372
|
return this._esMiniProgramPath;
|
2370
2373
|
}
|
2371
2374
|
|
2375
|
+
getESAppRuntimePath() {
|
2376
|
+
return this._runtimePath;
|
2377
|
+
}
|
2378
|
+
|
2372
2379
|
getESSDKSupportSchemes() {
|
2373
2380
|
return this._esSdkSchemes;
|
2374
2381
|
}
|
@@ -4668,13 +4675,13 @@ var ESApplication = {
|
|
4668
4675
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4669
4676
|
ESLog.d(TAG, '---------onESCreate---Promise---success---->>>>');
|
4670
4677
|
}
|
4671
|
-
this.
|
4678
|
+
this._onESCreated(true);
|
4672
4679
|
},
|
4673
4680
|
error => {
|
4674
4681
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4675
4682
|
console.log(TAG, '---------onESCreate---Promise---error---->>>>', error);
|
4676
4683
|
}
|
4677
|
-
this.
|
4684
|
+
this._onESCreated(false);
|
4678
4685
|
}
|
4679
4686
|
);
|
4680
4687
|
}
|
@@ -4683,7 +4690,7 @@ var ESApplication = {
|
|
4683
4690
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4684
4691
|
ESLog.d(TAG, '---------onESCreate--return-Not Promise----->>>>');
|
4685
4692
|
}
|
4686
|
-
this.
|
4693
|
+
this._onESCreated(true);
|
4687
4694
|
}
|
4688
4695
|
}
|
4689
4696
|
//
|
@@ -4691,10 +4698,17 @@ var ESApplication = {
|
|
4691
4698
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4692
4699
|
ESLog.d(TAG, '---------onESCreate---Not Function----->>>>');
|
4693
4700
|
}
|
4694
|
-
this.
|
4701
|
+
this._onESCreated(true);
|
4695
4702
|
}
|
4696
4703
|
},
|
4697
|
-
|
4704
|
+
_onESCreated(success) {
|
4705
|
+
try {
|
4706
|
+
this.onESCreated(success);
|
4707
|
+
} catch (e) {
|
4708
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4709
|
+
ESLog.d(TAG, '---------onESCreated---error---->>>>');
|
4710
|
+
}
|
4711
|
+
}
|
4698
4712
|
if (this.autoLaunchMainESPage) {
|
4699
4713
|
this.launchMainESPage();
|
4700
4714
|
}
|
@@ -4731,6 +4745,9 @@ var ESApplication = {
|
|
4731
4745
|
return false;
|
4732
4746
|
},
|
4733
4747
|
//---------------------------下面的方法给使用者覆写-----------------------------
|
4748
|
+
onESCreated(success) {
|
4749
|
+
|
4750
|
+
},
|
4734
4751
|
onLaunchESPage(url, params) {
|
4735
4752
|
|
4736
4753
|
},
|