Skip to content

Commit 8e06501

Browse files
committed
Merge branch 'main' of https://github.com/xmtp/xmtp-android into np/bump-consent-page
2 parents c8f3412 + 66af542 commit 8e06501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/org/xmtp/android/library/ApiClient.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package org.xmtp.android.library
22

3-
import io.grpc.Grpc
43
import io.grpc.InsecureChannelCredentials
54
import io.grpc.ManagedChannel
65
import io.grpc.Metadata
76
import io.grpc.TlsChannelCredentials
7+
import io.grpc.okhttp.OkHttpChannelBuilder
88
import kotlinx.coroutines.flow.Flow
99
import org.xmtp.android.library.messages.Pagination
1010
import org.xmtp.android.library.messages.Topic
@@ -88,7 +88,7 @@ data class GRPCApiClient(
8888
}
8989

9090
private val channel: ManagedChannel =
91-
Grpc.newChannelBuilderForAddress(
91+
OkHttpChannelBuilder.forAddress(
9292
environment.getValue(),
9393
if (environment == XMTPEnvironment.LOCAL) 5556 else 443,
9494
if (secure) {

0 commit comments

Comments
 (0)