* feat(native): Capacitor mobile app shell with native features Adds iOS + Android native app via Capacitor WebView wrapper pointing at the live deployment. Includes push notifications, biometric auth, camera with offline photo queue, offline detection, status bar theming, keyboard handling, and deep linking. Zero server-side refactoring required -- web deploys update the app instantly. * docs(native): add developer documentation for iOS and Android --------- Co-authored-by: Nicholai <nicholaivogelfilms@gmail.com>
47 lines
1.1 KiB
TypeScript
Executable File
47 lines
1.1 KiB
TypeScript
Executable File
import type { CapacitorConfig } from "@capacitor/cli"
|
|
import { KeyboardResize, KeyboardStyle } from "@capacitor/keyboard"
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: "ltd.openrangeconstruction.compass",
|
|
appName: "Compass",
|
|
webDir: "public",
|
|
server: {
|
|
url: "https://compass.openrangeconstruction.ltd",
|
|
cleartext: false,
|
|
allowNavigation: [
|
|
"compass.openrangeconstruction.ltd",
|
|
"api.workos.com",
|
|
"authkit.workos.com",
|
|
"accounts.google.com",
|
|
"login.microsoftonline.com",
|
|
],
|
|
},
|
|
plugins: {
|
|
SplashScreen: {
|
|
backgroundColor: "#ffffff",
|
|
launchShowDuration: 2000,
|
|
launchAutoHide: true,
|
|
androidScaleType: "CENTER_CROP",
|
|
showSpinner: false,
|
|
},
|
|
Keyboard: {
|
|
resize: KeyboardResize.Body,
|
|
style: KeyboardStyle.Dark,
|
|
},
|
|
PushNotifications: {
|
|
presentationOptions: ["badge", "sound", "alert"],
|
|
},
|
|
},
|
|
ios: {
|
|
contentInset: "automatic",
|
|
allowsLinkPreview: false,
|
|
scheme: "compass",
|
|
},
|
|
android: {
|
|
allowMixedContent: false,
|
|
captureInput: true,
|
|
},
|
|
}
|
|
|
|
export default config
|