Open insytes opened 1 year ago
Thank you @insytes I have to agree; I've believed the min should be 21 for quite awhile now - certainly as the default - you could set a min to 17 or 19 on your own - Hope this is adjusted for next minor/major release.
Having to configure minTargetSdk isn't unreasonable. It's actually really common and some libraries will require min version of 24, which is definitely not something we would be comfortable doing.
The runtime is the lowest level of NativeScript and it has to support the widest variety of cases. While you need android 21, the runtime supports even android 4.2 while there aren't many devices in 4.2 or 4.4 (<2%), some projects target those versions specifically as a lot of enterprise or warehouse tablets are on Android 4.4 still.
I think that maybe on NativeScript 9 or 10 we could bump this, as 4.4 has around 0.5% usage these days, but this decision can't be taken lightly as supporting old android versions is a requirement on some projects and the "workaround" for newer projects is a single line in the Gradle file.
Having to configure minTargetSdk isn't unreasonable. It's actually really common and some libraries will require min version of 24, which is definitely not something we would be comfortable doing.
The runtime is the lowest level of NativeScript and it has to support the widest variety of cases. While you need android 21, the runtime supports even android 4.2 while there aren't many devices in 4.2 or 4.4 (<2%), some projects target those versions specifically as a lot of enterprise or warehouse tablets are on Android 4.4 still.
I think that maybe on NativeScript 9 or 10 we could bump this, as 4.4 has around 0.5% usage these days, but this decision can't be taken lightly as supporting old android versions is a requirement on some projects and the "workaround" for newer projects is a single line in the Gradle file.
Thanks @edusperoni, I agree with you that configuring "minTargetSdk isn't unreasonable" and perhaps this issue isn't pertinent to supporting real world devices.
I did actually notice the value of NS_DEFAULT_MIN_SDK_VERSION
compared to Statcounter GlobalStats also seemed reasonable.
Putting this one down to QA.
I second you @edusperoni, well they can make the minimum to be version to be 8.0 using version 33 api. I think this will be better because android is growing very fast in there development.
The
minSdkVersion
is currently set to 17 (Android-4 2012).When building the app with a common plugin like @nativescript/background-http the build will fail.
Instead I have to add additional configuration to gradle to get this plugin to work.
I suggest that the
minSdkVersion
is set to 21.