Skip to content

Commit 76c3ae4

Browse files
committed
fix: Add instructions to installation section in docs
1 parent 768002c commit 76c3ae4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/docs/docs/index.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,23 @@ allprojects {
5858
}
5959
```
6060
61-
And then add the dependency in your gradle file:
61+
Then add the dependency in your gradle file:
6262
6363
```groovy
6464
dependencies {
6565
implementation "com.github.haroldadmin:NetworkResponseAdapter:(latest-version)"
6666
}
6767
```
6868
69+
And finally, register `NetworkResponseAdapter` with Retrofit:
70+
71+
```kotlin
72+
val retrofit = Retrofit.Builder()
73+
.addCallAdapterFactory(NetworkResponseAdapterFactory())
74+
... // Other config
75+
.build()
76+
```
77+
6978
<!-- prettier-ignore-start -->
7079
!!! note
7180
This library uses OkHttp 4, which requires Android API version 21+ and Java 8+.

0 commit comments

Comments
 (0)