[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make testutils-paging a KMP #578

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make testutils-paging a KMP
  • Loading branch information
veyndan committed Jul 4, 2023
commit 0cfc8446729c040f4d93075c263462606378f9ca
2 changes: 1 addition & 1 deletion paging/paging-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ androidXMultiplatform {
implementation(libs.kotlinCoroutinesTest)
implementation(libs.kotlinTest)
implementation(project(":internal-testutils-kmp"))
implementation(project(":internal-testutils-paging"))
}
}

Expand All @@ -69,7 +70,6 @@ androidXMultiplatform {
implementation(libs.mockitoKotlin4)
implementation(project(":internal-testutils-common"))
implementation(project(":internal-testutils-ktx"))
implementation(project(":internal-testutils-paging"))
}
}

Expand Down
21 changes: 15 additions & 6 deletions testutils/testutils-paging/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,27 @@
* limitations under the License.
*/

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import androidx.build.LibraryType

plugins {
id("AndroidXPlugin")
id("kotlin")
}

dependencies {
api(libs.kotlinStdlib)
implementation(project(":paging:paging-common"))
implementation(libs.kotlinTest)
androidXMultiplatform {
jvm()
mac()
linux()
ios()

sourceSets {
commonMain {
dependencies {
api(libs.kotlinStdlib)
implementation(project(":paging:paging-common"))
implementation(libs.kotlinTest)
}
}
}
}

androidx {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fun <T> assertEvents(expected: List<T>, actual: List<T>) {
try {
assertEquals(expected, actual)
} catch (e: Throwable) {
val msg = e.localizedMessage
val msg = e.message!!
.replace("),", "),\n")
.replace("<[", "<[\n ")
.replace("actual", "\nactual")
Expand Down
Loading