@extscreen/es-core 2.3.23 → 2.3.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +1375 -888
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -201,7 +201,7 @@ var ESDeviceModule$1 = new ESDeviceModule();
201
201
  *
202
202
  */
203
203
 
204
- const TAG$9 = 'ESDeviceManager';
204
+ const TAG$a = 'ESDeviceManager';
205
205
 
206
206
  class ESDeviceManager {
207
207
 
@@ -260,7 +260,7 @@ class ESDeviceManager {
260
260
  ESDeviceModule$1.getDevice().then(
261
261
  (device) => {
262
262
  if (ESLog.isLoggable(ESLog.DEBUG)) {
263
- ESLog.d(TAG$9, '#----------init---------->>>>>' + JSON.stringify(device));
263
+ ESLog.d(TAG$a, '#----------init---------->>>>>' + JSON.stringify(device));
264
264
  }
265
265
  this._device = device;
266
266
 
@@ -313,7 +313,7 @@ class ESDeviceManager {
313
313
  }
314
314
  } catch (e) {
315
315
  if (ESLog.isLoggable(ESLog.DEBUG)) {
316
- ESLog.d(TAG$9, '#----------init---解析--error----->>>>>' + e);
316
+ ESLog.d(TAG$a, '#----------init---解析--error----->>>>>' + e);
317
317
  }
318
318
  }
319
319
  resolve(device);
@@ -321,7 +321,7 @@ class ESDeviceManager {
321
321
  //
322
322
  error => {
323
323
  if (ESLog.isLoggable(ESLog.DEBUG)) {
324
- ESLog.d(TAG$9, '#----------init-----error----->>>>>' + error);
324
+ ESLog.d(TAG$a, '#----------init-----error----->>>>>' + error);
325
325
  }
326
326
  resolve(error);
327
327
  }
@@ -718,187 +718,1290 @@ var ESToastModule$1 = new ESToastModule();
718
718
  /**
719
719
  *
720
720
  */
721
- class ESAppModule {
721
+ class ESModule {
722
722
 
723
- isAppInstalled(packageName) {
723
+ //---------------------------------ESModule--------------------------
724
+ getESDeviceInfo() {
724
725
  return Vue.Native.callNativeWithPromise('EsNativeModule',
725
- 'isAppInstalled', packageName);
726
+ 'getDeviceInfo',);
726
727
  }
727
728
 
728
- isSystemApp(packageName) {
729
- return Vue.Native.callNativeWithPromise('EsNativeModule',
730
- 'isAppSystem', packageName);
729
+ getESSDKInfo() {
730
+ return Vue.Native.callNativeWithPromise('ESModule',
731
+ 'getESSDKInfo',);
731
732
  }
732
733
 
733
- getAppList() {
734
- return Vue.Native.callNativeWithPromise('EsNativeModule',
735
- 'getAppList');
734
+ getESSDKVersionCode() {
735
+ return Vue.Native.callNativeWithPromise('ESModule',
736
+ 'getESSDKVersionCode',);
736
737
  }
737
738
 
738
- getAutoStartAppList() {
739
- return Vue.Native.callNativeWithPromise('EsNativeModule',
740
- 'getAutoStartAppList');
739
+ getESSDKVersionName() {
740
+ return Vue.Native.callNativeWithPromise('ESModule',
741
+ 'getESSDKVersionName',);
741
742
  }
742
743
 
743
- }
744
-
745
- var ESAppModule$1 = new ESAppModule();
746
-
747
- /**
748
- *
749
- */
750
- class ESAppManager {
751
-
752
- init() {
753
- return Promise.resolve();
744
+ getESPackageName() {
745
+ return Vue.Native.callNativeWithPromise('ESModule',
746
+ 'getESPackageName',);
754
747
  }
755
748
 
756
- isAppInstalled(packageName) {
757
- return ESAppModule$1.isAppInstalled(packageName);
749
+ getESMiniProgramPath() {
750
+ return Vue.Native.callNativeWithPromise('ESModule',
751
+ 'getESMiniProgramPath',);
758
752
  }
759
753
 
760
- isSystemApp(packageName) {
761
- return ESAppModule$1.isSystemApp(packageName);
754
+ sendESNativeMapEventTop(eventName, mapParams) {
755
+ return Vue.Native.callNativeWithPromise('ESModule',
756
+ 'sendESNativeMapEventTop', eventName, mapParams);
762
757
  }
763
758
 
764
- getAppList() {
765
- return ESAppModule$1.getAppList();
759
+ sendESNativeArrayEventTop(eventName, arrayParams) {
760
+ return Vue.Native.callNativeWithPromise('ESModule',
761
+ 'sendESNativeArrayEventTop', eventName, arrayParams);
766
762
  }
767
763
 
768
- getAutoStartAppList() {
769
- return ESAppModule$1.getAutoStartAppList();
764
+ sendESNativeMapEventAll(eventName, mapParams) {
765
+ return Vue.Native.callNativeWithPromise('ESModule',
766
+ 'sendESNativeMapEventAll', eventName, mapParams);
770
767
  }
771
- }
772
768
 
773
- var ESAppManager$1 = new ESAppManager();
774
-
775
- /**
776
- *
777
- */
778
- class ESAudioModule {
779
- //------------------------通话音量------------------------
780
- getStreamVoiceCallMaxVolume() {
781
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
782
- 'getStreamVoiceCallMaxVolume');
783
- }
784
769
 
785
- getStreamVoiceCallVolume() {
786
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
787
- 'getStreamVoiceCallVolume');
770
+ sendESNativeArrayEventAll(eventName, arrayParams) {
771
+ return Vue.Native.callNativeWithPromise('ESModule',
772
+ 'sendESNativeArrayEventAll', eventName, arrayParams);
788
773
  }
789
774
 
790
- //------------------------系统音量------------------------
791
- getStreamSystemMaxVolume() {
792
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
793
- 'getStreamSystemMaxVolume');
794
- }
775
+ //---------------------------------EsNativeModule-------------------------
795
776
 
796
- getStreamSystemVolume() {
797
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
798
- 'getStreamSystemVolume');
777
+ getSupportSchemes() {
778
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
779
+ 'getSupportSchemes',);
799
780
  }
800
781
 
801
- //------------------------铃声音量------------------------
802
- getStreamRingMaxVolume() {
803
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
804
- 'getStreamRingMaxVolume');
782
+ getVisiblePageSize() {
783
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
784
+ 'getVisiblePageSize',);
805
785
  }
806
786
 
807
- getStreamRingVolume() {
808
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
809
- 'getStreamRingVolume');
787
+ launchESPageByArgs(args) {
788
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
789
+ 'launchEsPage', {
790
+ args: args,
791
+ });
810
792
  }
811
793
 
812
- //------------------------音乐音量------------------------
813
- getStreamMusicMaxVolume() {
814
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
815
- 'getStreamMusicMaxVolume');
794
+ launchESPage(params) {
795
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
796
+ 'launchEsPage', {
797
+ pkg: params.pkg,
798
+ args: params.args,
799
+ flags: params.flags,
800
+ pageTag: params.pageTag,
801
+ pageLimit: params.pageLimit,
802
+ backgroundColor: params.backgroundColor,
803
+ splash: params.splash,
804
+ });
816
805
  }
817
806
 
818
- getStreamMusicVolume() {
819
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
820
- 'getStreamMusicVolume');
807
+ launchNativeApp(paramsArray) {
808
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
809
+ 'launchNativeApp', paramsArray);
821
810
  }
822
811
 
823
- //------------------------提示音音量------------------------
824
- getStreamAlarmMaxVolume() {
825
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
826
- 'getStreamAlarmMaxVolume');
812
+ launchNativeAppWithPackage(pkg) {
813
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
814
+ 'launchNativeAppWithPackage', pkg);
827
815
  }
828
816
 
829
- getStreamAlarmVolume() {
830
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
831
- 'getStreamAlarmVolume');
817
+ startService(paramsArray) {
818
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
819
+ 'startService', paramsArray);
832
820
  }
833
821
 
834
- //------------------------音量------------------------
835
- getStreamMaxVolume(streamType) {
836
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
837
- 'getStreamMaxVolume', streamType);
822
+ finish() {
823
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
824
+ 'finish');
838
825
  }
839
826
 
840
- getStreamVolume(streamType) {
841
- return Vue.Native.callNativeWithPromise('AndroidAudioModule',
842
- 'getStreamVolume', streamType);
827
+ finishAll() {
828
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
829
+ 'finishAll');
843
830
  }
844
831
 
845
- //------------------------调整音量------------------------
846
- adjustStreamVolume(streamType, adjust, flags) {
847
- Vue.Native.callNative('AndroidAudioModule',
848
- 'adjustStreamVolume', [streamType, adjust, flags]);
849
- }
832
+ //----------------------------组件和模块注册相关--------------------------------------------
850
833
 
851
- setStreamVolume(streamType, index, flags) {
852
- Vue.Native.callNative('AndroidAudioModule',
853
- 'setStreamVolume', [streamType, index, flags]);
834
+ isModuleRegistered(className) {
835
+ return Vue.Native.callNativeWithPromise('ESModule',
836
+ 'isModuleRegistered', className);
854
837
  }
855
838
 
856
- setStreamMute(streamType, state) {
857
- Vue.Native.callNative('AndroidAudioModule',
858
- 'setStreamMute', [streamType, state]);
839
+ isComponentRegistered(className) {
840
+ return Vue.Native.callNativeWithPromise('ESModule',
841
+ 'isComponentRegistered', className);
859
842
  }
860
843
  }
861
844
 
862
- var ESAudioModule$1 = new ESAudioModule();
845
+ var ESModule$1 = new ESModule();
846
+
847
+ const ES_SDK_VERSION_20 = -1;
848
+ const ES_SDK_VERSION_21 = 2.1;
849
+ const ES_SDK_VERSION_22 = 2.2;
850
+ const ES_SDK_VERSION_22_1 = 2.21;
851
+ const ES_SDK_VERSION_23 = 2.3;
852
+ const ES_SDK_VERSION_24 = 2.4;
853
+ const ES_SDK_VERSION_25 = 2.5;
854
+ const ES_SDK_VERSION_26 = 2.6;
855
+ const ES_SDK_VERSION_27 = 2.7;
856
+ const ES_SDK_VERSION_28 = 2.8;
857
+ const ES_SDK_VERSION_29 = 2.9;
858
+ const ES_SDK_VERSION_30 = 3.0;
863
859
 
864
860
  /**
865
861
  *
866
862
  */
867
863
 
868
- const TAG$8 = 'ESAudioManager';
869
-
870
- class ESAudioManager {
864
+ class ESManager {
871
865
 
872
- _voiceCallMaxVolume = -1;
873
- _voiceCallVolume = -1;
866
+ _esSdkCid = null;
867
+ _esSdkVersionCode = null;
868
+ _esSdkVersionName = null;
869
+ _esSdkPackageName = null;
870
+ _esMiniProgramPath = null;
871
+ _esKitVersionCode = -1;
872
+ _esSdkSchemes = [];
873
+ _runtimePath = null;
874
874
 
875
- _systemMaxVolume = -1;
876
- _systemVolume = -1;
875
+ _esSdkInfo = null;
877
876
 
878
- _musicMaxVolume = -1;
879
- _musicVolume = -1;
880
877
 
881
- _ringMaxVolume = -1;
882
- _ringVolume = -1;
878
+ init() {
879
+ return Promise.resolve()
880
+ .then(() => this.initESInfoPromise())
881
+ }
883
882
 
884
- _alarmMaxVolume = -1;
885
- _alarmVolume = -1;
883
+ initESInfoPromise() {
884
+ return ESModule$1.getESSDKInfo()
885
+ .then((result) => {
886
+ this._esSdkInfo = result;
887
+ if (result) {
888
+ this._esSdkVersionCode = result.versionCode;
889
+ this._esSdkVersionName = result.versionName;
890
+ this._esSdkPackageName = result.packageName;
891
+ this._esMiniProgramPath = result.miniProgramPath;
892
+ this._esSdkSchemes = result.schemes;
893
+ if (result.eskit_ver_code) {
894
+ this._esKitVersionCode = result.eskit_ver_code;
895
+ }
896
+ //
897
+ this._runtimePath = result.runtimePath;
898
+ }
899
+ return ESModule$1.getESDeviceInfo();
900
+ }
901
+ )
902
+ //获取cid
903
+ .then((result) => {
904
+ if (result) {
905
+ this._esSdkCid = result.cid;
906
+ }
907
+ return Promise.resolve();
908
+ }
909
+ );
910
+ }
886
911
 
887
- init() {
888
- return this.initPromise();
912
+ getESSDKInfo() {
913
+ return this._esSdkInfo;
889
914
  }
890
915
 
891
- initPromise() {
892
- return new Promise((resolve, reject) => {
893
- if (ESLog.isLoggable(ESLog.DEBUG)) {
894
- ESLog.d(TAG$8, '------------init----start----->>>>');
895
- }
896
- this.getStreamSystemMaxVolume();
897
- this.getStreamSystemVolume();
898
- this.getStreamMusicMaxVolume();
899
- this.getStreamMusicVolume();
900
- resolve(true);
901
- })
916
+ getESSDKCid() {
917
+ return this._esSdkCid;
918
+ }
919
+
920
+ getESSDKVersionCode() {
921
+ return this._esKitVersionCode;
922
+ }
923
+
924
+ getESSDKVersionName() {
925
+ return this._esSdkVersionName;
926
+ }
927
+
928
+ getESPackageName() {
929
+ return this._esSdkPackageName;
930
+ }
931
+
932
+ getESVersionCode() {
933
+ return this._esSdkVersionCode;
934
+ }
935
+
936
+ getESVersionName() {
937
+ return this._esSdkVersionName;
938
+ }
939
+
940
+ /**
941
+ * 获取EsApp路径, 用于文件存储管理
942
+ * @return
943
+ * /data/data/APK包名/app_rpk/apps/小程序包名/files
944
+ * 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
945
+ */
946
+ getESMiniProgramPath() {
947
+ return this._esMiniProgramPath;
948
+ }
949
+
950
+ /**
951
+ * 获取EsApp路径, 用于文件存储管理
952
+ * @return
953
+ * /data/data/APK包名/app_rpk/apps/小程序包名/files
954
+ * 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
955
+ */
956
+ getESAppPath() {
957
+ return this._esMiniProgramPath;
958
+ }
959
+
960
+ /**
961
+ * 获取EsApp运行时路径, 通常用于获取代码包里的assets
962
+ * @return
963
+ * /data/data/APK包名/app_rpk/apps/小程序包名/版本号/android
964
+ * 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/2.2.2203/android
965
+ */
966
+ getESAppRuntimePath() {
967
+ if (this.getESSDKVersionCode() >= ES_SDK_VERSION_22) {
968
+ return this._runtimePath;
969
+ }
970
+ //
971
+ else {
972
+ return this._esMiniProgramPath;
973
+ }
974
+ }
975
+
976
+ getESSDKSupportSchemes() {
977
+ return this._esSdkSchemes;
978
+ }
979
+
980
+ //----------------------------组件和模块注册相关--------------------------------------------
981
+ isModuleRegistered(className) {
982
+ return ESModule$1.isModuleRegistered(className);
983
+ }
984
+
985
+ isComponentRegistered(className) {
986
+ return ESModule$1.isComponentRegistered(className);
987
+ }
988
+ }
989
+
990
+ var ESManager$1 = new ESManager();
991
+
992
+ /**
993
+ *
994
+ */
995
+
996
+
997
+ class ESLaunchManager {
998
+
999
+ _ESRouter = null;
1000
+ _ESRouterEnabled = true;
1001
+ _ESPageRouterViewSupported = false;
1002
+ _launchLimit = 10;
1003
+
1004
+ _routeListener = null;
1005
+
1006
+ _routeListenerList = [];
1007
+
1008
+ init(router) {
1009
+ try {
1010
+ this._ESRouter = router;
1011
+ this._ESPageRouterViewSupported = this.isESPageRouterViewSupported();
1012
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1013
+ ESLog.d('ESRouter', '#------init--------->>' + '\n' +
1014
+ '_ESPageRouterViewSupported: ' + this._ESPageRouterViewSupported + '\n' +
1015
+ '_ESRouter: ' + this._ESRouter
1016
+ );
1017
+ }
1018
+ } catch (e) {
1019
+ }
1020
+ //
1021
+ this._setESPageRouterViewSupported(this._ESPageRouterViewSupported);
1022
+ return Promise.resolve();
1023
+ }
1024
+
1025
+ //----------------------ESPageRouterView--------------------------
1026
+ _setESPageRouterViewSupported(enabled) {
1027
+ this._ESPageRouterViewSupported = enabled;
1028
+ try {
1029
+ if (this._ESRouter) {
1030
+ this._ESRouter.setESPageRouterViewSupported(enabled);
1031
+ }
1032
+ } catch (e) {
1033
+ }
1034
+ }
1035
+
1036
+ isESPageRouterViewSupported() {
1037
+ return ESManager$1.getESSDKVersionCode() >= ES_SDK_VERSION_21;
1038
+ }
1039
+
1040
+ isESRouterSupported() {
1041
+ return this.isESPageRouterViewSupported();
1042
+ }
1043
+
1044
+ //---------------------------------------------------------
1045
+
1046
+ isESRouterEnabled() {
1047
+ return this._ESRouterEnabled;
1048
+ }
1049
+
1050
+ setESRouterEnabled(enabled) {
1051
+ this._ESRouterEnabled = enabled;
1052
+ }
1053
+
1054
+ setLaunchLimit(limit) {
1055
+ this._launchLimit = limit;
1056
+ if (this._ESRouter) {
1057
+ try {
1058
+ this._ESRouter.setRouteLimit(limit);
1059
+ } catch (e) {
1060
+ }
1061
+ }
1062
+ }
1063
+
1064
+ //-----------------------------------------------------------
1065
+
1066
+ addRouteListener(routeListener) {
1067
+ if (this._routeListenerList && this._routeListenerList.length > 0) {
1068
+ for (let i = 0; i < this._routeListenerList.length; i++) {
1069
+ let l = this._routeListenerList[i];
1070
+ if (l === routeListener) {
1071
+ return;
1072
+ }
1073
+ }
1074
+ }
1075
+ this._routeListenerList.push(routeListener);
1076
+ }
1077
+
1078
+ removeRouteListener(routeListener) {
1079
+ if (this._routeListenerList && this._routeListenerList.length > 0) {
1080
+ let index = -1;
1081
+ for (let i = 0; i < this._routeListenerList.length; i++) {
1082
+ let l = this._routeListenerList[i];
1083
+ if (l === routeListener) {
1084
+ index = i;
1085
+ }
1086
+ }
1087
+ if (index > -1) {
1088
+ this._routeListenerList.splice(index, 1);
1089
+ }
1090
+ }
1091
+ }
1092
+
1093
+ _notifyRouteListenerList(url, params) {
1094
+ try {
1095
+ if (this._routeListenerList && this._routeListenerList.length > 0) {
1096
+ for (let i = 0; i < this._routeListenerList.length; i++) {
1097
+ let listener = this._routeListenerList[i];
1098
+ if (listener && this.isFunction(listener)) {
1099
+ try {
1100
+ listener(url, params);
1101
+ } catch (e) {
1102
+ }
1103
+ }
1104
+ }
1105
+ }
1106
+ } catch (e) {
1107
+ }
1108
+ }
1109
+
1110
+ //-----------------------------------------------------------
1111
+ setRouteListener(routeListener) {
1112
+ this._routeListener = routeListener;
1113
+ }
1114
+
1115
+ _notifyListeners(url, params) {
1116
+ //1.
1117
+ try {
1118
+ if (this._routeListener && this.isFunction(this._routeListener)) {
1119
+ this._routeListener(url, params);
1120
+ }
1121
+ } catch (e) {
1122
+
1123
+ }
1124
+ //2.
1125
+ try {
1126
+ this._notifyRouteListenerList(url, params);
1127
+ } catch (e) {
1128
+ }
1129
+ }
1130
+
1131
+ isFunction(func) {
1132
+ return Object.prototype.toString.call(func) === '[object Function]';
1133
+ }
1134
+
1135
+ //-----------------------------------------------------------
1136
+ launchNativeApp(paramsArray) {
1137
+ return ESModule$1.launchNativeApp(paramsArray);
1138
+ }
1139
+
1140
+ launchNativePage(intent) {
1141
+ return ESModule$1.launchESPage({
1142
+ args: {
1143
+ url: intent.url,
1144
+ params: intent.params
1145
+ },
1146
+ flags: intent.flags,
1147
+ pageTag: intent.pageTag,
1148
+ pageLimit: intent.pageLimit,
1149
+ backgroundColor: intent.backgroundColor,
1150
+ //
1151
+ pkg: intent.packageName,
1152
+ splash: intent.splash,
1153
+ transparent: intent.transparent
1154
+ });
1155
+ }
1156
+
1157
+ launchESPage(intent) {
1158
+ let url = intent.url;
1159
+ let params = intent.params;
1160
+
1161
+ if (this.isESRouterEnabled()
1162
+ && this.isESRouterSupported()
1163
+ && this._ESRouter) {
1164
+ //
1165
+ this._notifyListeners(url, params);
1166
+ //
1167
+ this._ESRouter.push({
1168
+ name: url,
1169
+ params: params,
1170
+ });
1171
+ }
1172
+ //
1173
+ else {
1174
+ //
1175
+ this._notifyListeners(url, params);
1176
+ //
1177
+ this.launchNativePage(intent);
1178
+ }
1179
+ }
1180
+
1181
+ launchAfterFinishESPage(intent) {
1182
+ let url = intent.url;
1183
+ let params = intent.params;
1184
+
1185
+ if (this.isESRouterEnabled()
1186
+ && this.isESRouterSupported()
1187
+ && this._ESRouter) {
1188
+ this._ESRouter.back();
1189
+ //
1190
+ this._notifyListeners(url, params);
1191
+
1192
+ this._ESRouter.push({
1193
+ name: intent.url,
1194
+ params: intent.params,
1195
+ });
1196
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1197
+ ESLog.d('ESRouter', '#----launchAfterFinishESPage--vue--back&&push----->>>>>');
1198
+ }
1199
+ }
1200
+ //
1201
+ else {
1202
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1203
+ ESLog.d('ESRouter', '#----launchAfterFinishESPage--native--finish&&launch----->>>>>');
1204
+ }
1205
+ //1.finish
1206
+ ESModule$1.finish();
1207
+ //
1208
+ this._notifyListeners(url, params);
1209
+
1210
+ //2.launch
1211
+ this.launchNativePage(intent);
1212
+ }
1213
+ }
1214
+
1215
+ finishAllESPage() {
1216
+ ESModule$1.finishAll();
1217
+ }
1218
+
1219
+ finishNativePage() {
1220
+ ESModule$1.finish();
1221
+ }
1222
+
1223
+ finishESPage() {
1224
+ if (this.isESRouterEnabled()
1225
+ && this.isESRouterSupported()
1226
+ && this._ESRouter
1227
+ && this._ESRouter.back()) {
1228
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1229
+ ESLog.d('ESRouter', '#----finishESPage---ESRouter.back----->>>>>');
1230
+ }
1231
+ //
1232
+ }
1233
+ //
1234
+ else {
1235
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1236
+ ESLog.d('ESRouter', '#----finishESPage---ESModule.finish----->>>>>');
1237
+ }
1238
+ ESModule$1.finish();
1239
+ }
1240
+ }
1241
+
1242
+ /**
1243
+ * 获取当前页面的路由
1244
+ */
1245
+ getCurrentESPage() {
1246
+ if (this._ESRouter && this._ESRouter.currentRoute) {
1247
+ return {
1248
+ url: this._ESRouter.currentRoute.name,
1249
+ params: this._ESRouter.currentRoute.params,
1250
+ };
1251
+ }
1252
+ return null;
1253
+ }
1254
+ }
1255
+
1256
+ var ESLaunchManager$1 = new ESLaunchManager();
1257
+
1258
+ /**
1259
+ *
1260
+ */
1261
+ class ESSharedDataModule {
1262
+
1263
+ getBoolean(params, key, defValue) {
1264
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getBoolean',
1265
+ params, key, defValue);
1266
+ }
1267
+
1268
+ putBoolean(params, key, defValue, mode) {
1269
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putBoolean',
1270
+ params, key, defValue, mode);
1271
+ }
1272
+
1273
+ //
1274
+ getInt(params, key, defValue) {
1275
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getInt',
1276
+ params, key, defValue);
1277
+ }
1278
+
1279
+ putInt(params, key, defValue, mode) {
1280
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putInt',
1281
+ params, key, defValue, mode);
1282
+ }
1283
+
1284
+ //
1285
+ getLong(params, key, defValue) {
1286
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getLong',
1287
+ params, key, defValue);
1288
+ }
1289
+
1290
+ putLong(params, key, defValue, mode) {
1291
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putLong',
1292
+ params, key, defValue, mode);
1293
+ }
1294
+
1295
+ //
1296
+ getString(params, key, defValue) {
1297
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getString',
1298
+ params, key, defValue);
1299
+ }
1300
+
1301
+ putString(params, key, defValue, mode) {
1302
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putString',
1303
+ params, key, defValue, mode);
1304
+ }
1305
+
1306
+ //
1307
+ getArray(params, key, defValue) {
1308
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getArray',
1309
+ params, key, defValue);
1310
+ }
1311
+
1312
+ putArray(params, key, defValue, mode) {
1313
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putArray',
1314
+ params, key, defValue, mode);
1315
+ }
1316
+
1317
+ //
1318
+ getMap(params, key, defValue) {
1319
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getMap',
1320
+ params, key, defValue);
1321
+ }
1322
+
1323
+ putMap(params, key, defValue, mode) {
1324
+ return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putMap',
1325
+ params, key, defValue, mode);
1326
+ }
1327
+ }
1328
+
1329
+ var ESSharedDataModule$1 = new ESSharedDataModule();
1330
+
1331
+ //
1332
+ const ES_SHARED_DATA_MODE_PRIVATE = 0;
1333
+ const ES_SHARED_DATA_MODE_WORLD_READABLE = 1;
1334
+ const ES_SHARED_DATA_MODE_WORLD_WRITEABLE = 2;
1335
+
1336
+ //
1337
+ const ES_SHARED_DATA_TYPE_INT = 0;
1338
+ const ES_SHARED_DATA_TYPE_LONG = 1;
1339
+ const ES_SHARED_DATA_TYPE_FLOAT = 2;
1340
+ const ES_SHARED_DATA_TYPE_STRING = 3;
1341
+ const ES_SHARED_DATA_TYPE_BOOLEAN = 4;
1342
+ const ES_SHARED_DATA_TYPE_MAP = 5;
1343
+ const ES_SHARED_DATA_TYPE_ARRAY = 6;
1344
+
1345
+ /**
1346
+ *
1347
+ */
1348
+
1349
+ class ESSharedPreferencesModule {
1350
+
1351
+ initSharedPreferences(name) {
1352
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1353
+ 'initSharedPreferences', name);
1354
+ }
1355
+
1356
+ initESSharedPreferences(name) {
1357
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1358
+ 'initESSharedPreferences', name);
1359
+ }
1360
+
1361
+ //----------------------------------------------------
1362
+ getBoolean(key, defValue) {
1363
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1364
+ 'getBoolean', key, defValue);
1365
+ }
1366
+
1367
+ putBoolean(key, value) {
1368
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1369
+ 'putBoolean', key, value);
1370
+ }
1371
+
1372
+ //----------------------------------------------------
1373
+
1374
+ getInt(key, defValue) {
1375
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1376
+ 'getInt', key, defValue);
1377
+ }
1378
+
1379
+ putInt(key, value) {
1380
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1381
+ 'putInt', key, value);
1382
+ }
1383
+
1384
+ //----------------------------------------------------
1385
+
1386
+ getLong(key, defValue) {
1387
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1388
+ 'getLong', key, defValue);
1389
+ }
1390
+
1391
+ putLong(key, value) {
1392
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1393
+ 'putLong', key, value);
1394
+ }
1395
+
1396
+ //----------------------------------------------------
1397
+ getString(key, defValue) {
1398
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1399
+ 'getString', key, defValue);
1400
+ }
1401
+
1402
+ putString(key, value) {
1403
+ return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1404
+ 'putString', key, value);
1405
+ }
1406
+
1407
+ //----------------------------------------------------
1408
+ }
1409
+
1410
+ var ESSharedPreferencesModule$1 = new ESSharedPreferencesModule();
1411
+
1412
+ /**
1413
+ *
1414
+ */
1415
+
1416
+ const TAG$9 = 'ESSPDataModule';
1417
+
1418
+ class ESSPDataModule {
1419
+
1420
+ //
1421
+ _sharedDataFilePostfix = '_group_data';
1422
+
1423
+ getBoolean(params, key, defValue) {
1424
+ return this._getSharedData(params, key, defValue);
1425
+ }
1426
+
1427
+ putBoolean(params, key, value, mode) {
1428
+ return this._putSharedData(params, ES_SHARED_DATA_TYPE_BOOLEAN, key, value, mode);
1429
+ }
1430
+
1431
+ //
1432
+ getInt(params, key, defValue) {
1433
+ return this._getSharedData(params, key, defValue);
1434
+ }
1435
+
1436
+ putInt(params, key, value, mode) {
1437
+ return this._putSharedData(params, ES_SHARED_DATA_TYPE_INT, key, value, mode);
1438
+ }
1439
+
1440
+ //
1441
+ getLong(params, key, defValue) {
1442
+ return this._getSharedData(params, key, defValue);
1443
+ }
1444
+
1445
+ putLong(params, key, value, mode) {
1446
+ return this._putSharedData(params, ES_SHARED_DATA_TYPE_LONG, key, value, mode);
1447
+ }
1448
+
1449
+ //
1450
+ getString(params, key, defValue) {
1451
+ return this._getSharedData(params, key, defValue);
1452
+ }
1453
+
1454
+ putString(params, key, value, mode) {
1455
+ return this._putSharedData(params, ES_SHARED_DATA_TYPE_STRING, key, value, mode);
1456
+ }
1457
+
1458
+ //
1459
+ getArray(params, key, defValue) {
1460
+ return this._getSharedData(params, key, defValue);
1461
+ }
1462
+
1463
+ putArray(params, key, value, mode) {
1464
+ return this._putSharedData(params, ES_SHARED_DATA_TYPE_ARRAY, key, value, mode);
1465
+ }
1466
+
1467
+ //
1468
+ getMap(params, key, defValue) {
1469
+ return this._getSharedData(params, key, defValue);
1470
+ }
1471
+
1472
+ putMap(params, key, value, mode) {
1473
+ return this._putSharedData(params, ES_SHARED_DATA_TYPE_MAP, key, value, mode);
1474
+ }
1475
+
1476
+ //---------------------------------------------------
1477
+ _getSharedData(params, key, defValue) {
1478
+ if (!params || !params.packageName) {
1479
+ return Promise.resolve(defValue);
1480
+ }
1481
+ let fileName = params.packageName + this._sharedDataFilePostfix;
1482
+ return ESSharedPreferencesModule$1.initSharedPreferences(fileName)
1483
+ .then(() => ESSharedPreferencesModule$1.getString(key, null))
1484
+ .then((result) => {
1485
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1486
+ ESLog.d(TAG$9, "------_getSharedData---sp-->>>"
1487
+ + "result:" + result + "--->>>"
1488
+ );
1489
+ }
1490
+ if (result) {
1491
+ let shareData = JSON.parse(result);
1492
+ if (shareData) {
1493
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1494
+ ESLog.d(TAG$9, "------_getSharedData--shareData--->>>");
1495
+ }
1496
+ return Promise.resolve(shareData.data);
1497
+ }
1498
+ }
1499
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1500
+ ESLog.d(TAG$9, "------_getSharedData----->>>"
1501
+ + "defValue:" + defValue + "--->>>"
1502
+ );
1503
+ }
1504
+ return Promise.resolve(defValue);
1505
+ }
1506
+ );
1507
+ }
1508
+
1509
+ _putSharedData(params, type, key, value, mode) {
1510
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1511
+ ESLog.d(TAG$9, "------_putSharedData--start--->>>"
1512
+ + "params:" + params + "--->>>"
1513
+ + "type:" + type + "--->>>"
1514
+ + "key:" + key + "--->>>"
1515
+ + "value:" + value + "--->>>"
1516
+ + "mode:" + mode + "--->>>"
1517
+ );
1518
+ }
1519
+ if (!params || !params.packageName) {
1520
+ return Promise.resolve(false);
1521
+ }
1522
+
1523
+ let selfPackageName = ESManager$1.getESPackageName();
1524
+ let fileName = params.packageName + this._sharedDataFilePostfix;
1525
+
1526
+ //----------------------self------------------------------
1527
+ if (selfPackageName === params.packageName) {
1528
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1529
+ ESLog.d(TAG$9, "----SELF-------_pushSPSharedData----->>>");
1530
+ }
1531
+ return this._pushSPSharedData(fileName, key, {
1532
+ mode: mode,
1533
+ type: type,
1534
+ secretKey: params.secretKey,
1535
+ data: value,
1536
+ });
1537
+ }
1538
+ //-----------------------other-----------------------------
1539
+ return ESSharedPreferencesModule$1.initSharedPreferences(fileName)
1540
+ .then(() => ESSharedPreferencesModule$1.getString(key, null))
1541
+ .then((result) => {
1542
+ if (result) {
1543
+ let shareData = JSON.parse(result);
1544
+ if (shareData && shareData.mode >= ES_SHARED_DATA_MODE_WORLD_WRITEABLE
1545
+ && ((!shareData.secretKey)
1546
+ || (shareData.secretKey && shareData.secretKey === params.secretKey))) {
1547
+ return this._pushSPSharedData(fileName, key, {
1548
+ mode: result.mode,
1549
+ type: result.type,
1550
+ secretKey: result.secretKey,
1551
+ data: value,
1552
+ });
1553
+ }
1554
+ }
1555
+ return Promise.resolve(false);
1556
+ }
1557
+ );
1558
+ }
1559
+
1560
+ _pushSPSharedData(fileName, key, sharedData) {
1561
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1562
+ ESLog.d(TAG$9, "------_pushSPSharedData--end--->>>"
1563
+ + "fileName:" + fileName + "--->>>"
1564
+ + "key:" + key + "--->>>"
1565
+ + "sharedData:" + JSON.stringify(sharedData) + "--->>>"
1566
+ );
1567
+ }
1568
+ return ESSharedPreferencesModule$1.initSharedPreferences(fileName)
1569
+ .then(() => ESSharedPreferencesModule$1.putString(key, JSON.stringify(sharedData)));
1570
+ }
1571
+ }
1572
+
1573
+ var ESSPDataModule$1 = new ESSPDataModule();
1574
+
1575
+ /**
1576
+ *
1577
+ */
1578
+
1579
+ class ESSharedDataManager {
1580
+
1581
+ _packageName = "";
1582
+ _sharedDataManager = null;
1583
+
1584
+ init() {
1585
+ this._packageName = ESManager$1.getESPackageName();
1586
+ let sdkVersion = ESManager$1.getESSDKVersionCode();
1587
+ if (sdkVersion >= ES_SDK_VERSION_22) {
1588
+ this._sharedDataManager = ESSharedDataModule$1;
1589
+ }
1590
+ //
1591
+ else {
1592
+ this._sharedDataManager = ESSPDataModule$1;
1593
+ }
1594
+ return Promise.resolve();
1595
+ }
1596
+
1597
+ getPackageName() {
1598
+ return this._packageName;
1599
+ }
1600
+
1601
+ //---------------------------操作自己的共享数据--------------------------------
1602
+ //
1603
+ getBoolean(key, defValue) {
1604
+ let params = {
1605
+ packageName: this._packageName,
1606
+ };
1607
+ return this._sharedDataManager.getBoolean(params, key, defValue);
1608
+ }
1609
+
1610
+ putBoolean(secretKey, key, value, mode) {
1611
+ let params = {
1612
+ packageName: this._packageName,
1613
+ secretKey: secretKey,
1614
+ };
1615
+ return this._sharedDataManager.putBoolean(params, key, value, mode);
1616
+ }
1617
+
1618
+ //
1619
+ getInt(key, defValue) {
1620
+ let params = {
1621
+ packageName: this._packageName,
1622
+ };
1623
+ return this._sharedDataManager.getInt(params, key, defValue);
1624
+ }
1625
+
1626
+ putInt(secretKey, key, value, mode) {
1627
+ let params = {
1628
+ packageName: this._packageName,
1629
+ secretKey: secretKey,
1630
+ };
1631
+ return this._sharedDataManager.putInt(params, key, value, mode);
1632
+ }
1633
+
1634
+ //
1635
+ getLong(key, defValue) {
1636
+ let params = {
1637
+ packageName: this._packageName,
1638
+ };
1639
+ return this._sharedDataManager.getLong(params, key, defValue);
1640
+ }
1641
+
1642
+ putLong(secretKey, key, value, mode) {
1643
+ let params = {
1644
+ packageName: this._packageName,
1645
+ secretKey: secretKey,
1646
+ };
1647
+ return this._sharedDataManager.putLong(params, key, value, mode);
1648
+ }
1649
+
1650
+ //
1651
+ getString(key, defValue) {
1652
+ let params = {
1653
+ packageName: this._packageName,
1654
+ };
1655
+ return this._sharedDataManager.getString(params, key, defValue);
1656
+ }
1657
+
1658
+ putString(secretKey, key, value, mode) {
1659
+ let params = {
1660
+ packageName: this._packageName,
1661
+ secretKey: secretKey,
1662
+ };
1663
+ return this._sharedDataManager.putString(params, key, value, mode);
1664
+ }
1665
+
1666
+ //
1667
+ getArray(key, defValue) {
1668
+ let params = {
1669
+ packageName: this._packageName,
1670
+ };
1671
+ return this._sharedDataManager.getArray(params, key, defValue);
1672
+ }
1673
+
1674
+ putArray(secretKey, key, value, mode) {
1675
+ let params = {
1676
+ packageName: this._packageName,
1677
+ secretKey: secretKey,
1678
+ };
1679
+ return this._sharedDataManager.putArray(params, key, value, mode);
1680
+ }
1681
+
1682
+ //
1683
+ getMap(key, defValue) {
1684
+ let params = {
1685
+ packageName: this._packageName,
1686
+ };
1687
+ return this._sharedDataManager.getMap(params, key, defValue);
1688
+ }
1689
+
1690
+ putMap(secretKey, key, value, mode) {
1691
+ let params = {
1692
+ packageName: this._packageName,
1693
+ secretKey: secretKey,
1694
+ };
1695
+ return this._sharedDataManager.putMap(params, key, value, mode);
1696
+ }
1697
+
1698
+ //----------------------------操作其他APP的共享数据-----------------------------------
1699
+ //
1700
+ getSharedBoolean(params, key, defValue) {
1701
+ return this._sharedDataManager.getBoolean(params, key, defValue);
1702
+ }
1703
+
1704
+ putSharedBoolean(params, key, value) {
1705
+ return this._sharedDataManager.putBoolean(params, key, value, -1);
1706
+ }
1707
+
1708
+ //
1709
+ getSharedInt(params, key, defValue) {
1710
+ return this._sharedDataManager.getInt(params, key, defValue);
1711
+ }
1712
+
1713
+ putSharedInt(params, key, value) {
1714
+ return this._sharedDataManager.putInt(params, key, value, -1);
1715
+ }
1716
+
1717
+ //
1718
+ getSharedLong(params, key, defValue) {
1719
+ return this._sharedDataManager.getLong(params, key, defValue);
1720
+ }
1721
+
1722
+ putSharedLong(params, key, value) {
1723
+ return this._sharedDataManager.putLong(params, key, value, -1);
1724
+ }
1725
+
1726
+ //
1727
+ getSharedString(params, key, defValue) {
1728
+ return this._sharedDataManager.getString(params, key, defValue);
1729
+ }
1730
+
1731
+ putSharedString(params, key, value) {
1732
+ return this._sharedDataManager.putString(params, key, value, -1);
1733
+ }
1734
+
1735
+ //
1736
+ getSharedArray(params, key, defValue) {
1737
+ return this._sharedDataManager.getArray(params, key, defValue);
1738
+ }
1739
+
1740
+ putSharedArray(params, key, value) {
1741
+ return this._sharedDataManager.putArray(params, key, value, -1);
1742
+ }
1743
+
1744
+ //
1745
+ getSharedMap(params, key, defValue) {
1746
+ return this._sharedDataManager.getMap(params, key, defValue);
1747
+ }
1748
+
1749
+ putSharedMap(params, key, value) {
1750
+ return this._sharedDataManager.putMap(params, key, value, -1);
1751
+ }
1752
+ }
1753
+
1754
+ var ESSharedDataManager$1 = new ESSharedDataManager();
1755
+
1756
+ //
1757
+
1758
+ class ESLocationManager {
1759
+
1760
+ init() {
1761
+ return Promise.resolve();
1762
+ }
1763
+
1764
+ getLocation() {
1765
+ return new Promise((resolve, reject) => {
1766
+ ESSharedDataManager$1.getString('location', '')
1767
+ .then((str) => {
1768
+ try {
1769
+ const location = JSON.parse(str);
1770
+ resolve(location);
1771
+ } catch (e) {
1772
+ resolve(null);
1773
+ }
1774
+ },
1775
+ error => {
1776
+ reject(error);
1777
+ });
1778
+ })
1779
+ }
1780
+
1781
+ launchLocation() {
1782
+ ESLaunchManager$1.launchNativePage({
1783
+ url: 'location',
1784
+ packageName: 'es.extscreen.runtime.setting',
1785
+ splash: -1,
1786
+ transparent: true
1787
+ });
1788
+ }
1789
+ }
1790
+
1791
+ var ESLocationManager$1 = new ESLocationManager();
1792
+
1793
+ let ESApp;
1794
+
1795
+ function setESApp(app) {
1796
+ ESApp = app;
1797
+ }
1798
+
1799
+ function getESApp() {
1800
+ return ESApp;
1801
+ }
1802
+
1803
+ var ESLocation = {
1804
+ mounted() {
1805
+ ESApp.$on('51C16B03BB8CCDEB4CA302D15FA2B9DC', this.__onLocationChangedMessage);
1806
+ },
1807
+
1808
+ methods: {
1809
+ __onLocationChangedMessage(message) {
1810
+ this.onLocationChange(message.extras);
1811
+ },
1812
+ onLocationChange(message) {
1813
+ },
1814
+ },
1815
+
1816
+ beforeDestroy() {
1817
+ ESApp.$off('51C16B03BB8CCDEB4CA302D15FA2B9DC', this.__onLocationChangedMessage);
1818
+ },
1819
+ };
1820
+
1821
+ /**
1822
+ *
1823
+ */
1824
+ class ESAppModule {
1825
+
1826
+ isAppInstalled(packageName) {
1827
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
1828
+ 'isAppInstalled', packageName);
1829
+ }
1830
+
1831
+ isSystemApp(packageName) {
1832
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
1833
+ 'isAppSystem', packageName);
1834
+ }
1835
+
1836
+ getAppList() {
1837
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
1838
+ 'getAppList');
1839
+ }
1840
+
1841
+ getAutoStartAppList() {
1842
+ return Vue.Native.callNativeWithPromise('EsNativeModule',
1843
+ 'getAutoStartAppList');
1844
+ }
1845
+
1846
+ }
1847
+
1848
+ var ESAppModule$1 = new ESAppModule();
1849
+
1850
+ /**
1851
+ *
1852
+ */
1853
+ class ESAppManager {
1854
+
1855
+ init() {
1856
+ return Promise.resolve();
1857
+ }
1858
+
1859
+ isAppInstalled(packageName) {
1860
+ return ESAppModule$1.isAppInstalled(packageName);
1861
+ }
1862
+
1863
+ isSystemApp(packageName) {
1864
+ return ESAppModule$1.isSystemApp(packageName);
1865
+ }
1866
+
1867
+ getAppList() {
1868
+ return ESAppModule$1.getAppList();
1869
+ }
1870
+
1871
+ getAutoStartAppList() {
1872
+ return ESAppModule$1.getAutoStartAppList();
1873
+ }
1874
+ }
1875
+
1876
+ var ESAppManager$1 = new ESAppManager();
1877
+
1878
+ /**
1879
+ *
1880
+ */
1881
+ class ESAudioModule {
1882
+ //------------------------通话音量------------------------
1883
+ getStreamVoiceCallMaxVolume() {
1884
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1885
+ 'getStreamVoiceCallMaxVolume');
1886
+ }
1887
+
1888
+ getStreamVoiceCallVolume() {
1889
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1890
+ 'getStreamVoiceCallVolume');
1891
+ }
1892
+
1893
+ //------------------------系统音量------------------------
1894
+ getStreamSystemMaxVolume() {
1895
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1896
+ 'getStreamSystemMaxVolume');
1897
+ }
1898
+
1899
+ getStreamSystemVolume() {
1900
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1901
+ 'getStreamSystemVolume');
1902
+ }
1903
+
1904
+ //------------------------铃声音量------------------------
1905
+ getStreamRingMaxVolume() {
1906
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1907
+ 'getStreamRingMaxVolume');
1908
+ }
1909
+
1910
+ getStreamRingVolume() {
1911
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1912
+ 'getStreamRingVolume');
1913
+ }
1914
+
1915
+ //------------------------音乐音量------------------------
1916
+ getStreamMusicMaxVolume() {
1917
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1918
+ 'getStreamMusicMaxVolume');
1919
+ }
1920
+
1921
+ getStreamMusicVolume() {
1922
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1923
+ 'getStreamMusicVolume');
1924
+ }
1925
+
1926
+ //------------------------提示音音量------------------------
1927
+ getStreamAlarmMaxVolume() {
1928
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1929
+ 'getStreamAlarmMaxVolume');
1930
+ }
1931
+
1932
+ getStreamAlarmVolume() {
1933
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1934
+ 'getStreamAlarmVolume');
1935
+ }
1936
+
1937
+ //------------------------音量------------------------
1938
+ getStreamMaxVolume(streamType) {
1939
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1940
+ 'getStreamMaxVolume', streamType);
1941
+ }
1942
+
1943
+ getStreamVolume(streamType) {
1944
+ return Vue.Native.callNativeWithPromise('AndroidAudioModule',
1945
+ 'getStreamVolume', streamType);
1946
+ }
1947
+
1948
+ //------------------------调整音量------------------------
1949
+ adjustStreamVolume(streamType, adjust, flags) {
1950
+ Vue.Native.callNative('AndroidAudioModule',
1951
+ 'adjustStreamVolume', [streamType, adjust, flags]);
1952
+ }
1953
+
1954
+ setStreamVolume(streamType, index, flags) {
1955
+ Vue.Native.callNative('AndroidAudioModule',
1956
+ 'setStreamVolume', [streamType, index, flags]);
1957
+ }
1958
+
1959
+ setStreamMute(streamType, state) {
1960
+ Vue.Native.callNative('AndroidAudioModule',
1961
+ 'setStreamMute', [streamType, state]);
1962
+ }
1963
+ }
1964
+
1965
+ var ESAudioModule$1 = new ESAudioModule();
1966
+
1967
+ /**
1968
+ *
1969
+ */
1970
+
1971
+ const TAG$8 = 'ESAudioManager';
1972
+
1973
+ class ESAudioManager {
1974
+
1975
+ _voiceCallMaxVolume = -1;
1976
+ _voiceCallVolume = -1;
1977
+
1978
+ _systemMaxVolume = -1;
1979
+ _systemVolume = -1;
1980
+
1981
+ _musicMaxVolume = -1;
1982
+ _musicVolume = -1;
1983
+
1984
+ _ringMaxVolume = -1;
1985
+ _ringVolume = -1;
1986
+
1987
+ _alarmMaxVolume = -1;
1988
+ _alarmVolume = -1;
1989
+
1990
+ init() {
1991
+ return this.initPromise();
1992
+ }
1993
+
1994
+ initPromise() {
1995
+ return new Promise((resolve, reject) => {
1996
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
1997
+ ESLog.d(TAG$8, '------------init----start----->>>>');
1998
+ }
1999
+ this.getStreamSystemMaxVolume();
2000
+ this.getStreamSystemVolume();
2001
+ this.getStreamMusicMaxVolume();
2002
+ this.getStreamMusicVolume();
2003
+ resolve(true);
2004
+ })
902
2005
  }
