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

const config: CapacitorConfig = {
  appId: 'ai.hesychia.chat',
  appName: 'Hesychia',
  webDir: 'build',
  server: {
    // Bundled assets; HashRouter (#24) handles deep links without a rewrite server.
    androidScheme: 'https',
  },
  android: {
    allowMixedContent: false,
  },
  plugins: {
    SplashScreen: {
      launchAutoHide: true,
      backgroundColor: '#0f172a',
      showSpinner: false,
    },
    Keyboard: {
      // StatusBar does not overlay the WebView; keep resizeOnFullScreen for notch devices.
      resizeOnFullScreen: true,
    },
  },
};

export default config;
