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

const config: CapacitorConfig = {
  appId: "riwa.ionic.app",
  appName: "riwa-ionic",
  webDir: "dist",
  server: {
    url: "http://192.168.1.6:5173", // Vite默认端口
    cleartext: true, // 允许HTTP连接
  },
  plugins: {
    Keyboard: {
      resize: "ionic", // 使用ionic模式，让ion-app自动调整大小
      resizeOnFullScreen: true, // Android全屏模式下也要调整
    },
  },
};

export default config;