903
2006
 
904
2007
  //------------------------通话音量------------------------
@@ -994,221 +2097,92 @@ class ESAudioManager {
994
2097
  .then((volume) => {
995
2098
  if (ESLog.isLoggable(ESLog.DEBUG)) {
996
2099
  ESLog.d(TAG$8, '-----getStreamMusicMaxVolume--->>>>' + volume);
997
- }
998
- this._musicMaxVolume = volume;
999
- });
1000
- }
1001
-
1002
- get musicMaxVolume() {
1003
- return this._musicMaxVolume;
1004
- }
1005
-
1006
- getStreamMusicVolume() {
1007
- ESAudioModule$1.getStreamMusicVolume()
1008
- .then((volume) => {
1009
- if (ESLog.isLoggable(ESLog.DEBUG)) {
1010
- ESLog.d(TAG$8, '-----getStreamMusicVolume--->>>>' + volume);
1011
- }
1012
- this._musicVolume = volume;
1013
- });
1014
- }
1015
-
1016
- get musicVolume() {
1017
- return this._musicVolume;
1018
- }
1019
-
1020
- //------------------------提示音音量------------------------
1021
- getStreamAlarmMaxVolume() {
1022
- ESAudioModule$1.getStreamAlarmMaxVolume()
1023
- .then((volume) => {
1024
- if (ESLog.isLoggable(ESLog.DEBUG)) {
1025
- ESLog.d(TAG$8, '-----getStreamAlarmMaxVolume--->>>>' + volume);
1026
- }
1027
- this._alarmMaxVolume = volume;
1028
- });
1029
- }
1030
-
1031
- get alarmMaxVolume() {
1032
- return this._alarmMaxVolume;
1033
- }
1034
-
1035
- getStreamAlarmVolume() {
1036
- ESAudioModule$1.getStreamAlarmVolume()
1037
- .then((volume) => {
1038
- if (ESLog.isLoggable(ESLog.DEBUG)) {
1039
- ESLog.d(TAG$8, '-----getStreamAlarmVolume--->>>>' + volume);
1040
- }
1041
- this._alarmVolume = volume;
1042
- });
1043
- }
1044
-
1045
- get alarmVolume() {
1046
- return this._alarmVolume;
1047
- }
1048
-
1049
- //------------------------音量------------------------
1050
- getStreamMaxVolume(streamType) {
1051
- ESAudioModule$1.getStreamMaxVolume(streamType)
1052
- .then((volume) => {
1053
- if (ESLog.isLoggable(ESLog.DEBUG)) {
1054
- ESLog.d(TAG$8, streamType + '-----getStreamMaxVolume--->>>>' + volume);
1055
- }
1056
- });
1057
- }
1058
-
1059
- getStreamVolume(streamType) {
1060
- ESAudioModule$1.getStreamVolume(streamType)
1061
- .then((volume) => {
1062
- if (ESLog.isLoggable(ESLog.DEBUG)) {
1063
- ESLog.d(TAG$8, streamType + '-----getStreamVolume--->>>>' + volume);
1064
- }
1065
- });
1066
- }
1067
-
1068
- //------------------------调整音量------------------------
1069
- adjustStreamVolume(streamType, adjust, flags) {
1070
- ESAudioModule$1.adjustStreamVolume(streamType, adjust, flags);
1071
- }
1072
-
1073
- setStreamVolume(streamType, index, flags) {
1074
- ESAudioModule$1.setStreamVolume(streamType, index, flags);
1075
- }
1076
-
1077
- setStreamMute(streamType, state) {
1078
- ESAudioModule$1.setStreamMute(streamType, state);
1079
- }
1080
- }
1081
-
1082
- var ESAudioManager$1 = new ESAudioManager();
1083
-
1084
- /**
1085
- *
1086
- */
1087
- class ESModule {
1088
-
1089
- //---------------------------------ESModule--------------------------
1090
- getESDeviceInfo() {
1091
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1092
- 'getDeviceInfo',);
1093
- }
1094
-
1095
- getESSDKInfo() {
1096
- return Vue.Native.callNativeWithPromise('ESModule',
1097
- 'getESSDKInfo',);
1098
- }
1099
-
1100
- getESSDKVersionCode() {
1101
- return Vue.Native.callNativeWithPromise('ESModule',
1102
- 'getESSDKVersionCode',);
1103
- }
1104
-
1105
- getESSDKVersionName() {
1106
- return Vue.Native.callNativeWithPromise('ESModule',
1107
- 'getESSDKVersionName',);
1108
- }
1109
-
1110
- getESPackageName() {
1111
- return Vue.Native.callNativeWithPromise('ESModule',
1112
- 'getESPackageName',);
1113
- }
1114
-
1115
- getESMiniProgramPath() {
1116
- return Vue.Native.callNativeWithPromise('ESModule',
1117
- 'getESMiniProgramPath',);
1118
- }
1119
-
1120
- sendESNativeMapEventTop(eventName, mapParams) {
1121
- return Vue.Native.callNativeWithPromise('ESModule',
1122
- 'sendESNativeMapEventTop', eventName, mapParams);
1123
- }
1124
-
1125
- sendESNativeArrayEventTop(eventName, arrayParams) {
1126
- return Vue.Native.callNativeWithPromise('ESModule',
1127
- 'sendESNativeArrayEventTop', eventName, arrayParams);
1128
- }
1129
-
1130
- sendESNativeMapEventAll(eventName, mapParams) {
1131
- return Vue.Native.callNativeWithPromise('ESModule',
1132
- 'sendESNativeMapEventAll', eventName, mapParams);
1133
- }
1134
-
1135
-
1136
- sendESNativeArrayEventAll(eventName, arrayParams) {
1137
- return Vue.Native.callNativeWithPromise('ESModule',
1138
- 'sendESNativeArrayEventAll', eventName, arrayParams);
2100
+ }
2101
+ this._musicMaxVolume = volume;
2102
+ });
1139
2103
  }
