-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.config.ts
81 lines (78 loc) · 2.31 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
import { type ExpoConfig } from 'expo/config';
import 'ts-node/register'; // Add this to import TypeScript files
const value = (prodValue: string, devValue: string) => (process.env.NODE_ENV === 'production' ? prodValue : devValue);
const config: ExpoConfig = {
name: 'fzuhelper-app',
slug: 'fzuhelper-app',
version: '7.0.0',
orientation: 'portrait',
icon: './assets/images/icon.png',
scheme: 'fzuhelper',
userInterfaceStyle: 'automatic',
ios: {
bundleIdentifier: 'FzuHelper.FzuHelper',
buildNumber: '7.0.0',
supportsTablet: true,
},
android: {
package: value('com.helper.west2ol.fzuhelper', 'com.helper.west2ol.fzuhelper.dev'),
versionCode: 700001,
},
web: {
bundler: 'metro',
output: 'static',
favicon: './assets/images/icon.png',
},
plugins: [
'expo-router',
[
'expo-build-properties',
{
android: {
useLegacyPackaging: true,
enableProguardInReleaseBuilds: true,
},
},
],
'./inject-android-config',
'./inject-ios-prebuild',
[
'./modules/umeng-bridge/app.plugin.js',
{
// Android
AndroidAppKey: '677631911233c160e700af49', // 发布(正式包名)时需更换
channel: 'default', // Android渠道号
msgsec: 'd494151a2eed479371d1e13c0f52b1fa', // 仅供 Android,iOS 是证书鉴权,具体参考 KeeWeb
// iOS
iOSAppKey: '679132946d8fdd4ad83ab20e', // 发布(正式包名)时需更换
bridgingSourcePath: './modules/umeng-bridge/ios/ExpoUmeng-Bridging-Header.h', // (iOS) 源路径(相对于 app.plugin.js 文件)
bridgingTargetPath: 'Bridging/ExpoUmeng-Bridging-Header.h', // (iOS) 目标路径(相对于 ios 文件夹)这个文件可以不更改
},
],
[
'react-native-edge-to-edge',
{
android: {
parentTheme: 'Material2',
enforceNavigationBarContrast: false,
},
},
],
[
'expo-splash-screen',
{
image: './assets/images/icon_transparent.png',
// 不设置默认的 backgroundColor,会导致 logo 透明背景被改变
dark: {
backgroundColor: '#000000',
},
imageWidth: 200,
},
],
'./with-android-theme',
],
experiments: {
typedRoutes: true,
},
};
export default config;