mirror of https://github.com/espruino/BangleApps
more app.json fixes, remove warning about settings as it seems nobody cares
parent
cc79881719
commit
a45f7506ff
|
@ -4095,7 +4095,7 @@
|
|||
{"name":"carcrazy.img","url":"app-icon.js","evaluate":true},
|
||||
{"name":"carcrazy.settings.js","url":"settings.js"}
|
||||
],
|
||||
"data": [{"name":"app.json"}]
|
||||
"data": [{"name":"CarCrazy.csv"}]
|
||||
},
|
||||
{
|
||||
"id": "shortcuts",
|
||||
|
@ -4537,7 +4537,7 @@
|
|||
{"name":"schoolCalendar.img","url":"app-icon.js","evaluate":true}
|
||||
],
|
||||
"data": [
|
||||
{"name":"app.json"}
|
||||
{"name":"calendarItems.csv"}
|
||||
]
|
||||
},
|
||||
{ "id": "timecal",
|
||||
|
|
|
@ -207,10 +207,10 @@ apps.forEach((app,appIdx) => {
|
|||
}
|
||||
});
|
||||
// prefer "appid.json" over "appid.settings.json" (TODO: change to ERROR once all apps comply?)
|
||||
if (dataNames.includes(app.id+".settings.json") && !dataNames.includes(app.id+".json"))
|
||||
/* if (dataNames.includes(app.id+".settings.json") && !dataNames.includes(app.id+".json"))
|
||||
WARN(`App ${app.id} uses data file ${app.id+'.settings.json'} instead of ${app.id+'.json'}`)
|
||||
else if (dataNames.includes(app.id+".settings.json"))
|
||||
WARN(`App ${app.id} uses data file ${app.id+'.settings.json'}`)
|
||||
WARN(`App ${app.id} uses data file ${app.id+'.settings.json'}`)*/
|
||||
// settings files should be listed under data, not storage (TODO: change to ERROR once all apps comply?)
|
||||
if (fileNames.includes(app.id+".settings.json"))
|
||||
WARN(`App ${app.id} uses storage file ${app.id+'.settings.json'} instead of data file`)
|
||||
|
|
Loading…
Reference in New Issue