Merge remote-tracking branch 'origin/react-app'
This commit is contained in:
44
react-app/app.config.js
Normal file
44
react-app/app.config.js
Normal file
@@ -0,0 +1,44 @@
|
||||
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',
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user