-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
85 lines (78 loc) · 2.23 KB
/
app.config.js
File metadata and controls
85 lines (78 loc) · 2.23 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
const IS_DEV = process.env.APP_VARIANT === 'development'
const IS_PREVIEW = process.env.APP_VARIANT === 'preview'
const USERNAME = process.env.USERNAME || 'username'
const getUniqueIdentifier = () => {
if (IS_DEV) {
return `com.${USERNAME}.TransportTrackerSQLite.dev`
}
if (IS_PREVIEW) {
return `com.${USERNAME}.TransportTrackerSQLite.preview`
}
return `com.${USERNAME}.TransportTrackerSQLite`
}
const getAppName = () => {
if (IS_DEV) {
return 'TransportTracker - SQLite (Dev)'
}
if (IS_PREVIEW) {
return 'TransportTracker - SQLite (Preview)'
}
return 'TransportTracker - SQLite'
}
export default {
expo: {
name: getAppName(),
slug: "TransportTracker-SQLite",
version: "0.4.0",
icon: "./assets/images/icon.png",
scheme: "transporttrackersqlite",
ios: {
bundleIdentifier: getUniqueIdentifier(),
},
android: {
package: getUniqueIdentifier(),
usesCleartextTraffic: true,
permissions: [
"android.permission.ACCESS_COARSE_LOCATION",
"android.permission.ACCESS_FINE_LOCATION",
"android.permission.FOREGROUND_SERVICE",
"android.permission.VIBRATE",
],
softwareKeyboardLayoutMode: 'pan',
edgeToEdgeEnabled: true
},
orientation: 'portrait',
newArchEnabled: true,
runtimeVersion: {
policy: "appVersion"
},
plugins: [
[
"expo-splash-screen",
{
"image": "./assets/images/icon_transparent.png",
"imageWidth": 200,
"resizeMode": "contain",
"backgroundColor": "#ffffff"
}
],
[
"expo-build-properties",
{
android: {
usesCleartextTraffic: true
}
}
],
[
"expo-localization"
],
[
"expo-router"
]
],
experiments: {
typedRoutes: true
}
},
}