As a sanity check, I limited the device in manifest.xml to only support one device (enduro 3), only use one "has" check, and compile with the check totally commented out and with it uncommented, and the binaries are consistently a different size, by about 30 bytes.
This is the check:
function getInitialView() as [Views] or [Views, InputDelegates] {
if (Toybox has :Complications) {
return [ new WfView(), new WfDeligate() ];
} else {
return [ new WfView() ];
}
}
And this is it commented out
function getInitialView() as [Views] or [Views, InputDelegates] {
//if (Toybox has :Complications) {
return [ new WfView(), new WfDeligate() ];
//} else {
//return [ new WfView() ];
//}
}
The first one consistently generates a binary .iq file that's 30 bytes bigger when I export the project. Shouldn't they be identical, if the alternative branch gets compiled out?