-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcordova.config.js
116 lines (115 loc) · 3.94 KB
/
cordova.config.js
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
module.exports = {
targetDirectory: 'cordova-dist',
phonegapServePort: 3131,
app: {
namespace: 'com.swen.reactjs.phonegap',
version: '0.0.1',
name: 'react-reflux-cordova',
description: 'A React Cordova Reflux Starter',
author: {
name: 'Sven Roeterdink',
website: 'https://github.com/swennemans',
email: ''
},
accessOrigin: '*',
orientation: 'all', //all: default means both landscape and portrait are enabled
targetDevice: 'universal', //handset, tablet, or universal
exitOnSuspend: 'true', //ios: if set to true, app will terminate when home button is pressed
phonegapPlugins: [
{
name: 'org.apache.cordova.core.device',
installFrom: 'https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git',
version: null
},
{
name: 'org.apache.cordova.core.dialogs',
installFrom: 'https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs',
version: null
},
{
name: 'org.apache.cordova.geolocation',
installFrom: 'org.apache.cordova.geolocation',
version: null
},
{
name: 'org.apache.cordova.core.vibration',
installFrom: 'https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git',
version: null
},
{
name: 'org.apache.cordova.statusbar',
installFrom: 'org.apache.cordova.statusbar',
version: null
},
{
name: 'com.phonegap.plugins.pushplugin',
installFrom: 'https://github.com/phonegap-build/PushPlugin.git',
version: '2.1.1'
},
{
name: 'org.apache.cordova.core.inappbrowser',
installFrom: 'https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git',
version: null
},
{
name: 'org.apache.cordova.statusbar',
installFrom: 'org.apache.cordova.statusbar',
version: null
},
{
name: 'org.apache.cordova.splashscreen',
installFrom: 'org.apache.cordova.splashscreen',
version: null
},
{
name: 'it.mobimentum.phonegapspinnerplugin',
installFrom: 'https://github.com/mobimentum/phonegap-plugin-loading-spinner.git',
version: null
}
],
icons: [
{
src: 'res/icon/android/icon-36-ldpi.png',
platform: 'android',
width: '36',
height: '36',
density: 'ldpi'
},
{
src: 'res/icon/android/icon-48-mdpi.png',
platform: 'android',
width: '48',
height: '48',
density: 'mdpi'
},
{
src: 'res/icon/android/icon-72-hdpi.png',
platform: 'android',
width: '72',
height: '72',
density: 'hdpi'
},
{
src: 'res/icon/android/icon-96-xhdpi.png',
platform: 'android',
width: '96',
height: '96',
density: 'xhdpi'
}
],
splashscreens: [
{
src: 'res/screen/adnroid/screen-hdpi-landscape.png',
platform: 'android',
width: '800',
height: '480'
},
{
src: 'res/screen/adnroid/screen-hdpi-portrait.png',
platform: 'android',
width: '480',
height: '800'
},
]
}
}