-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
83 lines (81 loc) · 1.81 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
import path from 'path';
import type { ConfigContext, ExpoConfig } from '@expo/config';
import { ClientEnv, Env } from './env';
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
scheme: Env.BUNDLE_ID,
name: Env.NAME,
description: `${Env.NAME} Mobile App`,
slug: 'expo-supabase-social-auth',
version: Env.VERSION.toString(),
orientation: 'portrait',
icon: path.resolve(__dirname, 'src/assets/images/icon.png'),
userInterfaceStyle: 'automatic',
splash: {
image: path.resolve(__dirname, 'src/assets/images/splash.png'),
resizeMode: 'cover',
backgroundColor: '#61C4E3',
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ['**/*'],
ios: {
supportsTablet: true,
bundleIdentifier: Env.BUNDLE_ID,
buildNumber: Env.BUILD_VERSION.toString(),
config: {
usesNonExemptEncryption: false,
},
},
android: {
adaptiveIcon: {
foregroundImage: path.resolve(__dirname, 'src/assets/images/adaptive-icon.png'),
backgroundColor: '#FFFFFF',
},
package: Env.PACKAGE,
versionCode: Env.BUILD_VERSION,
},
plugins: [
'expo-router',
[
'app-icon-badge',
{
enabled: Env.APP_ENV === 'production' ? false : true,
badges: [
{
text: Env.APP_ENV,
type: 'banner',
color: 'white',
},
{
text: Env.VERSION.toString(),
type: 'ribbon',
color: 'white',
},
],
},
],
[
'expo-build-properties',
{
ios: {
flipper: true,
},
},
],
],
experiments: {
tsconfigPaths: true,
typedRoutes: true,
},
extra: {
...ClientEnv,
router: {
origin: false,
},
eas: {
projectId: Env.EAS_PROJECT_ID,
},
},
});