Files
life-echo/react-app/app.config.js

45 lines
1.1 KiB
JavaScript
Raw Normal View History

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',
},
},
};