Skip to content

Commit c4229da

Browse files
committed
feat:Publish Version 2.0.0
1 parent 6c23fc9 commit c4229da

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

README.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ developer ready to dive into open-source, we want you!
2222

2323
> **Note**
2424
> This library is built using
25-
>
26-
the [compose multiplatform library template](https://github.com/KevinnZou/compose-multiplatform-library-template).
25+
> the [compose multiplatform library template](https://github.com/KevinnZou/compose-multiplatform-library-template).
2726
> It supports automatic package publishing, documentation, and code style checking.
2827
2928
This library can be considered as the Multiplatform version
@@ -409,23 +408,23 @@ Then they can pass it to the `rememberWebViewNavigator` method to intercept the
409408
val navigator =
410409
rememberWebViewNavigator(
411410
requestInterceptor =
412-
object : RequestInterceptor {
413-
override fun onInterceptUrlRequest(
414-
request: WebRequest,
415-
navigator: WebViewNavigator,
416-
): WebRequestInterceptResult {
417-
return if (request.url.contains("kotlin")) {
418-
WebRequestInterceptResult.Modify(
419-
WebRequest(
420-
url = "https://kotlinlang.org/docs/multiplatform.html",
421-
headers = mutableMapOf("info" to "test"),
422-
),
423-
)
424-
} else {
425-
WebRequestInterceptResult.Allow
411+
object : RequestInterceptor {
412+
override fun onInterceptUrlRequest(
413+
request: WebRequest,
414+
navigator: WebViewNavigator,
415+
): WebRequestInterceptResult {
416+
return if (request.url.contains("kotlin")) {
417+
WebRequestInterceptResult.Modify(
418+
WebRequest(
419+
url = "https://kotlinlang.org/docs/multiplatform.html",
420+
headers = mutableMapOf("info" to "test"),
421+
),
422+
)
423+
} else {
424+
WebRequestInterceptResult.Allow
425+
}
426426
}
427-
}
428-
},
427+
},
429428
)
430429
```
431430

@@ -662,7 +661,7 @@ kotlin {
662661
commonMain {
663662
dependencies {
664663
// use api since the desktop app need to access the Cef to initialize it.
665-
api("io.github.kevinnzou:compose-webview-multiplatform:1.9.40")
664+
api("io.github.kevinnzou:compose-webview-multiplatform:2.0.0")
666665
}
667666
}
668667
}

0 commit comments

Comments
 (0)