Files
life-echo/react-app/app.config.js
2026-02-21 09:37:40 +01:00

45 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export default {
expo: {
name: 'react-app',
slug: 'react-app',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'light',
splash: {
image: './assets/splash-icon.png',
resizeMode: 'contain',
backgroundColor: '#ffffff',
},
ios: {
supportsTablet: true,
// 本地开发允许 HTTP 请求(连 localhost / 内网 IP
infoPlist: {
NSAppTransportSecurity: {
NSAllowsArbitraryLoads: true,
},
},
},
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#ffffff',
},
},
plugins: [
[
'expo-build-properties',
{
android: {
usesCleartextTraffic: true, // 本地开发允许 HTTP
},
},
],
],
extra: {
apiBaseUrl: process.env.EXPO_PUBLIC_API_URL || 'https://lifecho.worldsplats.com',
wsBaseUrl: process.env.EXPO_PUBLIC_WS_URL || 'wss://lifecho.worldsplats.com',
},
},
};