-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathapp.config.ts
63 lines (62 loc) · 2.07 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
import { ExpoConfig, ConfigContext } from "@expo/config";
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
name: "CKBull",
slug: "CKBull",
owner: "peersyst",
version: "1.3.0",
orientation: "portrait",
icon: "./assets/images/ckbull-icon.png",
scheme: "myapp",
userInterfaceStyle: "automatic",
splash: {
image: "./assets/images/splash.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: false,
bundleIdentifier: "com.peersyst.ckbull",
buildNumber: process.env.BUILD_NUMBER || "0",
config: {
usesNonExemptEncryption: false,
},
icon: "./assets/images/adaptive-icon.png",
infoPlist: {
NSCameraUsageDescription: "This app uses camera for QR code scanning.",
NSFaceIDUsageDescription: "This app uses biometrics to provide a higher level of security",
},
splash: { image: "./assets/images/splash.png", resizeMode: "cover", backgroundColor: "#141414" },
},
extra: {
eas: {
projectId: "b1dac2fd-013a-4e87-a82e-de40c714f416",
},
},
get android(): ExpoConfig["android"] {
const versionString = (this.version || "").replace(/\./g, "");
const versionCodeString = `${versionString}${process.env.BUILD_NUMBER}`.padEnd(8, "0");
return {
package: "com.peersyst.ckbull",
adaptiveIcon: {
foregroundImage: "./assets/images/adaptive-icon.png",
backgroundColor: "#141414",
},
versionCode: Number(versionCodeString) || 0,
softwareKeyboardLayoutMode: "resize",
splash: {
image: "./assets/images/splash.png",
resizeMode: "cover",
backgroundColor: "#141414",
},
};
},
web: {
favicon: "./assets/images/favicon.png",
},
plugins: ["expo-localization"],
});