-
Notifications
You must be signed in to change notification settings - Fork 11
/
mobile-config.js
83 lines (70 loc) · 2.96 KB
/
mobile-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
/* globals App */
/* eslint-disable quote-props */
App.configurePlugin('phonegap-plugin-push', {
SENDER_ID: 437177375084,
});
App.configurePlugin('cordova-plugin-camera', {
'CAMERA_USAGE_DESCRIPTION': 'To take photos',
});
App.info({
name: 'Honline',
description: 'Online Átlátható Társasházkezelés',
author: 'KDE Alapítvány',
email: '[email protected]',
website: 'https://honline.hu/',
version: '1.0.0',
});
App.icons({
// iOS
'iphone_2x': 'resources/icons/[email protected]',
'ipad': 'resources/icons/icon-76x76.png',
'ipad_2x': 'resources/icons/[email protected]',
// Android
'android_mdpi': 'resources/icons/icon-48x48.png',
'android_hdpi': 'resources/icons/icon-72x72.png',
'android_xhdpi': 'resources/icons/icon-96x96.png',
'android_xxhdpi': 'resources/icons/icon-144x144.png',
'android_xxxhdpi': 'resources/icons/icon-192x192.png',
});
App.launchScreens({
// iOS
'iphone_2x': 'resources/splash/[email protected]',
'iphone5': 'resources/splash/[email protected]',
'ipad_portrait': 'resources/splash/splash-768x1024.png',
'ipad_portrait_2x': 'resources/splash/[email protected]',
'ipad_landscape': 'resources/splash/splash-1024x768.png',
'ipad_landscape_2x': 'resources/splash/[email protected]',
// Android
'android_mdpi_portrait': 'resources/splash/splash-320x480.png',
'android_mdpi_landscape': 'resources/splash/splash-480x320.png',
'android_hdpi_portrait': 'resources/splash/splash-480x800.png',
'android_hdpi_landscape': 'resources/splash/splash-800x480.png',
'android_xhdpi_portrait': 'resources/splash/splash-720x1280.png',
'android_xhdpi_landscape': 'resources/splash/splash-1280x720.png',
'android_xxhdpi_portrait': 'resources/splash/splash-960x1600.png',
'android_xxhdpi_landscape': 'resources/splash/splash-1600x960.png',
'android_xxxhdpi_portrait': 'resources/splash/splash-1280x1920.png',
'android_xxxhdpi_landscape': 'resources/splash/splash-1920x1280.png',
});
App.setPreference('StatusBarOverlaysWebView', 'false');
App.setPreference('StatusBarBackgroundColor', '#000000');
App.setPreference('android-minSdkVersion', 19);
App.setPreference('android-targetSdkVersion', 19);
App.setPreference('WebAppStartupTimeout', 60000);
App.setPreference('AndroidPersistentFileLocation', 'Compatibility');
App.setPreference('BackgroundColor', '0xff0000ff');
App.setPreference('Orientation', 'default');
App.setPreference('LoadUrlTimeoutValue', 1000000);
App.setPreference('WebAppStartupTimeout', 1000000);
App.accessRule('*://fonts.gstatic.com/*');
App.accessRule('*://fonts.googleapis.com/*');
App.accessRule('*://honline.hu/*');
App.accessRule('blob:*');
App.appendToConfig(`
<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
<string>Need camera access to take pictures</string>
</edit-config>
<edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
<string>Need photo library acess to upload images from galery</string>
</edit-config>
`);