Skip to content

Commit 897c744

Browse files
committed
Bump version number. Lib: Fix potential crash in newReleasesFromFavoriteArtists().
1 parent 2189881 commit 897c744

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

TidalSwift.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@
14441444
CODE_SIGN_IDENTITY = "Apple Development";
14451445
CODE_SIGN_STYLE = Automatic;
14461446
COMBINE_HIDPI_IMAGES = YES;
1447-
CURRENT_PROJECT_VERSION = 29;
1447+
CURRENT_PROJECT_VERSION = 30;
14481448
DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content";
14491449
DEVELOPMENT_TEAM = V7E5P7292M;
14501450
ENABLE_HARDENED_RUNTIME = YES;
@@ -1474,7 +1474,7 @@
14741474
CODE_SIGN_IDENTITY = "Apple Development";
14751475
CODE_SIGN_STYLE = Automatic;
14761476
COMBINE_HIDPI_IMAGES = YES;
1477-
CURRENT_PROJECT_VERSION = 29;
1477+
CURRENT_PROJECT_VERSION = 30;
14781478
DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content";
14791479
DEVELOPMENT_TEAM = V7E5P7292M;
14801480
ENABLE_HARDENED_RUNTIME = YES;

TidalSwiftLib/Codables/Albums.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public enum AlbumSorting: Int, Codable {
113113
}
114114

115115
extension Array where Element == Album {
116-
public func sortedAlbums(by sorting: AlbumSorting) -> [Album] {
116+
public func sortedAlbums(by sorting: AlbumSorting) -> [Album] { // TODO: Add reversed parameter
117117
switch sorting {
118118
case .dateAdded:
119119
return self

TidalSwiftLib/Helpers.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class Helpers {
3838
allReleases += albums
3939
}
4040

41-
allReleases.sort { $0.releaseDate! > $1.releaseDate! }
41+
allReleases.sort { $0.releaseDate ?? Date.distantPast > $1.releaseDate ?? Date.distantPast }
4242
return Array(allReleases.prefix(number))
4343
}
4444
}

0 commit comments

Comments
 (0)