1140
2104
 
1141
- //---------------------------------EsNativeModule-------------------------
1142
-
1143
- getSupportSchemes() {
1144
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1145
- 'getSupportSchemes',);
2105
+ get musicMaxVolume() {
2106
+ return this._musicMaxVolume;
1146
2107
  }
1147
2108
 
1148
- getVisiblePageSize() {
1149
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1150
- 'getVisiblePageSize',);
2109
+ getStreamMusicVolume() {
2110
+ ESAudioModule$1.getStreamMusicVolume()
2111
+ .then((volume) => {
2112
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
2113
+ ESLog.d(TAG$8, '-----getStreamMusicVolume--->>>>' + volume);
2114
+ }
2115
+ this._musicVolume = volume;
2116
+ });
1151
2117
  }
1152
2118
 
1153
- launchESPageByArgs(args) {
1154
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1155
- 'launchEsPage', {
1156
- args: args,
1157
- });
2119
+ get musicVolume() {
2120
+ return this._musicVolume;
1158
2121
  }
1159
2122
 
1160
- launchESPage(params) {
1161
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1162
- 'launchEsPage', {
1163
- pkg: params.pkg,
1164
- args: params.args,
1165
- flags: params.flags,
1166
- pageTag: params.pageTag,
1167
- pageLimit: params.pageLimit,
1168
- backgroundColor: params.backgroundColor,
1169
- splash: params.splash,
2123
+ //------------------------提示音音量------------------------
2124
+ getStreamAlarmMaxVolume() {
2125
+ ESAudioModule$1.getStreamAlarmMaxVolume()
2126
+ .then((volume) => {
2127
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
2128
+ ESLog.d(TAG$8, '-----getStreamAlarmMaxVolume--->>>>' + volume);
2129
+ }
2130
+ this._alarmMaxVolume = volume;
1170
2131
  });
1171
2132
  }
1172
2133
 
1173
- launchNativeApp(paramsArray) {
1174
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1175
- 'launchNativeApp', paramsArray);
2134
+ get alarmMaxVolume() {
2135
+ return this._alarmMaxVolume;
1176
2136
  }
1177
2137
 
1178
- launchNativeAppWithPackage(pkg) {
1179
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1180
- 'launchNativeAppWithPackage', pkg);
2138
+ getStreamAlarmVolume() {
2139
+ ESAudioModule$1.getStreamAlarmVolume()
2140
+ .then((volume) => {
2141
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
2142
+ ESLog.d(TAG$8, '-----getStreamAlarmVolume--->>>>' + volume);
2143
+ }
2144
+ this._alarmVolume = volume;
2145
+ });
1181
2146
  }
