summaryrefslogtreecommitdiff
path: root/wallet/src/main/res
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2024-01-02 10:46:30 -0300
committerTorsten Grote <t@grobox.de>2024-01-02 10:46:30 -0300
commit4d23c920fdc1a3eb0869f32a2faff4debbc653a4 (patch)
tree160506e353eba9af307cdddd2c0d584d839135d6 /wallet/src/main/res
parent35527f90cbcf286c76aa2b9f7634badd8844cb57 (diff)
downloadtaler-android-4d23c920fdc1a3eb0869f32a2faff4debbc653a4.tar.gz
taler-android-4d23c920fdc1a3eb0869f32a2faff4debbc653a4.tar.bz2
taler-android-4d23c920fdc1a3eb0869f32a2faff4debbc653a4.zip
[wallet] Fix HTTP URIs and error handling
Previously, we would crash for certain URIs. Cleartext comms only allowed for localhost.
Diffstat (limited to 'wallet/src/main/res')
-rw-r--r--wallet/src/main/res/values/strings.xml1
-rw-r--r--wallet/src/main/res/xml/network_security_config.xml6
2 files changed, 7 insertions, 0 deletions
diff --git a/wallet/src/main/res/values/strings.xml b/wallet/src/main/res/values/strings.xml
index 09feee6..058c30b 100644
--- a/wallet/src/main/res/values/strings.xml
+++ b/wallet/src/main/res/values/strings.xml
@@ -65,6 +65,7 @@ GNU Taler is immune against many types of fraud, such as phishing of credit card
<string name="offline">Operation requires internet access. Please ensure your internet connection works and try again.</string>
<string name="offline_banner">No internet access</string>
<string name="error_unsupported_uri">Error: This Taler URI is not supported.</string>
+ <string name="error_broken_uri">Error: This Taler URI is (currently) not working.</string>
<string name="menu_settings">Settings</string>
<string name="menu_retry_pending_operations">Retry Pending Operations</string>
diff --git a/wallet/src/main/res/xml/network_security_config.xml b/wallet/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..de61259
--- /dev/null
+++ b/wallet/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<network-security-config>
+ <domain-config cleartextTrafficPermitted="true">
+ <domain includeSubdomains="true">localhost</domain>
+ </domain-config>
+</network-security-config>