einsatzprotokoll/source/EinsatzprotokollApp.mc
EiSiMo 43f970d764 Phase 1: foundation modules
Central Config with all tunables (retention, GPS timeout, colors,
event type keys, menu item metadata). Event / EventStore handle
persistence via Application.Storage with 7-day pruning. Logger
mirrors the same retention. LayoutMetrics and Haversine provide
resolution-independent geometry helpers. German UI strings and
placeholder menu icons landed alongside so the build stays green.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 19:36:15 +02:00

21 lines
514 B
MonkeyC

import Toybox.Application;
import Toybox.Lang;
import Toybox.WatchUi;
class EinsatzprotokollApp extends Application.AppBase {
function initialize() {
AppBase.initialize();
}
function onStart(state as Dictionary?) as Void {
EventStore.pruneOld();
Logger.pruneOld();
}
function onStop(state as Dictionary?) as Void {}
function getInitialView() as [WatchUi.Views] or [WatchUi.Views, WatchUi.InputDelegates] {
return [ new EinsatzprotokollView() ];
}
}