|
1 | 1 | import type { ConfigContext, ExpoConfig } from "expo/config"; |
2 | 2 |
|
3 | 3 | export default ({ config }: ConfigContext): ExpoConfig => ({ |
4 | | - ...config, |
5 | | - name: "react-native-mdocs-holder-tutorial-sample-app", |
6 | | - slug: "react-native-mdocs-holder-tutorial-sample-app", |
7 | | - version: "1.0.0", |
8 | | - // Online presentation - Step 1.1: Update application custom scheme. |
9 | | - scheme: "mdoc-openid4vp", |
10 | | - orientation: "portrait", |
11 | | - icon: "./assets/icon.png", |
12 | | - splash: { |
13 | | - image: "./assets/splash.png", |
14 | | - resizeMode: "contain", |
15 | | - backgroundColor: "#ffffff", |
16 | | - }, |
17 | | - ios: { |
18 | | - // Update the bundle identifier |
19 | | - bundleIdentifier: "", |
20 | | - infoPlist: { |
21 | | - // Add Face ID and Camera usage permissions |
22 | | - NSFaceIDUsageDescription: "Face ID is used to secure your credentials.", |
23 | | - NSCameraUsageDescription: "Camera is used to scan QR codes.", |
24 | | - // Add Bluetooth permissions |
25 | | - NSBluetoothAlwaysUsageDescription: |
26 | | - "This app uses Bluetooth to communicate with verifiers or holders.", |
27 | | - NSBluetoothPeripheralUsageDescription: |
28 | | - "This app uses Bluetooth to communicate with verifiers or holders.", |
29 | | - }, |
30 | | - config: { |
31 | | - usesNonExemptEncryption: false, |
32 | | - }, |
33 | | - }, |
34 | | - android: { |
35 | | - package: "io.mattrlabs.sample.reactnativemobilecredentialholdertutorialapp", |
36 | | - adaptiveIcon: { |
37 | | - foregroundImage: "./assets/adaptive-icon.png", |
38 | | - backgroundColor: "#ffffff", |
39 | | - }, |
40 | | - permissions: ["CAMERA"], |
41 | | - intentFilters: [ |
42 | | - { |
43 | | - action: "VIEW", |
44 | | - data: { |
45 | | - scheme: |
46 | | - "io.mattrlabs.sample.reactnativemobilecredentialholdertutorialapp", |
47 | | - host: "credentials", |
48 | | - pathPrefix: "/", |
49 | | - }, |
50 | | - category: ["BROWSABLE", "DEFAULT"], |
51 | | - }, |
52 | | - { |
53 | | - action: "VIEW", |
54 | | - data: { |
55 | | - scheme: |
56 | | - "io.mattrlabs.sample.reactnativemobilecredentialholdertutorialapp", |
57 | | - host: "expo-development-client", |
58 | | - pathPrefix: "/", |
59 | | - }, |
60 | | - category: ["BROWSABLE", "DEFAULT"], |
61 | | - }, |
62 | | - ], |
63 | | - }, |
64 | | - plugins: [ |
65 | | - "expo-router", |
66 | | - [ |
67 | | - "expo-build-properties", |
68 | | - { |
69 | | - ios: { |
70 | | - deploymentTarget: "15.1", |
71 | | - }, |
72 | | - }, |
73 | | - ], |
74 | | - [ |
75 | | - "react-native-vision-camera", |
76 | | - { |
77 | | - cameraPermissionText: "$(PRODUCT_NAME) needs access to your Camera.", |
78 | | - enableCodeScanner: true, |
79 | | - }, |
80 | | - ], |
81 | | - // Configure the SDK plugins |
82 | | - /* |
83 | | - * withAndroidHolderSDK plugin handles the Android SDK setup according to |
84 | | - * https://api-reference-sdk.mattr.global/mobile-credential-holder-react-native/latest/index.html#md:platform-android |
85 | | - * |
86 | | - */ |
87 | | - "./withRemoveAPNSCapability.js", |
88 | | - [ |
89 | | - "./withAndroidHolderSDK.js", |
90 | | - { |
91 | | - mattrDomain: "credentials", |
92 | | - mattrScheme: |
93 | | - "io.mattrlabs.sample.reactnativemobilecredentialholdertutorialapp", |
94 | | - }, |
95 | | - ], |
96 | | - |
97 | | - // You may not have the APNS Capability enabled in your profile. |
98 | | - ], |
99 | | - experiments: { |
100 | | - typedRoutes: true, |
101 | | - }, |
| 4 | + ...config, |
| 5 | + name: "react-native-mdocs-holder-tutorial-sample-app", |
| 6 | + slug: "react-native-mdocs-holder-tutorial-sample-app", |
| 7 | + version: "1.0.0", |
| 8 | + // Online presentation - Step 1.1: Update application custom scheme. |
| 9 | + scheme: "mdoc-openid4vp", |
| 10 | + orientation: "portrait", |
| 11 | + icon: "./assets/icon.png", |
| 12 | + splash: { |
| 13 | + image: "./assets/splash.png", |
| 14 | + resizeMode: "contain", |
| 15 | + backgroundColor: "#ffffff", |
| 16 | + }, |
| 17 | + ios: { |
| 18 | + // Update the bundle identifier |
| 19 | + bundleIdentifier: |
| 20 | + "io.mattrlabs.sample.reactnativemobilecredentialholdertutorialapp", |
| 21 | + infoPlist: { |
| 22 | + // Add Face ID and Camera usage permissions |
| 23 | + NSFaceIDUsageDescription: "Face ID is used to secure your credentials.", |
| 24 | + NSCameraUsageDescription: "Camera is used to scan QR codes.", |
| 25 | + // Add Bluetooth permissions |
| 26 | + NSBluetoothAlwaysUsageDescription: |
| 27 | + "This app uses Bluetooth to communicate with verifiers or holders.", |
| 28 | + NSBluetoothPeripheralUsageDescription: |
| 29 | + "This app uses Bluetooth to communicate with verifiers or holders.", |
| 30 | + }, |
| 31 | + config: { |
| 32 | + usesNonExemptEncryption: false, |
| 33 | + }, |
| 34 | + }, |
| 35 | + android: { |
| 36 | + package: "io.mattrlabs.sample.reactnativemobilecredentialholdertutorialapp", |
| 37 | + adaptiveIcon: { |
| 38 | + foregroundImage: "./assets/adaptive-icon.png", |
| 39 | + backgroundColor: "#ffffff", |
| 40 | + }, |
| 41 | + permissions: ["CAMERA"], |
| 42 | + // Add intent filter for handling credential offers via deep links |
| 43 | + intentFilters: [ |
| 44 | + { |
| 45 | + action: "VIEW", |
| 46 | + data: { |
| 47 | + scheme: |
| 48 | + "io.mattrlabs.sample.reactnativemobilecredentialholdertutorialapp", |
| 49 | + host: "accept", |
| 50 | + pathPrefix: "/", |
| 51 | + }, |
| 52 | + category: ["BROWSABLE", "DEFAULT"], |
| 53 | + }, |
| 54 | + ], |
| 55 | + }, |
| 56 | + plugins: [ |
| 57 | + "expo-router", |
| 58 | + [ |
| 59 | + "expo-build-properties", |
| 60 | + { |
| 61 | + ios: { |
| 62 | + deploymentTarget: "15.1", |
| 63 | + }, |
| 64 | + }, |
| 65 | + ], |
| 66 | + [ |
| 67 | + "react-native-vision-camera", |
| 68 | + { |
| 69 | + cameraPermissionText: "$(PRODUCT_NAME) needs access to your Camera.", |
| 70 | + enableCodeScanner: true, |
| 71 | + }, |
| 72 | + ], |
| 73 | + // Configure the SDK plugins |
| 74 | + /* |
| 75 | + * withAndroidHolderSDK plugin handles the Android SDK setup according to |
| 76 | + * https://api-reference-sdk.mattr.global/mobile-credential-holder-react-native/latest/index.html#md:register-local-maven-repository-android |
| 77 | + * |
| 78 | + */ |
| 79 | + "./withAndroidHolderSDK.js", |
| 80 | + // You may not have the APNS Capability enabled in your profile. |
| 81 | + "./withRemoveAPNSCapability.js", |
| 82 | + ], |
| 83 | + experiments: { |
| 84 | + typedRoutes: true, |
| 85 | + }, |
102 | 86 | }); |
0 commit comments