Skip to content

Commit 47987c2

Browse files
authored
chore(network): interceptor integration logic updated (#342)
* merged okhttp interceptor to network plugin * merged ktor interceptor to network plugin * dir structure updated * detekt baseline removed * Update README.md
1 parent 8e9a9c1 commit 47987c2

File tree

147 files changed

+59
-498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+59
-498
lines changed

pluto-plugins/bundle/lib-no-op/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ mavenPublishing {
8989

9090
dependencies {
9191
api(project(":pluto-plugins:plugins:exceptions:lib-no-op"))
92-
api(project(":pluto-plugins:plugins:network:core:lib-no-op"))
93-
api(project(":pluto-plugins:plugins:network:interceptor-ktor:lib-no-op"))
94-
api(project(":pluto-plugins:plugins:network:interceptor-okhttp:lib-no-op"))
92+
api(project(":pluto-plugins:plugins:network:lib-no-op"))
9593
api(project(":pluto-plugins:plugins:shared-preferences:lib-no-op"))
9694
api(project(":pluto-plugins:plugins:logger:lib-no-op"))
9795
api(project(":pluto-plugins:plugins:datastore:lib-no-op"))

pluto-plugins/bundle/lib/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ mavenPublishing {
8989

9090
dependencies {
9191
api(project(":pluto-plugins:plugins:exceptions:lib"))
92-
api(project(":pluto-plugins:plugins:network:core:lib"))
93-
api(project(":pluto-plugins:plugins:network:interceptor-ktor:lib"))
94-
api(project(":pluto-plugins:plugins:network:interceptor-okhttp:lib"))
92+
api(project(":pluto-plugins:plugins:network:lib"))
93+
// api(project(":pluto-plugins:plugins:network:interceptor-ktor:lib"))
94+
// api(project(":pluto-plugins:plugins:network:interceptor-okhttp:lib"))
9595
api(project(":pluto-plugins:plugins:shared-preferences:lib"))
9696
api(project(":pluto-plugins:plugins:logger:lib"))
9797
api(project(":pluto-plugins:plugins:datastore:lib"))

pluto-plugins/plugins/network/README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,11 @@ Pluto.Installer(this)
2222
.install()
2323
```
2424
<br>
25-
26-
> Note: If you are already using Network plugin, you need to do some code changes to migrate to version`2.1.7+`. Please [read here](https://github.com/androidPluto/pluto/wiki/Migrating-Network-plugin-to-version-2.1.7) for migration.
25+
<br>
2726

2827
### Add interceptors
2928

3029
#### 1. Okhttp Interceptor
31-
Add okhttp-interceptor dependency
32-
```groovy
33-
dependencies {
34-
debugImplementation "com.plutolib.plugins:network-interceptor-okhttp:$plutoVersion"
35-
releaseImplementation "com.plutolib.plugins:network-interceptor-okhttp-no-op:$plutoVersion"
36-
}
37-
```
38-
3930
Add interceptor in your OkHttp Client Builder
4031
```kotlin
4132
val client = OkHttpClient.Builder()
@@ -45,14 +36,6 @@ val client = OkHttpClient.Builder()
4536
<br>
4637

4738
#### 2. Ktor Interceptor
48-
Add ktor-interceptor dependency
49-
```groovy
50-
dependencies {
51-
debugImplementation "com.plutolib.plugins:network-interceptor-ktor:$plutoVersion"
52-
releaseImplementation "com.plutolib.plugins:network-interceptor-ktor-no-op:$plutoVersion"
53-
}
54-
```
55-
5639
Add interceptor in your HttpClient
5740
```kotlin
5841
val client = HttpClient {

pluto-plugins/plugins/network/core/lib/detekt-baseline.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

pluto-plugins/plugins/network/interceptor-ktor/lib-no-op/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

pluto-plugins/plugins/network/interceptor-ktor/lib-no-op/build.gradle.kts

Lines changed: 0 additions & 92 deletions
This file was deleted.

pluto-plugins/plugins/network/interceptor-ktor/lib/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

pluto-plugins/plugins/network/interceptor-ktor/lib/build.gradle.kts

Lines changed: 0 additions & 102 deletions
This file was deleted.

pluto-plugins/plugins/network/interceptor-okhttp/lib-no-op/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

pluto-plugins/plugins/network/interceptor-okhttp/lib-no-op/build.gradle.kts

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)