-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathapp.config.ts
129 lines (128 loc) · 3.58 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import type { ConfigContext, ExpoConfig } from 'expo/config';
import withAndroidLocalizedName from './vendors/expo-android-localized-app-name';
module.exports = ({ config }: ConfigContext): ExpoConfig => {
return {
...config,
name: '巴士到站預報 - hkbus.app',
slug: 'hkbus', // Replace with your app's slug
version: '2.9.3', // Your app's version
orientation: 'portrait',
icon: './assets/icon.png',
updates: {
fallbackToCacheTimeout: 0,
url: 'https://u.expo.dev/d05aadae-7952-423d-bc30-31504dfbf8d2',
requestHeaders: {
'expo-channel-name': 'production'
},
enabled: false
},
plugins: [
[
'expo-tracking-transparency',
{
userTrackingPermission: 'This identifier will be used to count the number of active users.'
}
],
[
'expo-location',
{
locationAlwaysAndWhenInUsePermission: 'Geolocation permission will be used to alert your arrival for the stop',
locationWhenInUsePermission: 'Your location will be used to determine the nearby bus stops',
locationAlwaysPermission: 'Geolocation permission will be used to alert your arrival for the stop',
isAndroidBackgroundLocationEnabled: true
}
],
[
'expo-notifications',
{
icon: './assets/logo96.png',
iosDisplayInForegroud: true
}
],
[
'expo-build-properties',
{
android: {
targetSdkVersion: 34,
minSdkVersion: 24,
}
}
],
//@ts-expect-error
withAndroidLocalizedName,
[
'expo-splash-screen',
{
image: './assets/icon.png',
backgroundColor: '#FDB813',
imageWidth: 150,
dark: {
image: './assets/icon_dark.png',
backgroundColor: '#000000',
},
}
]
],
ios: {
supportsTablet: true,
bundleIdentifier: 'app.hkbus',
infoPlist: {
CFBundleAllowMixedLocalizations: true,
NSLocationAlwaysAndWhenInUseUsageDescription: 'Your location will be used to determine the nearby bus stops',
NSLocationWhenInUseUsageDescription: 'Your location will be used to determine the nearby bus stops',
NSUserTrackingUsageDescription: 'This identifier will be used to count the number of active users.',
UIBackgroundModes: [
'location',
'remote-notification'
]
},
appStoreUrl: 'https://apps.apple.com/hk/app/%E5%B7%B4%E5%A3%AB%E5%88%B0%E7%AB%99%E9%A0%90%E5%A0%B1-hkbus-app/id1612184906',
associatedDomains: [
'applinks:hkbus.app'
],
buildNumber: '12'
},
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#000000'
},
package: 'app.hkbus',
versionCode: 25,
intentFilters: [
{
action: 'VIEW',
autoVerify: true,
data: [
{
scheme: 'https',
host: 'hkbus.app',
pathPrefix: '/'
}
],
category: [
'BROWSABLE',
'DEFAULT'
]
}
],
},
web: {
favicon: './assets/favicon.png'
},
extra: {
eas: {
projectId: 'd05aadae-7952-423d-bc30-31504dfbf8d2'
}
},
runtimeVersion: {
policy: 'appVersion'
},
locales: {
en: './locales/en.json',
'zh-Hant': './locales/zh-Hant.json'
},
owner: "hkbus-app",
userInterfaceStyle: "automatic"
};
};