From 49f9b280917c900f6124110abbccec5216d8f430 Mon Sep 17 00:00:00 2001 From: Jafeng <2998840497@qq.com> Date: Mon, 3 Nov 2025 14:47:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E8=AF=95=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/frontend/android/app/src/main/AndroidManifest.xml | 4 +++- .../app/src/main/res/xml/network_security_config.xml | 8 ++++++++ apps/frontend/android/gradle.properties | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 apps/frontend/android/app/src/main/res/xml/network_security_config.xml diff --git a/apps/frontend/android/app/src/main/AndroidManifest.xml b/apps/frontend/android/app/src/main/AndroidManifest.xml index 8202fc0..87ba4a5 100644 --- a/apps/frontend/android/app/src/main/AndroidManifest.xml +++ b/apps/frontend/android/app/src/main/AndroidManifest.xml @@ -7,7 +7,9 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/AppTheme"> + android:theme="@style/AppTheme" + android:usesCleartextTraffic="true" + android:networkSecurityConfig="@xml/network_security_config"> + + + localhost + 127.0.0.1 + 10.0.2.2 + + diff --git a/apps/frontend/android/gradle.properties b/apps/frontend/android/gradle.properties index 2e87c52..a675bd6 100644 --- a/apps/frontend/android/gradle.properties +++ b/apps/frontend/android/gradle.properties @@ -20,3 +20,5 @@ org.gradle.jvmargs=-Xmx1536m # Android operating system, and which are packaged with your app's APK # https://developer.android.com/topic/libraries/support-library/androidx-rn android.useAndroidX=true +API_BASE_URL=http://10.0.2.2:4000/api +NOTIFICATION_WEBHOOK_SECRET=38f71dbf99ab510d970165e43979f945f992848406117c8597a892837331a853 \ No newline at end of file