-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
71 lines (69 loc) · 1.36 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
import 'dotenv/config';
const intent =
process.env.INTENT_ENABLED === 'true'
? [
{
action: 'VIEW',
data: {
scheme: 'https',
host: process.env.INTENT_HOST,
pathPrefix: process.env.INTENT_PATH_PREFIX,
},
category: ['BROWSABLE', 'DEFAULT'],
autoVerify: true,
},
]
: [];
export default ({ config }) => ({
...config,
expo: {
...config.expo,
name: 'Tapo Camera NFC',
slug: 'taponfc',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/images/icon.png',
scheme: 'taponfc',
userInterfaceStyle: 'automatic',
newArchEnabled: true,
android: {
adaptiveIcon: {
foregroundImage: './assets/images/adaptive-icon.png',
backgroundColor: '#19e020',
},
permissions: ['android.permission.NFC'],
package: 'com.displaynone.taponfc',
},
ios: {
bundleIdentifier: 'com.displaynone.taponfc',
},
plugins: [
'expo-router',
[
'expo-splash-screen',
{
image: './assets/images/splash-icon.png',
imageWidth: 200,
resizeMode: 'contain',
backgroundColor: '#23be2b',
},
],
'expo-secure-store',
'react-native-nfc-manager',
],
experiments: {
typedRoutes: true,
},
extra: {
eas: {
projectId: process.env.EAS_PROJECT_ID,
},
router: {
origin: process.env.ROUTER_ORIGIN,
},
android: {
intentFilters: [...intent],
},
},
},
});