This repository has been archived by the owner on May 7, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 148
/
Copy pathapp.config.ts
141 lines (137 loc) · 3.99 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
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
import 'dotenv/config';
import type {ConfigContext, ExpoConfig} from '@expo/config';
import {version} from './package.json';
const androidVersionCode = 42;
export default ({config}: ConfigContext): ExpoConfig => ({
...config,
name: 'HackaTalk',
slug: 'HackaTalk-Expo',
privacy: 'public',
platforms: ['ios', 'android', 'web'],
plugins: ['sentry-expo'],
version,
orientation: 'default',
icon: './assets/icon.png',
splash: {
resizeMode: 'cover',
image: './assets/splash.png',
tabletImage: './assets/splashTablet.png',
},
userInterfaceStyle: 'automatic',
scheme: 'hackatalk',
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ['**/*'],
facebookDisplayName: 'hackatalk',
facebookScheme: `fb${process.env.facebookAppId}`,
ios: {
userInterfaceStyle: 'automatic',
supportsTablet: true,
bundleIdentifier: 'com.dooboolab.hackatalk',
splash: {
resizeMode: 'cover',
image: './assets/splash.png',
tabletImage: './assets/splashTablet.png',
},
buildNumber: version,
usesAppleSignIn: true,
infoPlist: {
NSCameraUsageDescription:
'HackaTalk would like to take your picture and share your photo with users in HackaTalk.',
NSPhotoLibraryAddUsageDescription:
'HackaTalk would like to save photos that you have selected to your photo gallery',
NSPhotoLibraryUsageDescription:
'HackaTalk would like to access your gallery for you to pick one and share with others.',
NSMicrophoneUsageDescription:
'HackaTalk would like take your video and share your video with others.',
NSUserTrackingUsageDescription:
'HackaTalk would like to access IDFA for tracking purpose for qualified ads servation.',
},
appStoreUrl: 'https://apps.apple.com/us/app/hackatalk/id1479617602',
config: {
googleMobileAdsAppId: 'ca-app-pub-7837089095803162~8846750311',
},
},
android: {
splash: {
backgroundColor: '#1E6EFA',
resizeMode: 'cover',
image: './assets/splash.png',
tabletImage: './assets/splashTablet.png',
},
backgroundColor: '#FFFFFF',
versionCode: androidVersionCode,
userInterfaceStyle: 'automatic',
package: 'com.dooboolab.hackatalk',
playStoreUrl:
'https://play.google.com/store/apps/details?id=com.dooboolab.hackatalk',
permissions: [
'CAMERA',
'CAMERA_ROLL',
'READ_EXTERNAL_STORAGE',
'USE_FINGERPRINT',
'WRITE_EXTERNAL_STORAGE',
'NOTIFICATIONS',
'USER_FACING_NOTIFICATIONS',
],
googleServicesFile: './google-service.json',
config: {
googleMobileAdsAppId: 'ca-app-pub-7837089095803162~5303560311',
},
},
web: {
relatedApplications: [
{
platform: 'itunes',
url: 'https://apps.apple.com/us/app/hackatalk/id1479617602',
id: 'com.dooboolab.hackatalk',
},
{
platform: 'play',
url: 'https://play.google.com/store/apps/details?id=com.dooboolab.hackatalk',
id: 'com.dooboolab.hackatalk',
},
],
preferRelatedApplications: true,
},
packagerOpts: {
config: './metro.config.js',
sourceExts: [
'js',
'jsx',
'ts',
'tsx',
'expo.ts',
'expo.tsx',
'expo.js',
'expo.jsx',
'json',
'wasm',
'svg',
],
},
extra: {
GRAPHQL_URL: process.env.GRAPHQL_URL,
ROOT_URL: process.env.ROOT_URL,
SUBSCRIPTION_URL: process.env.SUBSCRIPTION_URL,
facebookAppId: process.env.facebookAppId,
googleWebClientId: process.env.googleWebClientId,
googleAndroidClientId: process.env.googleAndroidClientId,
googleIOSClientId: process.env.googleIOSClientId,
},
description: 'Opensource chat app',
githubUrl: 'https://github.com/dooboolab/hackatalk',
hooks: {
postPublish: [
{
file: 'sentry-expo/upload-sourcemaps',
config: {
organization: 'dooboolab',
project: 'hackatalk-client',
authToken: process.env.sentryAuthToken,
},
},
],
},
});