refactor: remove or replace deprecated methods in engine#1963
Open
jcesarmobile wants to merge 2 commits into
Open
refactor: remove or replace deprecated methods in engine#1963jcesarmobile wants to merge 2 commits into
jcesarmobile wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1963 +/- ##
=======================================
Coverage 61.43% 61.43%
=======================================
Files 24 24
Lines 4922 4922
=======================================
Hits 3024 3024
Misses 1898 1898 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
Member
|
Arguably this is a bug fix, but if someone wanted to hold it until the next major I wouldn't be opposed to that. At the very least, it should be a minor not a patch. My other thought was to temporarily enable the new behaviour only in debug builds, but that gets messy and risks other bugs that are hard to track down and troubleshoot. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

onExceededDatabaseQuota was deprecated on Android API 19 and has no effect https://developer.android.com/reference/android/webkit/WebChromeClient#onExceededDatabaseQuota(java.lang.String,%20java.lang.String,%20long,%20long,%20long,%20android.webkit.WebStorage.QuotaUpdater)
shouldOverrideUrlLoading was deprecated on Android API 24, replaced it with
shouldOverrideUrlLoading ([WebView](https://developer.android.com/reference/android/webkit/WebView) view, [WebResourceRequest](https://developer.android.com/reference/android/webkit/WebResourceRequest) request)https://developer.android.com/reference/android/webkit/WebViewClient#shouldOverrideUrlLoading(android.webkit.WebView,%20java.lang.String)
onReceivedError was deprecated on Android API 24, replaced it with
onReceivedError ([WebView](https://developer.android.com/reference/android/webkit/WebView) view, [WebResourceRequest](https://developer.android.com/reference/android/webkit/WebResourceRequest) request, [WebResourceError](https://developer.android.com/reference/android/webkit/WebResourceError) error)https://developer.android.com/reference/android/webkit/WebViewClient#onReceivedError(android.webkit.WebView,%20int,%20java.lang.String,%20java.lang.String)
shouldInterceptRequest was deprecated on Android API 21, we already have the newer method implemented, so just deleted the old one.
But note that the removed one had some checks that we no longer do such as
shouldAllowRequest.setGeolocationDatabasePath was deprecated on Android API 24, while the comment says "// @todo remove when Cordova drop API level 24 support", if it's deprecated in 24 we should not use it in 24.
Not sure if it could be considered breaking, pretty sure
shouldOverrideUrlLoadingandonReceivedErrorhave no effect at the moment and introducing the non deprecated ones might change behaviors, but they are old behaviors that are not working at the moment.