Files
wikideck/capacitor.config.ts
claudeandClaude Opus 5.5 4657a58800 Night 1: Capacitor 7 scaffold and Android shell (#35)
App id dev.eom.wikideck, android/ project, CapacitorHttp for node calls, mining hidden in the native app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 05:05:06 +00:00

27 lines
881 B
TypeScript

import type { CapacitorConfig } from '@capacitor/cli';
// WikiDeck mobile shell. Build the web UI with the node URL baked in, then sync:
// VITE_WIKIDECK_NETWORK=testnet VITE_WIKIDECK_GENESIS_TIME=1792411200 \
// VITE_NODE_URL=http://192.168.1.32:3101 npm run build && npx cap sync android
// (see android/build-debug.sh)
const config: CapacitorConfig = {
appId: 'dev.eom.wikideck',
appName: 'WikiDeck',
webDir: 'dist',
server: {
androidScheme: 'https',
// The private testnet node is plain HTTP on the LAN.
cleartext: true,
},
android: {
// Android 15 (targetSdk 35) draws edge-to-edge; keep the WebView clear of the system bars.
adjustMarginsForEdgeToEdge: 'auto',
},
plugins: {
// Route fetch through native HTTP: avoids CORS and the node's browser Origin check.
CapacitorHttp: { enabled: true },
},
};
export default config;