# multiplatform

Rodrigo Bressan De Souza

01/07/2022, 2:34 PM
Hi guys, I have one doubt regarding the Kotlin Multiplatform framework, I want to create a library that can be used on most platforms, mainly targeting: • js (node, to be used with react-native or a front-end framework) • Android • iOS Is Kotlin Multiplatform a viable option to it? What would be the artifacts generated for each of those options and does anyone have an example? (edited)

Eamon Keane

01/07/2022, 2:41 PM
hi Rodrigo... KMM is indeed an option. This is the sample that jetbrains keeps up to date. Just build it and you'll see the artefacts.

Rodrigo Bressan De Souza

01/07/2022, 2:43 PM
Hi @Eamon Keane thank you so much for the fast reply, do they also have an example for a Library instead of an Application?

Grégory Lureau

01/07/2022, 2:46 PM
You can at least generate a jar, a npm archive and a xcframework from a KMP project. (Even multiple archives if you use multiple modules.)
☝️ 1

Rodrigo Bressan De Souza

01/07/2022, 2:48 PM
Perfect, I'll start a sample project and see where it leads me hahaha Thank you!

Anton Afanasev

01/07/2022, 2:53 PM
You can produce
for Android and
for iOS. Not sure about js thogh

Hadji Musaev

01/07/2022, 3:12 PM
@Rodrigo Bressan De Souza there’s a tutorial for libraries as well: