Hi there! Can we build library by using KMM? I mea...
# multiplatform
c
Hi there! Can we build library by using KMM? I mean not application. I have built application with KMM. But I want to build independent library to support Android and iOS with KMM. Is it possible?
b
Absolutely. I even have a template for you https://github.com/mpetuska/template-kmp-library
4
Remove the targets you don't need
c
Great @Big Chungus
Thanks.
I will follow you
❤️ 1
y
wow this is interesting
o
hi @Big Chungus. is this template for developing a library for kmm or for using outputs on client projects?
b
For developing libraries for KMP, however it can be easily adapted to spit out executables for native clients to consume as well
🙏 1
c
Hi @Big Chungus can you let me know how I can build iOS library from your project kindly?
b
Well the template is already setup to produce KMP library to be consumed by any
kotlin
target (including ios). To further convert that output to ios-native library (i.e. obj-c library), you need to configure
binaries {}
block for that target. I'm no expert in apple shit and generally try to avoid it like fire, so you'd best ask others in #kotlin-native
c
Okay, thanks @Big Chungus