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

chore(lint)!: update @cordova/eslint-config and variables #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NiklasMerz
Copy link
Member

Platforms affected

Motivation and Context

npm outdated for release

Description

eslint . --fix

Testing

npm test

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@NiklasMerz NiklasMerz requested a review from breautek February 21, 2023 20:08
@NiklasMerz NiklasMerz modified the milestones: 3.0.3, 4.0.0 Feb 21, 2023
@breautek
Copy link
Contributor

Fails the test for older Android platforms due to syntax errors.

02-21 20:15:10.641 I/chromium( 3672): [INFO:CONSOLE(45)] "Uncaught SyntaxError: Unexpected identifier", source: http://localhost/plugins/cordova-plugin-screen-orientation/www/screenorientation.js (45)

So it will be intended to be merged as a breaking change, after Android 5.1 support is dropped. We may need to test to see what the minimum android version we can support with their default shipped chrome versions.

@breautek breautek changed the title chore(lint): update @cordova/eslint-config and variables chore(lint)!: update @cordova/eslint-config and variables Feb 21, 2023
@breautek
Copy link
Contributor

Fails the test for older Android platforms due to syntax errors.

02-21 20:15:10.641 I/chromium( 3672): [INFO:CONSOLE(45)] "Uncaught SyntaxError: Unexpected identifier", source: http://localhost/plugins/cordova-plugin-screen-orientation/www/screenorientation.js (45)

So it will be intended to be merged as a breaking change, after Android 5.1 support is dropped. We may need to test to see what the minimum android version we can support with their default shipped chrome versions.

cordova-android@12 has a min SDK of 24, which based on AOSP simulators, ships with Chrome 53 webview.

The let / const keywords was introduced in Chrome 49, so we are likely good on this PR now... but it probably should still be treated as a breaking change.

I'm not sure if we actually want to limit the engine to >= cordova-android@12, because in reality people on older devices will likely have an updated/compatible webview, but in order to guarentee compatibility even with a factory device, I think we need a min SDK of 24, which cordova-android@12 uses.

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.

3 participants