-
Notifications
You must be signed in to change notification settings - Fork 6
/
app.config.ts
73 lines (64 loc) · 1.58 KB
/
app.config.ts
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
import { ExpoConfig } from "@expo/config";
// Utilities
import { version } from "./package.json";
const primaryColor = "#2196f3";
/**
* Semantic version name (viewable)
*
* Android - 'versionName'
* iOS - 'CFBundleShortVersionString'
*/
const versionName = version;
/**
* Android build code (increment with each submitted build)
*/
const androidVersionCode = 8;
/**
* iOS semantic build code (increment with each submitted build)
*
* NOTE: Different from Android version code in that it may be reset
* with each version change; however, this is deemed confusing!
*/
const iosBuildNumber = 5;
export default (): ExpoConfig => ({
// Information
name: "PayMe",
slug: "payme",
version: versionName,
orientation: "portrait",
platforms: ["android", "ios"],
entryPoint: "index.js",
jsEngine: "hermes",
// Theme
icon: "./assets/icon.png",
splash: {
image: "./assets/splash.png",
resizeMode: "cover",
backgroundColor: primaryColor,
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
// Android overrides
android: {
adaptiveIcon: {
foregroundImage: "./assets/android_launcher.png",
backgroundColor: primaryColor,
},
package: "ca.kendallroth.payme",
permissions: [],
versionCode: androidVersionCode,
},
androidNavigationBar: {
barStyle: "dark-content",
},
// iOS overrides
ios: {
buildNumber: `${iosBuildNumber}`,
bundleIdentifier: "ca.kendallroth.payme",
// Icon must be 1024x1024 (no transparency)
icon: "./assets/icon.png",
supportsTablet: false,
},
});