Skip to content

Commit

Permalink
Merge pull request #496 from eyedol/eyedol/migrateIosImplementationTo…
Browse files Browse the repository at this point in the history
…UseRoboCanvasInterface

Initial integration of differ to support iOS
  • Loading branch information
takahirom authored Oct 8, 2024
2 parents 078140d + 2564abe commit 828760f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ androidx-test-espresso-core = "3.5.1"
androidx-test-ext-junit = "1.2.1"
kim = "0.17.7"

dropbox-differ = "0.0.2"
dropbox-differ = "0.3.0"
google-android-material = "1.5.0"
junit = "4.13.2"
ktor-serialization-kotlinx-xml = "2.3.11"
Expand Down
2 changes: 1 addition & 1 deletion include-build/roborazzi-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ kotlin {
commonMain {
dependencies {
compileOnly libs.kotlinx.serialization.json
api libs.dropbox.differ
implementation libs.kotlinx.io.core
}
}
Expand All @@ -51,7 +52,6 @@ kotlin {
}
commonJvmMain {
dependencies {
api libs.dropbox.differ
implementation libs.junit
}
}
Expand Down
6 changes: 2 additions & 4 deletions roborazzi-compose-ios/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ kotlin {
implementation(libs.kotlinx.serialization.json)
api(project.compose.dependencies.uiTest)
implementation(compose.runtime)
api libs.dropbox.differ
}
}
iosMain {
dependencies {
}
}

iosTest {
dependencies {
implementation(compose.material3)
Expand Down
2 changes: 1 addition & 1 deletion roborazzi-painter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ kotlin {
compileOnly libs.kotlinx.serialization.json
// Please see settings.gradle
api "io.github.takahirom.roborazzi:roborazzi-core:$VERSION_NAME"
api libs.dropbox.differ
}
}
commonJvmMain {
dependencies {
compileOnly libs.robolectric.android.all
implementation libs.kotlinx.io.core
api libs.dropbox.differ

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ class AwtRoboCanvas(width: Int, height: Int, filled: Boolean, bufferedImageType:
}

override fun differ(
other: RoboCanvas,
resizeScale: Double,
imageComparator: ImageComparator
other: RoboCanvas,
resizeScale: Double,
imageComparator: ImageComparator
): ImageComparator.ComparisonResult {
other as AwtRoboCanvas
val otherImage = other.bufferedImage
Expand Down

0 comments on commit 828760f

Please sign in to comment.