提交 f82367f2 编写于 作者: zcdtk's avatar zcdtk

设置网络安全与服务端地址

上级 cfc05494
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">
<activity <activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
......
<?xml version='1.0' encoding='utf-8'?>
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system"/>
</trust-anchors>
</base-config>
</network-security-config>
\ No newline at end of file
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
"overrideUserAgent": "my custom user agent", "overrideUserAgent": "my custom user agent",
"appendUserAgent": "string to append", "appendUserAgent": "string to append",
"backgroundColor": "#ffffffff", "backgroundColor": "#ffffffff",
"hideLogs": true,
"server": {
"url": "http://192.168.1.2:8080"
},
"android": { "android": {
"overrideUserAgent": "my custom user agent for Android", "overrideUserAgent": "my custom user agent for Android",
"appendUserAgent": "string to append for Android", "appendUserAgent": "string to append for Android",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册