Skip to content

Commit 2909b8c

Browse files
author
Sam
committed
Bump the KCEF dependency version
1 parent 811a9c2 commit 2909b8c

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

sample/desktopApp/src/jvmMain/kotlin/main.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import androidx.compose.ui.window.Window
99
import androidx.compose.ui.window.application
1010
import com.kevinnzou.sample.MainWebView
1111
import dev.datlag.kcef.KCEF
12+
import dev.datlag.kcef.KCEFBuilder.Download
1213
import kotlinx.coroutines.Dispatchers
1314
import kotlinx.coroutines.withContext
1415
import java.io.File
@@ -32,7 +33,12 @@ fun main() =
3233
initialized = true
3334
}
3435
}
35-
release("jbr-release-17.0.10b1087.23")
36+
download(
37+
Download.Builder().github {
38+
release("jbr-release-17.0.10b1087.23")
39+
}.build()
40+
)
41+
3642
settings {
3743
cachePath = File("cache").absolutePath
3844
}

webview/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ kotlin {
6464
val desktopMain by getting {
6565
dependencies {
6666
implementation(compose.desktop.common)
67-
api("dev.datlag:kcef:2024.01.07.1")
67+
api("dev.datlag:kcef:2024.04.20.3")
6868
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutinesVersion")
6969
}
7070
}

webview/src/desktopMain/kotlin/com/multiplatform/webview/web/WebEngineExt.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ internal fun CefBrowser.addDisplayHandler(state: WebViewState) {
5151
state.pageTitle = title
5252
}
5353

54+
override fun onFullscreenModeChange(p0: CefBrowser?, p1: Boolean) {
55+
// Not supported
56+
}
57+
5458
override fun onTooltip(
5559
browser: CefBrowser?,
5660
text: String?,

0 commit comments

Comments
 (0)