iOS: Specify outputs in podspec to optimize recurrent builds
birdofpreyru opened this issue · 5 comments
Is it possible to do it for Android as well? I think it is also happening there, but not 100% sure.
I'm not sure regarding Android. Though, as the build in all cases is managed by CMake, it already caches build artefacts, and avoids unnecessary repeating of build operations. Thus, specifying output artefacts is a minor optimisation anyway.
well, whenever my app is built on Android I can see static-server being compiled, it adds about 20 - 30 seconds to my compilation time on my mac, and on the CI that would be some extra minutes.
Be it as it may be, I currently don't know a way to improve it for Android builds, but I am not a deep expert in native Android builds, thus neither I can claim there is not way to. You know, the Android build is managed by Gradle, the current config we use is here, and here is the documentation for that version of Android Gradle Plugin. More specifically, the CMake part of the build is ordered by this block, documented here. So, if you have some time to spare digging into the documentation, and able to find any way to speed-up stuff, I don't mind it at all; otherwise, the current build performance does not feel like a huge issue to me either.
I just took another look, I think I was wrong, maybe it was because for the emulator it compiles x86_64 but further builds are actually quite fast. So, nevermind my comment about Android. Thanks a lot!