From 314771cce2d648400811030f71602972529e33f7 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 8 Apr 2019 15:15:11 +0200 Subject: [PATCH] Allow cleartext communication on localhost (Fixes #98) --- vector/src/main/AndroidManifest.xml | 1 + .../src/main/res/xml/network_security_config.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 vector/src/main/res/xml/network_security_config.xml diff --git a/vector/src/main/AndroidManifest.xml b/vector/src/main/AndroidManifest.xml index 48b93bbc..bea4280e 100644 --- a/vector/src/main/AndroidManifest.xml +++ b/vector/src/main/AndroidManifest.xml @@ -11,6 +11,7 @@ android:allowBackup="false" 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" diff --git a/vector/src/main/res/xml/network_security_config.xml b/vector/src/main/res/xml/network_security_config.xml new file mode 100644 index 00000000..f262e29e --- /dev/null +++ b/vector/src/main/res/xml/network_security_config.xml @@ -0,0 +1,15 @@ + + + + + + + + + + localhost + + 10.0.2.2 + + +