import type { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  appId: 'com.leconseilfoot.app',
  appName: 'Le Conseil Foot',
  webDir: 'public',
  appendUserAgent: 'LeConseilFootApp/1.0 LCFNativeApp',
  server: {
    url: process.env.APP_WEB_URL || 'https://pro.leconseilfoot.com',
    cleartext: false
  },
  plugins: {
    SplashScreen: {
      launchAutoHide: true,
      launchShowDuration: 1600,
      launchFadeOutDuration: 300,
      backgroundColor: '#071428',
      showSpinner: true,
      spinnerColor: '#f5d36f',
      splashFullScreen: false,
      splashImmersive: false
    },
    PushNotifications: {
      presentationOptions: ['badge', 'sound', 'alert']
    }
  }
};

export default config;
