From dbddbf253bb1b47ca5220f8360536433c7c682b2 Mon Sep 17 00:00:00 2001 From: Norman Breau Date: Thu, 16 Mar 2023 19:45:01 -0300 Subject: [PATCH] feat!: Bump min SDK to 24 (#1571) Rationale: API 22 & API 23 both account for an insignificant part of the market share. While API 24 - API 26 has similar market share, we felt that bumping to API 26 from API 22 is too large of a jump. Legacy devices may be completely out of support by Google and may not be able to receive the latest webview version. As of writing, Chromium's latest tag shows they are using a Min SDK version of 24. (Ref: https://chromium.googlesource.com/chromium/src/+/refs/tags/113.0.5653.1/build/config/android/config.gni#46) Based on AOSP emulators, API 24 (Android 7.0) will ship with Chrome 52 webview, which has good support for ECMAscript 2015 (ES6) (Ref: https://caniuse.com/?search=es6) While in most cases, app users will likely have a modern webview vesion installed, this means you can be confident that the app user will have a chrome webview version with good ES6 support, even if they happen to be running on a factory versioned device. See the mailing thread for the full discussion: https://lists.apache.org/thread/zcgof080hdzzo2j96mjz0qpj0gotmn57 --- framework/cdv-gradle-config-defaults.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/cdv-gradle-config-defaults.json b/framework/cdv-gradle-config-defaults.json index 2a578142..e7481d32 100644 --- a/framework/cdv-gradle-config-defaults.json +++ b/framework/cdv-gradle-config-defaults.json @@ -1,5 +1,5 @@ { - "MIN_SDK_VERSION": 22, + "MIN_SDK_VERSION": 24, "SDK_VERSION": 33, "COMPILE_SDK_VERSION": null, "GRADLE_VERSION": "7.4.2",