sms_autofill icon indicating copy to clipboard operation
sms_autofill copied to clipboard

reduce minSdkVersion to 16 to cover all flutter apps

Open daadu opened this issue 3 years ago • 2 comments

from flutter v2.8.0 - the project created with flutter tool sets the minSdkVersion to version defined by flutter engine - something like below:

android {
   compileSdkVersion flutter.compileSdkVersion
...
    defaultConfig {
        applicationId "com.example.my_proj"
        minSdkVersion flutter.minSdkVersion 
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName

flutter.minSdkVersion is set to 16:

https://github.com/flutter/flutter/blob/cf4400006550b70f28e4b4af815151d1e74846c6/packages/flutter_tools/gradle/flutter.gradle#L36

I suggest we drop min SDK to 16 and silently fail if the SDK version is less than 18 - moreover can add additional method to check if the cpability exists - something like bool SmsAutoFill.isSupported()

daadu avatar Dec 10 '21 13:12 daadu

I'll be happy to file a PR against this if approved.

daadu avatar Dec 10 '21 13:12 daadu

Any updates on that?

Myzel394 avatar Jul 20 '22 13:07 Myzel394