Hey I need to create a multiplatform library which will call GraphQL WebService and it will be used by both Android and IOS.
Is is possible if yes, please guide me. Thanks!
have the simple code for getting the OS name from two different classes
androidMain/kotlin/actual.kt
and
iosMain/kotlin/actual.kt
and that name is getting exposed in
commonMain/kotlin/common.kt
which have a method
createApplicationScreenMessage()
which will be called by Android and IOS.
Now i have a graphQL Webserver and i want to write the common code(maybe in commonMain/kotlin/common.kt) for getting data from my graphQL server which will be used by both android and IOS.