Skip to content

MiniBrowser: Port to the new convenience API - #258

Merged
alexgcastro merged 1 commit into
mainfrom
alex/port-minibrowser-to-convenience-api
Apr 30, 2026
Merged

MiniBrowser: Port to the new convenience API#258
alexgcastro merged 1 commit into
mainfrom
alex/port-minibrowser-to-convenience-api

Conversation

@alexgcastro

Copy link
Copy Markdown
Collaborator

Migrate from the legacy WPEView API to the new high-level convenience API introduced in the previous commit.

  • WPEView/WPEContext → WebView/WebContext (shared per-app via new MiniBrowserApplication holder).
  • WPEChromeClient/WPEViewClient → WebChromeClient/WebViewClient.
  • URL-bar update moved from onUriChanged (chrome client) to doUpdateVisitedHistory (view client).
  • AndroidManifest declares MiniBrowserApplication as the app's Application class via tools:replace="android:name", overriding the library's default WPEApplication.
  • WPEApplication.ProcessKind is made public (with @nonnull on the getLibraryNames() return type) so MiniBrowserApplication can reuse the existing process-kind classification instead of re-parsing the process name.

The legacy WPEView API will be removed in a follow-up once all the apps using it are ported.

Migrate from the legacy WPEView API to the new high-level convenience API
introduced in the previous commit.

  - WPEView/WPEContext → WebView/WebContext (shared per-app via new
    MiniBrowserApplication holder).
  - WPEChromeClient/WPEViewClient → WebChromeClient/WebViewClient.
  - URL-bar update moved from onUriChanged (chrome client) to
    doUpdateVisitedHistory (view client).
  - AndroidManifest declares MiniBrowserApplication as the app's
    Application class via tools:replace="android:name", overriding the
    library's default WPEApplication.
  - WPEApplication.ProcessKind is made public (with @nonnull on the
    getLibraryNames() return type) so MiniBrowserApplication can reuse the
    existing process-kind classification instead of re-parsing the
    process name.

The legacy WPEView API will be removed in a follow-up once all the apps
using it are ported.
@alexgcastro
alexgcastro merged commit c709b4d into main Apr 30, 2026
6 checks passed
@alexgcastro
alexgcastro deleted the alex/port-minibrowser-to-convenience-api branch April 30, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants