From 9855c6632efa4c65abc2699e0d06c2737ee4ec55 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Wed, 24 Jan 2024 16:00:41 +0100 Subject: [PATCH] Update video flux + add interactive viewer --- android/app/build.gradle | 9 ++++ android/app/proguard-rules.pro | 1 + android/app/src/main/AndroidManifest.xml | 7 +++ android/app/version.properties | 4 +- .../Custom_Navigation_Bar/custom_app_bar.dart | 1 - .../custom_bottom_navigation_bar.dart | 6 +-- .../custom_nav_item.dart | 3 +- lib/Components/check_input_container.dart | 15 +++--- lib/Helpers/DatabaseHelper.dart | 1 - lib/Helpers/MQTTHelper.dart | 7 +-- lib/Helpers/NotificationManager.dart | 1 - lib/Helpers/PushNotificationService.dart | 1 - lib/Models/homieContext.dart | 1 - lib/Screens/Debug/DebugPage.dart | 1 - .../Automations/automationDetailPage.dart | 4 -- .../Main/Devices/deviceDetailPage.dart | 5 -- lib/Screens/Main/Home/home.dart | 1 - lib/Screens/Main/Home/roomDetailPage.dart | 5 -- lib/Screens/Main/MainPage.dart | 36 +------------ .../Main/Security/alarmDetailPage.dart | 2 - lib/Screens/Main/Security/security.dart | 5 +- .../Main/Security/videoPlayerNetwork.dart | 53 +++++++++++++++++++ lib/main.dart | 4 +- macos/Flutter/GeneratedPluginRegistrant.swift | 2 + pubspec.lock | 52 +++++++++++------- pubspec.yaml | 3 +- 26 files changed, 127 insertions(+), 103 deletions(-) create mode 100644 android/app/proguard-rules.pro create mode 100644 lib/Screens/Main/Security/videoPlayerNetwork.dart diff --git a/android/app/build.gradle b/android/app/build.gradle index a8d39ed..6fb76f5 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -99,6 +99,12 @@ android { */ + packagingOptions { + // Fixes duplicate libraries build issue, + // when your project uses more than one plugin that depend on C++ libs. + pickFirst 'lib/**/libc++_shared.so' + } + signingConfigs { release { keyAlias keystoreProperties['keyAlias'] @@ -116,6 +122,9 @@ android { minifyEnabled true shrinkResources true debuggable false + proguardFiles getDefaultProguardFile( + 'proguard-android-optimize.txt'), + 'proguard-rules.pro' } } } diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000..b714dae --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1 @@ +-keep class org.videolan.libvlc.** { *; } \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4e5c213..9506e3a 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,8 @@ + +