stacktrace-decoroutinator icon indicating copy to clipboard operation
stacktrace-decoroutinator copied to clipboard

Make minSdk lower in android library

Open dant3 opened this issue 3 years ago • 2 comments

minSdk = 26 covers 80% of the devices according to play market stats. While it might work for some projects, it will not work for others. Is there a specific reason why it has to be 26? Looking at the code, I guess it can be easily lowered to something like 21 which would make this library easier to use.

Currently you have to add a pesky

    <uses-sdk
        android:minSdkVersion="24"
        tools:overrideLibrary="dev.reformator.stacktracedecoroutinator"
        />

in order to use this library in android project which needs lower minSdk

dant3 avatar Feb 04 '22 13:02 dant3

minSdkVersion was made 26 for a reason: Classes that the SD generates use the MethodHandles API, which requires API 26.

It's possible not to use MethodHandles, but it will require significantly more generated classes.

Anamorphosee avatar Feb 04 '22 14:02 Anamorphosee

Alright. So it means you can't get away with the override, which makes #2 even more valuable then.

dant3 avatar Feb 04 '22 14:02 dant3