Repository navigation
Expand file tree
/
Copy pathapp.config.js
More file actions
236 lines (234 loc) · 6.83 KB
/
Copy pathapp.config.js
File metadata and controls
236 lines (234 loc) · 6.83 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
const { withGradleProperties } = require('@expo/config-plugins');
const withIncreasedGradleMemory = (config) =>
withGradleProperties(config, (config) => {
const jvmArgsProp = config.modResults.find(
(item) => item.type === 'property' && item.key === 'org.gradle.jvmargs'
);
if (jvmArgsProp) {
jvmArgsProp.value = '-Xmx4096m -XX:MaxMetaspaceSize=1024m';
} else {
config.modResults.push({
type: 'property',
key: 'org.gradle.jvmargs',
value: '-Xmx4096m -XX:MaxMetaspaceSize=1024m',
});
}
return config;
});
export default {
expo: {
name: 'Aashray',
scheme: 'aashray',
slug: 'aashray',
version: '1.1.61',
orientation: 'portrait',
icon: './src/assets/images/icon.png',
userInterfaceStyle: 'automatic',
assetBundlePatterns: ['**/*'],
updates: {
enabled: true,
fallbackToCacheTimeout: 0,
},
runtimeVersion: {
policy: 'sdkVersion',
},
ios: {
icon: './src/assets/images/icon.icon',
supportsTablet: true,
package: 'org.vitraagvigyaan.aashray',
bundleIdentifier: 'org.vitraagvigyaan.aashray',
associatedDomains: ['applinks:aashray.vitraagvigyaan.org'],
googleServicesFile: process.env.GOOGLE_SERVICES_PLIST,
infoPlist: {
LSApplicationQueriesSchemes: ['tez', 'phonepe', 'paytmmp'],
NSCameraUsageDescription:
'We need your images so that our guruji can view it before meetings.',
NSPhotoLibraryUsageDescription:
'We need access to your photo library so you can select photos for our guruji to view before meetings.',
ITSAppUsesNonExemptEncryption: false,
},
},
android: {
package: 'org.vitraagvigyaan.aashray',
// Photo selection uses the Android system photo picker (expo-image-picker's
// PickVisualMedia), which needs no broad media access. Block these so a
// transitive manifest merge can never re-introduce them and trip the
// Google Play "one-time/infrequent photo use" policy.
blockedPermissions: [
'android.permission.READ_MEDIA_IMAGES',
'android.permission.READ_MEDIA_VIDEO',
],
predictiveBackGestureEnabled: true,
adaptiveIcon: {
foregroundImage: './src/assets/images/adaptive-icon.png',
monochromeImage: './src/assets/images/adaptive-icon.png',
backgroundColor: '#ffffff',
},
googleServicesFile: process.env.GOOGLE_SERVICES_JSON,
intentFilters: [
{
action: 'VIEW',
autoVerify: true,
data: [
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/adhyayan',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/adhyayan/feedback',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/utsav',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/utsav/feedback',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/event',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/wifi',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/menu',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/maintenanceRequestList',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/pendingPayments',
},
{
scheme: 'https',
host: 'aashray.vitraagvigyaan.org',
pathPrefix: '/bookings',
},
],
category: ['BROWSABLE', 'DEFAULT'],
},
{
action: 'VIEW',
data: [
{
scheme: 'aashray',
},
],
category: ['BROWSABLE', 'DEFAULT'],
},
],
},
plugins: [
[
'expo-router',
{
origin: 'https://aashray.vitraagvigyaan.org',
},
],
'@react-native-firebase/app',
[
'expo-build-properties',
{
android: {
minSdkVersion: 26,
enableProguardInReleaseBuilds: true,
enableShrinkResourcesInReleaseBuilds: true,
extraProguardRules: `
-keepattributes *Annotation*
-dontwarn com.razorpay.**
-keep class com.razorpay.** {*;}
-optimizations !method/inlining/
-keepclasseswithmembers class * {
public void onPayment*(...);
}
-keepclassmembers class * {
@android.webkit.JavascriptInterface <methods>;
}
`,
},
ios: {
useFrameworks: 'static',
buildReactNativeFromSource: true,
extraPods: [{ name: 'razorpay-pod', version: '1.5.3' }],
// Xcode 27 / iOS 27 SDK require the UIScene life cycle. Opt-in on SDK 57; default from
// SDK 58, where this becomes a no-op and should be removed.
enableSceneSupport: true,
},
},
],
[
'@sentry/react-native/expo',
{
url: 'https://sentry.io/',
project: 'react-native',
organization: 'vendz',
// Without this, only the JS/Hermes side of a native Android crash
// gets symbolicated — ART/libc frames (SIGABRT, native asserts)
// stay as raw addresses. This uploads the missing NDK symbols.
experimental_android: {
enableAndroidGradlePlugin: true,
},
},
],
[
'expo-notifications',
{
icon: './src/assets/images/logo.png',
enableBackgroundRemoteNotifications: true,
},
],
[
'expo-splash-screen',
{
backgroundColor: '#ffffff',
image: './src/assets/images/logo.png',
dark: {
image: './src/assets/images/logo.png',
backgroundColor: '#000000',
},
imageWidth: 200,
},
],
[
'react-native-edge-to-edge',
{
android: {
parentTheme: 'Material2',
enforceNavigationBarContrast: false,
},
},
],
'expo-font',
withIncreasedGradleMemory,
],
extra: {
router: {
origin: false,
},
eas: {
projectId: 'c4c70213-3142-47aa-b3b1-2fbedc8bfaad',
},
},
owner: 'vitraagvigyaan',
},
experiments: {
buildCacheProvider: 'eas',
reactCompiler: true,
},
};