https://kotlinlang.org logo
k

Kirill Langer

10/22/2021, 6:24 PM
Is there any way to use kotlin specific libraries for Kotlin Multiplatform Mobile common business logic? I have a dependency on Amplify that works fine for just android but doesn't support Kotlin Multiplatform Mobile. I am trying to use it for both ios and android GraphQL queries and subscriptions. I can't add this to common dependencies. Is this possible or do we need to switch to something like apollo for KMM for our GraphQL queries and subscriptions?
🚫 1
i

itnoles

10/22/2021, 6:26 PM
Apollo Android
🙏 1
c

CRamsan

10/22/2021, 6:26 PM
You can wrap the Amplify implementation in some Common classes that use expect/actual or declare interfaces in the common code and then inject the platform specific implementation from each app.
👍 1
🙏 1
5 Views