1182
2147
 
1183
- startService(paramsArray) {
1184
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1185
- 'startService', paramsArray);
2148
+ get alarmVolume() {
2149
+ return this._alarmVolume;
1186
2150
  }
1187
2151
 
1188
- finish() {
1189
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1190
- 'finish');
2152
+ //------------------------音量------------------------
2153
+ getStreamMaxVolume(streamType) {
2154
+ ESAudioModule$1.getStreamMaxVolume(streamType)
2155
+ .then((volume) => {
2156
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
2157
+ ESLog.d(TAG$8, streamType + '-----getStreamMaxVolume--->>>>' + volume);
2158
+ }
2159
+ });
1191
2160
  }
1192
2161
 
1193
- finishAll() {
1194
- return Vue.Native.callNativeWithPromise('EsNativeModule',
1195
- 'finishAll');
2162
+ getStreamVolume(streamType) {
2163
+ ESAudioModule$1.getStreamVolume(streamType)
2164
+ .then((volume) => {
2165
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
2166
+ ESLog.d(TAG$8, streamType + '-----getStreamVolume--->>>>' + volume);
2167
+ }
2168
+ });
1196
2169
  }
1197
2170
 
1198
- //----------------------------组件和模块注册相关--------------------------------------------
2171
+ //------------------------调整音量------------------------
2172
+ adjustStreamVolume(streamType, adjust, flags) {
2173
+ ESAudioModule$1.adjustStreamVolume(streamType, adjust, flags);
2174
+ }
1199
2175
 
