summaryrefslogtreecommitdiff
path: root/app/src/debug/res/xml/network_security_config.xml
blob: f9532727be741acd13b489d79be4d655cc9e4a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>