Jetpack libraries
Jetpack Libraries are a collection of libraries and APIs from Google that help us developers create better apps using less code. They are normally created to address some pain points we, as developers, face while creating our apps. Let’s look at some of these pain points and some of the Jetpack libraries that were created to address them:
- Storing data locally and observing changes to the data: We had to use SQLite to store data locally. Even for simple Create, Read, Update, and Delete (CRUD) operations, we had to write a lot of boilerplate code. We also had to write a lot of code to observe changes to the data. This is a lot of work for a simple task. Jetpack libraries, such as Room and LiveData, were created to address this pain point. Room is a library that allows us to easily store data locally. It also allows us to easily observe changes to the data. LiveData is a library that allows us to observe changes to data easily. It is also lifecycle-aware...