If the "tiapp.xml" file is missing property "appc-sourcecode-encryption-policy", then an Android "appc run" will alway trigger a rebuild.
This is preventing incremental Android builds from working.
Steps to reproduce:
- Create a default Alloy or Classic app from template.
- Build for Android via: appc run -p android --build-only
- Build for Android again using the above command line.
- In the build log, notice the following message
The CLI's precompileHook() code is wrongly setting the AndroidBuilder object's "encryptJS" property to undefined if the "appc-sourcecode-encryption-policy" property was not found. This code should set the "encryptJS" field to true if the encryption policy was found and set to "remote". Otherwise, it should leave the "encryptJS" field alone.
Add the following property to the "tiapp.xml" file.