Skip to content

Commit debe0cc

Browse files
committed
milestone commit towards 1.6.0
1 parent d2192f2 commit debe0cc

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/app/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ dependencies {
8888

8989
// Coroutines
9090
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
91+
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0-RC")
9192

9293
// Media3
9394
implementation("androidx.media3:media3-exoplayer:$media3Version")
@@ -100,6 +101,8 @@ dependencies {
100101

101102
// Testing
102103
testImplementation("junit:junit:4.13.2")
104+
testImplementation("io.mockk:mockk:1.13.10")
105+
testImplementation("androidx.arch.core:core-testing:2.2.0")
103106
androidTestImplementation("androidx.test.ext:junit:1.2.1")
104107
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
105108
androidTestImplementation(platform("androidx.compose:compose-bom:2024.12.01"))

src/app/src/main/java/com/melodee/autoplayer/data/repository/MusicRepository.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ class MusicRepository(private val baseUrl: String, private val context: Context)
103103
}
104104

105105
fun searchSongsWithArtist(query: String, artistId: String?, page: Int = 1): Flow<PaginatedResponse<Song>> = flow {
106-
val response = ErrorHandler.handleOperation(context, "searchSongsWithArtist", "MusicRepository") {
107-
api.searchSongsWithArtist(query, artistId, page)
108-
}
106+
val response = api.searchSongsWithArtist(query, artistId, page)
109107
emit(response)
110108
}
111109

@@ -117,4 +115,4 @@ class MusicRepository(private val baseUrl: String, private val context: Context)
117115
false
118116
}
119117
}
120-
}
118+
}

src/app/src/main/java/com/melodee/autoplayer/presentation/ui/playlist/PlaylistScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ fun PlaylistScreen(
186186
}
187187

188188
// Songs list
189-
LazyColumn(
189+
LazyColumn(
190190
state = listState,
191191
modifier = Modifier
192192
.weight(1f)

0 commit comments

Comments
 (0)