We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db38dca commit 66af542Copy full SHA for 66af542
library/src/main/java/org/xmtp/android/library/ApiClient.kt
@@ -1,10 +1,10 @@
1
package org.xmtp.android.library
2
3
-import io.grpc.Grpc
4
import io.grpc.InsecureChannelCredentials
5
import io.grpc.ManagedChannel
6
import io.grpc.Metadata
7
import io.grpc.TlsChannelCredentials
+import io.grpc.okhttp.OkHttpChannelBuilder
8
import kotlinx.coroutines.flow.Flow
9
import org.xmtp.android.library.messages.Pagination
10
import org.xmtp.android.library.messages.Topic
@@ -88,7 +88,7 @@ data class GRPCApiClient(
88
}
89
90
private val channel: ManagedChannel =
91
- Grpc.newChannelBuilderForAddress(
+ OkHttpChannelBuilder.forAddress(
92
environment.getValue(),
93
if (environment == XMTPEnvironment.LOCAL) 5556 else 443,
94
if (secure) {
0 commit comments