feat(pos): Capacitor mobile app setup — Android + iOS wrapper

Set up Capacitor to wrap the Nexus POS web app as a native mobile app.
The app loads from the remote server URL so no bundling is needed.
Includes native-bridge.js for camera, push notifications, haptics,
and status bar integration when running inside the native shell.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 02:51:07 +00:00
parent db5bbf6718
commit 2463c2fbcf
10 changed files with 1321 additions and 0 deletions

24
pos/package.json Normal file
View File

@@ -0,0 +1,24 @@
{
"name": "pos",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs",
"dependencies": {
"@capacitor/android": "^8.3.0",
"@capacitor/camera": "^8.0.2",
"@capacitor/cli": "^7.6.1",
"@capacitor/core": "^8.3.0",
"@capacitor/haptics": "^8.0.2",
"@capacitor/ios": "^8.3.0",
"@capacitor/push-notifications": "^8.0.3",
"@capacitor/splash-screen": "^8.0.1",
"@capacitor/status-bar": "^8.0.2"
}
}