fix: 允许明文网络流量以支持本地调试
将 AndroidManifest.xml 和 network_security_config.xml 中的 usesCleartextTraffic 和 cleartextTrafficPermitted 设置为 true,以便在开发环境中能够访问本地 HTTP 服务进行调试。
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.Lzwcaiterminaltemi"
|
android:theme="@style/Theme.Lzwcaiterminaltemi"
|
||||||
android:usesCleartextTraffic="false"
|
android:usesCleartextTraffic="true"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.robotemi.sdk.metadata.SKILL"
|
android:name="com.robotemi.sdk.metadata.SKILL"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<network-security-config>
|
<network-security-config>
|
||||||
<base-config cleartextTrafficPermitted="false" />
|
<base-config cleartextTrafficPermitted="true" />
|
||||||
<domain-config cleartextTrafficPermitted="true">
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
<domain includeSubdomains="false">localhost</domain>
|
<domain includeSubdomains="false">localhost</domain>
|
||||||
<domain includeSubdomains="false">127.0.0.1</domain>
|
<domain includeSubdomains="false">127.0.0.1</domain>
|
||||||
|
|||||||
Reference in New Issue
Block a user