You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "breautek (via GitHub)" <gi...@apache.org> on 2023/09/11 13:25:42 UTC

[GitHub] [cordova-plugin-screen-orientation] breautek commented on pull request #112: chore(lint)!: update @cordova/eslint-config and variables

breautek commented on PR #112:
URL: https://github.com/apache/cordova-plugin-screen-orientation/pull/112#issuecomment-1713880509

   > 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org