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
| import type { CapacitorConfig } from '@capacitor/cli';
|
| const config: CapacitorConfig = {
| appId: 'com.whyc.lock',
| appName: 'Lock App',
| webDir: 'dist',
| plugins:{
| Bluetooth: {
| enabled: true
| },
| CapacitorBarcodeScanner: {
| enabled: true
| },
| Camera: {
| enabled: true
| },
| 'barcode-scanner': {
| formats: ['qr', 'ean', 'upc', 'pdf417', 'code39', 'code128', 'aztec', 'datamatrix'],
| presentationStyle: 'fullScreen',
| preferFrontCamera: false
| },
| CapacitorAssets: {
| android: {
| icon: {
| sources: ["resources/icon.png"]
| }
| }
| }
| },
| // plugins: [
| // '@capacitor-community/bluetooth',
| // ],
| server: {
| // url: 'http://localhost',
| androidScheme: 'http',
| cleartext: true,
| allowNavigation: [
| "*",
| "*://192.168.10.86:6666/*",
| "*://192.168.10.86:8888/*",
| "*://192.168.10.82:8100/*",
| "*://192.168.10.82:8443/*"
| ]
| },
| android: {
| buildOptions: {
| // keystorePath: '../myapp2.keystore',
| // keystorePassword: '123456',
| // keystoreAlias: 'myapp2',
| // keystoreAliasPassword: '123456'
| },
| }
| };
|
| export default config;
|
|