Hi all. I was wondering what are your usual build ...
# multiplatform
r
Hi all. I was wondering what are your usual build times for KMP projects? We have around 270 shared modules for SwiftUi app and the release build time currently takes around 2 hours. (debug build is much faster, like 10-20min) We use cocoapods, the modules vary from little ones (with 2 classes to bigger ones 100+-classes). The step that takes almost all time is ./gradlew -p shared kmmsharedKmm:syncFramework -Pkotlin.native.cocoapods.platform=iphonesimulator -Pkotlin.native.cocoapods.archs=arm64 -Pkotlin.native.cocoapods.configuration=Release I wonder if such build times are normal, or if there is something we can do to speed it up.
t
also in 2.2.20 release we finally will add support for https://kotlinlang.org/docs/gradle-compilation-and-caches.html#build-reports for Native part. It would be nice if you could shared them to us once you will update you project to this release
👀 1
r
Build reports for native part sounds cool. Definitely will look into it once possible. I will look into the page for improving compilation times as well. Do you think this build times are far too high than expected?
t
Hard to tell without build metrics. This is a release build where much more is optimized. Plus we don't know amount of code you have in the project