Skip to content

Commit

Permalink
General Updates (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Dec 1, 2024
2 parents fa2e5e1 + bd93078 commit 9277079
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 28 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

| Android | iOS | Windows | GNU/Linux | MacOS |
| ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [arm64 `.apk`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-android-arm64-v8a-release.apk) | [App Store](https://apps.apple.com/us/app/bluecherry-mobile/id1555805139) | [Windows Setup](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-windows-setup.exe) | 🚧 **SOON** ~~`AppImage`~~ | [Executable `.app`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-macos.7z) |
| [arm64 `.apk`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-android-arm64-v8a-release.apk) | [App Store](https://apps.apple.com/us/app/bluecherry-mobile/id1555805139) | [Windows Setup](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-windows-setup.exe) | [SnapStore](https://snapcraft.io/bluecherry-client) | [Executable `.app`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-macos.7z) |
| [armabi `.apk`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-android-armeabi-v7a-release.apk) | | 🚧 **SOON** ~~`winget install bluecherry`~~ | [Ubuntu/Debian `.deb`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-linux-x86_64.deb) | 🚧 **SOON** ~~[App Store](https://github.com/bluecherrydvr/unity/issues/112)~~ |
| [x86_64 `.apk`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-android-x86_64-release.apk) | | 🚧 **SOON** ~~Microsoft Store~~ | [Raw Executable `.tar.gz`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-linux-x86_64.tar.gz) | |
| 🚧 **SOON** ~~Play Store~~ | | | [Fedora/Red Hat Linux `.rpm`](https://github.com/bluecherrydvr/unity/releases/download/v3.0.0-beta20/bluecherry-linux-x86_64.rpm) | |
Expand All @@ -54,6 +54,14 @@ Or download the latest release [here](https://github.com/bluecherrydvr/unity/rel

Most platforms will not require any extra steps to install the app.

#### Android

Download the APK file and install it. You may need to enable installation from unknown sources in your settings.

#### Windows

Download the installer and run it. The app will be installed in the `Program Files` directory.

#### Linux

To install the `.deb` file, download it and run:
Expand Down
4 changes: 2 additions & 2 deletions lib/providers/mobile_view_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ class MobileViewProvider extends UnityProvider {
/// Pass [notifyListeners] as `false` to prevent redundant redraws.
@override
Future<void> save({bool notifyListeners = true}) async {
final data = devices.map(
final data = devices.map<String, List<Map<String, dynamic>?>>(
(key, value) => MapEntry(
key.toString(),
value.map<Map<String, dynamic>?>((e) => e?.toJson()),
value.map<Map<String, dynamic>?>((e) => e?.toJson()).toList(),
),
);

Expand Down
1 change: 1 addition & 0 deletions lib/screens/events_timeline/desktop/timeline.dart
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ class Timeline extends ChangeNotifier {
for (final tile in tiles) {
tile.videoController.dispose();
}
tiles.clear();
zoomController.dispose();
super.dispose();
}
Expand Down
2 changes: 0 additions & 2 deletions lib/screens/events_timeline/desktop/timeline_sidebar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ class _TimelineSidebarState extends State<TimelineSidebar> with Searchable {
),
margin: const EdgeInsetsDirectional.only(end: 4.0, top: 4.0, start: 4.0),
child: CollapsableSidebar(
// TODO(bdlukaa): This is not working because offline devices are being
// marked as selected.
initiallyClosed:
eventsProvider.selectedDevices.isNotEmpty || isEmbedded,
left: false,
Expand Down
6 changes: 1 addition & 5 deletions lib/utils/keyboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,7 @@ class KeybindingSetting {
required this.system,
required this.key,
required this.def,
}) {
Future.microtask(() async {
_value = await defaultValue;
});
}
});

String saveAs(SingleActivator activator) {
return [
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/ptz.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class PTZToggleButton extends StatelessWidget {
tooltip: ptzEnabled ? loc.enabledPTZ : loc.disabledPTZ,
onPressed: () => onChanged(!ptzEnabled),
),
// TODO(bdlukaa): enable presets when the API is ready
// TODO(bdlukaa): Enable presets when the API is ready
// SquaredIconButton(
// icon: Icon(
// Icons.dataset,
Expand Down
32 changes: 16 additions & 16 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,10 @@ packages:
dependency: "direct main"
description:
name: flutter_secure_storage
sha256: "165164745e6afb5c0e3e3fcc72a012fb9e58496fb26ffb92cf22e16a821e85d0"
sha256: "22dbf16f23a4bcf9d35e51be1c84ad5bb6f627750565edd70dab70f3ff5fff8f"
url: "https://pub.dev"
source: hosted
version: "9.2.2"
version: "8.1.0"
flutter_secure_storage_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -415,10 +415,10 @@ packages:
dependency: transitive
description:
name: flutter_secure_storage_windows
sha256: b20b07cb5ed4ed74fc567b78a72936203f587eba460af1df11281c9326cd3709
sha256: "38f9501c7cb6f38961ef0e1eacacee2b2d4715c63cc83fe56449c4d3d0b47255"
url: "https://pub.dev"
source: hosted
version: "3.1.2"
version: "2.1.1"
flutter_simple_treeview:
dependency: "direct main"
description:
Expand Down Expand Up @@ -658,7 +658,7 @@ packages:
description:
path: "libs/android/media_kit_libs_android_video"
ref: HEAD
resolved-ref: "143143ac17bb0d9664a9df8dc3e4101748e952b4"
resolved-ref: "436735bd8d196e2a82bb21ac4463273db1b17e89"
url: "https://github.com/media-kit/media-kit/"
source: git
version: "1.3.6"
Expand All @@ -667,7 +667,7 @@ packages:
description:
path: "libs/ios/media_kit_libs_ios_video"
ref: HEAD
resolved-ref: "143143ac17bb0d9664a9df8dc3e4101748e952b4"
resolved-ref: "436735bd8d196e2a82bb21ac4463273db1b17e89"
url: "https://github.com/media-kit/media-kit/"
source: git
version: "1.1.4"
Expand All @@ -676,7 +676,7 @@ packages:
description:
path: "libs/macos/media_kit_libs_macos_video"
ref: HEAD
resolved-ref: "143143ac17bb0d9664a9df8dc3e4101748e952b4"
resolved-ref: "436735bd8d196e2a82bb21ac4463273db1b17e89"
url: "https://github.com/media-kit/media-kit/"
source: git
version: "1.1.4"
Expand All @@ -685,7 +685,7 @@ packages:
description:
path: "libs/windows/media_kit_libs_windows_video"
ref: HEAD
resolved-ref: "143143ac17bb0d9664a9df8dc3e4101748e952b4"
resolved-ref: "436735bd8d196e2a82bb21ac4463273db1b17e89"
url: "https://github.com/media-kit/media-kit/"
source: git
version: "1.0.10"
Expand Down Expand Up @@ -789,10 +789,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: c464428172cb986b758c6d1724c603097febb8fb855aa265aeecc9280c294d4a
sha256: "8c4967f8b7cb46dc914e178daa29813d83ae502e0529d7b0478330616a691ef7"
url: "https://pub.dev"
source: hosted
version: "2.2.12"
version: "2.2.14"
path_provider_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -853,10 +853,10 @@ packages:
dependency: transitive
description:
name: permission_handler_html
sha256: "6b9cb54b7135073841a35513fba39e598b421702d5f4d92319992fd6eb5532a9"
sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24"
url: "https://pub.dev"
source: hosted
version: "0.1.3+4"
version: "0.1.3+5"
permission_handler_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -1269,10 +1269,10 @@ packages:
dependency: transitive
description:
name: video_player_avfoundation
sha256: cd5ab8a8bc0eab65ab0cea40304097edc46da574c8c1ecdee96f28cd8ef3792f
sha256: "0b146e5d82e886ff43e5a46c6bcbe390761b802864a6e2503eb612d69a405dfa"
url: "https://pub.dev"
source: hosted
version: "2.6.2"
version: "2.6.3"
video_player_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -1333,10 +1333,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: "84ba388638ed7a8cb3445a320c8273136ab2631cd5f2c57888335504ddab1bc2"
sha256: "8b338d4486ab3fbc0ba0db9f9b4f5239b6697fcee427939a40e720cbb9ee0a69"
url: "https://pub.dev"
source: hosted
version: "5.8.0"
version: "5.9.0"
win32_registry:
dependency: "direct main"
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies:
path_provider: ^2.1.2
file_picker: ^8.1.2
safe_local_storage: ^1.0.2 # This is required because media_kit is still locked to this version. When bumped in the upstream package, this can be removed
flutter_secure_storage: ^9.2.2
flutter_secure_storage: ^8.1.0 # Locked to this version because of https://github.com/juliansteenbakker/flutter_secure_storage/issues/634

permission_handler: ^11.1.0
uuid: ^4.3.3
Expand Down

0 comments on commit 9277079

Please sign in to comment.