-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathapp.config.ts
107 lines (103 loc) · 2.86 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
import 'ts-node/register';
import { type ConfigContext, type ExpoConfig } from 'expo/config';
import { blue, kitsuOrange, kitsuPurple } from './src/constants/palette';
const isDebug = process.env.EXPO_ENV === 'release' ? false : true;
export default ({ config }: ConfigContext): ExpoConfig => ({
owner: 'kitsu',
name: 'Kitsu',
slug: 'kitsu',
version: '4.0',
githubUrl: 'https://github.com/hummingbird-me/kitsu-mobile',
orientation: 'portrait',
backgroundColor: kitsuPurple[5],
primaryColor: kitsuOrange,
icon: `./src/assets/icons/launcher/${isDebug ? 'debug' : 'release'}.png`,
extra: {
eas: {
projectId: '1d3b1dca-db2b-470d-80fd-47a5f2936195',
},
},
ios: {
bundleIdentifier: `app.kitsu.mobile${isDebug ? '.debug' : ''}`,
usesAppleSignIn: true,
associatedDomains: ['applinks:kitsu.app'],
},
android: {
package: `app.kitsu.mobile${isDebug ? '.debug' : ''}`,
intentFilters: [
{
autoVerify: true,
action: 'VIEW',
data: [
{
scheme: 'https',
host: 'kitsu.app',
},
],
category: ['BROWSABLE', 'DEFAULT'],
},
],
adaptiveIcon: {
foregroundImage: `./src/assets/icons/launcher/${
isDebug ? 'debug' : 'release'
}-adaptive-foreground.png`,
monochromeImage: `./src/assets/icons/launcher/${
isDebug ? 'debug' : 'release'
}-adaptive-foreground.png`,
backgroundColor: isDebug ? blue[1] : kitsuPurple[5],
},
},
splash: {
image: undefined,
backgroundColor: kitsuPurple[5],
},
androidStatusBar: {
backgroundColor: kitsuPurple[5],
barStyle: 'light-content',
translucent: true,
},
androidNavigationBar: {
backgroundColor: kitsuPurple[5],
barStyle: 'light-content',
},
notification: {
icon: `./src/assets/icons/launcher/${
isDebug ? 'debug' : 'release'
}-adaptive-foreground.png`,
color: kitsuOrange,
},
updates: {
url: 'https://u.expo.dev/1d3b1dca-db2b-470d-80fd-47a5f2936195',
},
runtimeVersion: {
policy: 'appVersion',
},
plugins: [
'expo-secure-store',
'expo-localization',
'expo-apple-authentication',
[
'expo-font',
{
fonts: [
'node_modules/@expo-google-fonts/asap/Asap_700Bold.ttf',
'node_modules/@expo-google-fonts/open-sans/OpenSans_400Regular.ttf',
'node_modules/@expo-google-fonts/open-sans/OpenSans_600SemiBold.ttf',
'node_modules/@expo-google-fonts/open-sans/OpenSans_700Bold.ttf',
],
},
],
[
'react-native-fbsdk-next',
{
appID: '325314560922421',
clientToken: 'dbae1dbf77c13f3d6755a2a8cb116106',
displayName: 'Kitsu',
scheme: 'fb325314560922421',
advertiserIDCollectionEnabled: false,
autoLogAppEventsEnabled: false,
isAutoInitEnabled: true,
},
],
],
});