This repository was archived by the owner on Oct 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.config.ts
More file actions
111 lines (106 loc) · 2.65 KB
/
app.config.ts
File metadata and controls
111 lines (106 loc) · 2.65 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
import 'tsx/cjs'
import type { ExpoConfig, ConfigContext } from 'expo/config'
const scheme = 'porto-rn'
const dev =
process.env.NODE_ENV === 'development' ||
process.env.ENVIRONMENT === 'development'
const ngrokDomain = `${process.env.EXPO_TUNNEL_SUBDOMAIN}.ngrok.io`
export default (context: ConfigContext): ExpoConfig => ({
...context.config,
slug: scheme,
name: scheme,
scheme: scheme,
version: '1.0.0',
newArchEnabled: true,
userInterfaceStyle: 'automatic',
platforms: ['android', 'ios', 'web'],
ios: {
config: {
usesNonExemptEncryption: false,
},
supportsTablet: true,
appleTeamId: 'Q7767Q7TRJ',
bundleIdentifier: 'org.name.portorn',
associatedDomains: [
`applinks:${ngrokDomain}`,
`webcredentials:${ngrokDomain}`,
`activitycontinuation:${ngrokDomain}`,
`applinks:${process.env.EXPO_PUBLIC_SERVER_DOMAIN}`,
`webcredentials:${process.env.EXPO_PUBLIC_SERVER_DOMAIN}`,
`activitycontinuation:${process.env.EXPO_PUBLIC_SERVER_DOMAIN}`,
],
},
android: {
newArchEnabled: true,
edgeToEdgeEnabled: true,
package: 'org.name.portorn',
},
web: {
output: 'single',
bundler: 'metro',
},
experiments: {
typedRoutes: true,
turboModules: true,
},
extra: {
eas: {
projectId: '2465a0e5-8758-4bbf-8641-49004b3ea709',
},
},
plugins: [
[
'expo-router',
{
origin: `https://${ngrokDomain}`,
headOrigin: dev
? `https://${ngrokDomain}`
: `https://${process.env.EXPO_PUBLIC_SERVER_DOMAIN}`,
},
],
['patch-project'],
['expo-dev-client', { launchMode: 'most-recent' }],
[
'expo-build-properties',
{
android: {
packagingOptions: {
pickFirst: ['**/libcrypto.so'],
},
},
},
],
['expo-web-browser', { experimentalLauncherActivity: true }],
[
'expo-local-authentication',
{ faceIDPermission: 'Allow $(PRODUCT_NAME) to use Face ID.' },
],
[
'expo-secure-store',
{
configureAndroidBackup: true,
faceIDPermission:
'Allow $(PRODUCT_NAME) to access your Face ID biometric data.',
},
],
[
'./plugins/android.ts',
{
workersMax: 2,
enableDebugSuffix: false,
disableReleaseLint: true,
versionNameSuffix: '-debug',
jvmArgs: [
'-Xmx4096m',
'-XX:MaxMetaspaceSize=1024m',
'-Dfile.encoding=UTF-8',
'-Dkotlin.daemon.jvm.options=-Xmx2048m',
].join(' '),
},
],
[
'./plugins/ios.ts',
{ enableDebugSuffix: false, bundleIdSuffix: '.debug' },
],
],
})