chore: 添加域名信任

This commit is contained in:
Junhui Chen 2025-08-04 19:13:59 +08:00
parent 240601b97b
commit cfc1b71207
2 changed files with 17 additions and 1 deletions

View File

@ -11,6 +11,14 @@
"ios": {
"supportsTablet": true,
"infoPlist": {
"NSAppTransportSecurity": {
"NSExceptionDomains": {
"192.168.20.2": {
"NSIncludesSubdomains": true,
"NSExceptionAllowsInsecureHTTPLoads": true
}
}
},
"NSPhotoLibraryUsageDescription": "允许访问照片库以便模型使用您照片库中的素材进行视频创作”例如上传您参加音乐节的现场图生成一个音乐节体验Vlog",
"NSPhotoLibraryAddUsageDescription": "App需要访问相册来保存图片",
"NSLocationWhenInUseUsageDescription": "允许获取位置信息以便模型使用您的位置信息进行个性化创作”例如上传您去欧洲旅游的位置信息结合在当地拍摄的照片生成一个欧洲旅行攻略Vlog",
@ -36,7 +44,8 @@
"WAKE_LOCK"
],
"edgeToEdgeEnabled": true,
"package": "com.memowake.app"
"package": "com.memowake.app",
"networkSecurityConfig": "@xml/network_security_config"
},
"web": {
"bundler": "metro",

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">192.168.31.16</domain> <!-- Your local dev machine -->
<domain includeSubdomains="true">192.168.20.2</domain>
</domain-config>
</network-security-config>