提交 4314abab 编写于 作者: 杜庆泉's avatar 杜庆泉

android 增加网络安全配置示例

上级 bc99c080
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
package="io.dcloud.hellouts"> package="io.dcloud.hellouts">
<application> <application android:networkSecurityConfig="@xml/custom_network_security_config"
>
<!--meta-data--> <!--meta-data-->
<meta-data android:name="TencentMapSDK" android:value="您申请的腾讯定位App Key" /> <meta-data android:name="TencentMapSDK" android:value="您申请的腾讯定位App Key" />
<!--fileprovider注册,请注意authorities 需要替换为自己的唯一标识--> <!--fileprovider注册,请注意authorities 需要替换为自己的唯一标识-->
......
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config>
<trust-anchors>
<certificates src="system"/>
</trust-anchors>
</base-config>
</network-security-config>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册