generated from JetBrains/compose-multiplatform-template
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,18 @@ | |
|
||
### 🚨 Seeking Desktop Maintainer 🚨 | ||
|
||
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! | ||
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! | ||
|
||
**Contact:** [email protected] | ||
|
||
|
||
> **Note** | ||
> This library is built using | ||
>the [compose multiplatform library template](https://github.com/KevinnZou/compose-multiplatform-library-template). | ||
> | ||
the [compose multiplatform library template](https://github.com/KevinnZou/compose-multiplatform-library-template). | ||
> It supports automatic package publishing, documentation, and code style checking. | ||
This library can be considered as the Multiplatform version | ||
|
@@ -546,7 +550,7 @@ Desktop support is coming soon. | |
|
||
## Handling permission requests on Android | ||
|
||
There are 4 types of permissions that can be requested by the WebView on Android: | ||
There are 4 types of permissions that can be requested by the WebView on Android: | ||
|
||
- RESOURCE_PROTECTED_MEDIA_ID | ||
- RESOURCE_MIDI_SYSEX | ||
|
@@ -555,20 +559,20 @@ There are 4 types of permissions that can be requested by the WebView on Android | |
|
||
`RESOURCE_PROTECTED_MEDIA_ID` and `RESOURCE_MIDI_SYSEX` are special ones, because they don't have a | ||
native Android counterpart, so it's not possible to request a permission from the user to grant | ||
them transitively. Therefore, you configure the WebView to grant these permissions automatically, | ||
them transitively. Therefore, you configure the WebView to grant these permissions automatically, | ||
by setting the respective properties under `AndroidWebSettings` to true: | ||
|
||
```kotlin | ||
webViewState.webSettings.apply { | ||
// ... | ||
androidWebSettings.apply { | ||
// Grants RESOURCE_PROTECTED_MEDIA_ID permission, default false | ||
allowProtectedMedia = true | ||
// Grants RESOURCE_MIDI_SYSEX permission, default false | ||
allowMidiSysexMessages = true | ||
} | ||
// ... | ||
// ... | ||
androidWebSettings.apply { | ||
// Grants RESOURCE_PROTECTED_MEDIA_ID permission, default false | ||
allowProtectedMedia = true | ||
// Grants RESOURCE_MIDI_SYSEX permission, default false | ||
allowMidiSysexMessages = true | ||
} | ||
// ... | ||
} | ||
``` | ||
|
||
`RESOURCE_AUDIO_CAPTURE` and `RESOURCE_VIDEO_CAPTURE` are also handled internally by the WebView, | ||
|
@@ -658,7 +662,7 @@ kotlin { | |
commonMain { | ||
dependencies { | ||
// use api since the desktop app need to access the Cef to initialize it. | ||
api("io.github.kevinnzou:compose-webview-multiplatform:1.9.20") | ||
api("io.github.kevinnzou:compose-webview-multiplatform:1.9.40") | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters