add networkSecurityConfig

pull/32/head
gedoor 6 years ago
parent cd211f87a9
commit 44307e3701
  1. 3
      app/src/main/AndroidManifest.xml
  2. 4
      app/src/main/res/xml/network_security_config.xml

@ -21,10 +21,11 @@
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme.Light"
tools:ignore="AllowBackup,GoogleAppIndexingWarning">
tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute">
<activity
android:name=".ui.main.MainActivity"
android:label="@string/app_name">

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
Loading…
Cancel
Save