Open tdeffains opened 1 year ago
I agree. Maybe scraping from the https://apilevels.com/ website enable to determine the ideal minSdkVersion
I don't know if embedding a scraping step in a sonar detection rule is commonplace. But let's try!
⚠️ Remote calls are harmful for the security level of the plugin. This may prevent it from being validated on the sonar marketplace.
Aging devices: minSdkVersion API level recommendation
Platform
Main caracteristics
Severity / Remediation Cost
Rule short description
Set application minSdkVersion to high API level will make users' devices obsolete regarding the application.
Rule complete description
Text
As per Android Studio API Version Distribution minimum API Level 21 reaches 99,3% of devices Also Jetpack Compose is now the reference for building UI and requires API Level 21
https://apilevels.com/ https://developer.android.com/jetpack/compose/setup
build.gradle
Implementation principle
Variant (open discussion)
Previous implementation may change as a new Android version is released each year (with incremented API level)