-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
87 lines (85 loc) · 2.91 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
import type { ConfigContext, ExpoConfig } from 'expo/config';
/**
* so that we can install different app based on the variant without overriding previous installed app
*/
const bundleId =
process.env.APP_VARIANT === 'development'
? 'com.rifandani.expoapp.development'
: process.env.APP_VARIANT === 'test'
? 'com.rifandani.expoapp.test'
: 'com.rifandani.expoapp';
export default ({ config }: ConfigContext): ExpoConfig => {
return {
...config,
experiments: {
typedRoutes: true,
},
plugins: [
'expo-localization',
'expo-router',
[
'expo-font',
{
fonts: [
'node_modules/@tamagui/font-inter/otf/Inter-Black.otf',
'node_modules/@tamagui/font-inter/otf/Inter-BlackItalic.otf',
'node_modules/@tamagui/font-inter/otf/Inter-Bold.otf',
'node_modules/@tamagui/font-inter/otf/Inter-BoldItalic.otf',
'node_modules/@tamagui/font-inter/otf/Inter-ExtraBold.otf',
'node_modules/@tamagui/font-inter/otf/Inter-ExtraBoldItalic.otf',
'node_modules/@tamagui/font-inter/otf/Inter-ExtraLight.otf',
'node_modules/@tamagui/font-inter/otf/Inter-ExtraLightItalic.otf',
'node_modules/@tamagui/font-inter/otf/Inter-Italic.otf',
'node_modules/@tamagui/font-inter/otf/Inter-Medium.otf',
'node_modules/@tamagui/font-inter/otf/Inter-MediumItalic.otf',
'node_modules/@tamagui/font-inter/otf/Inter-Light.otf',
'node_modules/@tamagui/font-inter/otf/Inter-LightItalic.otf',
'node_modules/@tamagui/font-inter/otf/Inter-Regular.otf',
'node_modules/@tamagui/font-inter/otf/Inter-SemiBold.otf',
'node_modules/@tamagui/font-inter/otf/Inter-SemiBoldItalic.otf',
'node_modules/@tamagui/font-inter/otf/Inter-Thin.otf',
'node_modules/@tamagui/font-inter/otf/Inter-ThinItalic.otf',
],
},
],
],
owner: 'rifandani',
name: process.env.EXPO_PUBLIC_APP_TITLE!,
slug: 'expo-app',
scheme: 'expo-app',
version: '1.0.0',
orientation: 'portrait',
userInterfaceStyle: 'automatic',
platforms: ['android', 'ios'],
assetBundlePatterns: ['**/*'],
icon: './src/assets/icon.png',
splash: {
image: './src/assets/splash.png',
resizeMode: 'cover',
backgroundColor: '#000',
},
android: {
package: bundleId,
// versionCode: 1,
adaptiveIcon: {
foregroundImage: './src/assets/adaptive-icon.png',
backgroundColor: '#000',
},
},
ios: {
bundleIdentifier: bundleId,
// buildNumber: 1,
splash: {
image: './src/assets/splash.png',
tabletImage: './src/assets/splash-tablet.png',
resizeMode: 'cover',
backgroundColor: '#000',
},
},
extra: {
eas: {
projectId: '975abfb8-c490-47ad-ab6d-7b7c8c1a063d',
},
},
};
};