|
|
@ -94,7 +94,7 @@ public class DesignerPushUpdateManager { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 检查更新,如果有合适的更新版本,则弹窗 |
|
|
|
* 检查更新,如果有合适的更新版本,则弹窗 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void checkAndPop() { |
|
|
|
private void checkAndPop() { |
|
|
|
new Thread() { |
|
|
|
new Thread() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
@ -111,11 +111,6 @@ public class DesignerPushUpdateManager { |
|
|
|
private boolean shouldPopUp() { |
|
|
|
private boolean shouldPopUp() { |
|
|
|
if (updateInfo == null) { |
|
|
|
if (updateInfo == null) { |
|
|
|
String fullCurrentVersion = GeneralUtils.readFullBuildNO(); |
|
|
|
String fullCurrentVersion = GeneralUtils.readFullBuildNO(); |
|
|
|
// todo: 开发测试用
|
|
|
|
|
|
|
|
if (!fullCurrentVersion.contains(SPLIT_CHAR)) { |
|
|
|
|
|
|
|
fullCurrentVersion = "stable-2019.01.03.17.01.05.257"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String fullLatestVersion = getFullLatestVersion(); |
|
|
|
String fullLatestVersion = getFullLatestVersion(); |
|
|
|
boolean isValidJarVersion = isValidJarVersion(fullCurrentVersion, fullLatestVersion); |
|
|
|
boolean isValidJarVersion = isValidJarVersion(fullCurrentVersion, fullLatestVersion); |
|
|
|