Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhao2007 committed Sep 26, 2017
1 parent 041b653 commit 2ee50bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- Gradle中配置;

```
compile ''
compile 'com.startup:protector:1.0.0'
```

- 初始化;
Expand All @@ -37,11 +37,17 @@
.setRestart(false)
.init(ProtectorApp.this);
```

- 退出应用的时候调用,崩溃的统计会更加精确;
```
Protector.getInstance().lanuchSucceed();
```
- 备注;
```
使用addSynchronousTask()添加同步方法时,任务执行完毕不需要阻塞进程时务必要调用onPostExecute()方法,否则进程会一直阻塞;
```
# 四、详细说明
- addTask(); 注册行为在一级安全模式触发;
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ allprojects {
repositories {
jcenter()
}
tasks.withType(Javadoc) {
options {
encoding "UTF-8"
charSet 'UTF-8'
links "http://docs.oracle.com/javase/7/docs/api"
}
options.addStringOption('Xdoclint:none', '-quiet')
}
}

task clean(type: Delete) {
Expand Down

0 comments on commit 2ee50bc

Please sign in to comment.