Skip to content

Commit

Permalink
当Debug模式下不发送通知
Browse files Browse the repository at this point in the history
  • Loading branch information
maning committed May 31, 2017
1 parent d36a600 commit f62ee3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Debug监听程序崩溃日志,直接页面展示崩溃日志列表,方便自
#### 2.在app目录下的build.gradle中添加依赖
``` gradle
dependencies {
compile 'com.github.maning0303:CrashMonitor:V1.0.1'
compile 'com.github.maning0303:CrashMonitor:V1.0.2'
}
```

Expand Down Expand Up @@ -55,9 +55,11 @@ Debug监听程序崩溃日志,直接页面展示崩溃日志列表,方便自

### 喜欢就Star一下吧!

### 注意:
当应用已启动就崩溃的无法打开页面,直接看通知或者去文件夹里面查看:/Android/data/包名/cache/crashLogs/

## 感谢:
### 内部使用了一些三方库文件:
#### 内部使用了一些三方库文件:
##### [StatusBarUtil](https://github.com/laobie/StatusBarUtil)
##### [NotifyUtil](https://github.com/wenmingvs/NotifyUtil)

Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ private void dumpExceptionToSDCard(Throwable ex) throws IOException {
//导出异常的调用栈信息
ex.printStackTrace(pw);

//通知
notify_log(time.trim(), Log.getStackTraceString(ex));
//Debug才通知
if (isDebug) {
notify_log(time.trim(), Log.getStackTraceString(ex));
}

pw.close();

Expand Down

0 comments on commit f62ee3e

Please sign in to comment.