forked from Ding-Payments/ding-payments
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
66 lines (65 loc) · 1.75 KB
/
Copy pathapp.config.ts
File metadata and controls
66 lines (65 loc) · 1.75 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
import { ExpoConfig, ConfigContext } from '@expo/config';
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
name: 'ding-payments',
slug: 'ding-payments',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/images/icon.png',
scheme: 'dingpayments',
userInterfaceStyle: 'automatic',
ios: {
...config.ios,
icon: './assets/expo.icon',
entitlements: {
...(config.ios?.entitlements ?? {}),
'com.apple.developer.nfc.readersession.formats': ['NDEF', 'TAG'],
},
infoPlist: {
...(config.ios?.infoPlist ?? {}),
NFCReaderUsageDescription: 'Use NFC to read and write payment requests securely for Ding Payments.',
NSFaceIDUsageDescription: 'Use Face ID to authenticate passkey operations safely.',
},
},
android: {
...config.android,
adaptiveIcon: {
backgroundColor: '#E6F4FE',
foregroundImage: './assets/images/android-icon-foreground.png',
backgroundImage: './assets/images/android-icon-background.png',
monochromeImage: './assets/images/android-icon-monochrome.png',
},
permissions: ['NFC'],
predictiveBackGestureEnabled: false,
},
web: {
...config.web,
output: 'static',
favicon: './assets/images/favicon.png',
},
plugins: [
'expo-dev-client',
'expo-router',
[
'expo-splash-screen',
{
backgroundColor: '#208AEF',
android: {
image: './assets/images/splash-icon.png',
imageWidth: 76,
},
},
],
[
'expo-secure-store',
{
faceIDPermission: 'Use Face ID to authenticate passkey operations safely.',
configureAndroidBackup: true,
},
],
],
experiments: {
typedRoutes: true,
reactCompiler: true,
},
});