-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
109 lines (107 loc) · 3.38 KB
/
app.config.js
File metadata and controls
109 lines (107 loc) · 3.38 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
import fs from 'fs';
const hasGoogleServices = fs.existsSync('./google-services.json');
if (!hasGoogleServices) {
console.warn(
'\n⚠️ Warning: google-services.json not found — Cannot submit to PlayStore.\n'
);
}
export default {
expo: {
newArchEnabled: true,
name: 'RewindBitcoin',
jsEngine: 'hermes',
slug: 'RewindBitcoin',
version: '2.0.0',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'light',
assetBundlePatterns: ['**/*'],
ios: {
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#FFFFFF'
},
config: {
usesNonExemptEncryption: false
},
infoPlist: {
README_UIFileSharingEnabled:
'So that the app reveals to the host its Shared Documents. This is necessary for air-gapped signing.',
UIFileSharingEnabled: true,
CFBundleAllowMixedLocalizations: true
},
supportsTablet: true,
bundleIdentifier: 'com.rewindbitcoin.app',
appleTeamId: 'YLPTXNT537'
},
android: {
README_allowBackup:
"In android, SecureStore, does not persist data when uninstalling the app. However mmkv data can persist if Google Drive App Data Backups is enabled. So it's better to disable Google Droive App Data Backups altogether since the reinstalled app will report it exists a wallet and then cannot access the encrypted mnemonic - iOS backups both data and encrypted data, which is just fine",
googleServicesFile: hasGoogleServices
? './google-services.json'
: undefined,
splash: {
image: './assets/adaptive-icon.png',
resizeMode: 'contain',
backgroundColor: '#FFFFFF'
},
allowBackup: false,
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#FFFFFF'
},
softwareKeyboardLayoutMode: 'resize',
package: 'com.rewindbitcoin.app',
permissions: [
'android.permission.USE_BIOMETRIC',
'android.permission.USE_FINGERPRINT',
'android.permission.CAMERA',
'android.permission.RECEIVE_BOOT_COMPLETED'
]
},
web: {
bundler: 'metro',
favicon: './assets/favicon.png'
},
extra: {
eas: {
projectId: '0598db8e-d582-4b63-9bf1-3a3fca12dc83'
}
},
locales: {
es: './src/i18n-locales/app.es.json',
en: './src/i18n-locales/app.en.json'
},
plugins: [
['react-native-libsodium', {}],
'expo-font',
'expo-local-authentication',
'expo-secure-store',
[
'expo-camera',
{
recordAudioAndroid: false
}
],
'expo-localization',
[
'expo-network-security-config',
{
networkSecurityConfig:
'./android_allow_http_on_rewindbitcoin_local.xml',
enable: true,
README:
'Why? So that we can use the regtest environment. networkSecurityConfig is set for android so that the http protocol can be used on rewindbitcoin.local. On ios .local domains can be used in http by default - See https://developer.apple.com/documentation/bundleresources/information_property_list/nsapptransportsecurity/nsallowslocalnetworking'
}
],
[
'expo-notifications',
{
defaultChannel: 'default',
color: '#007AFF'
}
]
]
}
};