From 4b66576dd6c745bf522369f480d935ce8e590a87 Mon Sep 17 00:00:00 2001 From: Szymon Piwowarczyk Date: Fri, 18 Oct 2024 08:31:42 +0200 Subject: [PATCH] fix(#23,#24) Network security config to allow http traffic --- android/app/build.gradle | 4 +-- android/app/src/main/AndroidManifest.xml | 3 +- .../main/res/xml/network_security_config.xml | 28 ++++++++----------- views/report/Report.tsx | 1 - 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 25919d2..f9ef80d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -82,8 +82,8 @@ android { applicationId "com.frigateviewer" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 17 - versionName "14.2.2" + versionCode 19 + versionName "14.2.3" } signingConfigs { debug { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 43966f6..f1d4939 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -10,7 +10,8 @@ android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:allowBackup="false" - android:theme="@style/AppTheme"> + android:theme="@style/AppTheme" + android:networkSecurityConfig="@xml/network_security_config"> - - - - - 127.0.0.1 - 10.0.0.1 - localhost - - - my.domain.com - - - - - + + + + * + + + + + + + + \ No newline at end of file diff --git a/views/report/Report.tsx b/views/report/Report.tsx index 075eeec..1b901ec 100644 --- a/views/report/Report.tsx +++ b/views/report/Report.tsx @@ -91,7 +91,6 @@ export const Report: NavigationFunctionComponent = ({componentId}) => { await crashlytics().setAttributes(settings); crashlytics().recordError(new Error('Reported by user'), 'reported'); formRef.current?.resetForm(); - crashlytics().crash(); ToastAndroid.show( intl.formatMessage(messages['toast.success']), ToastAndroid.LONG,