-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathapp.config.ts
102 lines (96 loc) · 2.76 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
import { AppEnv } from '@internxt-mobile/types/app';
import { ExpoConfig } from 'expo/config';
import env from './env';
import packageJson from './package.json';
export enum AppStage {
Development = 'development',
Test = 'test',
Staging = 'staging',
Production = 'production',
}
const stage = AppStage.Production; // <- CHANGE STAGE
const packageVersion = packageJson.version.replace('v', '');
const RELEASE_ID = `${packageVersion} (${env[stage].APP_BUILD_NUMBER}) - ${stage}`;
const appConfig: ExpoConfig & { extra: AppEnv & { NODE_ENV: AppStage; RELEASE_ID: string } } = {
name: 'Internxt',
scheme: 'inxt',
slug: 'drive-mobile',
version: packageVersion,
orientation: 'portrait',
splash: {
image: './assets/images/splash.png',
resizeMode: 'cover',
backgroundColor: '#091e42',
},
updates: {
url: 'https://u.expo.dev/680f4feb-6315-4a50-93ec-36dcd0b831d2',
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ['**/*'],
runtimeVersion: packageVersion,
ios: {
jsEngine: 'jsc',
icon: './assets/icon-ios.png',
supportsTablet: true,
bundleIdentifier: 'com.internxt.snacks',
usesIcloudStorage: true,
backgroundColor: '#FFFFFF',
associatedDomains: ['webcredentials:www.internxt.com'],
buildNumber: env[stage].IOS_BUILD_NUMBER.toString(),
infoPlist: {
NSFaceIDUsageDescription: 'Protect the app access to secure the available files',
NSCameraUsageDescription:
'Allow $(PRODUCT_NAME) to access your camera to upload a newly captured photo to the storage service',
NSPhotoLibraryAddUsageDescription: 'Allow $(PRODUCT_NAME) to save/download photos from the storage service',
NSPhotoLibraryUsageDescription:
'Allow $(PRODUCT_NAME) to access your photos to sync your device camera roll with our Photos cloud service',
},
},
android: {
jsEngine: 'hermes',
versionCode: env[stage].ANDROID_VERSION_CODE,
icon: './assets/icon-android.png',
adaptiveIcon: {
foregroundImage: './assets/icon-android.png',
backgroundColor: '#091e42',
},
package: 'com.internxt.cloud',
intentFilters: [
{
action: 'VIEW',
data: [
{
mimeType: '*/*',
},
],
},
{
action: 'VIEW',
category: ['BROWSABLE', 'DEFAULT'],
data: [
{
scheme: 'inxt',
},
],
},
],
},
androidStatusBar: {
barStyle: 'light-content',
backgroundColor: '#091e42',
},
androidNavigationBar: {
barStyle: 'dark-content',
backgroundColor: '#091e42',
},
extra: {
eas: {
projectId: '680f4feb-6315-4a50-93ec-36dcd0b831d2',
},
NODE_ENV: stage,
RELEASE_ID,
...env[stage],
},
plugins: ['expo-font'],
};
export default appConfig;