-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathapp.config.js
More file actions
106 lines (102 loc) · 3.29 KB
/
Copy pathapp.config.js
File metadata and controls
106 lines (102 loc) · 3.29 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
import "dotenv/config";
import { networkInterfaces } from "os";
function getLocalIP() {
const nets = networkInterfaces();
for (const name of Object.keys(nets)) {
for (const net of nets[name]) {
if (net.family === "IPv4" && !net.internal) return net.address;
}
}
return "localhost";
}
const AUTH_API_URL = process.env.AUTH_API_URL?.replace("localhost", getLocalIP());
export default {
expo: {
name: "Where's Religion?",
slug: "lrda_mobile",
scheme: "lrda",
version: "1.0.8",
orientation: "portrait",
icon: "./assets/icon.png",
userInterfaceStyle: "light",
splash: {
image: "./assets/splash.png",
resizeMode: "cover",
backgroundColor: "#ffffff",
},
ios: {
supportsTablet: true,
bundleIdentifier: "register.edu.slu.cs.oss.lrda",
config: {
googleMapsApiKey: "",
},
buildNumber: "1",
infoPlist: {
NSAppTransportSecurity: {
NSAllowsArbitraryLoads: true,
},
NSLocationWhenInUseUsageDescription:
"Allowing location services enables you to see nearby notes and/or share the location of your notes with other app users.",
NSLocationAlwaysUsageDescription:
"Allowing location services enables you to see nearby notes and/or share the location of your notes with other app users.",
NSCameraUsageDescription: "Allowing camera access enables you to upload and/or share your photos or videos with other app users. ",
NSMicrophoneUsageDescription:
"Allowing microphone access enables you to take, upload, and/or share audio recordings with other app users.",
NSPhotoLibraryUsageDescription:
"Allowing access to photo library enables you to select, upload, and/or share your chosen photos or videos with other app users. ",
NSPhotoLibraryAddUsageDescription:
"Allowing access to photo library enables you to select, upload, and/or share your chosen photos or videos with other app users. ",
},
},
android: {
adaptiveIcon: {
foregroundImage: "./assets/icon.png",
backgroundColor: "#ffffff",
},
config: {
googleMaps: {
// Google Maps hard-crashes the Map tab without a key. eas.json sets
// MAP_API_KEY for production builds; export it locally before
// `expo prebuild`/`expo run:android` for a working dev map.
apiKey: process.env.MAP_API_KEY ?? "",
},
},
package: "register.edu.slu.cs.oss.lrda",
versionCode: 28,
},
web: {
favicon: "./assets/favicon.png",
},
runtimeVersion: {
policy: "sdkVersion",
},
updates: {
url: "https://u.expo.dev/801029ef-db83-4668-a97a-5adcc4c333e2",
},
extra: {
apiBaseUrl: process.env.API_BASE_URL?.replace("localhost", getLocalIP()),
authApiUrl: AUTH_API_URL,
s3ProxyPrefix: process.env.S3_PROXY_PREFIX,
eas: {
projectId: "801029ef-db83-4668-a97a-5adcc4c333e2",
},
},
plugins: [
[
"expo-build-properties",
{
android: {
minSdkVersion: 25,
},
},
],
"expo-font",
"expo-router",
"expo-secure-store",
"expo-splash-screen",
"expo-status-bar",
"expo-audio",
"expo-video",
],
},
};