version:1.0.3

fix:
update:基本跳转对接
This commit is contained in:
2025-12-12 18:09:27 +08:00
parent e6a2e71979
commit 3124840575
46 changed files with 2009 additions and 529 deletions

View File

@@ -11,6 +11,9 @@ import android.util.Log;
import androidx.multidex.MultiDex;
import com.alibaba.sdk.android.push.CloudPushService;
import com.alibaba.sdk.android.push.CommonCallback;
import com.alibaba.sdk.android.push.noonesdk.PushServiceFactory;
import com.arialyy.aria.core.Aria;
import com.hjq.toast.Toaster;
import com.tencent.bugly.crashreport.CrashReport;
@@ -101,27 +104,27 @@ public class BaseApplication extends Application {
// Aria.get(this).getDownloadConfig().setMaxTaskNum(1);
// Aria.get(this).getDownloadConfig().setConvertSpeed(true);
// aliyunPushInit();
aliyunPushInit();
}
}
// public void aliyunPushInit() {
// PushServiceFactory.init(this);
// final CloudPushService pushService = PushServiceFactory.getCloudPushService();
// pushService.setLogLevel(CloudPushService.LOG_DEBUG);
//// pushService.register(this, new CommonCallback() {
//// @Override
//// public void onSuccess(String response) {
//// Log.e("AliyunPush", "init cloudchannel success");
//// Log.e("AliyunPush", "init cloudchannel success " + pushService.getDeviceId());
//// }
////
//// @Override
//// public void onFailed(String errorCode, String errorMessage) {
//// Log.e("AliyunPush", "init cloudchannel failed -- errorcode:" + errorCode + " -- errorMessage:" + errorMessage);
//// }
//// });
// }
public void aliyunPushInit() {
PushServiceFactory.init(this);
final CloudPushService pushService = PushServiceFactory.getCloudPushService();
pushService.setLogLevel(CloudPushService.LOG_DEBUG);
pushService.register(this, new CommonCallback() {
@Override
public void onSuccess(String response) {
Log.e("AliyunPush", "init cloudchannel success");
Log.e("AliyunPush", "init cloudchannel success " + pushService.getDeviceId());
}
@Override
public void onFailed(String errorCode, String errorMessage) {
Log.e("AliyunPush", "init cloudchannel failed -- errorcode:" + errorCode + " -- errorMessage:" + errorMessage);
}
});
}
private APKinstallReceiver apKinstallReceiver;