Skip to content

Commit

Permalink
Change naming of webp format
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Nov 2, 2024
1 parent 4bc482b commit 701136f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.takahirom.roborazzi

@Suppress("FunctionName")
actual fun WebPImageIoFormat(): ImageIoFormat {
actual fun LosslessWebPImageIoFormat(): ImageIoFormat {
TODO("NOT IMPLEMENTED YET")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,7 +35,7 @@ class LosslessWebpTest {
@get:Rule
val composeTestRule = createAndroidComposeRule<MainActivity>()
val recordOptions = RoborazziOptions.RecordOptions(
imageIoFormat = WebPImageIoFormat(),
imageIoFormat = LosslessWebPImageIoFormat(),
)

@Test
Expand Down

0 comments on commit 701136f

Please sign in to comment.