Hi all, I'm creating a single iOS Framework from a...
# multiplatform
s
Hi all, I'm creating a single iOS Framework from an umbrella multiplatform module which contains 4 modules. The operation takes 4 minutes approximately. Is there any optimization I could try to lower the generation time? Could the increase of the number of submodules within the umbrella module affect positively?
k
are you pulling the klibs from Maven, or are you building them all inline?
s
Maven
que most time consuming tasks are compileIos and linkFrameworkIos
k
what is it compiling?
s
what do you mean?
k
if you're only pulling in klibs, what is there to compile?
s
ah sorry I misunderstood you, I'm compiling my code locally and generating the framework. With the cocoapods plugin I use it in the iOS solution. All operations are local
k
well there you go
you're compiling everything every time. if you used Maven that wouldn't be the case, but you'd have development overheard in other ways.
s
I was thinking on increasing the number of submodules, in kotlin it reduces the built time, but I do not know if it also affects the framework creation time
s
s
So, in your opinion splitting modules into smaller modules and put them together within the umbrella framework could reduce time?
s
It might make
compileFOO
task faster (can't give any estimates, though). I suggest to try tips from the document I mentioned before diving into refactoring.