-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bump minSdkVersion to 22 and drop pre-Lollipop specific code #915
Conversation
Codecov Report
@@ Coverage Diff @@
## master #915 +/- ##
=======================================
Coverage 65.53% 65.53%
=======================================
Files 21 21
Lines 1828 1828
=======================================
Hits 1198 1198
Misses 630 630 Continue to review full report at Codecov.
|
Great, thanks for the PR 👍. I've took a quick look, so far it seems fine. I'll give the PR a more detailed review later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 - LGTM, with a minor comment
It took me a few minutes to dig up the conversation where we did reach agreement to drop Android 5.0 as well as 4.4. Linking here.
My one minor comment is that cleanup items such as renaming of a function and formatting cleanups should be clear in the description and in the commit messages.
@brodybits Like this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @BBosman. Next issue is that the build seems to be broken for some reason.
@BBosman could you rebase your PR? The CI should run again after that. |
@timbru31 Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - tested the PR and SDK version was raised as expected. No stale code references found with a quick search for 19
or KitKat
.
If no veto, I'm merging this 24 hours.
would you please summarize the motivations for dropping android 5.0 support? |
The full discussion on this can be found at https://lists.apache.org/thread.html/rd6b0401570ddf18f241e565904e084197f8731238f72482938a80cb4%40%3Cdev.cordova.apache.org%3E To Summarize:
|
@breautek thank you, regarding:
yup, I had this problem with many of my users as they were unable to update the webview even if they installed it from the playstore, it remains v39. |
Platforms affected
Android
Motivation and Context
As was discussed on the mailing list, the plan is to raise the minimum supported API level to 22, dropping support for Android 4.4 and 5.0 for the next major
cordova-android
release.Description
This PR updates the
defaultMinSdkVersion
to 22.There are also a couple of places in the codebase where we have specific logic for older (i.e. KitKat) API-levels which are now no longer needed and can therefore be removed.
I also renamed the
needsKitKatContentUrlFix
function to justneedsContentUrlFix
as it is no longer KitKat specific.And lastly, I did some minor whitespace fixups and removed an obsolete piece of commented out code.
Testing
I ran
npm run test
without issues and tested the changes in one of my own apps.Checklist