From d88bddbf75d6f1dc4eda9c54316f0c5a771aab5d Mon Sep 17 00:00:00 2001 From: omigamedev Date: Mon, 19 Jan 2026 09:15:30 +0100 Subject: [PATCH] fix sandbox test app: replace os.date, add goBack, remove missing icon ref --- test-apps/com.mosis.sandbox-test.mosis | Bin 20480 -> 20480 bytes test-apps/com.mosis.sandbox-test/app.lua | 13 ++++++++++++- .../com.mosis.sandbox-test/manifest.json | 1 - 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/test-apps/com.mosis.sandbox-test.mosis b/test-apps/com.mosis.sandbox-test.mosis index 123336c50be16e342f1eb4fb11a294404cdd2510..d48a92f795d0383a852479c6f4b1fbc7fd9dd0d3 100644 GIT binary patch delta 379 zcmZozz}T>WaYBovsi8T8p{b#Y7Kv9mw(N-{=oXaGm zU0hO>nU}7YmS2>cSfZg6t!iML604wEtfYgaRYw72;N%2mt;tuI5^{BQ75oy*GSd^m z_GP5z6r>jMa={&tp6`^HoUH+MKxUdk9zt*KPU>a_<~M?y#9BBcP0frDfoN_73`9dyQzLjF%6Bks PUZ9Y`I8i}-k&+$&oa1x_ delta 180 zcmZozz}T>WaYBovp|LT8p(&6wGBq_fGi5L^Gyt+06bvQ{GNx>1WDI7UoW&$>UXqxU zld6}QSDac@qEVDuT$)o-tfP=$te28llB%Jk>S3koYo!{jq^Y2%r=SFcKq|L5ee!Fj zuFV=OHv}h7(EPGVtc63;%+L^FpP@0(K0{Lz1Gs(i9gG5*$@zIoRticWTCXHMadVSG JI^!ZGJpfjgF{l6l diff --git a/test-apps/com.mosis.sandbox-test/app.lua b/test-apps/com.mosis.sandbox-test/app.lua index 4281682..0f8658d 100644 --- a/test-apps/com.mosis.sandbox-test/app.lua +++ b/test-apps/com.mosis.sandbox-test/app.lua @@ -2,15 +2,26 @@ -- Tests: timers, JSON, crypto, storage local results = {} +local logCounter = 0 local function log(msg) - table.insert(results, os.date("%H:%M:%S") .. " " .. msg) + logCounter = logCounter + 1 + table.insert(results, string.format("[%03d] %s", logCounter, msg)) local el = document:GetElementById("results") if el then el.inner_rml = table.concat(results, "\n") end end +-- Navigation helper +function goBack() + if navigation and navigation.back then + navigation.back() + else + log("Navigation not available") + end +end + local function setStatus(id, status, success) local el = document:GetElementById(id) if el then diff --git a/test-apps/com.mosis.sandbox-test/manifest.json b/test-apps/com.mosis.sandbox-test/manifest.json index 33c82ba..40aebe7 100644 --- a/test-apps/com.mosis.sandbox-test/manifest.json +++ b/test-apps/com.mosis.sandbox-test/manifest.json @@ -4,7 +4,6 @@ "version": "1.0.0", "version_code": 1, "entry": "main.rml", - "icon": "icon.tga", "description": "Tests sandbox APIs: timers, storage, JSON, crypto", "developer": { "name": "Mosis Team",