-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
79 lines (78 loc) · 1.61 KB
/
app.config.ts
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
import { ExpoConfig, ConfigContext } from 'expo/config';
const IS_DEV = process.env.APP_VARIANT === 'development';
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
slug: 'VNBrowser',
name: IS_DEV ? 'VNBrowser Dev' : 'VNBrowser',
scheme: IS_DEV ? ['vnbrowserdev'] : ['vnbrowser'],
version: '1.0.0',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'automatic',
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
// backgroundColor: '#ffffff',
},
assetBundlePatterns: ['**/*'],
ios: {
supportsTablet: true,
},
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
// backgroundColor: '#ffffff',
},
package: IS_DEV ? 'com.vnbrowserdev' : 'com.vnbrowser',
intentFilters: [
{
action: 'VIEW',
data: [
{
scheme: 'https',
host: 'vndb.org',
pathPattern: '/v.*',
},
],
},
],
permissions: [
'REQUEST_INSTALL_PACKAGES',
'READ_EXTERNAL_STORAGE',
'WRITE_EXTERNAL_STORAGE',
],
},
web: {
favicon: './assets/favicon.png',
bundler: 'metro',
},
updates: {
checkAutomatically: 'ON_LOAD',
enabled: true,
},
extra: {
eas: {
projectId: '88d601c0-7725-4095-976f-72f16e459727',
},
},
plugins: [
'expo-router',
'expo-localization',
'expo-secure-store',
[
'expo-build-properties',
{
android: {
useLegacyPackaging: true, // keeps the app size smaller but launches slower
// newArchEnabled: true,
},
},
],
[
'expo-barcode-scanner',
{
cameraPermission: 'Allow VNBrowser to access camera for barcode scanning.',
},
],
],
});