Open DatL4g opened 1 month ago
Hi, @DatL4g Unfortunately, Decoroutinator works only on Android SDK level 26 or higher. Because it requires MethodHandle API which is available only from this version.
Is it possible to only apply this to Android 26+ and keep the "normal" exception on lower versions.
Or is it possible to use Java reflection with invoke()
instead?
Is it possible to only apply this to Android 26+ and keep the "normal" exception on lower versions.
right now there is no such option, but I'll think and maybe can do it in the future.
Or is it possible to use Java reflection with invoke() instead?
Also right now it's not possible. And this option is not a priority because Java reflection makes additional frames unlike MethodHandle
s
Upd: although using Java reflection for old Android versions is a good idea. And I'll consider implementing it in the next release.
I would also be very happy if this library didnt force me to upgrade from API 23 to API26.
There are not many users.... but Im reluctant to exclude them "just" to get better stack traces.
So, it would be great if SD allowed lower Android versions, but just didnt do anything at all on these lower SDK versions.
I have no need of getting better stack traces for these old versions, so dont bother adding new complexity, such as fallback on reflection. Just let us compile and and we are happy :-)
The old Android phones are already slow. I would prefer to not have anything, such as reflection, that makes my app slower on older phones.
When applying the plugin (
2.4.5
), I can't build my app with the following error:This does not only happen to my "personal" code, but to libraries like
lifecycle
as well.