Hello ! I’m working on a KMM project and I’m noticing that some build tasks take too much time as you can see in the screenshot, Does anyone have suggestions on how to optimize ! thanks
f
François
09/21/2024, 5:46 PM
it’s the release one, it take more time than the debug one, I don’t see any big issue about timing
François
09/21/2024, 5:47 PM
or try to build as dynamic library instead of static one
a
Abdo
09/21/2024, 7:42 PM
Yeah, thanks for the suggestion, i will try that out! is there any way to disable release builds entirely in the development environment?
f
François
09/22/2024, 5:16 AM
which gradle command do you use?
a
Abdo
09/22/2024, 1:30 PM
basic command ./gradlew :app build
f
François
09/22/2024, 5:40 PM
are you building a library or an application?,
• for android it’s about “assembleDebug” or “assembleRelease”
François
09/22/2024, 5:40 PM
as you don’t specify the flavor in your command, you are building for every target
a
Abdo
09/22/2024, 6:54 PM
it’s an app build.. thanks I have add dynamic libraries option, and it’s working great! I ve also added a configuration to prevent the linkRelease task from running during development, which has significantly improved my build times, thanks