Polish iPhone library layout

This commit is contained in:
diyaa
2026-06-02 08:59:44 +02:00
parent a147e98b21
commit a4f83ef151
4 changed files with 944 additions and 319 deletions
@@ -213,7 +213,9 @@ func makeViewModel(
favoriteTrackStore: any FavoriteTrackStore = InMemoryFavoriteTrackStore(),
audioFiles: [String: Data] = [:],
artworkPayloadsByArtworkID: [String: Data] = [:],
player: (any iPhoneLocalAudioPlaying)? = nil
player: (any iPhoneLocalAudioPlaying)? = nil,
apiClient: (any VelodyAPIClient)? = nil,
keychainService: any KeychainService = MemoryKeychainService()
) -> iPhoneLibraryViewModel {
let repository = TestRemoteLibraryRepository(tracks: remoteTracks)
let downloadStateStore = InMemoryRemoteTrackDownloadStateStore(states: downloadStates)
@@ -241,7 +243,7 @@ func makeViewModel(
baseURL: ServerEnvironment.defaultLocalBaseURL,
appVersion: "Tests"
),
apiClient: URLSessionVelodyAPIClient(
apiClient: apiClient ?? URLSessionVelodyAPIClient(
environment: ServerEnvironment(
baseURL: ServerEnvironment.defaultLocalBaseURL,
appVersion: "Tests"
@@ -251,7 +253,7 @@ func makeViewModel(
offlineLibraryService: offlineLibraryService,
favoriteTrackStore: favoriteTrackStore,
player: player ?? TestPlayer(),
keychainService: MemoryKeychainService()
keychainService: keychainService
)
}