-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcapacitor.config.ts
More file actions
44 lines (40 loc) · 1.17 KB
/
capacitor.config.ts
File metadata and controls
44 lines (40 loc) · 1.17 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
import { CapacitorConfig } from '@capacitor/cli';
import { version } from './package.json'
import brand from './common/src/brand/config'
const config: CapacitorConfig = {
appName: brand.appName,
webDir: 'frontend/build',
backgroundColor: brand.colors.light.brandSecondary,
ios: {
scheme: brand.appName,
},
server: {
androidScheme: 'https',
},
plugins: {
SplashScreen: {
launchAutoHide: false,
backgroundColor: brand.colors.light.brandSecondary,
androidScaleType: 'CENTER_CROP',
},
BluetoothLe: {
displayStrings: {
scanning: 'Scanning...',
cancel: 'Cancel',
availableDevices: 'Available devices',
noDeviceFound: 'No device found',
},
},
},
appendUserAgent: ` remoteit/${version}`,
}
console.log('\nNode Environment:', process.env.NODE_ENV || 'production')
if (process.env.CAPACITOR_DESKTOP_LIVE_RELOAD && process.env.NODE_ENV === 'development') {
console.log('Using live reload server:', process.env.CAPACITOR_DESKTOP_LIVE_RELOAD, '\n')
config.server = {
androidScheme: 'https',
url: process.env.CAPACITOR_DESKTOP_LIVE_RELOAD,
cleartext: true,
}
}
export default config