Polish iPhone library layout
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user