plusonelabs / calendar-widget

An calender widget for your Android home screen.
Apache License 2.0
369 stars 127 forks source link

Improve GRADLE build Performance #374

Closed shisheng-1 closed 2 years ago

shisheng-1 commented 2 years ago

Parallel builds. This project contains multiple modules. Parallel builds can improve the build speed by executing tasks in parallel. We can enable this feature by setting org.gradle.parallel=true.

Configuration on demand. Configuration on demand tells Gradle to configure modules that only are relevant to the requested tasks instead of configuring all of them. We can enable this feature by setting org.gradle.configureondemand=true.

gradle caching. Shared caches can reduce the number of tasks you need to execute by reusing outputs already generated elsewhere. This can significantly decrease build times. We can enable this feature by setting org.gradle.caching=true.

===================== If there are any inappropriate modifications in this PR, please give me a reply and I will change them.

yvolk commented 2 years ago

Hi @shisheng-1 Thank you for the suggestion!

However this app is relatively small. I just checked: even Rebuild takes less than 30 seconds on my PC. So I don't think that this change is needed here. I will think about similar changes in other apps though...

Please also note that this repository is not main already. the app (the Calendar widget) is "ToDo Agenda" now with its new repository: https://github.com/andstatus/todoagenda