Commit ada12f4 1 parent 060c234 commit ada12f4 Copy full SHA for ada12f4
File tree 2 files changed +3
-3
lines changed
library/src/main/java/org/xmtp/android/library
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ data class GRPCApiClient(
91
91
private val channel: ManagedChannel =
92
92
Grpc .newChannelBuilderForAddress(
93
93
environment.getValue(),
94
- 5556 ,
94
+ if (environment == XMTPEnvironment . LOCAL ) 5556 else 443 ,
95
95
if (secure) {
96
96
TlsChannelCredentials .create()
97
97
} else {
Original file line number Diff line number Diff line change 1
1
package org.xmtp.android.library
2
2
3
3
enum class XMTPEnvironment (val rawValue : String ) {
4
- DEV (" grpc.dev.xmtp.network:443 " ),
5
- PRODUCTION (" grpc.production.xmtp.network:443 " ),
4
+ DEV (" grpc.dev.xmtp.network" ),
5
+ PRODUCTION (" grpc.production.xmtp.network" ),
6
6
LOCAL (" 10.0.2.2" ) {
7
7
override fun withValue (value : String ): XMTPEnvironment {
8
8
return LOCAL .apply { customValue = value }
You can’t perform that action at this time.
0 commit comments