diff options
Diffstat (limited to 'app/src/debug/res/xml/network_security_config.xml')
| -rw-r--r-- | app/src/debug/res/xml/network_security_config.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/src/debug/res/xml/network_security_config.xml b/app/src/debug/res/xml/network_security_config.xml new file mode 100644 index 0000000..f953272 --- /dev/null +++ b/app/src/debug/res/xml/network_security_config.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Debug-build-only override of app/src/main/res/xml/network_security_config.xml (AGP resource + merging picks the most specific source set for a same-named resource, so this fully replaces + the main one in debug builds; release is untouched). Adds cleartext-permitted 127.0.0.1 so + ReaderExtractor's WebView can load fixture HTML from MockWebServer in instrumented tests + (app/src/androidTest/.../ReaderExtractorFixtureTest.kt); the instrumented test and the WebView + it drives both run on-device, so the server is reached via loopback, not 10.0.2.2. +--> +<network-security-config> + <domain-config cleartextTrafficPermitted="true"> + <domain includeSubdomains="false">webpolicy.org</domain> + <domain includeSubdomains="false">bit-player.org</domain> + <domain includeSubdomains="false">127.0.0.1</domain> + <domain includeSubdomains="false">localhost</domain> + </domain-config> +</network-security-config> |
