File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 - main
99
1010jobs :
11- check-rest :
11+ check-rest-httpurlconnection :
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v4
@@ -24,15 +24,15 @@ jobs:
2424 - name : Set up Gradle
2525 uses : gradle/actions/setup-gradle@v3
2626
27- - run : ./gradlew :java:testRestSuite
27+ - run : ./gradlew :java:testRestSuite -PhttpURLConnection
2828
2929 - uses : actions/upload-artifact@v4
3030 if : always()
3131 with :
3232 name : java-build-reports-rest
3333 path : java/build/reports/
3434
35- check-realtime :
35+ check-realtime-httpurlconnection :
3636 runs-on : ubuntu-latest
3737 steps :
3838 - uses : actions/checkout@v4
4848 - name : Set up Gradle
4949 uses : gradle/actions/setup-gradle@v3
5050
51- - run : ./gradlew :java:testRealtimeSuite
51+ - run : ./gradlew :java:testRealtimeSuite -PhttpURLConnection
5252
5353 - uses : actions/upload-artifact@v4
5454 if : always()
7171 - name : Set up Gradle
7272 uses : gradle/actions/setup-gradle@v3
7373
74- - run : ./gradlew :java:testRestSuite -Pokhttp
74+ - run : ./gradlew :java:testRestSuite
7575
7676 check-realtime-okhttp :
7777 runs-on : ubuntu-latest
8989 - name : Set up Gradle
9090 uses : gradle/actions/setup-gradle@v3
9191
92- - run : ./gradlew :java:testRealtimeSuite -Pokhttp
92+ - run : ./gradlew :java:testRealtimeSuite
9393
9494 check-liveobjects :
9595 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -134,17 +134,7 @@ You can add proxy support to the Ably Java SDK by configuring `ProxyOptions` in
134134<details >
135135<summary >Proxy support setup details.</summary >
136136
137- To enable proxy support for both REST and Realtime clients in the Ably SDK, use the OkHttp library to handle HTTP requests and WebSocket connections.
138-
139- Add the following dependency to your ` build.gradle ` file:
140-
141- ``` groovy
142- dependencies {
143- runtimeOnly("io.ably:network-client-okhttp:1.4.2")
144- }
145- ```
146-
147- After adding the OkHttp dependency, enable proxy support by specifying proxy settings in the ClientOptions when initializing your Ably client.
137+ Enable proxy support by specifying proxy settings in the ClientOptions when initializing your Ably client.
148138
149139The following example sets up a proxy using the Pub/Sub Java SDK:
150140
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ dependencies {
5454 compileOnly(libs.jetbrains)
5555 testImplementation(libs.bundles.tests)
5656 implementation(project(" :network-client-core" ))
57- runtimeOnly(project(" :network-client-default " ))
57+ runtimeOnly(project(" :network-client-okhttp " ))
5858 implementation(libs.firebase.messaging)
5959 androidTestImplementation(libs.bundles.instrumental.android)
6060}
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ dependencies {
2222 implementation(libs.bundles.common)
2323 compileOnly(libs.jetbrains)
2424 implementation(project(" :network-client-core" ))
25- if (findProperty(" okhttp" ) == null ) {
26- runtimeOnly(project(" :network-client-default" ))
27- } else {
25+ if (findProperty(" httpURLConnection" ) == null ) {
2826 runtimeOnly(project(" :network-client-okhttp" ))
27+ } else {
28+ runtimeOnly(project(" :network-client-default" ))
2929 }
3030 testImplementation(libs.bundles.tests)
3131}
You can’t perform that action at this time.
0 commit comments