This repository was archived by the owner on Apr 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
133 lines (128 loc) · 3.4 KB
/
app.config.js
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
/*********************
* You need the following values in your env to build for staging or production:
*
* export GA_API_KEY="..."
* export OC_MOBILE_GH_AUTH_TOKEN="..."
*
* You can find GA_API_KEY (also known as Firebase apiKey from OC's GA account), and you can get a github auth token from your own account
***********************/
const whitelistedOrigins = [
"https://carrot.io",
"https://*.carrot.io",
"https://www.filestackapi.com",
"https://static.filestackapi.com",
"https://www.dropbox.com",
"https://login.live.com",
"https://www.box.com",
"https://*.youtube.com",
"https://*.loom.com",
"https://*.useloom.com",
"https://*.appcues.com",
"https://*.vimeo.com",
"https://js.stripe.com",
"https://m.stripe.network",
"https://*.doubleclick.net",
];
const localDevHost = process.env.LOCAL_DEV_HOST || "localhost";
const localDevPort = process.env.LOCAL_DEV_PORT || "3559";
const devWhitelistedOrigins = [
...whitelistedOrigins,
`http://${localDevHost}`
];
const version = "1.3.0";
const buildVersion = 25;
export default {
name: "Carrot",
version: version,
slug: "carrot-mobile",
scheme: "carrot",
description: "Asynchronous communication for teams",
privacy: "public",
sdkVersion: "39.0.0",
githubUrl: "https://github.com/open-company/open-company-mobile",
platforms: [
"ios",
"android"
],
orientation: "portrait",
primaryColor: "#6833F1",
updates: {
fallbackToCacheTimeout: 0
},
assetBundlePatterns: [
"**/*"
],
notification: {
icon: "./assets/android-notification-icon.png"
},
userInterfaceStyle: "automatic",
hooks: {
postPublish: [
{
file: "sentry-expo/upload-sourcemaps",
config: {
organization: "opencompany",
project: "open-company-mobile",
authToken: process.env.OC_MOBILE_GH_AUTH_TOKEN
}
}
]
},
web: {
config: {
firebase: {
apiKey: process.env.GA_API_KEY,
measurementId: "1:577193868724:android:802be8d5557ad8ad1606e1"
}
}
},
splash: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#FBFAF7"
},
ios: {
supportsTablet: false,
bundleIdentifier: "io.carrot.mobile",
buildNumber: buildVersion.toString(),
icon: "./assets/ios-icon.png"
},
android: {
package: "io.carrot.mobile",
versionCode: buildVersion,
permissions: [],
icon: "./assets/android-icon.png",
useNextNotificationsApi: true
},
// All values in extra will be passed to your app.
extra: {
envs: {
dev: {
debug: true,
sentryEnvironment: "local",
// Change this to your local development tunnel
webViewUrl: `http://${localDevHost}:${localDevPort}/login/desktop`,
whitelistedOrigins: devWhitelistedOrigins,
},
staging: {
debug: true,
sentryEnvironment: "staging",
webViewUrl: 'https://staging.carrot.io/login/desktop',
whitelistedOrigins,
},
beta: {
debug: false,
sentryEnvironment: "beta",
webViewUrl: 'https://carrot.io/login/desktop',
whitelistedOrigins,
},
prod: {
debug: false,
sentryEnvironment: "production",
webViewUrl: 'https://carrot.io/login/desktop',
whitelistedOrigins,
}
},
sentryDSN: "https://bbf1b206b8654bc9914547da4abcb50c@o23653.ingest.sentry.io/5480224"
}
};