Skip to content

Commit

Permalink
chore: Beta 18 (bluecherrydvr#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Jul 11, 2024
2 parents 7c4339a + 4240ddd commit 26770a0
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 11 deletions.
5 changes: 5 additions & 0 deletions bluecherry_appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
<channel>
<title>Bluecherry - Appcast</title>
<item>
<title>Version 3.0.0-beta18</title>
<description>Time Filter for Events; Fixed crash on newer versions of Windows.</description>
<pubDate>Wed, 10 Jul 2024</pubDate>
</item>
<item>
<title>Version 3.0.0-beta17</title>
<description>Fixed Secondary Windows; Improved logging; and Addressed memory leaks and stream continuity.</description>
Expand Down
2 changes: 1 addition & 1 deletion installer/windows-installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Bluecherry DVR"
#define MyAppVersion "3.0.0-beta17"
#define MyAppVersion "3.0.0-beta18"
#define MyAppPublisher "Bluecherry DVR"
#define MyAppURL "https://www.bluecherrydvr.com/"
#define MyAppExeName "bluecherry_client.exe"
Expand Down
11 changes: 8 additions & 3 deletions lib/providers/downloads_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,15 @@ class DownloadsManager extends UnityProvider {
final docsDir = await getApplicationSupportDirectory();
dir = Directory(path.join(docsDir.path, 'downloads'));
}
} on StateError catch (e) {
debugPrint('Failed to get default downloads directory: $e');
} catch (error, stack) {
debugPrint('Failed to get default downloads directory: $error\n$stack');
final docsDir = await getApplicationSupportDirectory();
dir = Directory(path.join(docsDir.path, 'downloads'));
debugPrint('Failed to get default downloads directory:$error\n$stack');
} finally {
if (dir == null) {
final docsDir = await getApplicationSupportDirectory();
dir = Directory(path.join(docsDir.path, 'downloads'));
}
}

debugPrint('The default downloads is ${dir.path}');
Expand Down
7 changes: 5 additions & 2 deletions lib/providers/events_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ extension EventsScreenProvider on EventsProvider {
loadedEvents = LoadedEvents();
_notify();

startDate ??= this.startDate;
endDate ??= this.endDate;

// Load the events at the same time
await Future.wait(ServersProvider.instance.servers.map((server) async {
if (!server.online || server.devices.isEmpty) return;
Expand All @@ -158,8 +161,8 @@ extension EventsScreenProvider on EventsProvider {
await Future.wait(allowedDevices.map((device) async {
final iterable = (await API.instance.getEvents(
server,
startTime: startDate ?? this.startDate,
endTime: endDate ?? this.startDate,
startTime: startDate?.toUtc(),
endTime: endDate?.toUtc(),
device: device,
))
.toList()
Expand Down
1 change: 0 additions & 1 deletion lib/providers/settings_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ class SettingsProvider extends UnityProvider {
try {
return (await DownloadsManager.kDefaultDownloadsDirectory).path;
} catch (e) {
debugPrint('Error getting default downloads directory: $e');
return '';
}
},
Expand Down
2 changes: 1 addition & 1 deletion linux/debian/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: bluecherrydvr
Version: 3.0.0-beta17
Version: 3.0.0-beta18
Section: base
Priority: optional
Homepage: https://www.bluecherrydvr.com/
Expand Down
1 change: 1 addition & 0 deletions linux/debian/usr/share/metainfo/bluecherry.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<launchable type="desktop-id">bluecherrydvr.desktop</launchable>
<releases>
<!-- <release version="VERSION" date="YYYY-MM-DD" />| -->
<release version="3.0.0-beta18" date="2024-07-10" />|
<release version="3.0.0-beta17" date="2024-06-07" />|
<release version="3.0.0-beta16" date="2024-04-15" />|
<release version="3.0.0-beta15" date="2024-03-05" />|
Expand Down
2 changes: 1 addition & 1 deletion linux/rpm/bluecherry.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: bluecherrydvr
Version: 3.0.0_beta16
Version: 3.0.0_beta18
Release: 1
Summary: Bluecherry client written in Flutter.
License: EULA
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Bluecherry client written in Flutter.

publish_to: "none"

version: 3.0.0-beta17
version: 3.0.0-beta18

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bluecherry-client
version: 3.0.0-beta17
version: 3.0.0-beta18
summary: Bluecherry DVR Client
description: Bluecherry DVR client

Expand Down

0 comments on commit 26770a0

Please sign in to comment.