https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Akshay Agrawal

10/03/2023, 2:40 PM
Hi All, I am pretty new to KMP and want to build a common library for Android, iOS and Web. I tried following the docs available here https://kotlinlang.org/docs/multiplatform-mobile-create-first-app.html#run-your-application-on-android but seems to lost. Can anyone help me pointing to a simpler version of doc with examples to try out.
a

Alejandro Rios

10/03/2023, 2:42 PM
With this wizard you can select what libraries you need for your project, what platforms are you going to use: https://terrakok.github.io/Compose-Multiplatform-Wizard/
after that just download and compile the project with your prefered IDE
a

Akshay Agrawal

10/03/2023, 2:44 PM
I need to build a library without any UI for just sharing the business logic. If i am not wrong compose multi platform is for UI sharing.
✔️ 1
My understanding is that i can generate a library using KMP for Android, iOS and Web and can consume the generated library in the respective platform app thereby enabling the business logic sharing.
✔️ 1
a

Alejandro Rios

10/03/2023, 2:46 PM
You're correct
a

Akshay Agrawal

10/03/2023, 2:47 PM
I am looking for documentation around creating library in KMP that can be used on the above mentioned platforms.
a

Alejandro Rios

10/03/2023, 2:49 PM
it looks like you have the same idea as 2 messages above
a

Akshay Agrawal

10/03/2023, 2:50 PM
Let me check this. Thanks @Alejandro Rios
s

shaktiman_droid

10/03/2023, 3:28 PM
@Akshay Agrawal For JS output, I wrote a piece to describe different ways you can output and use JS library https://dev.to/touchlab/different-ways-to-distribute-and-integrate-kotlinjs-library-1hg3
2 Views