From 19817855ace48558375ce472e9795ba06fb03cfd Mon Sep 17 00:00:00 2001 From: Daniel Frett Date: Wed, 25 Sep 2024 10:00:04 -0600 Subject: [PATCH] force the Default platform for Scarlet --- library/api/src/main/kotlin/org/cru/godtools/api/ApiModule.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/api/src/main/kotlin/org/cru/godtools/api/ApiModule.kt b/library/api/src/main/kotlin/org/cru/godtools/api/ApiModule.kt index 6c652b65d2..e6860c4658 100644 --- a/library/api/src/main/kotlin/org/cru/godtools/api/ApiModule.kt +++ b/library/api/src/main/kotlin/org/cru/godtools/api/ApiModule.kt @@ -29,6 +29,7 @@ import org.ccci.gto.android.common.retrofit2.converter.LocaleConverterFactory import org.ccci.gto.android.common.scarlet.ReferenceLifecycle import org.ccci.gto.android.common.scarlet.actioncable.ActionCableMessageAdapterFactory import org.ccci.gto.android.common.scarlet.actioncable.okhttp3.ActionCableRequestFactory +import org.ccci.gto.android.common.scarlet.forceDefaultPlatform import org.cru.godtools.api.model.AuthToken import org.cru.godtools.api.model.NavigationEvent import org.cru.godtools.api.model.PublisherInfo @@ -170,6 +171,7 @@ object ApiModule { okhttp: OkHttpClient, referenceLifecycle: ReferenceLifecycle, ) = Scarlet.Builder() + .forceDefaultPlatform() .webSocketFactory(okhttp.newWebSocketFactory(ActionCableRequestFactory("${baseUrl}cable"))) .addMessageAdapterFactory( ActionCableMessageAdapterFactory.Builder()