Move usesCleartextTraffic to network security config file

Replace android:usesCleartextTraffic="true" in both main and offline
manifests with android:networkSecurityConfig="@xml/network_security_config",
and introduce app/src/main/res/xml/network_security_config.xml with
<base-config cleartextTrafficPermitted="true" />.

https://claude.ai/code/session_01RBEyGLZ1hh38BJAhV54tYz
This commit is contained in:
Claude
2026-03-13 11:57:13 +00:00
parent 9bebfc2048
commit 4b2dde75ad
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
android:localeConfig="@xml/locales_config"
android:supportsRtl="true"
android:theme="@style/Theme.NostrSigner"
android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
android:windowSoftInputMode="adjustResize"
tools:targetApi="33">
<receiver
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
+1 -1
View File
@@ -14,7 +14,7 @@
android:launchMode="singleTop"
android:supportsRtl="true"
android:theme="@style/Theme.NostrSigner"
android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
android:windowSoftInputMode="adjustResize"
tools:targetApi="33">