From 8834910cec87b8d01db102ba0898c239fbfe52da Mon Sep 17 00:00:00 2001 From: Ryan Jennings Date: Tue, 20 Feb 2024 09:42:34 -0800 Subject: [PATCH] fix(network config): restrict clear text by default Required since the minimum SDK is less than 27 where it became the default --- app/src/main/AndroidManifest.xml | 1 + app/src/main/res/xml/network_security_config.xml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 app/src/main/res/xml/network_security_config.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 21a7fbf4..ac3552ee 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -47,6 +47,7 @@ android:label="@string/app_name" android:requestLegacyExternalStorage="true" android:supportsRtl="true" + android:networkSecurityConfig="@xml/network_security_config" android:theme="@style/AppTheme.NoActionBar" tools:replace="android:icon,android:allowBackup" tools:ignore="UnusedAttribute"> diff --git a/app/src/main/res/xml/network_security_config.xml b/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 00000000..1edbb5f5 --- /dev/null +++ b/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file