-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcordova_config.xml
228 lines (210 loc) · 14.8 KB
/
cordova_config.xml
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<?xml version='1.0' encoding='utf-8'?>
<widget id="___PACKAGE_KEY_PLACEHOLDER___" version="___VERSION_PLACEHOLDER___" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>___CLASS_NAME_PLACEHOLDER___</name>
<description>
___DESCRIPTION_PLACEHOLDER___
</description>
<author email="[email protected]" href="https://techby.org">
TechBy
</author>
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<!-- https://stackoverflow.com/questions/47731745/android-cordova-app-with-iframes-chrome-63-no-request-headers-cookies -->
<allow-navigation href="*://techby.org" />
<allow-navigation href="*://*.techby.org" />
<allow-navigation href="*://*.xip.io" />
<allow-navigation href="http://localhost" />
<allow-navigation href="gap://ready" />
<!-- http://ourcodeworld.com/articles/read/388/cordova-pause-and-resume-event-not-firing -->
<preference name="KeepRunning" value="true"/>
<preference name="BackgroundColor" value="___COLOR_BG_PLACEHOLDER___" />
<platform name="android">
<content src="index.html" />
<preference name="Orientation" value="___ORIENTATION_PLACEHOLDER___" />
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="28" />
<preference name="fullscreen" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="0"/>
<splash density="land-hdpi" src="res/android/screens/screen-hdpi-landscape.png" />
<splash density="land-ldpi" src="res/android/screens/screen-ldpi-landscape.png" />
<splash density="land-mdpi" src="res/android/screens/screen-mdpi-landscape.png" />
<splash density="land-xhdpi" src="res/android/screens/screen-xhdpi-landscape.png" />
<splash density="land-xxhdpi" src="res/android/screens/screen-xxhdpi-landscape.png" />
<splash density="land-xxxhdpi" src="res/android/screens/screen-xxxhdpi-landscape.png" />
<splash density="port-hdpi" src="res/android/screens/screen-hdpi-portrait.png" />
<splash density="port-ldpi" src="res/android/screens/screen-ldpi-portrait.png" />
<splash density="port-mdpi" src="res/android/screens/screen-mdpi-portrait.png" />
<splash density="port-xhdpi" src="res/android/screens/screen-xhdpi-portrait.png" />
<splash density="port-xxhdpi" src="res/android/screens/screen-xxhdpi-portrait.png" />
<splash density="port-xxxhdpi" src="res/android/screens/screen-xxxhdpi-portrait.png" />
<resource-file src="res/icons/android/push-icon-36-ldpi.png" target="app/src/main/res/drawable-ldpi/notification_icon.png" />
<resource-file src="res/icons/android/push-icon-48-mdpi.png" target="app/src/main/res/drawable-mdpi/notification_icon.png" />
<resource-file src="res/icons/android/push-icon-72-hdpi.png" target="app/src/main/res/drawable-hdpi/notification_icon.png" />
<resource-file src="res/icons/android/push-icon-96-xhdpi.png" target="app/src/main/res/drawable-xhdpi/notification_icon.png" />
<resource-file src="res/icons/android/push-icon-144-xxhdpi.png" target="app/src/main/res/drawable-xxhdpi/notification_icon.png" />
<resource-file src="res/icons/android/push-icon-192-xxxhdpi.png" target="app/src/main/res/drawable-xxxhdpi/notification_icon.png" />
<resource-file src="res/icons/android/close-icon-36-ldpi.png" target="app/src/main/res/drawable-ldpi/close.png" />
<resource-file src="res/icons/android/close-icon-48-mdpi.png" target="app/src/main/res/drawable-mdpi/close.png" />
<resource-file src="res/icons/android/close-icon-72-hdpi.png" target="app/src/main/res/drawable-hdpi/close.png" />
<resource-file src="res/icons/android/close-icon-96-xhdpi.png" target="app/src/main/res/drawable-xhdpi/close.png" />
<resource-file src="res/icons/android/close-icon-144-xxhdpi.png" target="app/src/main/res/drawable-xxhdpi/close.png" />
<resource-file src="res/icons/android/close-icon-192-xxxhdpi.png" target="app/src/main/res/drawable-xxxhdpi/close.png" />
<!-- https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#managing-edit-config-conflicts -->
<edit-config file="AndroidManifest.xml" target="/manifest/application/*/.." mode="merge">
<application android:allowBackup="false" android:usesCleartextTraffic="true" android:icon="@mipmap/ic_launcher" />
</edit-config>
<allow-intent href="market:*" />
<resource-file src="google-services.json" target="app/google-services.json" />
<config-file target="app/src/main/AndroidManifest.xml" parent="/*">
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- <uses-permission android:name="com.android.vending.BILLING" /> -->
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.SHORTCUT" />
<uses-permission android:name="android.permission.UNINSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.READ_FRAME_BUFFER" />
<uses-permission android:name="android.permission.SET_ORIENTATION" />
<uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_READ" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
</config-file>
<resource-file src="res/android/values/colors.xml" target="/app/src/main/res/values/colors.xml" />
<icon background="@color/ic_launcher_background" density="ldpi" foreground="res/android/mipmap-ldpi/ic_launcher.png" src="res/android/mipmap-ldpi/ic_launcher.png" />
<icon background="@color/ic_launcher_background" density="mdpi" foreground="res/android/mipmap-mdpi/ic_launcher_foreground.png" src="res/android/mipmap-mdpi/ic_launcher.png" />
<icon background="@color/ic_launcher_background" density="hdpi" foreground="res/android/mipmap-hdpi/ic_launcher_foreground.png" src="res/android/mipmap-hdpi/ic_launcher.png" />
<icon background="@color/ic_launcher_background" density="xhdpi" foreground="res/android/mipmap-xhdpi/ic_launcher_foreground.png" src="res/android/mipmap-xhdpi/ic_launcher.png" />
<icon background="@color/ic_launcher_background" density="xxhdpi" foreground="res/android/mipmap-xxhdpi/ic_launcher_foreground.png" src="res/android/mipmap-xxhdpi/ic_launcher.png" />
<icon background="@color/ic_launcher_background" density="xxxhdpi" foreground="res/android/mipmap-xxxhdpi/ic_launcher_foreground.png" src="res/android/mipmap-xxxhdpi/ic_launcher.png" />
</platform>
<platform name="ios">
<content src="index.html" />
<preference name="Orientation" value="___IOS_ORIENTATION_PLACEHOLDER___" />
<preference name="KeyboardShrinksView" value="true" />
<preference name="HideKeyboardFormAccessoryBar" value="true" />
<preference name="FadeSplashScreenDuration" value="300"/>
<icon height="29" src="res/ios/icons/icon-small.png" width="29" />
<icon height="58" src="res/ios/icons/icon-small-2x.png" width="58" />
<icon height="87" src="res/ios/icons/icon-small-3x.png" width="87" />
<icon height="40" src="res/ios/icons/icon-40.png" width="40" />
<icon height="80" src="res/ios/icons/icon-40-2x.png" width="80" />
<icon height="120" src="res/ios/icons/icon-40-3x.png" width="120" />
<icon height="50" src="res/ios/icons/icon-50.png" width="50" />
<icon height="100" src="res/ios/icons/icon-50-2x.png" width="100" />
<icon height="57" src="res/ios/icons/icon-57.png" width="57" />
<icon height="114" src="res/ios/icons/icon-57-2x.png" width="114" />
<icon height="60" src="res/ios/icons/icon-60.png" width="60" />
<icon height="120" src="res/ios/icons/icon-60-2x.png" width="120" />
<icon height="180" src="res/ios/icons/icon-60-3x.png" width="180" />
<icon height="72" src="res/ios/icons/icon-72.png" width="72" />
<icon height="144" src="res/ios/icons/icon-72-2x.png" width="144" />
<icon height="76" src="res/ios/icons/icon-76.png" width="76" />
<icon height="152" src="res/ios/icons/icon-76-2x.png" width="152" />
<icon height="167" src="res/ios/icons/icon-83.5-2x.png" width="167" />
<icon height="1024" src="res/ios/icons/icon-1024.png" width="1024" />
<splash src="res/ios/screens/Default_landscape.png"/>
<splash src="res/ios/screens/Default.png"/>
<splash src="res/ios/screens/Default@2x_landscape.png"/>
<splash src="res/ios/screens/[email protected]"/>
<splash src="res/ios/screens/Default-568h@2x_landscape.png"/>
<splash src="res/ios/screens/[email protected]"/>
<splash src="res/ios/screens/Default-667h@2x_landscape.png"/>
<splash src="res/ios/screens/[email protected]"/>
<splash src="res/ios/screens/Default-736h@3x_landscape.png"/>
<splash src="res/ios/screens/[email protected]"/>
<splash src="res/ios/screens/Default-812h@3x_landscape.png"/>
<splash src="res/ios/screens/[email protected]"/>
<splash src="res/ios/screens/Default-896h@2x_landscape.png"/>
<splash src="res/ios/screens/[email protected]"/>
<splash src="res/ios/screens/Default-896h@3x_landscape.png"/>
<splash src="res/ios/screens/[email protected]"/>
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<preference name="SplashScreen" value="Default" />
<!-- <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>For uploading pictures of math problems</string>
</config-file>
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>For chatting with tutor</string>
</config-file> -->
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string>For finding foundations nearby</string>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
<string>For finding foundations nearby</string>
</config-file>
<!-- <plugin name="cordova-labs-local-webserver" spec="https://github.com/claydotio/cordova-local-webserver.git" /> -->
<!-- note that this should not be upgraded to v4 unless they add support for loading over http instead of non-http schemes. needed for cookie redir -->
<plugin name="cordova-plugin-ionic-webview" spec="^2.5.3" />
<preference name="WKPort" value="___WK_WEBVIEW_PORT_PLACEHOLDER___" />
<preference name="WKSuspendInBackground" value="false" />
<preference name="ScrollEnabled" value="true" />
<resource-file src="GoogleService-Info.plist" />
<resource-file src="res/ios/images/close.png"/>
<resource-file src="res/ios/images/[email protected]"/>
<resource-file src="res/ios/images/[email protected]"/>
</platform>
<preference name="AppendUserAgent" value=" techby/___VERSION_PLACEHOLDER___" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="___COLOR_PRIMARY_DARK_PLACEHOLDER___" />
<!-- necessary for cordova-plugin-messenger to work -->
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="BackgroundColor" value="___COLOR_BG_PLACEHOLDER___"/>
<allow-navigation href="___URL_PLACEHOLDER___*" />
<plugin name="cordova-plugin-dialogs" spec="~1.3.3" />
<plugin name="phonegap-plugin-push" spec="~2.3.0">
<variable name="FCM_VERSION" value="15.0.0" />
</plugin>
<plugin name="cordova-plugin-x-socialsharing" spec="~5.6.7" />
<plugin name="cordova-plugin-android-idfa" spec="https://github.com/claydotio/cordova-plugin-android-idfa.git" />
<plugin name="cordova-plugin-statusbar" spec="~2.4.1" />
<plugin name="cordova-plugin-splashscreen" spec="https://github.com/claydotio/cordova-plugin-splashscreen" />
<plugin name="cordova-plugin-file" spec="~5.0.0" />
<plugin name="cordova-plugin-exit" spec="https://github.com/claydotio/cordova-plugin-exit" />
<plugin name="cordova-plugin-network-information" spec="~1.3.0" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.5.0" />
<plugin name="com.borismus.webintent" spec="https://github.com/claydotio/cordova-webintent.git" />
<plugin name="cordova-plugin-app-launcher" spec="https://github.com/nchutchind/cordova-plugin-app-launcher.git" />
<plugin name="cordova-plugin-spinner" spec="~1.1.0" />
<plugin name="cordova-plugin-screen-orientation" spec="~3.0.1" />
<plugin name="cordova-plugin-transport-security" spec="~0.1.2" />
<plugin name="cordova-launch-review" spec="^3.1.0" />
<plugin name="cordova-custom-config" spec="~5.1.0" />
<plugin name="cordova-plugin-themeablebrowser" spec="https://github.com/claydotio/cordova-plugin-themeablebrowser.git" />
<plugin name="cordova-plugin-cookie-manager" spec="https://github.com/claydotio/cordova-plugin-cookie-manager.git" />
<plugin name="cordova-plugin-keyboard" spec="~1.1.5" />
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
<plugin name="cordova-plugin-device" spec="~1.1.7" />
<plugin name="cordova-plugin-geolocation" spec="~4.0.1" />
<plugin name="cordova-plugin-permission" spec="^0.1.0" />
<plugin name="cordova-open-native-settings" spec="~1.5.2" />
<plugin name="cordova-plugin-androidx" spec="~2.0.0" />
<plugin name="cordova-plugin-androidx-adapter" spec="~1.1.1" />
<plugin name="cordova-android-support-gradle-release" spec="~1.2.0">
<variable name="ANDROID_SUPPORT_VERSION" value="27.+" />
</plugin>
<plugin name="cordova-plugin-customurlscheme" spec="4.3.0">
<variable name="URL_SCHEME" value="techby" />
</plugin>
<plugin name="cordova-plugin-window-background" spec="~1.1.2">
<variable name="WINDOW_BACKGROUND_COLOR" value="___SPLASH_COLOR_BG_PLACEHOLDER___" />
</plugin>
<!-- the splash screen image doesn't line up perfectly and causes a bit of jank when switching between
<plugin name="cordova-plugin-android-window-background" spec="https://github.com/claydotio/cordova-plugin-android-window-background.git ">
<variable name="SPLASH_BACKGROUND_COLOR" value="___SPLASH_COLOR_BG_PLACEHOLDER___" /> -->
<!-- this color shows when app hasn't been force closed, but auto-killed by os (splash screen shows immediately after) -->
<!-- <variable name="WINDOW_BACKGROUND_COLOR" value="___SPLASH_COLOR_BG_PLACEHOLDER___" />
</plugin> -->
<plugin name="cordova-plugin-app-name" spec="~1.0.7">
<variable name="APP_NAME" value="___NAME_PLACEHOLDER___" />
</plugin>
<engine name="android" spec="^9.0.0" /><!-- also in gulpfile -->
<engine name="ios" spec="^5.0.1" />
</widget>