1200
- isModuleRegistered(className) {
1201
- return Vue.Native.callNativeWithPromise('ESModule',
1202
- 'isModuleRegistered', className);
2176
+ setStreamVolume(streamType, index, flags) {
2177
+ ESAudioModule$1.setStreamVolume(streamType, index, flags);
1203
2178
  }
1204
2179
 
1205
- isComponentRegistered(className) {
1206
- return Vue.Native.callNativeWithPromise('ESModule',
1207
- 'isComponentRegistered', className);
2180
+ setStreamMute(streamType, state) {
2181
+ ESAudioModule$1.setStreamMute(streamType, state);
1208
2182
  }
1209
2183
  }
1210
2184
 
1211
- var ESModule$1 = new ESModule();
2185
+ var ESAudioManager$1 = new ESAudioManager();
1212
2186
 
1213
2187
  /**
1214
2188
  *
@@ -1441,165 +2415,20 @@ class ESFileModule {
1441
2415
  );
1442
2416
  }
1443
2417
 
1444
- renameTo(fileId, renameFileId) {
1445
- return Vue.Native.callNativeWithPromise('AndroidFileModule',
1446
- 'canExecute', {id: fileId, renameFileId: renameFileId}
1447
- );
1448
- }
1449
-
1450
- close(fileId) {
1451
- return Vue.Native.callNativeWithPromise('AndroidFileModule',
1452
- 'close', {id: fileId}
1453
- );
1454
- }
1455
- }
1456
-
1457
- var ESFileModule$1 = new ESFileModule();
1458
-
1459
- const ES_SDK_VERSION_20 = -1;
1460
- const ES_SDK_VERSION_21 = 2.1;
1461
- const ES_SDK_VERSION_22 = 2.2;
1462
- const ES_SDK_VERSION_22_1 = 2.21;
1463
- const ES_SDK_VERSION_23 = 2.3;
1464
- const ES_SDK_VERSION_24 = 2.4;
1465
- const ES_SDK_VERSION_25 = 2.5;
1466
- const ES_SDK_VERSION_26 = 2.6;
1467
- const ES_SDK_VERSION_27 = 2.7;
1468
- const ES_SDK_VERSION_28 = 2.8;
1469
- const ES_SDK_VERSION_29 = 2.9;
1470
- const ES_SDK_VERSION_30 = 3.0;
1471
-
1472
- /**
1473
- *
1474
- */
1475
-
1476
- class ESManager {
1477
-
1478
- _esSdkCid = null;
1479
- _esSdkVersionCode = null;
1480
- _esSdkVersionName = null;
1481
- _esSdkPackageName = null;
1482
- _esMiniProgramPath = null;
1483
- _esKitVersionCode = -1;
1484
- _esSdkSchemes = [];
1485
- _runtimePath = null;
1486
-
1487
- _esSdkInfo = null;
1488
-
1489
-
1490
- init() {
1491
- return Promise.resolve()
1492
- .then(() => this.initESInfoPromise())
1493
- }
1494
-
1495
- initESInfoPromise() {
1496
- return ESModule$1.getESSDKInfo()
1497
- .then((result) => {
1498
- this._esSdkInfo = result;
1499
- if (result) {
1500
- this._esSdkVersionCode = result.versionCode;
1501
- this._esSdkVersionName = result.versionName;
1502
- this._esSdkPackageName = result.packageName;
1503
- this._esMiniProgramPath = result.miniProgramPath;
1504
- this._esSdkSchemes = result.schemes;
1505
- if (result.eskit_ver_code) {
1506
- this._esKitVersionCode = result.eskit_ver_code;
1507
- }
1508
- //
1509
- this._runtimePath = result.runtimePath;
1510
- }
1511
- return ESModule$1.getESDeviceInfo();
1512
- }
1513
- )
1514
- //获取cid
1515
- .then((result) => {
1516
- if (result) {
1517
- this._esSdkCid = result.cid;
1518
- }
1519
- return Promise.resolve();
1520
- }
1521
- );
1522
- }
1523
-
1524
- getESSDKInfo() {
1525
- return this._esSdkInfo;
1526
- }
1527
-
1528
- getESSDKCid() {
1529
- return this._esSdkCid;
1530
- }
1531
-
1532
- getESSDKVersionCode() {
1533
- return this._esKitVersionCode;
1534
- }
1535
-
1536
- getESSDKVersionName() {
1537
- return this._esSdkVersionName;
1538
- }
1539
-
1540
- getESPackageName() {
1541
- return this._esSdkPackageName;
1542
- }
1543
-
1544
- getESVersionCode() {
1545
- return this._esSdkVersionCode;
1546
- }
1547
-
1548
- getESVersionName() {
1549
- return this._esSdkVersionName;
1550
- }
1551
-
1552
- /**
1553
- * 获取EsApp路径, 用于文件存储管理
1554
- * @return
1555
- * /data/data/APK包名/app_rpk/apps/小程序包名/files
1556
- * 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
1557
- */
1558
- getESMiniProgramPath() {
1559
- return this._esMiniProgramPath;
1560
- }
1561
-
1562
- /**
1563
- * 获取EsApp路径, 用于文件存储管理
1564
- * @return
1565
- * /data/data/APK包名/app_rpk/apps/小程序包名/files
1566
- * 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
1567
- */
1568
- getESAppPath() {
1569
- return this._esMiniProgramPath;
1570
- }
1571
-
1572
- /**
1573
- * 获取EsApp运行时路径, 通常用于获取代码包里的assets
1574
- * @return
1575
- * /data/data/APK包名/app_rpk/apps/小程序包名/版本号/android
1576
- * 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/2.2.2203/android
1577
- */
1578
- getESAppRuntimePath() {
1579
- if (this.getESSDKVersionCode() >= ES_SDK_VERSION_22) {
1580
- return this._runtimePath;
1581
- }
1582
- //
1583
- else {
1584
- return this._esMiniProgramPath;
1585
- }
1586
- }
1587
-
1588
- getESSDKSupportSchemes() {
1589
- return this._esSdkSchemes;
1590
- }
1591
-
1592
- //----------------------------组件和模块注册相关--------------------------------------------
1593
- isModuleRegistered(className) {
1594
- return ESModule$1.isModuleRegistered(className);
2418
+ renameTo(fileId, renameFileId) {
2419
+ return Vue.Native.callNativeWithPromise('AndroidFileModule',
2420
+ 'canExecute', {id: fileId, renameFileId: renameFileId}
2421
+ );
1595
2422
  }
1596
2423
 
1597
- isComponentRegistered(className) {
1598
- return ESModule$1.isComponentRegistered(className);
2424
+ close(fileId) {
2425
+ return Vue.Native.callNativeWithPromise('AndroidFileModule',
2426
+ 'close', {id: fileId}
2427
+ );
1599
2428
  }
1600
2429
  }
1601
2430
 
1602
- var ESManager$1 = new ESManager();
2431
+ var ESFileModule$1 = new ESFileModule();
1603
2432
 
1604
2433
  /**
1605
2434
  *
@@ -1889,73 +2718,6 @@ class ESPowerManager {
1889
2718
 
1890
2719
  var ESPowerManager$1 = new ESPowerManager();
1891
2720
 
1892
- /**
1893
- *
1894
- */
1895
-
1896
- class ESSharedPreferencesModule {
1897
-
1898
- initSharedPreferences(name) {
1899
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1900
- 'initSharedPreferences', name);
1901
- }
1902
-
1903
- initESSharedPreferences(name) {
1904
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1905
- 'initESSharedPreferences', name);
1906
- }
1907
-
1908
- //----------------------------------------------------
1909
- getBoolean(key, defValue) {
1910
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1911
- 'getBoolean', key, defValue);
1912
- }
1913
-
1914
- putBoolean(key, value) {
1915
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1916
- 'putBoolean', key, value);
1917
- }
1918
-
1919
- //----------------------------------------------------
1920
-
1921
- getInt(key, defValue) {
1922
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1923
- 'getInt', key, defValue);
1924
- }
1925
-
1926
- putInt(key, value) {
1927
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1928
- 'putInt', key, value);
1929
- }
1930
-
1931
- //----------------------------------------------------
1932
-
1933
- getLong(key, defValue) {
1934
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1935
- 'getLong', key, defValue);
1936
- }
1937
-
1938
- putLong(key, value) {
1939
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1940
- 'putLong', key, value);
1941
- }
1942
-
1943
- //----------------------------------------------------
1944
- getString(key, defValue) {
1945
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1946
- 'getString', key, defValue);
1947
- }
1948
-
1949
- putString(key, value) {
1950
- return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
1951
- 'putString', key, value);
1952
- }
1953
-
1954
- //----------------------------------------------------
1955
- }
1956
-
1957
- var ESSharedPreferencesModule$1 = new ESSharedPreferencesModule();
1958
-
1959
2721
  /**
1960
2722
  *
1961
2723
  */
