Skip to content

Commit

Permalink
🚚 Rename method in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceglb committed Nov 17, 2024
1 parent 44d41d4 commit b9ace10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package io.github.vinceglb.sample.core
import io.github.vinceglb.filekit.CompressFormat
import io.github.vinceglb.filekit.FileKit
import io.github.vinceglb.filekit.PlatformFile
import io.github.vinceglb.filekit.compressPhoto
import io.github.vinceglb.filekit.compressImage
import io.github.vinceglb.filekit.dialog.FileKitDialogSettings
import io.github.vinceglb.filekit.dialog.pickDirectory
import io.github.vinceglb.filekit.saveImageToGallery
Expand All @@ -13,7 +13,7 @@ actual suspend fun pickDirectoryIfSupported(platformSettings: FileKitDialogSetti
}

actual suspend fun compressImage(bytes: ByteArray) {
FileKit.compressPhoto(
FileKit.compressImage(
imageData = bytes,
maxWidth = 200,
maxHeight = 200,
Expand Down

0 comments on commit b9ace10

Please sign in to comment.