cordova-plugin-screen-orientation icon indicating copy to clipboard operation
cordova-plugin-screen-orientation copied to clipboard

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

Open NiklasMerz opened this issue 2 years ago • 2 comments

Platforms affected

Motivation and Context

npm outdated for release

Description

eslint . --fix

Testing

npm test

Checklist

  • [x] 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 avatar Feb 21 '23 20:02 NiklasMerz

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 avatar Feb 21 '23 20:02 breautek

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.

breautek avatar Sep 11 '23 13:09 breautek