From cfc1b71207f3cedcb73647e5ffc77836756a1383 Mon Sep 17 00:00:00 2001 From: Junhui Chen Date: Mon, 4 Aug 2025 19:13:59 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E4=BF=A1=E4=BB=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 11 ++++++++++- network_security_config.xml | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 network_security_config.xml diff --git a/app.json b/app.json index 3d3bfb3..1e68492 100644 --- a/app.json +++ b/app.json @@ -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", diff --git a/network_security_config.xml b/network_security_config.xml new file mode 100644 index 0000000..7545674 --- /dev/null +++ b/network_security_config.xml @@ -0,0 +1,7 @@ + + + + 192.168.31.16 + 192.168.20.2 + +