microsoft / cordova-plugin-code-push

Cordova plugin for CodePush
http://appcenter.ms
Other
644 stars 324 forks source link

`CODE_PUSH_APK_BUILD_TIME` slows down builds recompiling resources unecessarily. #668

Open runningcode opened 3 years ago

runningcode commented 3 years ago

Description

CODE_PUSH_APK_BUILD_TIME is regenerated in every build for Android apps which mean that resources are recompiled even if no other resources changes or code changes were made to the app.

This means that if no code changes are made, it can add 10-20 seconds to a build (or more depending on how many resources exist). Ideally a build with no changes should not perform any work and return almost instantly.

Reproduction

./gradlew assembleDebug then ./gradlew assembleDebug you will see at the end of the second build 100 actionable tasks: 5 executed (or more). I would expect that running assembleDebug twice in a row would yield 100 actionable tasks: 100 up-to-date.

Additional Information