Skip to content

Commit

Permalink
release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ximsfei committed Dec 19, 2017
1 parent f257938 commit 73f9942
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GodBlessYou

![gbu](https://img.shields.io/badge/gbu-0.0.1-green.svg)
![gbu](https://img.shields.io/badge/gbu-0.0.2-green.svg)
![build](https://img.shields.io/badge/build-passing-green.svg)
![license-apache-2.0](https://img.shields.io/badge/Apache-2.0-blue.svg)

Expand Down Expand Up @@ -29,7 +29,7 @@ The Gradle Dependency is available via [jCenter](https://bintray.com/pengfeng/xi
Add dependencies directly

```
implementation 'god.bless.you:gbu:0.0.1'
implementation 'god.bless.you:gbu:0.0.2'
```

## Integration
Expand All @@ -40,7 +40,11 @@ Integrate with kotlin
class App : Application() {
override fun attachBaseContext(base: Context?) {
super.attachBaseContext(base)
Gbu
Gbu.init(this)
.setDebug(true)
.enableLifecycleCrash(true)
.enableOtherCrash(false)
.install()
}
}
```
Expand Down
12 changes: 8 additions & 4 deletions README_CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GodBlessYou

![gbu](https://img.shields.io/badge/gbu-0.0.1-green.svg)
![gbu](https://img.shields.io/badge/gbu-0.0.2-green.svg)
![build](https://img.shields.io/badge/build-passing-green.svg)
![license-apache-2.0](https://img.shields.io/badge/Apache-2.0-blue.svg)

Expand All @@ -27,18 +27,22 @@ GBU 尝试在运行时修复Android应用的崩溃问题,在使部分功能失
`build.gradle`中直接添加依赖

```
implementation 'god.bless.you:gbu:0.0.1'
implementation 'god.bless.you:gbu:0.0.2'
```

## 使用

在Application中初始化
使用kotlin在Application中初始化

```
class App : Application() {
override fun attachBaseContext(base: Context?) {
super.attachBaseContext(base)
Gbu
Gbu.init(this)
.setDebug(true)
.enableLifecycleCrash(true)
.enableOtherCrash(false)
.install()
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion gbu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repositories {
}

ext {
publishVersion = '0.0.1'
publishVersion = '0.0.2'
moduleName = 'gbu'
descContent = 'God bless your apk doesn\'t crash'
}
Expand Down
2 changes: 1 addition & 1 deletion gbu/src/main/java/god/bless/you/Gbu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import android.os.Looper
import god.bless.you.app.GbuActivityThread

object Gbu {
private var debug = false
var debug = false
private var enableLifecycleCrash = true
private var enableCommonCrash = false

Expand Down

0 comments on commit 73f9942

Please sign in to comment.