@@ -2375,16 +3137,6 @@ class ESUsbDeviceManager {
2375
3137
 
2376
3138
  var ESUsbDeviceManager$1 = new ESUsbDeviceManager();
2377
3139
 
2378
- let ESApp;
2379
-
2380
- function setESApp(app) {
2381
- ESApp = app;
2382
- }
2383
-
2384
- function getESApp() {
2385
- return ESApp;
2386
- }
2387
-
2388
3140
  var ESUsbDevice = {
2389
3141
  mounted() {
2390
3142
  ESApp.$on('onUsbDeviceAttached', this.onUsbDeviceAttached);
@@ -2535,395 +3287,130 @@ class ESMMapManager {
2535
3287
  }
2536
3288
 
2537
3289
  //
2538
- getString(key, defValue) {
2539
- return ESMMapModule$1.getString(this.getPackageName(), key, defValue);
2540
- }
2541
-
2542
- putString(key, value, mode) {
2543
- return ESMMapModule$1.putString(this.getPackageName(), key, value, mode);
2544
- }
2545
-
2546
- //
2547
- getArray(key, defValue) {
2548
- return ESMMapModule$1.getArray(this.getPackageName(), key, defValue);
2549
- }
2550
-
2551
- putArray(key, value, mode) {
2552
- return ESMMapModule$1.putArray(this.getPackageName(), key, value, mode);
2553
- }
2554
-
2555
- //
2556
- getMap(key, defValue) {
2557
- return ESMMapModule$1.getMap(this.getPackageName(), key, defValue);
2558
- }
2559
-
2560
- putMap(key, value, mode) {
2561
- return ESMMapModule$1.putMap(this.getPackageName(), key, value, mode);
2562
- }
2563
-
2564
- //----------------------------操作其他APP的共享内存-----------------------------------
2565
- //
2566
- getSharedBoolean(packageName, key, defValue) {
2567
- return ESMMapModule$1.getBoolean(packageName, key, defValue);
2568
- }
2569
-
2570
- putSharedBoolean(packageName, key, value) {
2571
- return ESMMapModule$1.putBoolean(packageName, key, value, -1);
2572
- }
2573
-
2574
- //
2575
- getSharedInt(packageName, key, defValue) {
2576
- return ESMMapModule$1.getInt(packageName, key, defValue);
2577
- }
2578
-
2579
- putSharedInt(packageName, key, value) {
2580
- return ESMMapModule$1.putInt(packageName, key, value, -1);
2581
- }
2582
-
2583
- //
2584
- getSharedLong(packageName, key, defValue) {
2585
- return ESMMapModule$1.getLong(packageName, key, defValue);
2586
- }
2587
-
2588
- putSharedLong(packageName, key, value) {
2589
- return ESMMapModule$1.putLong(packageName, key, value, -1);
2590
- }
2591
-
2592
- //
2593
- getSharedString(packageName, key, defValue) {
2594
- return ESMMapModule$1.getString(packageName, key, defValue);
2595
- }
2596
-
2597
- putSharedString(packageName, key, value) {
2598
- return ESMMapModule$1.putString(packageName, key, value, -1);
2599
- }
2600
-
2601
- //
2602
- getSharedArray(packageName, key, defValue) {
2603
- return ESMMapModule$1.getArray(packageName, key, defValue);
2604
- }
2605
-
2606
- putSharedArray(packageName, key, value) {
2607
- return ESMMapModule$1.putArray(packageName, key, value, -1);
2608
- }
2609
-
2610
- //
2611
- getSharedMap(packageName, key, defValue) {
2612
- return ESMMapModule$1.getMap(packageName, key, defValue);
2613
- }
2614
-
2615
- putSharedMap(packageName, key, value) {
2616
- return ESMMapModule$1.putMap(packageName, key, value, -1);
2617
- }
2618
- }
2619
-
2620
- var ESMMapManager$1 = new ESMMapManager();
2621
-
2622
- /**
2623
- *
2624
- */
2625
-
2626
- class ESDisplayManager {
2627
-
2628
- _screenWidth = 1920;
2629
- _screenHeight = 1080;
2630
- _scale = 1;
2631
-
2632
- init() {
2633
- return new Promise((resolve, reject) => {
2634
- try {
2635
- this._screenWidth = ESDeviceManager$1.getScreenWidth();
2636
- this._screenHeight = ESDeviceManager$1.getScreenHeight();
2637
- this._scale = this._screenHeight / 1080;
2638
- } catch (e) {
2639
- }
2640
- resolve(true);
2641
- });
2642
- }
2643
-
2644
- getDisplayScale() {
2645
- return this._scale;
2646
- }
2647
-
2648
- getDisplaySize(size) {
2649
- return this._scale * size;
2650
- }
2651
-
2652
- getScreenWidth() {
2653
- return this._screenWidth;
2654
- }
2655
-
2656
- getScreenHeight() {
2657
- return this._screenHeight;
2658
- }
2659
- }
2660
-
2661
- var ESDisplayManager$1 = new ESDisplayManager();
2662
-
2663
- /**
2664
- *
2665
- */
2666
-
2667
-
2668
- class ESLaunchManager {
2669
-
2670
- _ESRouter = null;
2671
- _ESRouterEnabled = true;
2672
- _ESPageRouterViewSupported = false;
2673
- _launchLimit = 10;
2674
-
2675
- _routeListener = null;
2676
-
2677
- _routeListenerList = [];
2678
-
2679
- init(router) {
2680
- try {
2681
- this._ESRouter = router;
2682
- this._ESPageRouterViewSupported = this.isESPageRouterViewSupported();
2683
- if (ESLog.isLoggable(ESLog.DEBUG)) {
2684
- ESLog.d('ESRouter', '#------init--------->>' + '\n' +
2685
- '_ESPageRouterViewSupported: ' + this._ESPageRouterViewSupported + '\n' +
2686
- '_ESRouter: ' + this._ESRouter
2687
- );
2688
- }
2689
- } catch (e) {
2690
- }
2691
- //
2692
- this._setESPageRouterViewSupported(this._ESPageRouterViewSupported);
2693
- return Promise.resolve();
2694
- }
2695
-
2696
- //----------------------ESPageRouterView--------------------------
2697
- _setESPageRouterViewSupported(enabled) {
2698
- this._ESPageRouterViewSupported = enabled;
2699
- try {
2700
- if (this._ESRouter) {
2701
- this._ESRouter.setESPageRouterViewSupported(enabled);
2702
- }
2703
- } catch (e) {
2704
- }
3290
+ getString(key, defValue) {
3291
+ return ESMMapModule$1.getString(this.getPackageName(), key, defValue);
2705
3292
  }
2706
3293
 
2707
- isESPageRouterViewSupported() {
2708
- return ESManager$1.getESSDKVersionCode() >= ES_SDK_VERSION_21;
3294
+ putString(key, value, mode) {
3295
+ return ESMMapModule$1.putString(this.getPackageName(), key, value, mode);
2709
3296
  }
2710
3297
 
2711
- isESRouterSupported() {
2712
- return this.isESPageRouterViewSupported();
3298
+ //
3299
+ getArray(key, defValue) {
3300
+ return ESMMapModule$1.getArray(this.getPackageName(), key, defValue);
2713
3301
  }
2714
3302
 
2715
- //---------------------------------------------------------
2716
-
2717
- isESRouterEnabled() {
2718
- return this._ESRouterEnabled;
3303
+ putArray(key, value, mode) {
3304
+ return ESMMapModule$1.putArray(this.getPackageName(), key, value, mode);
2719
3305
  }
2720
3306
 
2721
- setESRouterEnabled(enabled) {
2722
- this._ESRouterEnabled = enabled;
3307
+ //
3308
+ getMap(key, defValue) {
3309
+ return ESMMapModule$1.getMap(this.getPackageName(), key, defValue);
2723
3310
  }
2724
3311
 
2725
- setLaunchLimit(limit) {
2726
- this._launchLimit = limit;
2727
- if (this._ESRouter) {
2728
- try {
2729
- this._ESRouter.setRouteLimit(limit);
2730
- } catch (e) {
2731
- }
2732
- }
3312
+ putMap(key, value, mode) {
3313
+ return ESMMapModule$1.putMap(this.getPackageName(), key, value, mode);
2733
3314
  }
2734
3315
 
2735
- //-----------------------------------------------------------
3316
+ //----------------------------操作其他APP的共享内存-----------------------------------
3317
+ //
3318
+ getSharedBoolean(packageName, key, defValue) {
3319
+ return ESMMapModule$1.getBoolean(packageName, key, defValue);
3320
+ }
2736
3321
 
2737
- addRouteListener(routeListener) {
2738
- if (this._routeListenerList && this._routeListenerList.length > 0) {
2739
- for (let i = 0; i < this._routeListenerList.length; i++) {
2740
- let l = this._routeListenerList[i];
2741
- if (l === routeListener) {
2742
- return;
2743
- }
2744
- }
2745
- }
2746
- this._routeListenerList.push(routeListener);
3322
+ putSharedBoolean(packageName, key, value) {
3323
+ return ESMMapModule$1.putBoolean(packageName, key, value, -1);
2747
3324
  }
2748
3325
 
2749
- removeRouteListener(routeListener) {
2750
- if (this._routeListenerList && this._routeListenerList.length > 0) {
2751
- let index = -1;
2752
- for (let i = 0; i < this._routeListenerList.length; i++) {
2753
- let l = this._routeListenerList[i];
2754
- if (l === routeListener) {
2755
- index = i;
2756
- }
2757
- }
2758
- if (index > -1) {
2759
- this._routeListenerList.splice(index, 1);
2760
- }
2761
- }
3326
+ //
3327
+ getSharedInt(packageName, key, defValue) {
3328
+ return ESMMapModule$1.getInt(packageName, key, defValue);
2762
3329
  }
2763
3330
 
2764
- _notifyRouteListenerList(url, params) {
2765
- try {
2766
- if (this._routeListenerList && this._routeListenerList.length > 0) {
2767
- for (let i = 0; i < this._routeListenerList.length; i++) {
2768
- let listener = this._routeListenerList[i];
2769
- if (listener && this.isFunction(listener)) {
2770
- try {
2771
- listener(url, params);
2772
- } catch (e) {
2773
- }
2774
- }
2775
- }
2776
- }
2777
- } catch (e) {
2778
- }
3331
+ putSharedInt(packageName, key, value) {
3332
+ return ESMMapModule$1.putInt(packageName, key, value, -1);
2779
3333
  }
2780
3334
 
2781
- //-----------------------------------------------------------
2782
- setRouteListener(routeListener) {
2783
- this._routeListener = routeListener;
3335
+ //
3336
+ getSharedLong(packageName, key, defValue) {
3337
+ return ESMMapModule$1.getLong(packageName, key, defValue);
2784
3338
  }
2785
3339
 
2786
- _notifyListeners(url, params) {
2787
- //1.
2788
- try {
2789
- if (this._routeListener && this.isFunction(this._routeListener)) {
2790
- this._routeListener(url, params);
2791
- }
2792
- } catch (e) {
3340
+ putSharedLong(packageName, key, value) {
3341
+ return ESMMapModule$1.putLong(packageName, key, value, -1);
3342
+ }
2793
3343
 
2794
- }
2795
- //2.
2796
- try {
2797
- this._notifyRouteListenerList(url, params);
2798
- } catch (e) {
2799
- }
3344
+ //
3345
+ getSharedString(packageName, key, defValue) {
3346
+ return ESMMapModule$1.getString(packageName, key, defValue);
2800
3347
  }
2801
3348
 
2802
- isFunction(func) {
2803
- return Object.prototype.toString.call(func) === '[object Function]';
3349
+ putSharedString(packageName, key, value) {
3350
+ return ESMMapModule$1.putString(packageName, key, value, -1);
2804
3351
  }
2805
3352
 
2806
- //-----------------------------------------------------------
2807
- launchNativeApp(paramsArray) {
2808
- return ESModule$1.launchNativeApp(paramsArray);
3353
+ //
3354
+ getSharedArray(packageName, key, defValue) {
3355
+ return ESMMapModule$1.getArray(packageName, key, defValue);
2809
3356
  }
2810
3357
 
2811
- launchNativePage(intent) {
2812
- return ESModule$1.launchESPage({
2813
- args: {
2814
- url: intent.url,
2815
- params: intent.params
2816
- },
2817
- flags: intent.flags,
2818
- pageTag: intent.pageTag,
2819
- pageLimit: intent.pageLimit,
2820
- backgroundColor: intent.backgroundColor,
2821
- //
2822
- pkg: intent.packageName,
2823
- splash: intent.splash,
2824
- });
3358
+ putSharedArray(packageName, key, value) {
3359
+ return ESMMapModule$1.putArray(packageName, key, value, -1);
2825
3360
  }
2826
3361
 
2827
- launchESPage(intent) {
2828
- let url = intent.url;
2829
- let params = intent.params;
3362
+ //
3363
+ getSharedMap(packageName, key, defValue) {
3364
+ return ESMMapModule$1.getMap(packageName, key, defValue);
3365
+ }
2830
3366
 
2831
- if (this.isESRouterEnabled()
2832
- && this.isESRouterSupported()
2833
- && this._ESRouter) {
2834
- //
2835
- this._notifyListeners(url, params);
2836
- //
2837
- this._ESRouter.push({
2838
- name: url,
2839
- params: params,
2840
- });
2841
- }
2842
- //
2843
- else {
2844
- //
2845
- this._notifyListeners(url, params);
2846
- //
2847
- this.launchNativePage(intent);
2848
- }
3367
+ putSharedMap(packageName, key, value) {
3368
+ return ESMMapModule$1.putMap(packageName, key, value, -1);
2849
3369
  }
3370
+ }
2850
3371
 
2851
- launchAfterFinishESPage(intent) {
2852
- let url = intent.url;
2853
- let params = intent.params;
3372
+ var ESMMapManager$1 = new ESMMapManager();
2854
3373
 
2855
- if (this.isESRouterEnabled()
2856
- && this.isESRouterSupported()
2857
- && this._ESRouter) {
2858
- this._ESRouter.back();
2859
- //
2860
- this._notifyListeners(url, params);
3374
+ /**
3375
+ *
3376
+ */
2861
3377
 
2862
- this._ESRouter.push({
2863
- name: intent.url,
2864
- params: intent.params,
2865
- });
2866
- if (ESLog.isLoggable(ESLog.DEBUG)) {
2867
- ESLog.d('ESRouter', '#----launchAfterFinishESPage--vue--back&&push----->>>>>');
2868
- }
2869
- }
2870
- //
2871
- else {
2872
- if (ESLog.isLoggable(ESLog.DEBUG)) {
2873
- ESLog.d('ESRouter', '#----launchAfterFinishESPage--native--finish&&launch----->>>>>');
2874
- }
2875
- //1.finish
2876
- ESModule$1.finish();
2877
- //
2878
- this._notifyListeners(url, params);
3378
+ class ESDisplayManager {
2879
3379
 
2880
- //2.launch
2881
- this.launchNativePage(intent);
2882
- }
2883
- }
3380
+ _screenWidth = 1920;
3381
+ _screenHeight = 1080;
3382
+ _scale = 1;
2884
3383
 
2885
- finishAllESPage() {
2886
- ESModule$1.finishAll();
2887
- }
3384
+ init() {
3385
+ return new Promise((resolve, reject) => {
3386
+ try {
3387
+ this._screenWidth = ESDeviceManager$1.getScreenWidth();
3388
+ this._screenHeight = ESDeviceManager$1.getScreenHeight();
3389
+ this._scale = this._screenHeight / 1080;
3390
+ } catch (e) {
3391
+ }
3392
+ resolve(true);
3393
+ });
3394
+ }
2888
3395
 
2889
- finishNativePage() {
2890
- ESModule$1.finish();
2891
- }
3396
+ getDisplayScale() {
3397
+ return this._scale;
3398
+ }
2892
3399
 
2893
- finishESPage() {
2894
- if (this.isESRouterEnabled()
2895
- && this.isESRouterSupported()
2896
- && this._ESRouter
2897
- && this._ESRouter.back()) {
2898
- if (ESLog.isLoggable(ESLog.DEBUG)) {
2899
- ESLog.d('ESRouter', '#----finishESPage---ESRouter.back----->>>>>');
2900
- }
2901
- //
3400
+ getDisplaySize(size) {
3401
+ return this._scale * size;
2902
3402
  }
2903
- //
2904
- else {
2905
- if (ESLog.isLoggable(ESLog.DEBUG)) {
2906
- ESLog.d('ESRouter', '#----finishESPage---ESModule.finish----->>>>>');
2907
- }
2908
- ESModule$1.finish();
3403
+
3404
+ getScreenWidth() {
3405
+ return this._screenWidth;
2909
3406
  }
2910
- }
2911
3407
 
2912
- /**
2913
- * 获取当前页面的路由
2914
- */
2915
- getCurrentESPage() {
2916
- if (this._ESRouter && this._ESRouter.currentRoute) {
2917
- return {
2918
- url: this._ESRouter.currentRoute.name,
2919
- params: this._ESRouter.currentRoute.params,
2920
- };
3408
+ getScreenHeight() {
3409
+ return this._screenHeight;
2921
3410
  }
2922
- return null;
2923
- }
2924
3411
  }
2925
3412
 
2926
- var ESLaunchManager$1 = new ESLaunchManager();
3413
+ var ESDisplayManager$1 = new ESDisplayManager();
2927
3414
 
2928
3415
  /**
2929
3416
  *
@@ -7459,4 +7946,4 @@ const ES_FAST_OUT_LINEAR_IN_INTERPOLATOR = 10;
7459
7946
  const ES_FAST_OUT_SLOW_IN_INTERPOLATOR = 11;
7460
7947
  const ES_PATH_INTERPOLATOR = 12;
7461
7948
 
7462
- export { AndroidVersions$1 as AndroidVersions, ES$1 as ES, ESAnimationViewComponent, ESApp, ESAppManager$1 as ESAppManager, ESAppModule$1 as ESAppModule, ESApplication, ESAudioManager$1 as ESAudioManager, ESAudioModule$1 as ESAudioModule, ESBackPress, ESBackPressMixin, ESBroadcast, ESBroadcastManager$1 as ESBroadcastManager, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESEventBus$1 as ESEventBus, ESEventBusEvent, ESFile, ESFileModule$1 as ESFileModule, ESFocusManager$1 as ESFocusManager, ESFocusModule$1 as ESFocusModule, ESKeyEvent, ESKeyEventMixin, ESLaunchManager$1 as ESLaunchManager, ESLoadingViewComponent, ESLocalStorage$1 as ESLocalStorage, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESManager$1 as ESManager, ESModule$1 as ESModule, ESNetwork, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPage, ESPageLifecycle, ESPageRootViewComponent, ESPageRouterViewComponent, ESPermissionManager$1 as ESPermissionManager, ESPermissionModule$1 as ESPermissionModule, ESPlugin, ESPluginManager$1 as ESPluginManager, ESPluginModule$1 as ESPluginModule, ESPowerManager$1 as ESPowerManager, ESPowerModule$1 as ESPowerModule, ESProgressBarViewComponent, ESQRCodeViewComponent, ESRouter, ESScrollViewComponent, ESSeekBarViewComponent, ESSharedPreferencesManager$1 as ESSharedPreferencesManager, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageManager$1 as ESStorageManager, ESStorageModule$1 as ESStorageModule, ESSurfaceViewComponent, ESTextViewComponent, ESToast$1 as ESToast, ESToastModule$1 as ESToastModule, ESTransitionImageViewComponent, ESUsbDevice, ESUsbDeviceManager$1 as ESUsbDeviceManager, ESUsbDeviceMixin, ESUsbDeviceModule$1 as ESUsbDeviceModule, ES_ACCELERATE_DECELERATE_INTERPOLATOR, ES_ACCELERATE_INTERPOLATOR, ES_ANIMATION_PROPERTY_NAME_ALPHA, ES_ANIMATION_PROPERTY_NAME_ROTATION, ES_ANIMATION_PROPERTY_NAME_SCALE_X, ES_ANIMATION_PROPERTY_NAME_SCALE_Y, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_X, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_Y, ES_ANIMATION_REPEAT_MODE_INFINITE, ES_ANIMATION_REPEAT_MODE_RESTART, ES_ANIMATION_REPEAT_MODE_REVERSE, ES_ANIMATION_TYPE_AFTER, ES_ANIMATION_TYPE_AFTER_DELAY, ES_ANIMATION_TYPE_BEFORE, ES_ANIMATION_TYPE_NONE, ES_ANIMATION_TYPE_PLAY, ES_ANIMATION_TYPE_PLAY_SEQUENTIALLY, ES_ANIMATION_TYPE_PLAY_TOGETHER, ES_ANIMATION_TYPE_WITH, ES_ANIMATION_VALUE_TYPE_FLOAT, ES_ANIMATION_VALUE_TYPE_INT, ES_ANTICIPATE_INTERPOLATOR, ES_ANTICIPATE_OVERSHOOT_INTERPOLATOR, ES_AUDIO_CONTENT_TYPE_MOVIE, ES_AUDIO_CONTENT_TYPE_MUSIC, ES_AUDIO_CONTENT_TYPE_SONIFICATION, ES_AUDIO_CONTENT_TYPE_SPEECH, ES_AUDIO_CONTENT_TYPE_UNKNOWN, ES_AUDIO_DIRECTION_ADJUST_LOWER, ES_AUDIO_DIRECTION_ADJUST_RAISE, ES_AUDIO_DIRECTION_ADJUST_SAME, ES_AUDIO_MANAGER_FLAG_ACTIVE_MEDIA_ONLY, ES_AUDIO_MANAGER_FLAG_ALLOW_RINGER_MODES, ES_AUDIO_MANAGER_FLAG_BLUETOOTH_ABS_VOLUME, ES_AUDIO_MANAGER_FLAG_FIXED_VOLUME, ES_AUDIO_MANAGER_FLAG_HDMI_SYSTEM_AUDIO_VOLUME, ES_AUDIO_MANAGER_FLAG_PLAY_SOUND, ES_AUDIO_MANAGER_FLAG_REMOVE_SOUND_AND_VIBRATE, ES_AUDIO_MANAGER_FLAG_SHOW_SILENT_HINT, ES_AUDIO_MANAGER_FLAG_SHOW_UI, ES_AUDIO_MANAGER_FLAG_SHOW_UI_WARNINGS, ES_AUDIO_MANAGER_FLAG_SHOW_VIBRATE_HINT, ES_AUDIO_MANAGER_FLAG_VIBRATE, ES_AUDIO_STREAM_ACCESSIBILITY, ES_AUDIO_STREAM_ALARM, ES_AUDIO_STREAM_ASSISTANT, ES_AUDIO_STREAM_BLUETOOTH_SCO, ES_AUDIO_STREAM_DEFAULT, ES_AUDIO_STREAM_DTMF, ES_AUDIO_STREAM_MUSIC, ES_AUDIO_STREAM_NOTIFICATION, ES_AUDIO_STREAM_RING, ES_AUDIO_STREAM_SYSTEM, ES_AUDIO_STREAM_SYSTEM_ENFORCED, ES_AUDIO_STREAM_TTS, ES_AUDIO_STREAM_VOICE_CALL, ES_AUDIO_USAGE_ALARM, ES_AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY, ES_AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, ES_AUDIO_USAGE_ASSISTANCE_SONIFICATION, ES_AUDIO_USAGE_ASSISTANT, ES_AUDIO_USAGE_GAME, ES_AUDIO_USAGE_INVALID, ES_AUDIO_USAGE_MEDIA, ES_AUDIO_USAGE_NOTIFICATION, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST, ES_AUDIO_USAGE_NOTIFICATION_EVENT, ES_AUDIO_USAGE_NOTIFICATION_RINGTONE, ES_AUDIO_USAGE_UNKNOWN, ES_AUDIO_USAGE_VIRTUAL_SOURCE, ES_AUDIO_USAGE_VOICE_COMMUNICATION, ES_AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING, ES_BOUNCE_INTERPOLATOR, ES_CYCLE_INTERPOLATOR, ES_DECELERATE_INTERPOLATOR, ES_FAST_OUT_LINEAR_IN_INTERPOLATOR, ES_FAST_OUT_SLOW_IN_INTERPOLATOR, ES_KEYCODE_BACK, ES_KEYCODE_DPAD_CENTER, ES_KEYCODE_DPAD_DOWN, ES_KEYCODE_DPAD_LEFT, ES_KEYCODE_DPAD_RIGHT, ES_KEYCODE_DPAD_UP, ES_KEYCODE_ENTER, ES_KEYCODE_ESCAPE, ES_KEYCODE_MENU, ES_KEYCODE_SEARCH, ES_KEY_ACTION_DOWN, ES_KEY_ACTION_UP, ES_LIFECYCLE_ON_CREATE, ES_LIFECYCLE_ON_DESTROY, ES_LIFECYCLE_ON_INITIALIZED, ES_LIFECYCLE_ON_PAUSE, ES_LIFECYCLE_ON_RESTART, ES_LIFECYCLE_ON_RESTORE_INSTANCE_SATE, ES_LIFECYCLE_ON_RESUME, ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE, ES_LIFECYCLE_ON_START, ES_LIFECYCLE_ON_STOP, ES_LIFECYCLE_ON_UNINITIALIZED, ES_LINEAR_INTERPOLATOR, ES_MMP_MODE_PRIVATE, ES_MMP_MODE_WORLD_READABLE, ES_MMP_MODE_WORLD_WRITEABLE, ES_NETWORK_INFO_STATE_CONNECTED, ES_NETWORK_INFO_STATE_CONNECTING, ES_NETWORK_INFO_STATE_DISCONNECTED, ES_NETWORK_INFO_STATE_DISCONNECTING, ES_NETWORK_INFO_STATE_SUSPENDED, ES_NETWORK_INFO_STATE_UNKNOWN, ES_NETWORK_INFO_TYPE_ETHERNET, ES_NETWORK_INFO_TYPE_MOBILE, ES_NETWORK_INFO_TYPE_NONE, ES_NETWORK_INFO_TYPE_WIFI, ES_OVERSHOOT_INTERPOLATOR, ES_PATH_INTERPOLATOR, ES_SDK_VERSION_20, ES_SDK_VERSION_21, ES_SDK_VERSION_22, ES_SDK_VERSION_22_1, ES_SDK_VERSION_23, ES_SDK_VERSION_24, ES_SDK_VERSION_25, ES_SDK_VERSION_26, ES_SDK_VERSION_27, ES_SDK_VERSION_28, ES_SDK_VERSION_29, ES_SDK_VERSION_30, ES_SEEK_BAR_MODE_DISABLED, ES_SEEK_BAR_MODE_PROGRESS, ES_SEEK_BAR_MODE_SEEK, KEYCODE_BACK, KEYCODE_DPAD_CENTER, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, KEYCODE_DPAD_RIGHT, KEYCODE_DPAD_UP, KEYCODE_ENTER, KEYCODE_ESCAPE, KEYCODE_MENU, KEYCODE_SEARCH, KEY_ACTION_DOWN, KEY_ACTION_UP, Toast$1 as Toast, getESApp, setESApp };
7949
+ export { AndroidVersions$1 as AndroidVersions, ES$1 as ES, ESAnimationViewComponent, ESApp, ESAppManager$1 as ESAppManager, ESAppModule$1 as ESAppModule, ESApplication, ESAudioManager$1 as ESAudioManager, ESAudioModule$1 as ESAudioModule, ESBackPress, ESBackPressMixin, ESBroadcast, ESBroadcastManager$1 as ESBroadcastManager, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESEventBus$1 as ESEventBus, ESEventBusEvent, ESFile, ESFileModule$1 as ESFileModule, ESFocusManager$1 as ESFocusManager, ESFocusModule$1 as ESFocusModule, ESKeyEvent, ESKeyEventMixin, ESLaunchManager$1 as ESLaunchManager, ESLoadingViewComponent, ESLocalStorage$1 as ESLocalStorage, ESLocation, ESLocationManager$1 as ESLocationManager, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESManager$1 as ESManager, ESModule$1 as ESModule, ESNetwork, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPage, ESPageLifecycle, ESPageRootViewComponent, ESPageRouterViewComponent, ESPermissionManager$1 as ESPermissionManager, ESPermissionModule$1 as ESPermissionModule, ESPlugin, ESPluginManager$1 as ESPluginManager, ESPluginModule$1 as ESPluginModule, ESPowerManager$1 as ESPowerManager, ESPowerModule$1 as ESPowerModule, ESProgressBarViewComponent, ESQRCodeViewComponent, ESRouter, ESScrollViewComponent, ESSeekBarViewComponent, ESSharedDataManager$1 as ESSharedDataManager, ESSharedPreferencesManager$1 as ESSharedPreferencesManager, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageManager$1 as ESStorageManager, ESStorageModule$1 as ESStorageModule, ESSurfaceViewComponent, ESTextViewComponent, ESToast$1 as ESToast, ESToastModule$1 as ESToastModule, ESTransitionImageViewComponent, ESUsbDevice, ESUsbDeviceManager$1 as ESUsbDeviceManager, ESUsbDeviceMixin, ESUsbDeviceModule$1 as ESUsbDeviceModule, ES_ACCELERATE_DECELERATE_INTERPOLATOR, ES_ACCELERATE_INTERPOLATOR, ES_ANIMATION_PROPERTY_NAME_ALPHA, ES_ANIMATION_PROPERTY_NAME_ROTATION, ES_ANIMATION_PROPERTY_NAME_SCALE_X, ES_ANIMATION_PROPERTY_NAME_SCALE_Y, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_X, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_Y, ES_ANIMATION_REPEAT_MODE_INFINITE, ES_ANIMATION_REPEAT_MODE_RESTART, ES_ANIMATION_REPEAT_MODE_REVERSE, ES_ANIMATION_TYPE_AFTER, ES_ANIMATION_TYPE_AFTER_DELAY, ES_ANIMATION_TYPE_BEFORE, ES_ANIMATION_TYPE_NONE, ES_ANIMATION_TYPE_PLAY, ES_ANIMATION_TYPE_PLAY_SEQUENTIALLY, ES_ANIMATION_TYPE_PLAY_TOGETHER, ES_ANIMATION_TYPE_WITH, ES_ANIMATION_VALUE_TYPE_FLOAT, ES_ANIMATION_VALUE_TYPE_INT, ES_ANTICIPATE_INTERPOLATOR, ES_ANTICIPATE_OVERSHOOT_INTERPOLATOR, ES_AUDIO_CONTENT_TYPE_MOVIE, ES_AUDIO_CONTENT_TYPE_MUSIC, ES_AUDIO_CONTENT_TYPE_SONIFICATION, ES_AUDIO_CONTENT_TYPE_SPEECH, ES_AUDIO_CONTENT_TYPE_UNKNOWN, ES_AUDIO_DIRECTION_ADJUST_LOWER, ES_AUDIO_DIRECTION_ADJUST_RAISE, ES_AUDIO_DIRECTION_ADJUST_SAME, ES_AUDIO_MANAGER_FLAG_ACTIVE_MEDIA_ONLY, ES_AUDIO_MANAGER_FLAG_ALLOW_RINGER_MODES, ES_AUDIO_MANAGER_FLAG_BLUETOOTH_ABS_VOLUME, ES_AUDIO_MANAGER_FLAG_FIXED_VOLUME, ES_AUDIO_MANAGER_FLAG_HDMI_SYSTEM_AUDIO_VOLUME, ES_AUDIO_MANAGER_FLAG_PLAY_SOUND, ES_AUDIO_MANAGER_FLAG_REMOVE_SOUND_AND_VIBRATE, ES_AUDIO_MANAGER_FLAG_SHOW_SILENT_HINT, ES_AUDIO_MANAGER_FLAG_SHOW_UI, ES_AUDIO_MANAGER_FLAG_SHOW_UI_WARNINGS, ES_AUDIO_MANAGER_FLAG_SHOW_VIBRATE_HINT, ES_AUDIO_MANAGER_FLAG_VIBRATE, ES_AUDIO_STREAM_ACCESSIBILITY, ES_AUDIO_STREAM_ALARM, ES_AUDIO_STREAM_ASSISTANT, ES_AUDIO_STREAM_BLUETOOTH_SCO, ES_AUDIO_STREAM_DEFAULT, ES_AUDIO_STREAM_DTMF, ES_AUDIO_STREAM_MUSIC, ES_AUDIO_STREAM_NOTIFICATION, ES_AUDIO_STREAM_RING, ES_AUDIO_STREAM_SYSTEM, ES_AUDIO_STREAM_SYSTEM_ENFORCED, ES_AUDIO_STREAM_TTS, ES_AUDIO_STREAM_VOICE_CALL, ES_AUDIO_USAGE_ALARM, ES_AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY, ES_AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, ES_AUDIO_USAGE_ASSISTANCE_SONIFICATION, ES_AUDIO_USAGE_ASSISTANT, ES_AUDIO_USAGE_GAME, ES_AUDIO_USAGE_INVALID, ES_AUDIO_USAGE_MEDIA, ES_AUDIO_USAGE_NOTIFICATION, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST, ES_AUDIO_USAGE_NOTIFICATION_EVENT, ES_AUDIO_USAGE_NOTIFICATION_RINGTONE, ES_AUDIO_USAGE_UNKNOWN, ES_AUDIO_USAGE_VIRTUAL_SOURCE, ES_AUDIO_USAGE_VOICE_COMMUNICATION, ES_AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING, ES_BOUNCE_INTERPOLATOR, ES_CYCLE_INTERPOLATOR, ES_DECELERATE_INTERPOLATOR, ES_FAST_OUT_LINEAR_IN_INTERPOLATOR, ES_FAST_OUT_SLOW_IN_INTERPOLATOR, ES_KEYCODE_BACK, ES_KEYCODE_DPAD_CENTER, ES_KEYCODE_DPAD_DOWN, ES_KEYCODE_DPAD_LEFT, ES_KEYCODE_DPAD_RIGHT, ES_KEYCODE_DPAD_UP, ES_KEYCODE_ENTER, ES_KEYCODE_ESCAPE, ES_KEYCODE_MENU, ES_KEYCODE_SEARCH, ES_KEY_ACTION_DOWN, ES_KEY_ACTION_UP, ES_LIFECYCLE_ON_CREATE, ES_LIFECYCLE_ON_DESTROY, ES_LIFECYCLE_ON_INITIALIZED, ES_LIFECYCLE_ON_PAUSE, ES_LIFECYCLE_ON_RESTART, ES_LIFECYCLE_ON_RESTORE_INSTANCE_SATE, ES_LIFECYCLE_ON_RESUME, ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE, ES_LIFECYCLE_ON_START, ES_LIFECYCLE_ON_STOP, ES_LIFECYCLE_ON_UNINITIALIZED, ES_LINEAR_INTERPOLATOR, ES_MMP_MODE_PRIVATE, ES_MMP_MODE_WORLD_READABLE, ES_MMP_MODE_WORLD_WRITEABLE, ES_NETWORK_INFO_STATE_CONNECTED, ES_NETWORK_INFO_STATE_CONNECTING, ES_NETWORK_INFO_STATE_DISCONNECTED, ES_NETWORK_INFO_STATE_DISCONNECTING, ES_NETWORK_INFO_STATE_SUSPENDED, ES_NETWORK_INFO_STATE_UNKNOWN, ES_NETWORK_INFO_TYPE_ETHERNET, ES_NETWORK_INFO_TYPE_MOBILE, ES_NETWORK_INFO_TYPE_NONE, ES_NETWORK_INFO_TYPE_WIFI, ES_OVERSHOOT_INTERPOLATOR, ES_PATH_INTERPOLATOR, ES_SDK_VERSION_20, ES_SDK_VERSION_21, ES_SDK_VERSION_22, ES_SDK_VERSION_22_1, ES_SDK_VERSION_23, ES_SDK_VERSION_24, ES_SDK_VERSION_25, ES_SDK_VERSION_26, ES_SDK_VERSION_27, ES_SDK_VERSION_28, ES_SDK_VERSION_29, ES_SDK_VERSION_30, ES_SEEK_BAR_MODE_DISABLED, ES_SEEK_BAR_MODE_PROGRESS, ES_SEEK_BAR_MODE_SEEK, ES_SHARED_DATA_MODE_PRIVATE, ES_SHARED_DATA_MODE_WORLD_READABLE, ES_SHARED_DATA_MODE_WORLD_WRITEABLE, ES_SHARED_DATA_TYPE_ARRAY, ES_SHARED_DATA_TYPE_BOOLEAN, ES_SHARED_DATA_TYPE_FLOAT, ES_SHARED_DATA_TYPE_INT, ES_SHARED_DATA_TYPE_LONG, ES_SHARED_DATA_TYPE_MAP, ES_SHARED_DATA_TYPE_STRING, KEYCODE_BACK, KEYCODE_DPAD_CENTER, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, KEYCODE_DPAD_RIGHT, KEYCODE_DPAD_UP, KEYCODE_ENTER, KEYCODE_ESCAPE, KEYCODE_MENU, KEYCODE_SEARCH, KEY_ACTION_DOWN, KEY_ACTION_UP, Toast$1 as Toast, getESApp, setESApp };