flotilla/capacitor.config.ts

44 lines
911 B
TypeScript
Raw Normal View History

2026-01-28 01:15:22 +00:00
import type {CapacitorConfig} from "@capacitor/cli"
2024-11-15 23:16:06 +00:00
const config: CapacitorConfig = {
2026-01-28 01:15:22 +00:00
appId: "social.flotilla",
appName: "Flotilla",
webDir: "build",
ios: {
scheme: "Flotilla Chat",
},
2024-11-15 23:16:06 +00:00
plugins: {
2026-01-28 21:35:50 +00:00
CapacitorHttp: {
enabled: true,
},
SystemBars: {
2026-06-23 18:04:58 +00:00
insetsHandling: "css",
},
2024-11-15 23:16:06 +00:00
SplashScreen: {
androidSplashResourceName: "splash",
2025-03-04 18:47:58 +00:00
},
Keyboard: {
style: "DARK",
},
2025-06-27 16:41:30 +00:00
Badge: {
persist: true,
2026-01-28 01:15:22 +00:00
autoClear: true,
2025-06-27 16:41:30 +00:00
},
2025-02-01 01:09:46 +00:00
},
2026-01-24 00:51:02 +00:00
server: {
2026-01-28 21:35:50 +00:00
// Use this for live reload https://capacitorjs.com/docs/guides/live-reload
// url: "http://192.168.1.17:1847",
// cleartext: true,
2026-01-24 00:51:02 +00:00
},
2026-01-28 01:15:22 +00:00
}
2024-11-15 23:16:06 +00:00
if (
process.argv.includes("run") &&
process.argv.includes("@capawesome/capacitor-electron") &&
process.env.FLOTILLA_DESKTOP_DEV_URL
) {
config.server = {...config.server, url: process.env.FLOTILLA_DESKTOP_DEV_URL}
}
2026-01-28 01:15:22 +00:00
export default config