Priority: Not Evaluated
Resolution: Out of scope
Affects Version/s: 1.18.0
Fix Version/s: None
The File.copy doesn't copy the file if the target file already exists.
I saw the issue when working on the android codesign module.
The codesign module has an enableCodeSigning property which disables signing.
When set to true then the unsigned package file is signed into the signed package file.
When set to false then the unsigned package file is just copied into the "signed" package file.
After building a signed package, if I disable code signing then the copy doesn't work.
The copy only works from a fresh build.
This project illustrates the issue:
First step: build the project with enableCodeSigning: true
The simulated signed package will be build (binary copy of the archive with 0xAB, 0xCD appended).
Second step: build the project with enableCodeSigning: false
The package file won't be updated.