Skip to content

Commit 9bf2f5b

Browse files
committed
Fix htmlimageconverter not having an expected constructor.
1 parent 0376716 commit 9bf2f5b

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

html-screenshot/src/androidMain/kotlin/dev/robercoding/htmlscreenshot/HtmlToImageConverter.android.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import dev.robercoding.htmlscreenshot.helpers.Html2Bitmap
88
import dev.robercoding.htmlscreenshot.webview.content.WebViewContent
99
import java.io.ByteArrayOutputStream
1010

11-
actual class HtmlToImageConverter(private val screenshotThatHtmlConfiguration: ScreenshotThatHtmlConfiguration) {
11+
actual class HtmlToImageConverter actual constructor(private val screenshotThatHtmlConfiguration: ScreenshotThatHtmlConfiguration) {
1212

1313
val html2bitmap = Html2Bitmap(
1414
context = applicationContext,
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package dev.robercoding.htmlscreenshot
22

3-
expect class HtmlToImageConverter {
3+
import dev.robercoding.htmlscreenshot.helper.ScreenshotThatHtmlConfiguration
4+
5+
expect class HtmlToImageConverter(screenshotThatHtmlConfiguration: ScreenshotThatHtmlConfiguration) {
46
suspend fun convert(html: String): Html2ScreenshotResult
57
}

html-screenshot/src/iosMain/kotlin/dev/robercoding/htmlscreenshot/HtmlToImageConverter.ios.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import platform.UIKit.UIImageJPEGRepresentation
1717
import platform.UIKit.UIImagePNGRepresentation
1818
import platform.posix.memcpy
1919

20-
actual class HtmlToImageConverter(private val screenshotThatHtmlConfiguration: ScreenshotThatHtmlConfiguration) {
20+
actual class HtmlToImageConverter actual constructor(private val screenshotThatHtmlConfiguration: ScreenshotThatHtmlConfiguration) {
2121
actual suspend fun convert(
2222
html: String,
2323
): Html2ScreenshotResult {

0 commit comments

Comments
 (0)