ca-grow-ops-manager/frontend/capacitor.config.ts
fullsizemalt 57c70b91db
Some checks are pending
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
feat(android): Add Capacitor for Android APK build
- Add Capacitor core, CLI, and Android platform
- Install plugins: camera, push-notifications, splash-screen, status-bar
- Configure capacitor.config.ts with app ID run.runfoo.veridian
- Update vite.config.ts with base: './' for Capacitor compatibility
- Update api.ts and SessionTimeoutWarning.tsx to detect Capacitor and use production API URL
- Generate Android project structure with Gradle build files
2026-01-06 21:56:28 -08:00

34 lines
925 B
TypeScript

import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'run.runfoo.veridian',
appName: 'Veridian',
webDir: 'dist',
server: {
// For development, you can use localhost
// For production APK, the app will use the built-in web assets
androidScheme: 'https',
},
plugins: {
SplashScreen: {
launchShowDuration: 2000,
backgroundColor: '#09090b',
showSpinner: false,
androidSplashResourceName: 'splash',
androidScaleType: 'CENTER_CROP',
},
StatusBar: {
backgroundColor: '#09090b',
style: 'DARK',
},
PushNotifications: {
presentationOptions: ['badge', 'sound', 'alert'],
},
},
android: {
allowMixedContent: false,
backgroundColor: '#09090b',
},
};
export default config;