- 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
34 lines
925 B
TypeScript
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;
|