logoalt Hacker News

torginusyesterday at 2:37 PM1 replyview on HN

I haven't done Android dev in a while, but I remember the Android SDK offered a 'backwards compatibility pack' - you selected which version you wanted to target, and how old a version you wanted to support (you could go back to like android 5) and it gave you all the polyfills necessary. The only downside was that your app size would balloon to crazy levels.


Replies

monegatoryesterday at 4:55 PM

It's more or less what minimumsdk does, but there may be libraries that require you to bump the minimum.

For example, there are APIs that make feasible something that should be trivial (like autosizing a font based on size, the way it happens in iOS) but they are available from 8.0 so you cut out anything below that.

Or, we use BLE a lot and there are newer methods that makes our life easier but again are not available in older SDK versions