https://kotlinlang.org logo
s

sendoav

05/12/2021, 3:35 PM
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

Kris Wong

05/12/2021, 3:41 PM
are you pulling the klibs from Maven, or are you building them all inline?
s

sendoav

05/12/2021, 3:54 PM
Maven
que most time consuming tasks are compileIos and linkFrameworkIos
k

Kris Wong

05/12/2021, 3:55 PM
what is it compiling?
s

sendoav

05/12/2021, 4:15 PM
what do you mean?
k

Kris Wong

05/12/2021, 4:20 PM
if you're only pulling in klibs, what is there to compile?
s

sendoav

05/12/2021, 4:39 PM
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

Kris Wong

05/12/2021, 4:41 PM
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

sendoav

05/12/2021, 4:55 PM
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

sergey.bogolepov

05/12/2021, 7:08 PM
s

sendoav

05/12/2021, 7:42 PM
So, in your opinion splitting modules into smaller modules and put them together within the umbrella framework could reduce time?
s

sergey.bogolepov

05/13/2021, 4:53 AM
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.
9 Views