forked from jsnbuchanan/crowd-funder-for-time-pwa
- Fixed TypeScript configuration in electron/tsconfig.json: * Added skipLibCheck: true to resolve node_modules type conflicts * Added allowSyntheticDefaultImports for better module compatibility * Disabled strict mode to avoid unnecessary type errors * Updated TypeScript version to ~5.2.2 for consistency - Resolved SQLite plugin configuration issue: * Changed plugin key from 'SQLite' to 'CapacitorSQLite' in capacitor.config.json * This fixes 'Cannot read properties of undefined (reading electronIsEncryption)' error * All 45+ SQLite plugin methods now properly registered and available - Added Electron development scripts: * electron-dev.sh for streamlined development workflow * setup-electron.sh for initial Electron environment setup - Electron app now starts successfully without TypeScript compilation errors - SQLite plugin fully functional with proper configuration access Status: Electron platform now working for TimeSafari development
99 lines
1.8 KiB
JSON
99 lines
1.8 KiB
JSON
{
|
|
"appId": "app.timesafari",
|
|
"appName": "TimeSafari",
|
|
"webDir": "dist",
|
|
"server": {
|
|
"cleartext": true
|
|
},
|
|
"plugins": {
|
|
"App": {
|
|
"appUrlOpen": {
|
|
"handlers": [
|
|
{
|
|
"url": "timesafari://*",
|
|
"autoVerify": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"CapacitorSQLite": {
|
|
"iosDatabaseLocation": "Library/CapacitorDatabase",
|
|
"iosIsEncryption": false,
|
|
"iosBiometric": {
|
|
"biometricAuth": false,
|
|
"biometricTitle": "Biometric login for TimeSafari"
|
|
},
|
|
"androidIsEncryption": false,
|
|
"androidBiometric": {
|
|
"biometricAuth": false,
|
|
"biometricTitle": "Biometric login for TimeSafari"
|
|
},
|
|
"electronIsEncryption": false
|
|
}
|
|
},
|
|
"ios": {
|
|
"contentInset": "never",
|
|
"allowsLinkPreview": true,
|
|
"scrollEnabled": true,
|
|
"limitsNavigationsToAppBoundDomains": true,
|
|
"backgroundColor": "#ffffff",
|
|
"allowNavigation": [
|
|
"*.timesafari.app",
|
|
"*.jsdelivr.net",
|
|
"api.endorser.ch"
|
|
]
|
|
},
|
|
"android": {
|
|
"allowMixedContent": false,
|
|
"captureInput": true,
|
|
"webContentsDebuggingEnabled": false,
|
|
"allowNavigation": [
|
|
"*.timesafari.app",
|
|
"*.jsdelivr.net",
|
|
"api.endorser.ch"
|
|
]
|
|
},
|
|
"electron": {
|
|
"deepLinking": {
|
|
"schemes": ["timesafari"]
|
|
},
|
|
"buildOptions": {
|
|
"appId": "app.timesafari",
|
|
"productName": "TimeSafari",
|
|
"directories": {
|
|
"output": "dist-electron-packages"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"electron/**/*"
|
|
],
|
|
"mac": {
|
|
"category": "public.app-category.productivity",
|
|
"target": [
|
|
{
|
|
"target": "dmg",
|
|
"arch": ["x64", "arm64"]
|
|
}
|
|
]
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": ["x64"]
|
|
}
|
|
]
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
{
|
|
"target": "AppImage",
|
|
"arch": ["x64"]
|
|
}
|
|
],
|
|
"category": "Utility"
|
|
}
|
|
}
|
|
}
|
|
}
|