diff --git a/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.commonJvm.kt b/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.commonJvm.kt index c40cb3216..1c2f1ae3f 100644 --- a/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.commonJvm.kt +++ b/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.commonJvm.kt @@ -15,7 +15,7 @@ import javax.imageio.metadata.IIOMetadataNode import javax.imageio.stream.FileImageOutputStream @Suppress("FunctionName") -actual fun WebPImageIoFormat(): ImageIoFormat { +actual fun LosslessWebPImageIoFormat(): ImageIoFormat { return JvmImageIoFormat( awtImageWriter = losslessWebPWriter() ) diff --git a/include-build/roborazzi-core/src/commonMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.kt b/include-build/roborazzi-core/src/commonMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.kt index ad550584a..2852346fd 100644 --- a/include-build/roborazzi-core/src/commonMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.kt +++ b/include-build/roborazzi-core/src/commonMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.kt @@ -3,6 +3,6 @@ package com.github.takahirom.roborazzi interface ImageIoFormat @Suppress("FunctionName") -expect fun WebPImageIoFormat() : ImageIoFormat +expect fun LosslessWebPImageIoFormat() : ImageIoFormat expect fun ImageIoFormat() : ImageIoFormat \ No newline at end of file diff --git a/include-build/roborazzi-core/src/iosMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.ios.kt b/include-build/roborazzi-core/src/iosMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.ios.kt index 66fddb8f0..fcd0d53d1 100644 --- a/include-build/roborazzi-core/src/iosMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.ios.kt +++ b/include-build/roborazzi-core/src/iosMain/kotlin/com/github/takahirom/roborazzi/ImageIoFormat.ios.kt @@ -1,7 +1,7 @@ package com.github.takahirom.roborazzi @Suppress("FunctionName") -actual fun WebPImageIoFormat(): ImageIoFormat { +actual fun LosslessWebPImageIoFormat(): ImageIoFormat { TODO("NOT IMPLEMENTED YET") } diff --git a/sample-android/src/test/java/com/github/takahirom/roborazzi/sample/boxed/LosslessWebpTest.kt b/sample-android/src/test/java/com/github/takahirom/roborazzi/sample/boxed/LosslessWebpTest.kt index 23f1df75d..b87afce4d 100644 --- a/sample-android/src/test/java/com/github/takahirom/roborazzi/sample/boxed/LosslessWebpTest.kt +++ b/sample-android/src/test/java/com/github/takahirom/roborazzi/sample/boxed/LosslessWebpTest.kt @@ -11,7 +11,7 @@ import com.github.takahirom.roborazzi.ROBORAZZI_DEBUG import com.github.takahirom.roborazzi.RobolectricDeviceQualifiers import com.github.takahirom.roborazzi.RoborazziOptions import com.github.takahirom.roborazzi.RoborazziTaskType -import com.github.takahirom.roborazzi.WebPImageIoFormat +import com.github.takahirom.roborazzi.LosslessWebPImageIoFormat import com.github.takahirom.roborazzi.captureRoboImage import com.github.takahirom.roborazzi.nameWithoutExtension import com.github.takahirom.roborazzi.provideRoborazziContext @@ -35,7 +35,7 @@ class LosslessWebpTest { @get:Rule val composeTestRule = createAndroidComposeRule() val recordOptions = RoborazziOptions.RecordOptions( - imageIoFormat = WebPImageIoFormat(), + imageIoFormat = LosslessWebPImageIoFormat(), ) @Test