-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
149 lines (141 loc) · 4.44 KB
/
Copy pathapp.config.js
File metadata and controls
149 lines (141 loc) · 4.44 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/* eslint-disable no-undef */
/**
* Wallet Configuration File
*/
const env = process.env;
const BUILD_NUMBER = parseInt(env.APP_BUILD_NUMBER) || 94;
const VERSION_NUMBER = env.APP_VERSION_NUMBER || '2.2.4';
// Used by the 'Create Public Link' functionality
export const VERIFIER_PLUS_URL = env['VERIFIER_PLUS_URL'] || 'https://verifierplus.org';
// Feature Flags section
export const FEATURE_FLAGS = {
// exampleFlag: true
};
// Display date format for VCs (expiration, date issued, etc)
export const DATE_FORMAT = 'MMM D, YYYY';
// Deep Link / Universal App Link configuration
export const LinkConfig = {
schemes: {
customProtocol: ['dccrequest://', 'org.dcconsortium://', 'https://lcw.app/request'],
universalAppLink: 'https://lcw.app/mobile'
},
registerWalletUrl: 'https://lcw.app/register-wallet.html',
appWebsite: {
home: 'https://lcw.app',
faq: 'https://lcw.app/faq.html'
}
};
/**
* Expo App config
* @see https://docs.expo.dev/versions/latest/config/app/
*/
export default {
displayName: 'Learner Credential Wallet',
expo: {
runtimeVersion: VERSION_NUMBER,
version: VERSION_NUMBER,
name: 'Learner Credential Wallet',
slug: 'learner-credential-wallet',
orientation: 'portrait',
icon: './app/assets/icon.png',
backgroundColor: '#1F2937',
splash: {
image: './app/assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#1F2937'
},
updates: {
fallbackToCacheTimeout: 0
},
assetBundlePatterns: ['**/*'],
ios: {
buildNumber: BUILD_NUMBER.toString(),
supportsTablet: true,
bundleIdentifier: 'edu.mit.eduwallet',
deploymentTarget: '13.0',
entitlements: {
'com.apple.security.application-groups': [
'group.edu.mit.eduwallet'
]
},
associatedDomains: ['applinks:lcw.app/mobile'],
infoPlist: {
CFBundleURLTypes: [{
CFBundleURLSchemes: ['dccrequest']
}]
}
},
android: {
versionCode: BUILD_NUMBER,
adaptiveIcon: {
foregroundImage: './app/assets/adaptive-icon.png',
backgroundColor: '#1F2937'
},
intentFilters: [{
action: 'VIEW',
autoVerify: false,
data: [{
scheme: 'dccrequest',
host: 'request'
},
{
scheme: 'dccrequest',
host: 'present'
}
],
category: ['BROWSABLE', 'DEFAULT']
}],
package: 'app.lcw'
},
web: {
favicon: './app/assets/favicon.png'
},
plugins: [
[
'react-native-vision-camera',
{
cameraPermissionText: '$(PRODUCT_NAME) needs access to your Camera to scan QR codes.',
enableMicrophonePermission: false,
enableCodeScanner: true
}
],
['expo-font'],
['expo-secure-store'],
[
'expo-build-properties',
{
android: {
packagingOptions: {
pickFirst: ['**/libcrypto.so']
},
compileSdkVersion: 35,
targetSdkVersion: 35,
minSdkVersion: 29,
buildToolsVersion: '34.0.0'
}
}
]
]
}
};
export const KnownDidRegistries = [{
name: 'DCC Pilot Registry',
url: 'https://digitalcredentials.github.io/issuer-registry/registry.json'
},
{
name: 'DCC Sandbox Registry',
url: 'https://digitalcredentials.github.io/sandbox-registry/registry.json'
},
{
name: 'DCC Community Registry',
url: 'https://digitalcredentials.github.io/community-registry/registry.json'
},
{
name: 'DCC Registry',
url: 'https://digitalcredentials.github.io/dcc-registry/registry.json'
}
];
export const CANCEL_PICKER_MESSAGES = [
'user canceled the document picker',
'User canceled document picker'
];