Skip to content

Commit

Permalink
Merge pull request #3705 from CruGlobal/scarletJava8Fix
Browse files Browse the repository at this point in the history
GT-2455 force the Default platform for Scarlet
  • Loading branch information
frett authored Sep 26, 2024
2 parents a9908fe + 1981785 commit fcb38c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/api/src/main/kotlin/org/cru/godtools/api/ApiModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -170,6 +171,7 @@ object ApiModule {
okhttp: OkHttpClient,
referenceLifecycle: ReferenceLifecycle,
) = Scarlet.Builder()
.forceDefaultPlatform()
.webSocketFactory(okhttp.newWebSocketFactory(ActionCableRequestFactory("${baseUrl}cable")))
.addMessageAdapterFactory(
ActionCableMessageAdapterFactory.Builder()
Expand Down

0 comments on commit fcb38c5

Please sign in to comment.