-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
198 lines (194 loc) · 5.97 KB
/
Copy pathapp.config.js
File metadata and controls
198 lines (194 loc) · 5.97 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// Dynamic Expo config with build variants so a local dev build and the
// TestFlight/App Store build can be installed side-by-side on one device.
//
// Variant is selected via the APP_VARIANT env var. It DEFAULTS to
// "development" so every local build (npm run ios, or a bare expo prebuild)
// gets the .dev bundle id and can never clobber the installed TestFlight app.
// The production variant is pinned explicitly in eas.json's production
// profile, which the nightly TestFlight workflow builds with.
const VARIANT = process.env.APP_VARIANT || "development";
const VARIANTS = {
development: {
bundleIdentifier: "io.openwaters.mobile.dev",
scheme: "openwaters-dev",
icon: "./assets/images/icon-dev.png",
},
production: {
bundleIdentifier: "io.openwaters.mobile",
scheme: "openwaters",
icon: "./assets/images/icon.png",
},
};
const variant = VARIANTS[VARIANT] || VARIANTS.production;
export default {
expo: {
name: "Open Waters",
slug: "openwaters",
version: "0.1.0",
orientation: "portrait",
icon: variant.icon,
scheme: variant.scheme,
userInterfaceStyle: "automatic",
ios: {
supportsTablet: false,
appleTeamId: "Z59BQLF5VQ",
infoPlist: {
NSLocalNetworkUsageDescription:
"Open Waters discovers marine instruments on your local network to display navigation data.",
NSBonjourServices: [
"_signalk-http._tcp",
"_signalk-ws._tcp",
"_nmea-0183._tcp",
],
UIBackgroundModes: ["location", "processing"],
CFBundleDocumentTypes: [
{
CFBundleTypeName: "MBTiles Chart Archive",
CFBundleTypeRole: "Viewer",
LSHandlerRank: "Alternate",
LSItemContentTypes: ["io.openwaters.mbtiles"],
},
{
CFBundleTypeName: "GPX Route",
CFBundleTypeRole: "Viewer",
LSHandlerRank: "Alternate",
LSItemContentTypes: ["com.topografix.gpx"],
},
{
CFBundleTypeName: "ZIP Archive",
CFBundleTypeRole: "Viewer",
LSHandlerRank: "Alternate",
LSItemContentTypes: ["public.zip-archive"],
},
],
UTImportedTypeDeclarations: [
{
UTTypeIdentifier: "io.openwaters.mbtiles",
UTTypeDescription: "MBTiles Chart Archive",
UTTypeConformsTo: ["public.database", "public.data"],
UTTypeTagSpecification: {
"public.filename-extension": ["mbtiles"],
},
},
{
UTTypeIdentifier: "com.topografix.gpx",
UTTypeDescription: "GPX Route",
UTTypeConformsTo: ["public.xml", "public.text"],
UTTypeTagSpecification: {
"public.filename-extension": ["gpx"],
"public.mime-type": ["application/gpx+xml"],
},
},
],
ITSAppUsesNonExemptEncryption: false,
},
privacyManifests: {
NSPrivacyTracking: false,
NSPrivacyTrackingDomains: [],
NSPrivacyCollectedDataTypes: [
{
NSPrivacyCollectedDataType: "NSPrivacyCollectedDataTypeCrashData",
NSPrivacyCollectedDataTypeLinked: false,
NSPrivacyCollectedDataTypeTracking: false,
NSPrivacyCollectedDataTypePurposes: [
"NSPrivacyCollectedDataTypePurposeAppFunctionality",
],
},
],
NSPrivacyAccessedAPITypes: [
{
NSPrivacyAccessedAPIType:
"NSPrivacyAccessedAPICategoryUserDefaults",
NSPrivacyAccessedAPITypeReasons: ["CA92.1"],
},
{
NSPrivacyAccessedAPIType:
"NSPrivacyAccessedAPICategoryFileTimestamp",
NSPrivacyAccessedAPITypeReasons: ["0A2A.1", "3B52.1", "C617.1"],
},
{
NSPrivacyAccessedAPIType: "NSPrivacyAccessedAPICategoryDiskSpace",
NSPrivacyAccessedAPITypeReasons: ["E174.1", "85F4.1"],
},
{
NSPrivacyAccessedAPIType:
"NSPrivacyAccessedAPICategorySystemBootTime",
NSPrivacyAccessedAPITypeReasons: ["35F9.1"],
},
],
},
bundleIdentifier: variant.bundleIdentifier,
},
plugins: [
"expo-router",
"@maplibre/maplibre-react-native",
"react-native-map-link",
"expo-background-task",
[
"expo-splash-screen",
{
image: "./assets/images/splash-icon.png",
imageWidth: 150,
resizeMode: "contain",
backgroundColor: "#1f7a72",
},
],
[
"expo-dev-client",
{
launchMode: "most-recent",
},
],
[
"expo-location",
{
locationWhenInUsePermission:
"Open Waters uses your location to show your vessel on the chart, to navigate routes, and to record tracks.",
locationAlwaysAndWhenInUsePermission:
"Open Waters can record your track in the background so voyages are captured even when the screen is off or another app is in the foreground.",
isIosBackgroundLocationEnabled: true,
},
],
"expo-web-browser",
"expo-font",
"expo-image",
"expo-sqlite",
"expo-sharing",
[
"expo-file-system",
{
enableFileSharing: true,
supportsOpeningDocumentsInPlace: true,
},
],
[
"expo-build-properties",
{
ios: {
deploymentTarget: "18.0",
},
},
],
[
"@sentry/react-native/expo",
{
url: "https://sentry.io/",
project: "openwatersapp",
organization: "open-waters",
},
],
"expo-status-bar",
],
experiments: {
typedRoutes: true,
reactCompiler: true,
},
extra: {
router: {},
eas: {
projectId: "fce58c39-edee-40b0-a1a6-c9e1713cd3f7",
},
},
owner: "openwatersio",
},
};