@extscreen/es-core 2.2.48 → 2.2.49
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 +54 -43
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -200,7 +200,7 @@ var ESDeviceModule$1 = new ESDeviceModule();
|
|
200
200
|
*
|
201
201
|
*/
|
202
202
|
|
203
|
-
const TAG$
|
203
|
+
const TAG$9 = 'ESDeviceManager';
|
204
204
|
|
205
205
|
class ESDeviceManager {
|
206
206
|
|
@@ -259,7 +259,7 @@ class ESDeviceManager {
|
|
259
259
|
ESDeviceModule$1.getDevice().then(
|
260
260
|
(device) => {
|
261
261
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
262
|
-
ESLog.d(TAG$
|
262
|
+
ESLog.d(TAG$9, '#----------init---------->>>>>' + JSON.stringify(device));
|
263
263
|
}
|
264
264
|
this._device = device;
|
265
265
|
|
@@ -312,7 +312,7 @@ class ESDeviceManager {
|
|
312
312
|
}
|
313
313
|
} catch (e) {
|
314
314
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
315
|
-
ESLog.d(TAG$
|
315
|
+
ESLog.d(TAG$9, '#----------init---解析--error----->>>>>' + e);
|
316
316
|
}
|
317
317
|
}
|
318
318
|
resolve(device);
|
@@ -320,7 +320,7 @@ class ESDeviceManager {
|
|
320
320
|
//
|
321
321
|
error => {
|
322
322
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
323
|
-
ESLog.d(TAG$
|
323
|
+
ESLog.d(TAG$9, '#----------init-----error----->>>>>' + error);
|
324
324
|
}
|
325
325
|
resolve(error);
|
326
326
|
}
|
@@ -822,7 +822,7 @@ var ESAudioModule$1 = new ESAudioModule();
|
|
822
822
|
*
|
823
823
|
*/
|
824
824
|
|
825
|
-
const TAG$
|
825
|
+
const TAG$8 = 'ESAudioManager';
|
826
826
|
|
827
827
|
class ESAudioManager {
|
828
828
|
|
@@ -848,7 +848,7 @@ class ESAudioManager {
|
|
848
848
|
initPromise() {
|
849
849
|
return new Promise((resolve, reject) => {
|
850
850
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
851
|
-
ESLog.d(TAG$
|
851
|
+
ESLog.d(TAG$8, '------------init----start----->>>>');
|
852
852
|
}
|
853
853
|
this.getStreamSystemMaxVolume();
|
854
854
|
this.getStreamSystemVolume();
|
@@ -863,7 +863,7 @@ class ESAudioManager {
|
|
863
863
|
ESAudioModule$1.getStreamVoiceCallMaxVolume()
|
864
864
|
.then((volume) => {
|
865
865
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
866
|
-
ESLog.d(TAG$
|
866
|
+
ESLog.d(TAG$8, '-----getStreamVoiceCallMaxVolume--->>>>' + volume);
|
867
867
|
}
|
868
868
|
this._voiceCallMaxVolume = volume;
|
869
869
|
});
|
@@ -877,7 +877,7 @@ class ESAudioManager {
|
|
877
877
|
ESAudioModule$1.getStreamVoiceCallVolume()
|
878
878
|
.then((volume) => {
|
879
879
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
880
|
-
ESLog.d(TAG$
|
880
|
+
ESLog.d(TAG$8, '-----getStreamVoiceCallVolume--->>>>' + volume);
|
881
881
|
}
|
882
882
|
this._voiceCallVolume = volume;
|
883
883
|
});
|
@@ -892,7 +892,7 @@ class ESAudioManager {
|
|
892
892
|
ESAudioModule$1.getStreamSystemMaxVolume()
|
893
893
|
.then((volume) => {
|
894
894
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
895
|
-
ESLog.d(TAG$
|
895
|
+
ESLog.d(TAG$8, '-----getStreamSystemMaxVolume--->>>>' + volume);
|
896
896
|
}
|
897
897
|
this._systemMaxVolume = volume;
|
898
898
|
});
|
@@ -906,7 +906,7 @@ class ESAudioManager {
|
|
906
906
|
ESAudioModule$1.getStreamSystemVolume()
|
907
907
|
.then((volume) => {
|
908
908
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
909
|
-
ESLog.d(TAG$
|
909
|
+
ESLog.d(TAG$8, '-----getStreamSystemVolume--->>>>' + volume);
|
910
910
|
}
|
911
911
|
this._systemVolume = volume;
|
912
912
|
});
|
@@ -921,7 +921,7 @@ class ESAudioManager {
|
|
921
921
|
ESAudioModule$1.getStreamRingMaxVolume()
|
922
922
|
.then((volume) => {
|
923
923
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
924
|
-
ESLog.d(TAG$
|
924
|
+
ESLog.d(TAG$8, '-----getStreamRingMaxVolume--->>>>' + volume);
|
925
925
|
}
|
926
926
|
this._ringMaxVolume = volume;
|
927
927
|
});
|
@@ -935,7 +935,7 @@ class ESAudioManager {
|
|
935
935
|
ESAudioModule$1.getStreamRingVolume()
|
936
936
|
.then((volume) => {
|
937
937
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
938
|
-
ESLog.d(TAG$
|
938
|
+
ESLog.d(TAG$8, '-----getStreamRingVolume--->>>>' + volume);
|
939
939
|
}
|
940
940
|
this._ringVolume = volume;
|
941
941
|
});
|
@@ -950,7 +950,7 @@ class ESAudioManager {
|
|
950
950
|
ESAudioModule$1.getStreamMusicMaxVolume()
|
951
951
|
.then((volume) => {
|
952
952
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
953
|
-
ESLog.d(TAG$
|
953
|
+
ESLog.d(TAG$8, '-----getStreamMusicMaxVolume--->>>>' + volume);
|
954
954
|
}
|
955
955
|
this._musicMaxVolume = volume;
|
956
956
|
});
|
@@ -964,7 +964,7 @@ class ESAudioManager {
|
|
964
964
|
ESAudioModule$1.getStreamMusicVolume()
|
965
965
|
.then((volume) => {
|
966
966
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
967
|
-
ESLog.d(TAG$
|
967
|
+
ESLog.d(TAG$8, '-----getStreamMusicVolume--->>>>' + volume);
|
968
968
|
}
|
969
969
|
this._musicVolume = volume;
|
970
970
|
});
|
@@ -979,7 +979,7 @@ class ESAudioManager {
|
|
979
979
|
ESAudioModule$1.getStreamAlarmMaxVolume()
|
980
980
|
.then((volume) => {
|
981
981
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
982
|
-
ESLog.d(TAG$
|
982
|
+
ESLog.d(TAG$8, '-----getStreamAlarmMaxVolume--->>>>' + volume);
|
983
983
|
}
|
984
984
|
this._alarmMaxVolume = volume;
|
985
985
|
});
|
@@ -993,7 +993,7 @@ class ESAudioManager {
|
|
993
993
|
ESAudioModule$1.getStreamAlarmVolume()
|
994
994
|
.then((volume) => {
|
995
995
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
996
|
-
ESLog.d(TAG$
|
996
|
+
ESLog.d(TAG$8, '-----getStreamAlarmVolume--->>>>' + volume);
|
997
997
|
}
|
998
998
|
this._alarmVolume = volume;
|
999
999
|
});
|
@@ -1008,7 +1008,7 @@ class ESAudioManager {
|
|
1008
1008
|
ESAudioModule$1.getStreamMaxVolume(streamType)
|
1009
1009
|
.then((volume) => {
|
1010
1010
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1011
|
-
ESLog.d(TAG$
|
1011
|
+
ESLog.d(TAG$8, streamType + '-----getStreamMaxVolume--->>>>' + volume);
|
1012
1012
|
}
|
1013
1013
|
});
|
1014
1014
|
}
|
@@ -1017,7 +1017,7 @@ class ESAudioManager {
|
|
1017
1017
|
ESAudioModule$1.getStreamVolume(streamType)
|
1018
1018
|
.then((volume) => {
|
1019
1019
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1020
|
-
ESLog.d(TAG$
|
1020
|
+
ESLog.d(TAG$8, streamType + '-----getStreamVolume--->>>>' + volume);
|
1021
1021
|
}
|
1022
1022
|
});
|
1023
1023
|
}
|
@@ -2639,7 +2639,7 @@ class ESBroadcastManager {
|
|
2639
2639
|
|
2640
2640
|
var ESBroadcastManager$1 = new ESBroadcastManager();
|
2641
2641
|
|
2642
|
-
const TAG$
|
2642
|
+
const TAG$7 = "ESBroadcast";
|
2643
2643
|
|
2644
2644
|
var ESBroadcast = {
|
2645
2645
|
mounted() {
|
@@ -2666,25 +2666,25 @@ var ESBroadcast = {
|
|
2666
2666
|
if (this.broadcastReceiverSet) {
|
2667
2667
|
this.broadcastReceiverSet.forEach(function (value, key) {
|
2668
2668
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2669
|
-
ESLog.d(TAG$
|
2669
|
+
ESLog.d(TAG$7, key + '#-------TraceAction--->>>>>' + value);
|
2670
2670
|
}
|
2671
2671
|
});
|
2672
2672
|
}
|
2673
2673
|
},
|
2674
2674
|
__onBroadcastReceive(intent) {
|
2675
2675
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2676
|
-
ESLog.d(TAG$
|
2676
|
+
ESLog.d(TAG$7, '#-------onBroadcastReceive----->>>>>' + JSON.stringify(intent));
|
2677
2677
|
}
|
2678
2678
|
if (!this.broadcastReceiverSet || this.broadcastReceiverSet.size <= 0) {
|
2679
2679
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2680
|
-
ESLog.d(TAG$
|
2680
|
+
ESLog.d(TAG$7, '#-------onBroadcastReceive---broadcastReceiverSet为空-->>>>>');
|
2681
2681
|
}
|
2682
2682
|
return;
|
2683
2683
|
}
|
2684
2684
|
//
|
2685
2685
|
else {
|
2686
2686
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2687
|
-
ESLog.d(TAG$
|
2687
|
+
ESLog.d(TAG$7, '#-------onBroadcastReceive---broadcastReceiverSet不为空-->>>>>');
|
2688
2688
|
}
|
2689
2689
|
}
|
2690
2690
|
let action = intent.action;
|
@@ -2703,7 +2703,7 @@ var ESBroadcast = {
|
|
2703
2703
|
|
2704
2704
|
if (!enable) {
|
2705
2705
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2706
|
-
ESLog.d(TAG$
|
2706
|
+
ESLog.d(TAG$7, '#-------onBroadcastReceive---disable-->>>>>');
|
2707
2707
|
}
|
2708
2708
|
return;
|
2709
2709
|
}
|
@@ -2716,7 +2716,7 @@ var ESBroadcast = {
|
|
2716
2716
|
},
|
2717
2717
|
};
|
2718
2718
|
|
2719
|
-
const TAG$
|
2719
|
+
const TAG$6 = "ESRouter";
|
2720
2720
|
|
2721
2721
|
/**
|
2722
2722
|
* router按键管理
|
@@ -2746,12 +2746,12 @@ class ESRouterKeyManager {
|
|
2746
2746
|
if (keyEvent && keyEvent.action === 0) {
|
2747
2747
|
if (this.isFunction(componentInstance.onKeyDown)) {
|
2748
2748
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2749
|
-
ESLog.d(TAG$
|
2749
|
+
ESLog.d(TAG$6, '#-------onKeyDown---success------>>>>>');
|
2750
2750
|
}
|
2751
2751
|
componentInstance.onKeyDown(keyEvent);
|
2752
2752
|
} else {
|
2753
2753
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2754
|
-
ESLog.d(TAG$
|
2754
|
+
ESLog.d(TAG$6, '#-------onKeyDown---error------>>>>>');
|
2755
2755
|
}
|
2756
2756
|
}
|
2757
2757
|
}
|
@@ -2759,19 +2759,19 @@ class ESRouterKeyManager {
|
|
2759
2759
|
else if (keyEvent && keyEvent.action === 1) {
|
2760
2760
|
if (this.isFunction(componentInstance.onKeyUp)) {
|
2761
2761
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2762
|
-
ESLog.d(TAG$
|
2762
|
+
ESLog.d(TAG$6, '#-------onKeyUp---success------>>>>>');
|
2763
2763
|
}
|
2764
2764
|
componentInstance.onKeyUp(keyEvent);
|
2765
2765
|
} else {
|
2766
2766
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2767
|
-
ESLog.d(TAG$
|
2767
|
+
ESLog.d(TAG$6, '#-------onKeyUp---error------>>>>>');
|
2768
2768
|
}
|
2769
2769
|
}
|
2770
2770
|
}
|
2771
2771
|
}
|
2772
2772
|
} else {
|
2773
2773
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2774
|
-
ESLog.d(TAG$
|
2774
|
+
ESLog.d(TAG$6, '#-------dispatchInstanceKeyEvent-----实例对象为空------>>>>>');
|
2775
2775
|
}
|
2776
2776
|
}
|
2777
2777
|
}
|
@@ -2786,17 +2786,17 @@ class ESRouterKeyManager {
|
|
2786
2786
|
if (componentInstance) {
|
2787
2787
|
if (this.isFunction(componentInstance.onBackPressed)) {
|
2788
2788
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2789
|
-
ESLog.d(TAG$
|
2789
|
+
ESLog.d(TAG$6, '#-------onBackPressed---success------>>>>>');
|
2790
2790
|
}
|
2791
2791
|
componentInstance.onBackPressed();
|
2792
2792
|
} else {
|
2793
2793
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2794
|
-
ESLog.d(TAG$
|
2794
|
+
ESLog.d(TAG$6, '#-------onBackPressed---error------>>>>>');
|
2795
2795
|
}
|
2796
2796
|
}
|
2797
2797
|
} else {
|
2798
2798
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2799
|
-
ESLog.d(TAG$
|
2799
|
+
ESLog.d(TAG$6, '#-------dispatchInstanceBackPressed-----实例对象为空------>>>>>');
|
2800
2800
|
}
|
2801
2801
|
}
|
2802
2802
|
}
|
@@ -2821,7 +2821,7 @@ const ES_LIFECYCLE_ON_STOP = 7;
|
|
2821
2821
|
const ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE = 8;
|
2822
2822
|
const ES_LIFECYCLE_ON_DESTROY = 9;
|
2823
2823
|
|
2824
|
-
const TAG$
|
2824
|
+
const TAG$5 = "ESRouter";
|
2825
2825
|
|
2826
2826
|
/**
|
2827
2827
|
* router生命周期管理
|
@@ -2899,7 +2899,7 @@ class ESRouterLifecycleManager {
|
|
2899
2899
|
}
|
2900
2900
|
} else {
|
2901
2901
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2902
|
-
ESLog.d(TAG$
|
2902
|
+
ESLog.d(TAG$5, '#-------onESRouterLifecycleChanged-----实例对象为空------>>>>>');
|
2903
2903
|
}
|
2904
2904
|
}
|
2905
2905
|
}
|
@@ -2916,7 +2916,7 @@ class ESRouterLifecycleManager {
|
|
2916
2916
|
componentInstance.onESNewIntent(params);
|
2917
2917
|
} else {
|
2918
2918
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2919
|
-
ESLog.d(TAG$
|
2919
|
+
ESLog.d(TAG$5, '#-------onESRouterLifecycleNewIntent-----实例对象为空------>>>>>');
|
2920
2920
|
}
|
2921
2921
|
}
|
2922
2922
|
}
|
@@ -2928,7 +2928,7 @@ class ESRouterLifecycleManager {
|
|
2928
2928
|
|
2929
2929
|
var ESRouterLifecycleManager$1 = new ESRouterLifecycleManager();
|
2930
2930
|
|
2931
|
-
const TAG$
|
2931
|
+
const TAG$4 = "ESRouter";
|
2932
2932
|
|
2933
2933
|
var ESRouter = {
|
2934
2934
|
|
@@ -2950,7 +2950,7 @@ var ESRouter = {
|
|
2950
2950
|
//---------------------------返回键--------------------------------
|
2951
2951
|
onESRouterBackPressed() {
|
2952
2952
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2953
|
-
ESLog.d(TAG$
|
2953
|
+
ESLog.d(TAG$4, '#-------onESRouterBackPressed----->>>>>');
|
2954
2954
|
}
|
2955
2955
|
let router = this.$router;
|
2956
2956
|
if (router) {
|
@@ -2961,7 +2961,7 @@ var ESRouter = {
|
|
2961
2961
|
//----------------------------按键-------------------------------
|
2962
2962
|
onESRouterDispatchKeyEvent(keyEvent) {
|
2963
2963
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2964
|
-
ESLog.d(TAG$
|
2964
|
+
ESLog.d(TAG$4, '#-------onESRouterDispatchKeyEvent----->>>>>' + keyEvent);
|
2965
2965
|
}
|
2966
2966
|
let router = this.$router;
|
2967
2967
|
if (router) {
|
@@ -2973,7 +2973,7 @@ var ESRouter = {
|
|
2973
2973
|
//---------------------------生命周期--------------------------------
|
2974
2974
|
onESRouterLifecycleChanged(event) {
|
2975
2975
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2976
|
-
ESLog.d(TAG$
|
2976
|
+
ESLog.d(TAG$4, '#-------onESRouterLifecycleChanged----->>>>>' + event);
|
2977
2977
|
}
|
2978
2978
|
let router = this.$router;
|
2979
2979
|
if (router) {
|
@@ -2985,7 +2985,7 @@ var ESRouter = {
|
|
2985
2985
|
//---------------------------onNewIntent--------------------------------
|
2986
2986
|
onESRouterLifecycleNewIntent(intent) {
|
2987
2987
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2988
|
-
ESLog.d(TAG$
|
2988
|
+
ESLog.d(TAG$4, '#-------onESRouterLifecycleNewIntent----->>>>>' + intent);
|
2989
2989
|
}
|
2990
2990
|
let router = this.$router;
|
2991
2991
|
if (router) {
|
@@ -3342,13 +3342,24 @@ class ES {
|
|
3342
3342
|
|
3343
3343
|
var ES$1 = new ES();
|
3344
3344
|
|
3345
|
+
const TAG$3 = "ESPlugin";
|
3346
|
+
|
3345
3347
|
var ESPlugin = {
|
3346
3348
|
mounted() {
|
3347
|
-
|
3349
|
+
this.onESEventPlugin();
|
3348
3350
|
},
|
3349
3351
|
|
3350
3352
|
methods: {
|
3353
|
+
onESEventPlugin() {
|
3354
|
+
ESApp.$on('onESPluginStateChanged', this.onESPluginStateChanged);
|
3355
|
+
},
|
3356
|
+
offESEventPlugin() {
|
3357
|
+
ESApp.$off('onESPluginStateChanged', this.onESPluginStateChanged);
|
3358
|
+
},
|
3351
3359
|
onESPluginStateChanged(status) {
|
3360
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
3361
|
+
ESLog.d(TAG$3, "--------onESPluginStateChanged------>>>>>" + JSON.stringify(status));
|
3362
|
+
}
|
3352
3363
|
if (status.success) {
|
3353
3364
|
if (status.status === 1002) {
|
3354
3365
|
this.onESPluginInstallProgress(status.pkg, status.status, status.current, status.total);
|
@@ -3370,7 +3381,7 @@ var ESPlugin = {
|
|
3370
3381
|
},
|
3371
3382
|
|
3372
3383
|
beforeDestroy() {
|
3373
|
-
|
3384
|
+
this.offESEventPlugin();
|
3374
3385
|
},
|
3375
3386
|
};
|
3376
3387
|
|