@aks-dev/easyui 1.0.30 → 1.0.31

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.
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-05-05 13:57:25
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-23 18:21:04
5
+ * @LastEditTime: 2022-05-23 19:08:47
6
6
  * @FilePath: /@aks-dev/easyui/android/src/main/java/com/easyui/UpgradeModule.java
7
7
  */
8
8
  package com.easyui;
@@ -107,8 +107,8 @@ public class UpgradeModule extends ReactContextBaseJavaModule {
107
107
  String note = (String) hashMap.get("note");
108
108
  Boolean force = (Boolean) hashMap.get("force");
109
109
  if (!checkUpdate(version, this.getAppVersionName())) {
110
-
111
110
  promise.reject("error_app_upgrade","已是最新版本");
111
+ return ;
112
112
  }
113
113
  Activity currentActivity = context.getCurrentActivity();
114
114
  int permission = ActivityCompat.checkSelfPermission(context.getApplicationContext(),
@@ -120,6 +120,8 @@ public class UpgradeModule extends ReactContextBaseJavaModule {
120
120
  EXTERNAL_STORAGE_REQ_CODE);
121
121
  }
122
122
 
123
+
124
+ promise.resolve("发现新版本");
123
125
  runOnMainThread(new Runnable() {
124
126
  @Override
125
127
  public void run() {
@@ -165,7 +167,7 @@ public class UpgradeModule extends ReactContextBaseJavaModule {
165
167
  }
166
168
  });
167
169
 
168
- promise.resolve("发现新版本");
170
+
169
171
  }
170
172
 
171
173
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "爱科森开发工具包(react-native)",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",