[go: up one dir, main page]

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 6, 2023
1 parent a03a8fb commit 01c6cda
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions paging/paging-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,39 @@
*/

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()

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

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 All @@ -42,7 +57,3 @@ androidx {
description = "Test artifact for Paging implementation"
publish = Publish.SNAPSHOT_AND_RELEASE
}

android {
namespace "androidx.paging.testing"
}

0 comments on commit 01c6cda

Please sign in to comment.