-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
101 lines (100 loc) · 3.23 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
import 'dotenv/config';
export default ({ config }) => {
return {
...config,
"name": "loco",
"slug": "loco",
"version": "0.1.5",
"orientation": "portrait",
"icon": "./assets/icon.png",
"platforms": ["ios", "android"],
"userInterfaceStyle": "light",
"newArchEnabled": false,
"experiments": {
"turboModules": false,
"coreModules": false,
"unoptimizedReports": false,
"enableAsyncDefaults": false,
"concurrentRoot": false,
"fabric": false
},
"plugins": [
[
"react-native-radar",
{
"iosFraud": false,
// "iosNSLocationWhenInUseUsageDescription": "We use your location to help share your position in real-time.",
// "iosNSLocationAlwaysAndWhenInUseUsageDescription": "Background location is used so your friends can see your location even if the app is closed.",
"iosBackgroundMode": true,
"androidFraud": false,
"androidBackgroundPermission": true,
"androidFineLocationPermission": true,
"addRadarSDKMotion": false
}
],
[
"@rnmapbox/maps",
{
"RNMapboxMapsDownloadToken": process.env.MAPBOX_DOWNLOADS_TOKEN,
"RNMapboxMapsVersion": "11.8.0"
}
],
[
"expo-location",
{
// "locationWhenInUsePermission": "Show current location on map.",
// "locationAlwaysPermission": "Background location usage...",
// "locationAlwaysAndWhenInUsePermission": "Allow Loco to use your location.",
"isIosBackgroundLocationEnabled": true,
"isAndroidBackgroundLocationEnabled": true
}
],
["expo-image-picker"],
[
"expo-splash-screen",
{
"backgroundColor": "#19456B",
"image": "./assets/splash.png",
"imageWidth": 200
}
]
],
"ios": {
"buildNumber": "0.1.5",
"supportsTablet": true,
"bundleIdentifier": "com.antoninbeliard.loco",
"infoPlist": {
"UIBackgroundModes": [
"location",
"fetch"
],
"NSLocationWhenInUseUsageDescription": "We need your location to show your position on the map and share it with friends.",
"NSLocationAlwaysAndWhenInUseUsageDescription": "We need background location access to share your live location with friends, even when the app is in the background or closed.",
"NSLocationAlwaysUsageDescription": "We need background location access to share your live location with friends, even when the app is in the background or closed." // Include this for older iOS versions, even though it's deprecated.
}
},
"android": {
"package": "com.antoninbeliard.loco",
"icon": "./assets/icon.png",
"permissions": [
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"ACCESS_BACKGROUND_LOCATION",
"FOREGROUND_SERVICE"
]
},
"permissions": [
"ACCESS_COARSE_LOCATION",
"ACCESS_FINE_LOCATION",
"ACCESS_BACKGROUND_LOCATION",
"FOREGROUND_SERVICE",
"FOREGROUND_SERVICE_LOCATION",
"WAKE_LOCK"
],
"extra": {
"eas": {
"projectId": "eacea42d-f4e8-4a94-b43a-f19dc934865e"
}
}
};
};