Skip to content

Fix build: remove unnecessary WryWebViewPanel casts after alpha-13 bump#1854

Merged
Tlaster merged 2 commits intodependabot/gradle/io.github.kdroidfilter-composewebview-1.0.0-alpha-13from
copilot/sub-pr-1851
Mar 9, 2026
Merged

Fix build: remove unnecessary WryWebViewPanel casts after alpha-13 bump#1854
Tlaster merged 2 commits intodependabot/gradle/io.github.kdroidfilter-composewebview-1.0.0-alpha-13from
copilot/sub-pr-1851

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

In composewebview alpha-13, nativeWebView now has WryWebViewPanel as its declared return type, making the explicit as? WryWebViewPanel casts redundant. With -Werror set, the resulting "No cast needed" warnings failed the build.

Changes

  • WebViewLoginScreen.kt: Remove as? WryWebViewPanel casts on nativeWebView accesses and drop the now-unused import
// Before
(state.webView?.nativeWebView as? WryWebViewPanel)?.clearAllCookies()
(state.webView?.nativeWebView as? WryWebViewPanel)?.getCookiesForUrl(actualUrl).orEmpty()

// After
state.webView?.nativeWebView?.clearAllCookies()
state.webView?.nativeWebView?.getCookiesForUrl(actualUrl).orEmpty()

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…ailure

Co-authored-by: Tlaster <8370277+Tlaster@users.noreply.github.com>
Copilot AI changed the title [WIP] Update io.github.kdroidfilter:composewebview to version 1.0.0-alpha-13 Fix build: remove unnecessary WryWebViewPanel casts after alpha-13 bump Mar 9, 2026
@Tlaster Tlaster marked this pull request as ready for review March 9, 2026 09:00
@Tlaster Tlaster merged commit 8bc5335 into dependabot/gradle/io.github.kdroidfilter-composewebview-1.0.0-alpha-13 Mar 9, 2026
@Tlaster Tlaster deleted the copilot/sub-pr-1851 branch March 9, 2026 09:00
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