link in screenshots

master
Gordon Williams 2022-05-03 09:21:13 +01:00
parent 82fdc15394
commit e9bf775780
2 changed files with 7 additions and 6 deletions

View File

@ -186,7 +186,7 @@ The widget example is available in [`apps/_example_widget`](apps/_example_widget
Widgets are just small bits of code that run whenever an app that supports them Widgets are just small bits of code that run whenever an app that supports them
calls `Bangle.loadWidgets()`. If they want to display something in the 24px high calls `Bangle.loadWidgets()`. If they want to display something in the 24px high
widget bar at the top of the screen they can add themselves to the global widget bar at the top of the screen they can add themselves to the global
`WIDGETS` array with: `WIDGETS` array with:
``` ```
@ -250,7 +250,7 @@ and which gives information about the app for the Launcher.
"version": "0v01", // the version of this app "version": "0v01", // the version of this app
"description": "...", // long description (can contain markdown) "description": "...", // long description (can contain markdown)
"icon": "icon.png", // icon in apps/ "icon": "icon.png", // icon in apps/
"screenshots" : [ { url:"screenshot.png" } ], // optional screenshot for app "screenshots" : [ { "url":"screenshot.png" } ], // optional screenshot for app
"type":"...", // optional(if app) - "type":"...", // optional(if app) -
// 'app' - an application // 'app' - an application
// 'clock' - a clock - required for clocks to automatically start // 'clock' - a clock - required for clocks to automatically start
@ -259,10 +259,10 @@ and which gives information about the app for the Launcher.
// 'RAM' - code that runs and doesn't upload anything to storage // 'RAM' - code that runs and doesn't upload anything to storage
// 'launch' - replacement 'Launcher' // 'launch' - replacement 'Launcher'
// 'textinput' - provides a 'textinput' library that allows text to be input on the Bangle // 'textinput' - provides a 'textinput' library that allows text to be input on the Bangle
// 'scheduler' - provides 'sched' library and boot code for scheduling alarms/timers // 'scheduler' - provides 'sched' library and boot code for scheduling alarms/timers
// (currently only 'sched' app) // (currently only 'sched' app)
// 'notify' - provides 'notify' library for showing notifications // 'notify' - provides 'notify' library for showing notifications
// 'locale' - provides 'locale' library for language-specific date/distance/etc // 'locale' - provides 'locale' library for language-specific date/distance/etc
// (a version of 'locale' is included in the firmware) // (a version of 'locale' is included in the firmware)
"tags": "", // comma separated tag list for searching "tags": "", // comma separated tag list for searching
"supports": ["BANGLEJS2"], // List of device IDs supported, either BANGLEJS or BANGLEJS2 "supports": ["BANGLEJS2"], // List of device IDs supported, either BANGLEJS or BANGLEJS2
@ -419,7 +419,7 @@ Example `settings.js`
// make sure to enclose the function in parentheses // make sure to enclose the function in parentheses
(function(back) { (function(back) {
let settings = require('Storage').readJSON('myappid.json',1)||{}; let settings = require('Storage').readJSON('myappid.json',1)||{};
if (typeof settings.monkeys !== "number") settings.monkeys = 12; // default value if (typeof settings.monkeys !== "number") settings.monkeys = 12; // default value
function save(key, value) { function save(key, value) {
settings[key] = value; settings[key] = value;
require('Storage').write('myappid.json', settings); require('Storage').write('myappid.json', settings);

View File

@ -4,10 +4,11 @@
"version":"0.01", "version":"0.01",
"description": "Scientific calculator", "description": "Scientific calculator",
"icon": "scicalc.png", "icon": "scicalc.png",
"screenshots" : [ { "url":"scicalc_screenshot1.png" }, { "url":"scicalc_screenshot2.png" }, { "url":"scicalc_screenshot3.png" } ],
"readme": "README.md", "readme": "README.md",
"tags": "app,tool", "tags": "app,tool",
"allow_emulator": true, "allow_emulator": true,
"supports" : ["BANGLEJS2"], "supports" : ["BANGLEJS2"],
"storage": [ "storage": [
{"name":"scicalc.app.js","url":"app.js"}, {"name":"scicalc.app.js","url":"app.js"},
{"name":"scicalc.img","url":"app-icon.js","evaluate":true} {"name":"scicalc.img","url":"app-icon.js","evaluate":true}