version:m40se 2.9.6

fix:
update:接口优化
This commit is contained in:
2023-04-19 10:36:22 +08:00
parent b32037d123
commit 7cde31a7b6
9 changed files with 45 additions and 36 deletions

View File

@@ -73,8 +73,8 @@ android {
official {
flavorDimensions "default"
versionCode 33
versionName "2.9.3"
versionCode 36
versionName "2.9.6"
}
}
@@ -162,6 +162,9 @@ android {
mtk11Debug.initWith(debug)
mtk11Debug {
manifestPlaceholders = [
AK: "7IubK1Ugeuxga4KKC5VQyjTeQlExsYZq"
]
buildConfigField "String", "platform", '"MTK"'
versionNameSuffix "-debug"
debuggable true
@@ -170,12 +173,13 @@ android {
mtk11Release.initWith(release)
mtk11Release {
manifestPlaceholders = [
AK: "7IubK1Ugeuxga4KKC5VQyjTeQlExsYZq"
]
buildConfigField "String", "platform", '"MTK"'
signingConfig signingConfigs.mtkAndroid11
}
teclastMTKDebug.initWith(debug)
teclastMTKDebug {
manifestPlaceholders = [

View File

@@ -119,12 +119,13 @@ public class MainAPresenter implements MainAContact.Presenter {
@Override
public void checkFXYUpdate() {
NetInterfaceManager.getInstance().checkFXYAppUpdate(true, getLifecycle(), new NetInterfaceManager.CompleteCallback() {
@Override
public void onComplete() {
mView.checkFXYUpdateFinish();
}
});
// NetInterfaceManager.getInstance().checkFXYAppUpdate(true, getLifecycle(), new NetInterfaceManager.CompleteCallback() {
// @Override
// public void onComplete() {
// mView.checkFXYUpdateFinish();
// }
// });
mView.checkFXYUpdateFinish();
}
@Override

View File

@@ -282,6 +282,7 @@ public class RunningAppManager {
for (String pkg : appList) {
if (JGYUtils.fuxiaoying.equals(pkg)
|| BuildConfig.APPLICATION_ID.equals(pkg)
|| "com.android.settings".equals(pkg)
) {
continue;
}

View File

@@ -892,7 +892,7 @@ public class ControlManager {
}
private void closeSettingsApp() {
JGYUtils.getInstance().killBackgroundProcesses("com.android.settings");
// JGYUtils.getInstance().killBackgroundProcesses("com.android.settings");
}

View File

@@ -931,10 +931,10 @@ public class NetInterfaceManager {
Observable.zip(
getUpdateObservable(BuildConfig.APPLICATION_ID),
getUpdateObservable(JGYUtils.PACKAGE_APPSTORE),
getUpdateObservable(JGYUtils.PACKAGE_OS),
getUpdateObservable(JGYUtils.PACKAGE_BROWSER),
getUpdateObservable(JGYUtils.Notifications),
(appInfoBaseResponse, appInfoBaseResponse2, appInfoBaseResponse3, appInfoBaseResponse4, appInfoBaseResponse5) -> {
// getUpdateObservable(JGYUtils.PACKAGE_OS),
// getUpdateObservable(JGYUtils.PACKAGE_BROWSER),
// getUpdateObservable(JGYUtils.Notifications),
(appInfoBaseResponse, appInfoBaseResponse2) -> {
List<AppInfo> appInfoList = new ArrayList<>();
if (appInfoBaseResponse.code == 200) {
appInfoList.add(appInfoBaseResponse.data);
@@ -942,15 +942,15 @@ public class NetInterfaceManager {
if (appInfoBaseResponse2.code == 200) {
appInfoList.add(appInfoBaseResponse2.data);
}
if (appInfoBaseResponse3.code == 200) {
appInfoList.add(appInfoBaseResponse3.data);
}
if (appInfoBaseResponse4.code == 200) {
appInfoList.add(appInfoBaseResponse4.data);
}
if (appInfoBaseResponse5.code == 200) {
appInfoList.add(appInfoBaseResponse5.data);
}
// if (appInfoBaseResponse3.code == 200) {
// appInfoList.add(appInfoBaseResponse3.data);
// }
// if (appInfoBaseResponse4.code == 200) {
// appInfoList.add(appInfoBaseResponse4.data);
// }
// if (appInfoBaseResponse5.code == 200) {
// appInfoList.add(appInfoBaseResponse5.data);
// }
return appInfoList;
})
.compose(RxLifecycle.bindUntilEvent(lifecycle, ActivityEvent.DESTROY))

View File

@@ -102,11 +102,11 @@ public class APKinstallReceiver extends BroadcastReceiver {
Log.e("sendAppInfo", "onNext: " + s);
int isLogined = (int) SPUtils.get(mContext, CommonConfig.isLogined, 2);
if (isLogined != 2) {
NetInterfaceManager.getInstance().getForceInstall();
NetInterfaceManager.getInstance().getAppInside();
// NetInterfaceManager.getInstance().getForceInstall();
// NetInterfaceManager.getInstance().getAppInside();
}
NetInterfaceManager.getInstance().SendAppInstallInfo();
NetInterfaceManager.getInstance().getAppAndWhite();
// NetInterfaceManager.getInstance().getAppAndWhite();
}
@Override

View File

@@ -91,12 +91,13 @@ public class MainSPresenter implements MainSContact.Presenter {
@Override
public void checkFXYUpdate() {
NetInterfaceManager.getInstance().checkFXYAppUpdate(true, getLifecycle(), new NetInterfaceManager.CompleteCallback() {
@Override
public void onComplete() {
mView.checkFXYUpdateFinish();
}
});
// NetInterfaceManager.getInstance().checkFXYAppUpdate(true, getLifecycle(), new NetInterfaceManager.CompleteCallback() {
// @Override
// public void onComplete() {
// mView.checkFXYUpdateFinish();
// }
// });
mView.checkFXYUpdateFinish();
}
@Override

View File

@@ -550,8 +550,8 @@ public class MessageReceiver extends XGPushBaseReceiver {
break;
case JIGUANG_FORCE_INSTALLAPK:
ToastUtil.debugShow("收到推送消息: 强制安装应用");
NetInterfaceManager.getInstance().getAllappPackage();
NetInterfaceManager.getInstance().getOverallApp();
// NetInterfaceManager.getInstance().getAllappPackage();
// NetInterfaceManager.getInstance().getOverallApp();
intallApk(context, extras);
break;
case JIGUANG_FORCE_UNINSTALLAPK:

View File

@@ -524,7 +524,9 @@ public class JGYUtils {
public static String getCustomVersion() {
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform
||JGYUtils.getInstance().checkAppPlatform() == JGYUtils.M40sePlatform) {
||JGYUtils.getInstance().checkAppPlatform() == JGYUtils.M40sePlatform
||JGYUtils.getInstance().checkAppPlatform() == JGYUtils.T30ProPlatform
) {
return getProperty("ro.build.display.id", "获取失败");
} else {
return getProperty("ro.custom.build.version", "获取失败");