-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapp.config.js
144 lines (142 loc) · 4.95 KB
/
app.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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import { convention } from "./convention.config.json";
const urlMatcher = /^([^:]+):\/\/([^/]+)(\/.*)$/;
const [, appBaseProtocol, appBaseHost, appBasePath] = [...convention.appBase.match(urlMatcher)];
module.exports = {
expo: {
runtimeVersion: {
policy: "appVersion",
},
name: "Eurofurence",
slug: "ef-app-react-native",
description: "Your one stop shop to the convention!",
owner: "eurofurence",
version: "5.0.1",
orientation: "default",
userInterfaceStyle: "automatic",
scheme: "eurofurence",
splash: {
image: "./assets/platform/splash.png",
resizeMode: "contain",
backgroundColor: "#231F20",
},
updates: {
fallbackToCacheTimeout: 0,
url: "https://u.expo.dev/a60a3199-98db-4eec-8c66-cda6c424377d",
},
ios: {
bundleIdentifier: "org.eurofurence",
icon: "./assets/platform/appicon-ios.png",
googleServicesFile: "./assets/platform/GoogleService-Info.plist",
supportsTablet: true,
infoPlist: {
UIBackgroundModes: ["fetch", "remote-notification"],
},
associatedDomains: ["applinks:app.eurofurence.org", "applinks:app.test.eurofurence.org"],
},
android: {
package: "org.eurofurence.connavigator",
icon: "./assets/platform/appicon-android.png",
googleServicesFile: "./assets/platform/google-services.json",
splash: {
resizeMode: "native",
image: "./assets/platform/splash.png",
backgroundColor: "#231F20",
},
adaptiveIcon: {
foregroundImage: "./assets/platform/appicon-android.png",
backgroundColor: "#231F20",
monochromeImage: "./assets/platform/appicon-android-monochrome.png",
},
intentFilters: [
{
action: "VIEW",
autoVerify: true,
data: [
{
scheme: appBaseProtocol,
host: appBaseHost,
pathPrefix: `${appBasePath}/Web`,
},
],
category: ["BROWSABLE", "DEFAULT"],
},
{
action: "VIEW",
autoVerify: true,
data: [
{
scheme: appBaseProtocol,
host: appBaseHost,
path: "/auth/login",
},
],
category: ["BROWSABLE", "DEFAULT"],
},
],
permissions: ["INTERNET", "VIBRATE", "WRITE_EXTERNAL_STORAGE"],
blockedPermissions: ["com.google.android.gms.permission.AD_ID"],
},
web: {
bundler: "metro",
favicon: "./assets/platform/appicon-android.png",
},
plugins: [
// Run sentry plugin only if auth token is given, otherwise the build crashes.
Boolean(global.process.env.SENTRY_AUTH_TOKEN) && [
"@sentry/react-native/expo",
{
project: "ef-app_react-native",
organization: "eurofurence",
},
],
// Import assets statically.
[
"expo-asset",
{
assets: ["./assets/static"],
},
],
// Used to display push notifications.
[
"expo-notifications",
{
icon: "./assets/platform/notification.png",
color: "#006459",
},
],
// Used to render audio.
[
"expo-av",
{
microphonePermission: false,
},
],
// Used for Artist Alley registration
[
"expo-image-picker",
{
photosPermission: "The app accesses your photos if you want to register for a table in the Artist Alley.",
},
],
"expo-localization",
[
"expo-build-properties",
{
ios: {
deploymentTarget: "13.4",
useFrameworks: "static",
ccacheEnabled: true,
privacyManifestAggregationEnabled: true,
},
},
],
"@react-native-firebase/app",
"expo-secure-store",
].filter(Boolean),
extra: {
eas: {
projectId: "a60a3199-98db-4eec-8c66-cda6c424377d",
},
},
},
};