@extscreen/es-core 2.2.2 → 2.2.7

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.
Files changed (2) hide show
  1. package/dist/index.js +41 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1934,6 +1934,7 @@ class ESManager {
1934
1934
  _esSdkPackageName = null;
1935
1935
  _esMiniProgramPath = null;
1936
1936
  _esKitVersionCode = -1;
1937
+ _esSdkSchemes = [];
1937
1938
 
1938
1939
  _esSdkInfo = null;
1939
1940
 
@@ -1952,6 +1953,7 @@ class ESManager {
1952
1953
  this._esSdkVersionName = result.versionName;
1953
1954
  this._esSdkPackageName = result.packageName;
1954
1955
  this._esMiniProgramPath = result.miniProgramPath;
1956
+ this._esSdkSchemes = result.schemes;
1955
1957
  if (result.eskit_ver_code) {
1956
1958
  this._esKitVersionCode = result.eskit_ver_code;
1957
1959
  }
@@ -1969,17 +1971,29 @@ class ESManager {
1969
1971
  return this._esKitVersionCode;
1970
1972
  }
1971
1973
 
1972
- getESVersionCode() {
1973
- return this._esSdkVersionCode;
1974
+ getESSDKVersionName() {
1975
+ return this._esSdkVersionName;
1974
1976
  }
1975
1977
 
1976
1978
  getESPackageName() {
1977
1979
  return this._esSdkPackageName;
1978
1980
  }
1979
1981
 
1982
+ getESVersionCode() {
1983
+ return this._esSdkVersionCode;
1984
+ }
1985
+
1986
+ getESVersionName() {
1987
+ return this._esSdkVersionName;
1988
+ }
1989
+
1980
1990
  getESMiniProgramPath() {
1981
1991
  return this._esMiniProgramPath;
1982
1992
  }
1993
+
1994
+ getESSDKSupportSchemes() {
1995
+ return this._esSdkSchemes;
1996
+ }
1983
1997
  }
1984
1998
 
1985
1999
  var ESManager$1 = new ESManager();
@@ -2079,6 +2093,31 @@ class ESLaunchManager {
2079
2093
  }
2080
2094
  }
2081
2095
 
2096
+ launchAfterFinishESPage(intent) {
2097
+ if (this.isESRouterEnabled()
2098
+ && this.isESRouterSupported()
2099
+ && this._ESRouter) {
2100
+ this._ESRouter.back();
2101
+ this._ESRouter.push({
2102
+ name: intent.url,
2103
+ params: intent.params,
2104
+ });
2105
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
2106
+ ESLog.d('ESRouter', '#----launchAfterFinishESPage--vue--back&&push----->>>>>');
2107
+ }
2108
+ }
2109
+ //
2110
+ else {
2111
+ if (ESLog.isLoggable(ESLog.DEBUG)) {
2112
+ ESLog.d('ESRouter', '#----launchAfterFinishESPage--native--finish&&launch----->>>>>');
2113
+ }
2114
+ //1.finish
2115
+ ESModule$1.finish();
2116
+ //2.launch
2117
+ this.launchNativePage(intent);
2118
+ }
2119
+ }
2120
+
2082
2121
  finishAllESPage() {
2083
2122
  ESModule$1.finishAll();
2084
2123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extscreen/es-core",
3
- "version": "2.2.2",
3
+ "version": "2.2.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {