diff --git a/bin/sanitycheck.js b/bin/sanitycheck.js index cf66a52eb..13b000228 100755 --- a/bin/sanitycheck.js +++ b/bin/sanitycheck.js @@ -225,6 +225,13 @@ apps.forEach((app,appIdx) => { console.log("====================================================="); ERROR(`App ${app.id}'s ${file.name} is a JS file but isn't valid JS`, {file:appDirRelative+file.url}); } + // clock app checks + if (app.type=="clock") { + var a = fileContents.indexOf("Bangle.loadWidgets()"); + var b = fileContents.indexOf("Bangle.setUI("); + if (a>=0 && b>=0 && a