Add a consolidated single export to each app

This commit is contained in:
James Babcock committed 2026-08-03 00:51:57 -07:00
1 parent 9b3832d7a7
commit f38366df6e
23 files changed
+597 -337

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import { ensureFineLocationPermission } from "../../g2/android-permissions";
import { launchWorkerAppWindow, type AppDefinition } from "../app-definition";
const navigateApp: AppDefinition = {
appId: "navigate",
title: "Navigate",
icon: "map",
launch: (ctx) => {
// Navigation needs precise location; prompt on the phone while the
// window opens (the worker can't show permission dialogs).
void ensureFineLocationPermission().catch(() => {});
return launchWorkerAppWindow(ctx, {
createWorker: () => new Worker("./navigate-app.worker"),
windowId: "navigate:main",
title: "Navigate",
iconLetter: "N",
icon: "map",
});
},
};
export default navigateApp;