Skip to content

Commit

Permalink
#update update name
Browse files Browse the repository at this point in the history
  • Loading branch information
wumeng1 authored and wumeng1 committed Aug 6, 2021
1 parent fcefff8 commit 58ebf83
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/mirkowu/mvm/MVMApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.app.Application;

import com.mirkowu.lib_bugly.UpgradeManager;
import com.mirkowu.lib_crash.CrashManager;
import com.mirkowu.lib_screen.AutoSizeManager;
import com.mirkowu.lib_stat.UmengManager;
import com.mirkowu.lib_util.LogUtil;
Expand Down Expand Up @@ -46,6 +47,8 @@ public void onCreate() {
@Override
public void accept(Throwable throwable) throws Throwable {
LogUtil.e(throwable, "RxJavaPlugins");
CrashManager.reportError(throwable);
UmengManager.reportError(throwable);
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Bugly异常上报
*/
public class CrashManger {
public class CrashManager {
/**
* 初始化
* 如果使用了 版本更新SDK 直接用 {@link com.mirkowu.lib_bugly.UpgradeManager} 初始化就行
Expand Down Expand Up @@ -55,16 +55,16 @@ public static void setUserId(Context context, String userId) {
*
* @param e
*/
public static void reportException(Throwable e) {
public static void reportError(Throwable e) {
CrashReport.postCatchedException(e);
}


public static void reportException(BuglyException e) {
public static void reportError(BuglyException e) {
CrashReport.postCatchedException(e);
}

public static void reportException(String message, Throwable e) {
public static void reportError(String message, Throwable e) {
CrashReport.postCatchedException(new BuglyException(message, e));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Bugly异常上报
*/
public class CrashManger {
public class CrashManager {
/**
* @param context
* @param appId 申请的应用ID
Expand Down Expand Up @@ -47,16 +47,16 @@ public static void setUserId(Context context, String userId) {
*
* @param e
*/
public static void reportException(Throwable e) {
public static void reportError(Throwable e) {
CrashReport.postCatchedException(e);
}


public static void reportException(BuglyException e) {
public static void reportError(BuglyException e) {
CrashReport.postCatchedException(e);
}

public static void reportException(String message, Throwable e) {
public static void reportError(String message, Throwable e) {
CrashReport.postCatchedException(new BuglyException(message, e));
}

Expand Down

0 comments on commit 58ebf83

Please sign in to comment.