Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[net9.0] Shift platforms specific code from HybridWebView to the handler using Command Mappers #24269

Closed
PureWeen opened this issue Aug 15, 2024 · 2 comments
Assignees
Labels
area-controls-hybridwebview HybridWebView control fixed-in-9.0.0-rc.2.24503.2 s/triaged Issue has been reviewed Task neither bug nor feature but something that needs to be done in support of either
Milestone

Comments

@PureWeen
Copy link
Member

PureWeen commented Aug 15, 2024

Description

#23769 (review)

The code here should use the CommandMapper pattern

https://github.com/dotnet/maui/blob/net9.0/src/Controls/src/Core/HybridWebView/HybridWebView.cs#L122

The best example of this is probably IScrollView

There's a request you can make to the CommandMApper

image

And then the response can come from

image

@dotnet-policy-service dotnet-policy-service bot added the s/triaged Issue has been reviewed label Aug 15, 2024
@PureWeen PureWeen added this to the 9.0-rc1 milestone Aug 15, 2024
@PureWeen PureWeen added the area-controls-hybridwebview HybridWebView control label Aug 15, 2024
@mattleibow
Copy link
Member

See also: #23769 (review)

@samhouts samhouts added the Task neither bug nor feature but something that needs to be done in support of either label Aug 23, 2024
@PureWeen PureWeen modified the milestones: 9.0-rc1, 9.0-rc2 Aug 23, 2024
Eilon added a commit that referenced this issue Aug 27, 2024
And run everything through the mappers.

Fixes #24269
Eilon added a commit that referenced this issue Sep 11, 2024
And run everything through the mappers.

Fixes #24269
rmarinho pushed a commit that referenced this issue Sep 23, 2024
* Move HybridWebView platform code to handlers

And run everything through the mappers.

Fixes #24269

* WIP

* Fix API files

* API

* API

* API

* Change platform checks
@github-project-automation github-project-automation bot moved this from In Progress to Done in MAUI SDK Ongoing Sep 23, 2024
Eilon added a commit that referenced this issue Sep 26, 2024
And run everything through the mappers.

Fixes #24269
@PureWeen PureWeen reopened this Oct 1, 2024
@PureWeen PureWeen moved this from Done to In Progress in MAUI SDK Ongoing Oct 1, 2024
PureWeen pushed a commit that referenced this issue Oct 1, 2024
* Move HybridWebView platform code to handlers

And run everything through the mappers.

Fixes #24269

* Run Android tests

* `@android.webkit.JavascriptInterface` is missing!

By changing `HybridJavaScriptInterface` to a class, the JCW now says:

    @android.webkit.JavascriptInterface
    public void sendMessage (java.lang.String p0)

---------

Co-authored-by: Jonathan Peppers <[email protected]>
github-actions bot pushed a commit that referenced this issue Oct 1, 2024
And run everything through the mappers.

Fixes #24269
rmarinho pushed a commit that referenced this issue Oct 2, 2024
…ttempt 2) (#25041)

* Move HybridWebView platform code to handlers

And run everything through the mappers.

Fixes #24269

* Run Android tests

* `@android.webkit.JavascriptInterface` is missing!

By changing `HybridJavaScriptInterface` to a class, the JCW now says:

    @android.webkit.JavascriptInterface
    public void sendMessage (java.lang.String p0)

---------

Co-authored-by: Eilon Lipton <[email protected]>
Co-authored-by: Jonathan Peppers <[email protected]>
@Eilon
Copy link
Member

Eilon commented Oct 3, 2024

I believe this is all done now?

@Eilon Eilon closed this as completed Oct 3, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in MAUI SDK Ongoing Oct 3, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-hybridwebview HybridWebView control fixed-in-9.0.0-rc.2.24503.2 s/triaged Issue has been reviewed Task neither bug nor feature but something that needs to be done in support of either
Projects
Status: Done
Development

No branches or pull requests

5 participants