Conversation
|
We have apps at Meta that use React Native and are targeting a min SDK of 24. As such, we probably won't be removing support for them for quite a while. The min SDK is just a suggestion, if your library is only targeting newer versions then that's fine if the app authors are also on a newer min SDK |
|
@Abbondanzo I’m aware, but given the current percentages and the ones from the last time you made such a bump internally, I was hoping you would consider doing it again. Currently, Android is supported from API 24 to 36 (12 versions), and this is quite a burden for library authors (compared to the supported iOS version range). |
Closing for this reason |
|
@cortinico Understandable But as @Abbondanzo said, the minimum SDK version is just a suggestion. What do you think about bumping not the project SDK, but only the template Similarly, we could update the template IPHONEOS_DEPLOYMENT_TARGET value for iOS. This would not impact Meta, since you don't consume community packages, but it could send a positive message to library maintainers. |
I'm in general against this. We tend to follow the minSDK that FB App uses. FB App is quite of a big application, so that should give a sense of what is a good If we were to change the template to send a message to the library author, we'll be effectively fragmenting the ecosystem. So you will end up with libs that have different minSDK versions, which is quite painful to deal with as a app developer. Libraries can already increase minSDK versions if they want today, they don't need to wait for us. |
Summary:
The last time the minSdk was bumped (to 24), the cumulative distribution percentage of supported versions (≥ API 24) was 97.4%, according to this screenshot. Based on the current percentages, if we bump the minSdk to 27, the cumulative distribution percentage of supported versions will be 97.6%.
If you are OK with it, this could help library authors and allow deletion of legacy code.
Changelog:
[ANDROID] [BREAKING] - Bump Android minSdkVersion from 24 to 27
Test Plan:
@RequiresApiannotations targeting APIs 24-26 have been removed, as they are now guaranteed by the new minSdk.