I'm getting this error... why not support Android ...
# arrow
d
I'm getting this error... why not support Android 21?
Copy code
Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [io.arrow-kt:arrow-fx-coroutines-android:2.1.0] /Users/.../.gradle/caches/8.11.1/transforms/045ef252391867439316ddf425145437/transformed/arrow-fx-coroutines-release/AndroidManifest.xml as the library might be using APIs not available in 21
s
Ktor defines
minSdkVersion(9)
, and I cannot find any reference to
minSdk
in KotlinX Coroutines although it defines a Android module 🤔
d
Yup, that's what it looks like... will you remove that in the next version?
s
Yes, we can do a patch release for that but we should figure out what is the ideal
minSdk
. Any suggestions with a reference would be great! I'm going to inquiry inside JB for advice in the meanwhile.
s
At a minimum I think you should aim to support at least what androidx supports, which is what most apps are using one way or another. I think androidx is at either 21 or perhaps 23 which may have changed recently, I have a faint memory of reading about them making such a change.
d
Good point! Android Compose is at 21.
a
yes, let's try to figure out what the good version is; I remember I chose 24 because according to this list it covers the last 9 years, but we can change it to another version if that one brings problems
d
It would be really nice to put it back down to 21... we need to support those older devices that are out there to cover a specific use case and there's too many to just tell everybody "just buy a new device" in our case...
s
and there's too many to just tell everybody "just buy a new device" in our case...
That's never really an option 😅 We'll do a 2.1.1 release with a lowered minSdk soon. Since we don't have any actual Android code I don't see any issues.
👍🏼 1
a
https://github.com/arrow-kt/arrow/pull/3613 -> PR with all the changes required to bring compatibility down to Android 21 (and also Java 😎
kodee loving 2
arrow intensifies 2
2.1.1 with support for Android 21 released!!
d
Thanks a lot 👍🏼!