-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcapacitor.config.ts
More file actions
71 lines (65 loc) · 1.92 KB
/
capacitor.config.ts
File metadata and controls
71 lines (65 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { CapacitorConfig } from '@capacitor/cli';
import { CapacitorHttp } from '@capacitor/core';
import { KeyboardResize, KeyboardStyle } from '@capacitor/keyboard'
const config: CapacitorConfig = {
appId: 'com.ponzs.talkflow',
appName: 'TalkFlow',
webDir: 'dist',
server: {
// url: 'http://localhost:5173',
// cleartext: true,
// iosScheme: 'https',
// androidScheme: 'https',
// url: 'http://192.168.1.6:5173',
// url:'http://192.168.1.9:5173/',
// hostname: 'localhost',
// allowNavigation: [
// 'https://peer.wallie.io/gun',
// 'https://gun.defucc.me/gun',
// 'http://123.57.225.210:8080/gun',
// ],
},
// ios: {
// contentInset: 'automatic'
// },
plugins: {
CapacitorHttp: {
enabled: true,
},
// BackgroundRunner: {
// label: 'com.talkflow.background.task',
// src: 'runners/background.js',
// event: 'checkMessages',
// repeat: true,
// interval: 15,
// autoStart: true,
// },
Keyboard: {
resize: KeyboardResize.None,
resizeOnFullScreen: true,
},
CapacitorSQLite: {
migrate: true,
iosDatabaseLocation: 'Library/CapacitorDatabase',
iosIsEncryption: true,
iosKeychainPrefix: 'talkflow',
iosBiometric: {
biometricAuth: false,
biometricTitle : "Biometric login for capacitor sqlite"
},
androidIsEncryption: true,
androidBiometric: {
biometricAuth : false,
biometricTitle : "Biometric login for capacitor sqlite",
biometricSubTitle : "Log in using your biometric"
},
electronIsEncryption: true,
electronWindowsLocation: "C:\\ProgramData\\CapacitorDatabases",
electronMacLocation: "~/Databases/",
electronLinuxLocation: "Databases",
// 禁用调试日志以防止敏感数据泄露
// logLevel: 'error'
}
}
};
export default config;