https://kotlinlang.org logo
#library-development
Title
# library-development
l

Ling Yang

03/20/2024, 10:08 PM
Hi, everyone, anyones knows how to customize output aar file name for KMP library? looks like versionName and versionCode is not recognized in the android->defaultConfig block. Did I miss something?
m

mbonnin

03/21/2024, 10:31 AM
versionCode
is only for apps, not for libraries
For the lib name, IIRC, this is taken from your Gradle module name. There are probably ways to tweak it but I have always tried to avoid this. I find it easier that the names match
l

Ling Yang

03/21/2024, 2:06 PM
Thanks. But is there a way to version the library?
m

mbonnin

03/21/2024, 3:18 PM
Sure, that's when you publish your library. See https://kotlinlang.org/docs/multiplatform-publish-lib.html for how to set the version
👍 1