I realize its in alpha stage, however I'd like to know if the android architecture components like liveData and room have any minimum requirements ? such as min android api/sdk etc. I looked here but its not showing me if there is any requirement. Can i assume i can use this right back to at least android ICS ?
There are four components, each with a specific role: Room , ViewModel , LiveData , and Lifecycle . All of those parts have their own responsibilities, and they work together to create a solid architecture.
Override the minimum value of SDK version. minSdkVersion is the minimum version of the Android operating system required to run your application. The Android app must have a minimum SDK version 19 or higher. If you want to support devices below API level 19, you must override minSDK version.
Android Architecture Components are a set of libraries to help with various challenges in dealing with Android architecture. Room handles database persistence. Lifecycle helps you create components that are aware of the current Android lifecycle state. ViewModel holds data and survives configuration changes.
Yes, you can assume that it goes back to ICS at least. Also starting support library version 26, minSdk becomes 14. So I assume new architecture libraries will be the same.
According to googlesamples, lowest API version is 14, which is Ice Cream Sandwich.
Here are the links to the gradle files for the minSdk 14 apps:
Github Browser Sample gradle file
Persistent Content Provider Sample
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With