From 35e78716bbeb40917a94e2a7334bae4af55f186e Mon Sep 17 00:00:00 2001 From: Emil Johansson Date: Sun, 12 Jan 2020 11:18:53 +0100 Subject: [PATCH] Add debug network security config to allow http traffic. Android api level 28+ seems to not allow http traffic by default. This breaks react-native debugging that relies on fetching artifacts over http for quick iteration. See react native github isse https://github.com/facebook/react-native/issues/22375 for more details. --- .../app/src/debug/res/xml/network_security_config.xml | 6 ++++++ mobile/android/app/src/main/AndroidManifest.xml | 1 + 2 files changed, 7 insertions(+) create mode 100644 mobile/android/app/src/debug/res/xml/network_security_config.xml diff --git a/mobile/android/app/src/debug/res/xml/network_security_config.xml b/mobile/android/app/src/debug/res/xml/network_security_config.xml new file mode 100644 index 000000000..de61259aa --- /dev/null +++ b/mobile/android/app/src/debug/res/xml/network_security_config.xml @@ -0,0 +1,6 @@ + + + + localhost + + diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/android/app/src/main/AndroidManifest.xml index 8bf2afda4..04781915a 100644 --- a/mobile/android/app/src/main/AndroidManifest.xml +++ b/mobile/android/app/src/main/AndroidManifest.xml @@ -18,6 +18,7 @@