-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
112 lines (100 loc) · 2.71 KB
/
Copy pathapp.config.js
File metadata and controls
112 lines (100 loc) · 2.71 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
const pkg = require("./package.json");
const { buildMeta } = require("./src/build-meta");
module.exports = ({ config }) => {
const projectId =
process.env.EXPO_PROJECT_ID ||
process.env.EAS_BUILD_PROJECT_ID ||
undefined;
if (!projectId) {
throw new Error("Project ID is missing");
}
const workflowUrl =
buildMeta?.workflowUrl ||
"https://github.com/toqenapp/mobile-react-native/actions";
const gitCommitHash = buildMeta?.gitCommitHash || "local";
const gitTag = buildMeta?.gitTag || "dev";
return {
...config,
name: "Toqen.app",
slug: "toqen-app",
version: pkg.version,
orientation: "portrait",
icon: "./assets/images/icon.png",
scheme: "toqenapp",
userInterfaceStyle: "dark",
backgroundColor: "#0B1020",
ios: {
bundleIdentifier: "app.toqen.mobile",
supportsTablet: true,
infoPlist: {
ITSAppUsesNonExemptEncryption: false,
NSFaceIDUsageDescription:
"Toqen.app uses Face ID to protect your cryptographic device key and confirm authentication requests. Your biometric data is never stored or transmitted.",
},
},
android: {
package: "mobile.toqen.app",
adaptiveIcon: {
foregroundImage: "./assets/images/adaptive-icon-foreground.png",
backgroundImage: "./assets/images/adaptive-icon-background.png",
monochromeImage: "./assets/images/adaptive-icon-monochrome.png",
},
predictiveBackGestureEnabled: false,
intentFilters: [
{
action: "VIEW",
data: [{ scheme: "toqenapp", host: "*" }],
category: ["BROWSABLE", "DEFAULT"],
},
],
permissions: ["android.permission.CAMERA"],
blockedPermissions: ["android.permission.RECORD_AUDIO"],
},
web: {
bundler: "metro",
output: "static",
favicon: "./assets/images/favicon.png",
},
plugins: [
"expo-router",
[
"expo-splash-screen",
{
image: "./assets/images/splash-icon.png",
resizeMode: "contain",
backgroundColor: "#000000",
},
],
[
"expo-camera",
{
cameraPermission:
"Allow Toqen.app to use the camera to scan QR codes",
},
],
[
"expo-navigation-bar",
{
enforceContrast: false,
barStyle: "light",
visibility: "visible",
},
],
"expo-secure-store",
"expo-sqlite",
"expo-web-browser",
],
experiments: {
typedRoutes: true,
},
extra: {
...config.extra,
router: {},
eas: { projectId },
gitCommitHash,
gitTag,
workflowUrl,
baseUrl: "https://www.toqen.app",
},
};
};