Hey guys, what is your startegy for versioning your KMP app? i have a version system in the root project
gradle.build.kts
Copy code
ext {
val versionMajor = 0
val versionMinor = 1
val versionPatch = 0
val versionBuild = 0 // For internal build numbers or CI
extra["versionName"] = "$versionMajor.$versionMinor.$versionPatch"
extra["versionCode"] = versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
}
I can access it in androidMain using the
BuildConfig
How can i add it to the iOS side?
h
Hristijan
11/27/2024, 11:10 AM
this is for me handled on the CI, it bumps up the version in the plist and also i’m using version catalog for Android that feeds the BuildKonfig library and is consumed in both iOS and Android
the ios is basically the same version as the version catalog except that i don’t touch it and the CI does
versionName is the same as you
versionCode for me started from 1