We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 768002c commit 76c3ae4Copy full SHA for 76c3ae4
docs/docs/docs/index.md
@@ -58,14 +58,23 @@ allprojects {
58
}
59
```
60
61
-And then add the dependency in your gradle file:
+Then add the dependency in your gradle file:
62
63
```groovy
64
dependencies {
65
implementation "com.github.haroldadmin:NetworkResponseAdapter:(latest-version)"
66
67
68
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
78
<!-- prettier-ignore-start -->
79
!!! note
80
This library uses OkHttp 4, which requires Android API version 21+ and Java 8+.
0 commit comments