This repository has been archived by the owner on Jul 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmobile-config.js
71 lines (62 loc) · 2.82 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
App.info({
id: "cc.newspring.newspringapp",
name: "NewSpring",
description: "App for NewSpring Church",
author: "NewSpring Church",
email: "[email protected]",
website: "https://newspring.cc",
version: "5.0.13",
buildNumber: "188",
});
App.icons({
// iOS
"iphone_2x": "assets/icons/ios/[email protected]",
"iphone_3x": "assets/icons/ios/[email protected]",
"ipad": "assets/icons/ios/icon-76x76.png",
"ipad_2x": "assets/icons/ios/[email protected]",
"ipad_pro": "assets/icons/ios/[email protected]",
"ios_settings": "assets/icons/ios/icon-29x29.png",
"ios_settings_2x": "assets/icons/ios/[email protected]",
"ios_settings_3x": "assets/icons/ios/[email protected]",
"ios_spotlight": "assets/icons/ios/icon-40x40.png",
"ios_spotlight_2x": "assets/icons/ios/[email protected]",
// Android
"android_mdpi": "assets/icons/android/icon-48x48-mdpi.png",
"android_hdpi": "assets/icons/android/icon-72x72-hdpi.png",
"android_xhdpi": "assets/icons/android/icon-96x96-xhdpi.png",
"android_xxhdpi": "assets/icons/android/icon-144x144-xxhdpi.png",
"android_xxxhdpi": "assets/icons/android/icon-192x192-xxxhpdi.png",
});
App.launchScreens({
// iOS
"iphone_2x": "assets/splash/ios/[email protected]",
"iphone5": "assets/splash/ios/[email protected]",
"iphone6": "assets/splash/ios/splash-667h.png",
"iphone6p_portrait": "assets/splash/ios/splash-1242h-portrait.png",
"iphone6p_landscape": "assets/splash/ios/splash-1242h-landscape.png",
"ipad_portrait": "assets/splash/ios/splash-768x1024.png",
"ipad_portrait_2x": "assets/splash/ios/[email protected]",
"ipad_landscape": "assets/splash/ios/splash-1024x768.png",
"ipad_landscape_2x": "assets/splash/ios/[email protected]",
// Android
"android_mdpi_portrait": "assets/splash/android/splash-320x470.png",
"android_mdpi_landscape": "assets/splash/android/splash-470x320.png",
"android_hdpi_portrait": "assets/splash/android/splash-480x640.png",
"android_hdpi_landscape": "assets/splash/android/splash-640x480.png",
"android_xhdpi_portrait": "assets/splash/android/splash-720x960.png",
"android_xhdpi_landscape": "assets/splash/android/splash-960x720.png",
"android_xxhdpi_portrait": "assets/splash/android/splash-1080x1440.png",
"android_xxhdpi_landscape": "assets/splash/android/splash-1440x1080.png",
});
App.accessRule("*");
App.setPreference("EnableBitcode", false);
App.setPreference("ShowSplashScreenSpinner", false);
App.setPreference("SplashMaintainAspectRatio", true);
App.setPreference("StatusBarBackgroundColor", "#6bac43");
App.setPreference("StatusBarStyle", "lightcontent");
App.setPreference("StatusBarOverlaysWebView", false);
App.setPreference("Orientation", "portrait");
App.configurePlugin("cordova-fabric-plugin", {
FABRIC_API_KEY: process.env.FABRIC_API_KEY,
FABRIC_API_SECRET: process.env.FABRIC_API_SECRET,
});