add network_security_config

This commit is contained in:
lixingcong 2018-03-15 11:19:58 +08:00
parent 96f27fe819
commit 7fb6ca3bb9
2 changed files with 10 additions and 0 deletions

View File

@ -119,6 +119,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Twidere.NoActionBar"
android:networkSecurityConfig="@xml/network_security_config"
tools:ignore="UnusedAttribute">
<uses-library
android:name="com.sec.android.app.multiwindow"

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>