forked from Blendman974/faceclaw
Add a consolidated single export to each app
This commit is contained in:
1 parent
9b3832d7a7
commit
f38366df6e
23 files changed
+597
-337
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user