version:
fix: update:优化获取数据
This commit is contained in:
@@ -69,6 +69,8 @@ android {
|
|||||||
|
|
||||||
//多渠道
|
//多渠道
|
||||||
productFlavors {
|
productFlavors {
|
||||||
|
// 展锐:6.2.8.19
|
||||||
|
// MTK:2.2.8.19
|
||||||
//新平台正式
|
//新平台正式
|
||||||
newly {
|
newly {
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
@@ -80,16 +82,16 @@ android {
|
|||||||
//酷比魔方
|
//酷比魔方
|
||||||
cube {
|
cube {
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
versionCode 58
|
versionCode 59
|
||||||
versionName "6.6"
|
versionName "6.2.8.19"
|
||||||
buildConfigField "String", "platform", '"ZhanRuiCube"'
|
buildConfigField "String", "platform", '"ZhanRuiCube"'
|
||||||
}
|
}
|
||||||
|
|
||||||
//MTK
|
//MTK
|
||||||
MTKnewly {
|
MTKnewly {
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
versionCode 30
|
versionCode 31
|
||||||
versionName "3.9"
|
versionName "2.2.8.19"
|
||||||
buildConfigField "String", "platform", '"MTK"'
|
buildConfigField "String", "platform", '"MTK"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ import com.aoleyun.sn.utils.SysSettingUtils;
|
|||||||
import com.aoleyun.sn.utils.TimeUtils;
|
import com.aoleyun.sn.utils.TimeUtils;
|
||||||
import com.aoleyun.sn.utils.ToastUtil;
|
import com.aoleyun.sn.utils.ToastUtil;
|
||||||
import com.aoleyun.sn.utils.Utils;
|
import com.aoleyun.sn.utils.Utils;
|
||||||
|
import com.arialyy.aria.core.Aria;
|
||||||
import com.blankj.utilcode.util.NetworkUtils;
|
import com.blankj.utilcode.util.NetworkUtils;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
@@ -103,6 +104,7 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
|
|||||||
public void onConnected(NetworkUtils.NetworkType networkType) {
|
public void onConnected(NetworkUtils.NetworkType networkType) {
|
||||||
// Debug.waitForDebugger();
|
// Debug.waitForDebugger();
|
||||||
ToastUtil.betaShow("网络已连接");
|
ToastUtil.betaShow("网络已连接");
|
||||||
|
Aria.download(this).resumeAllTask();
|
||||||
String WiFiAlias = Utils.getWifiAlias(this);
|
String WiFiAlias = Utils.getWifiAlias(this);
|
||||||
Log.e("OnNetworkStatusChanged", "onConnected: " + WiFiAlias);
|
Log.e("OnNetworkStatusChanged", "onConnected: " + WiFiAlias);
|
||||||
Utils.getPublicIP(this);
|
Utils.getPublicIP(this);
|
||||||
@@ -383,6 +385,8 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
|
|||||||
Log.e(TAG, "onReceive: " + e.getMessage());
|
Log.e(TAG, "onReceive: " + e.getMessage());
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
mPresenter.getLockedState("upgrade");
|
||||||
|
mPresenter.checkAoleyunUpdate();
|
||||||
} else {
|
} else {
|
||||||
if (ConnectManager.getInstance().isRebootFistConnect()) {
|
if (ConnectManager.getInstance().isRebootFistConnect()) {
|
||||||
start.onstar(ConnectManager.REBOOT_LAST_ONNECT_TIME);
|
start.onstar(ConnectManager.REBOOT_LAST_ONNECT_TIME);
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ public class CacheUtils {
|
|||||||
public boolean retValue = false;
|
public boolean retValue = false;
|
||||||
private boolean doneFlag = false;
|
private boolean doneFlag = false;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onRemoveCompleted(String packageName, boolean succeeded) throws RemoteException {
|
public void onRemoveCompleted(String packageName, boolean succeeded) throws RemoteException {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
retValue = succeeded;
|
retValue = succeeded;
|
||||||
@@ -119,6 +120,7 @@ public class CacheUtils {
|
|||||||
public PackageStats stats;
|
public PackageStats stats;
|
||||||
private boolean doneFlag = false;
|
private boolean doneFlag = false;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onGetStatsCompleted(PackageStats pStats, boolean succeeded) throws RemoteException {
|
public void onGetStatsCompleted(PackageStats pStats, boolean succeeded) throws RemoteException {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
retValue = succeeded;
|
retValue = succeeded;
|
||||||
|
|||||||
Reference in New Issue
Block a user