Skip to content

Commit

Permalink
release 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zeropercenthappy committed Jan 14, 2020
1 parent 7a71d27 commit b90c347
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Add it in your root build.gradle at the end of repositories:

```
```groovy
allprojects {
repositories {
...
Expand All @@ -19,9 +19,9 @@ allprojects {

Add the dependency

```
```groovy
dependencies {
implementation 'com.github.zeropercenthappy:RetrofitUtils:1.1.1'
implementation 'com.github.zeropercenthappy:RetrofitUtils:1.1.2'
}
```

Expand Down Expand Up @@ -50,6 +50,10 @@ val retrofit = RetrofitBuilder()
.addConverterFactory(GsonConverterFactory.create())
// option: if you have call adapter to add
.addCallAdapterFactory(yourCallAdapter)
// ootion: if you want to modify okhttp builder
.okhttpClientBuilderOption { okhttpBuilder ->

}
.build(context)
val api =retrofit.create(Api::class.java)
```
Expand Down
10 changes: 7 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

添加以下配置到你项目根目录的`build.gradle`

```
```groovy
allprojects {
repositories {
...
Expand All @@ -19,9 +19,9 @@ allprojects {

在你项目module中的`build.gradle`中添加依赖

```
```groovy
dependencies {
implementation 'com.github.zeropercenthappy:RetrofitUtils:1.1.1'
implementation 'com.github.zeropercenthappy:RetrofitUtils:1.1.2'
}
```

Expand Down Expand Up @@ -50,6 +50,10 @@ val retrofit = RetrofitBuilder()
.addConverterFactory(GsonConverterFactory.create())
// 可选: 如果你有CallAdapter要添加
.addCallAdapterFactory(yourCallAdapter)
// 可选: 如果你想修改okhttp builder
.okhttpClientBuilderOption { okhttpBuilder ->

}
.build(context)
val api =retrofit.create(Api::class.java)
```
Expand Down
4 changes: 2 additions & 2 deletions retrofitLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 111
versionName "1.1.1"
versionCode 112
versionName "1.1.2"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down

0 comments on commit b90c347

Please sign in to comment.