From 241a248b9f097f81d96b70da1d332e497d408d09 Mon Sep 17 00:00:00 2001 From: bulletjet <851234786@qq.com> Date: Sat, 20 Apr 2024 20:47:09 +0800 Subject: [PATCH] make KCEFClient constructor public (#11) --- README.md | 4 ++-- kcef/build.gradle.kts | 2 +- kcef/src/main/kotlin/dev/datlag/kcef/KCEFClient.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2648f4f5..5c787905 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ The above methods may throw a `CefException`, you can use the nullable equivalen if (initialized) { KCEFClient client = KCEF.newClientOrNullBlocking(throwable -> { if (throwable != null) { - throwable.printStackTrace() + throwable.printStackTrace(); } }); } @@ -181,7 +181,7 @@ if (initialized) { /** Should be called in a new Thread */ KCEFClient client = KCEF.newClientOrNullBlocking(throwable -> { if (throwable != null) { - throwable.printStackTrace() + throwable.printStackTrace(); } }); ``` diff --git a/kcef/build.gradle.kts b/kcef/build.gradle.kts index 6903164b..34cfd25d 100644 --- a/kcef/build.gradle.kts +++ b/kcef/build.gradle.kts @@ -35,7 +35,7 @@ tasks.dokkaHtmlPartial { mavenPublishing { publishToMavenCentral(host = SonatypeHost.S01, automaticRelease = true) signAllPublications() - coordinates("dev.datlag", "kcef", "2024.01.07.1") + coordinates("dev.datlag", "kcef", "2024.01.07.2") pom { name.set(project.name) diff --git a/kcef/src/main/kotlin/dev/datlag/kcef/KCEFClient.kt b/kcef/src/main/kotlin/dev/datlag/kcef/KCEFClient.kt index e2a91436..82986871 100644 --- a/kcef/src/main/kotlin/dev/datlag/kcef/KCEFClient.kt +++ b/kcef/src/main/kotlin/dev/datlag/kcef/KCEFClient.kt @@ -12,7 +12,7 @@ import org.cef.handler.* /** * Class that can create a [KCEFBrowser] instance and inherits the default [CefClient] methods. */ -class KCEFClient internal constructor( +class KCEFClient constructor( private val client: CefClient ) : CefContextMenuHandler by client, CefDialogHandler by client,