Skip to content

Commit

Permalink
Make paging-testing multiplatform with only a JVM implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
veyndan committed Jul 12, 2023
1 parent f6953ef commit 7250175
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions paging/paging-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,41 @@
*/

import androidx.build.LibraryType
import androidx.build.PlatformIdentifier
import androidx.build.Publish

plugins {
id("AndroidXPlugin")
id("com.android.library")
id("org.jetbrains.kotlin.android")
}

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

testImplementation(libs.junit)
testImplementation(libs.kotlinCoroutinesTest)
testImplementation((libs.kotlinCoroutinesAndroid))
testImplementation(project(":internal-testutils-paging"))
testImplementation(libs.kotlinTest)
testImplementation(libs.truth)
defaultPlatform(PlatformIdentifier.ANDROID)

sourceSets {
jvmMain {
dependencies {
api(libs.kotlinStdlib)
implementation(project(":paging:paging-common"))
}
}
jvmTest {
dependencies {
implementation(libs.junit)
implementation(libs.kotlinCoroutinesTest)
implementation((libs.kotlinCoroutinesAndroid))
implementation(project(":internal-testutils-paging"))
implementation(libs.kotlinTest)
implementation(libs.truth)
}
}
}
}

androidx {
Expand Down

0 comments on commit 7250175

Please sign in to comment.