Commit 94994da 1 parent ada12f4 commit 94994da Copy full SHA for 94994da
File tree 2 files changed +4
-4
lines changed
example/src/main/java/org/xmtp/android/example
library/src/main/java/org/xmtp/android/library
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ object ClientManager {
20
20
api = ClientOptions .Api (
21
21
XMTPEnvironment .DEV ,
22
22
appVersion = " XMTPAndroidExample/v1.0.0" ,
23
- isSecure = false
23
+ isSecure = true
24
24
),
25
25
enableAlphaMls = true ,
26
26
appContext = appContext
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ class Client() {
279
279
}
280
280
281
281
private fun isAlphaMlsEnabled (options : ClientOptions ? ): Boolean {
282
- return (options != null && options.enableAlphaMls && options.api.env == XMTPEnvironment .LOCAL && options.appContext != null )
282
+ return (options != null && options.enableAlphaMls && options.api.env != XMTPEnvironment .PRODUCTION && options.appContext != null )
283
283
}
284
284
285
285
private suspend fun ffiXmtpClient (
@@ -324,8 +324,8 @@ class Client() {
324
324
325
325
createClient(
326
326
logger = logger,
327
- host = " http://${options.api.env.getValue()} :5556" ,
328
- isSecure = false ,
327
+ host = if (options.api.env == XMTPEnvironment . LOCAL ) " http://${options.api.env.getValue()} :5556" else " https:// ${options.api.env.getValue()} :443 " ,
328
+ isSecure = options.api.isSecure ,
329
329
db = dbPath,
330
330
encryptionKey = retrievedKey.encoded,
331
331
accountAddress = accountAddress,
You can’t perform that action at this time.
0 commit comments