Skip to content

Commit b740b9b

Browse files
committed
feat:Release Version 1.9.40
1 parent 346ffe0 commit b740b9b

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

README.md

+17-13
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@
1212

1313
### 🚨 Seeking Desktop Maintainer 🚨
1414

15-
Unfortunately, our current desktop platform maintainer, @DATL4G, cannot continue his role due to other commitments. We are now looking for a new team member who can take over the desktop side of the library, handling development, issue resolution, and feature enhancements. If you're a desktop developer ready to dive into open-source, we want you!
15+
Unfortunately, our current desktop platform maintainer, @DATL4G, cannot continue his role due to
16+
other commitments. We are now looking for a new team member who can take over the desktop side of
17+
the library, handling development, issue resolution, and feature enhancements. If you're a desktop
18+
developer ready to dive into open-source, we want you!
1619

1720
**Contact:** zoumingjie17@163.com
1821

1922

2023
> **Note**
2124
> This library is built using
22-
>the [compose multiplatform library template](https://github.com/KevinnZou/compose-multiplatform-library-template).
25+
>
26+
the [compose multiplatform library template](https://github.com/KevinnZou/compose-multiplatform-library-template).
2327
> It supports automatic package publishing, documentation, and code style checking.
2428
2529
This library can be considered as the Multiplatform version
@@ -546,7 +550,7 @@ Desktop support is coming soon.
546550

547551
## Handling permission requests on Android
548552

549-
There are 4 types of permissions that can be requested by the WebView on Android:
553+
There are 4 types of permissions that can be requested by the WebView on Android:
550554

551555
- RESOURCE_PROTECTED_MEDIA_ID
552556
- RESOURCE_MIDI_SYSEX
@@ -555,20 +559,20 @@ There are 4 types of permissions that can be requested by the WebView on Android
555559

556560
`RESOURCE_PROTECTED_MEDIA_ID` and `RESOURCE_MIDI_SYSEX` are special ones, because they don't have a
557561
native Android counterpart, so it's not possible to request a permission from the user to grant
558-
them transitively. Therefore, you configure the WebView to grant these permissions automatically,
562+
them transitively. Therefore, you configure the WebView to grant these permissions automatically,
559563
by setting the respective properties under `AndroidWebSettings` to true:
560564

561565
```kotlin
562566
webViewState.webSettings.apply {
563-
// ...
564-
androidWebSettings.apply {
565-
// Grants RESOURCE_PROTECTED_MEDIA_ID permission, default false
566-
allowProtectedMedia = true
567-
// Grants RESOURCE_MIDI_SYSEX permission, default false
568-
allowMidiSysexMessages = true
569-
}
570-
// ...
567+
// ...
568+
androidWebSettings.apply {
569+
// Grants RESOURCE_PROTECTED_MEDIA_ID permission, default false
570+
allowProtectedMedia = true
571+
// Grants RESOURCE_MIDI_SYSEX permission, default false
572+
allowMidiSysexMessages = true
571573
}
574+
// ...
575+
}
572576
```
573577

574578
`RESOURCE_AUDIO_CAPTURE` and `RESOURCE_VIDEO_CAPTURE` are also handled internally by the WebView,
@@ -658,7 +662,7 @@ kotlin {
658662
commonMain {
659663
dependencies {
660664
// use api since the desktop app need to access the Cef to initialize it.
661-
api("io.github.kevinnzou:compose-webview-multiplatform:1.9.20")
665+
api("io.github.kevinnzou:compose-webview-multiplatform:1.9.40")
662666
}
663667
}
664668
}

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ compose.version=1.7.1
1919
coroutines.version=1.8.0
2020
GROUP=io.github.kevinnzou
2121
POM_ARTIFACT_ID=compose-webview-multiplatform
22-
VERSION_NAME=1.9.40-alpha04
22+
VERSION_NAME=1.9.40
2323
POM_NAME=Compose WebView Multiplatform
2424
POM_INCEPTION_YEAR=2023
2525
POM_DESCRIPTION=WebView for JetBrains Compose Multiplatform

0 commit comments

Comments
 (0)