-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcapacitor.config.ts
43 lines (39 loc) · 1.07 KB
/
capacitor.config.ts
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
import { CapacitorConfig } from '@capacitor/cli';
import { version } from './package.json'
const config: CapacitorConfig = {
appName: 'Remote.It',
webDir: 'frontend/build',
backgroundColor: '#034b9d',
ios: {
scheme: 'Remote.It',
},
server: {
androidScheme: 'https',
},
plugins: {
SplashScreen: {
launchAutoHide: false,
backgroundColor: '#034b9d',
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