forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile-config.js
63 lines (57 loc) · 2.57 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
// This section sets up some basic app metadata,
// the entire section is optional.
App.info({
id: 'com.konecty.rocket.chat',
version: '0.1.5',
name: 'Rocket.Chat',
description: 'Rocket.Chat',
author: 'Rocket.Chat Development Group',
email: '[email protected]',
website: 'https://rocket.chat'
});
// Set up resources such as icons and launch screens.
App.icons({
iphone : 'public/images/logo/apple-touch-icon-60x60.png',
iphone_2x: 'public/images/logo/apple-touch-icon-120x120.png',
iphone_3x: 'public/images/logo/apple-touch-icon-180x180.png',
ipad : 'public/images/logo/apple-touch-icon-76x76.png',
ipad_2x : 'public/images/logo/apple-touch-icon-152x152.png',
android_ldpi : 'public/images/logo/android-mdpi.png',
android_mdpi : 'public/images/logo/android-mdpi.png',
android_hdpi : 'public/images/logo/android-hdpi.png',
android_xhdpi: 'public/images/logo/android-xhdpi.png'
});
App.launchScreens({
iphone : 'private/splash/iphone.png',
iphone_2x : 'private/splash/[email protected]',
iphone5 : 'private/splash/iphone5.png',
iphone6 : 'private/splash/iphone6.png',
iphone6p_portrait : 'private/splash/iphone6p_portrait.png',
iphone6p_landscape: 'private/splash/iphone6p_landscape.png',
ipad_portrait : 'private/splash/ipad_portrait.png',
ipad_portrait_2x : 'private/splash/[email protected]',
ipad_landscape : 'private/splash/ipad_landscape.png',
ipad_landscape_2x : 'private/splash/[email protected]',
android_ldpi_portrait : 'private/splash/android-port-ldpi.png',
android_ldpi_landscape : 'private/splash/android-land-ldpi.png',
android_mdpi_portrait : 'private/splash/android-port-mdpi.png',
android_mdpi_landscape : 'private/splash/android-land-mdpi.png',
android_hdpi_portrait : 'private/splash/android-port-hdpi.png',
android_hdpi_landscape : 'private/splash/android-land-hdpi.png',
android_xhdpi_portrait : 'private/splash/android-port-xhdpi.png',
android_xhdpi_landscape: 'private/splash/android-land-xhdpi.png'
});
// Set PhoneGap/Cordova preferences
App.setPreference('HideKeyboardFormAccessoryBar', true);
App.setPreference('StatusBarOverlaysWebView', false);
App.setPreference('StatusBarStyle', 'lightcontent');
App.setPreference('StatusBarBackgroundColor', '#000000');
App.setPreference('ShowSplashScreenSpinner', false);
App.setPreference('android-targetSdkVersion', '22');
App.setPreference('android-minSdkVersion', '19');
App.accessRule('*');
// Pass preferences for a particular PhoneGap/Cordova plugin
App.configurePlugin('phonegap-facebook-plugin', {
APP_NAME: 'Rocket.Chat',
APP_ID: '835103589938459'
});