代码拉取完成,页面将自动刷新
/* eslint-disable max-lines-per-function */
import type { ConfigContext, ExpoConfig } from '@expo/config';
import type { AppIconBadgeConfig } from 'app-icon-badge/types';
import { ClientEnv, Env } from './env';
const appIconBadgeConfig: AppIconBadgeConfig = {
enabled: Env.APP_ENV !== 'production',
badges: [
{
text: Env.APP_ENV,
type: 'banner',
color: 'white',
},
{
text: Env.VERSION.toString(),
type: 'ribbon',
color: 'white',
},
],
};
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
name: Env.NAME,
description: `${Env.NAME} Mobile App`,
owner: Env.EXPO_ACCOUNT_OWNER,
scheme: Env.SCHEME,
slug: 'eu-cloud',
version: Env.VERSION.toString(),
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'automatic',
newArchEnabled: true,
runtimeVersion: '1.0.1',
updates: {
url: 'https://u.expo.dev/9d0f9588-d00f-40cf-a15c-ffd7e8bc7654', // 这里的project-id会由eas update:configure命令生成
enabled: true,
checkAutomatically: 'ON_LOAD',
fallbackToCacheTimeout: 0,
requestHeaders: {
'expo-runtime-version': '1.0.1',
'expo-channel-name': 'production',
},
},
assetBundlePatterns: ['**/*'],
ios: {
supportsTablet: true,
bundleIdentifier: Env.BUNDLE_ID,
config: {
usesNonExemptEncryption: false, // Avoid the export compliance warning on the app store
},
},
experiments: {
typedRoutes: true,
},
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#185A56',
},
package: Env.PACKAGE,
},
web: {
favicon: './assets/favicon.png',
bundler: 'metro',
},
plugins: [
[
'expo-splash-screen',
{
backgroundColor: '#185A56',
image: './assets/splash-icon.png',
imageWidth: 150,
},
],
[
'expo-font',
{
fonts: [
'./assets/fonts/Inter.ttf',
'node_modules/@ant-design/icons-react-native/fonts/antoutline.ttf',
'node_modules/@ant-design/icons-react-native/fonts/antfill.ttf',
],
},
],
'expo-localization',
'expo-router',
['app-icon-badge', appIconBadgeConfig],
['react-native-edge-to-edge'],
'expo-asset',
],
extra: {
...ClientEnv,
eas: {
projectId: Env.EAS_PROJECT_ID,
},
},
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。