lmkafar.blogg.se

Rss reader android
Rss reader android









rss reader android

RSS stands for “really simple syndication.” It's a protocol that allows an RSS reader to talk to your favorite websites and get updates from them. I just need to wrap it inside the AndroidView composable function.Whether you are sick of social media, want to get away from endless notifications, or just want to read your news all in one spot, an RSS reader can help. fun MainScreen (viewModel: MainViewModel, useSystemUIController: Boolean) '")īy right, I should be able to build the article screen from the feed's data, but I took the shortcut to implement an in-app web browser using WebView. The top and bottom app bars are implemented using Scaffold composable function. For details, please refer to the source code directly. The source code shown here may not be complete. I just highlight the high-level implementations that are worth mentioning. Implemented Proto DataStore to store user preferences instead of using the same ArticlesDatabase room database. For example, I haveĬhanged the app to use multiple view models instead of a single view modelĪdded usecase classes in the domain layer and move all repository-related classes (including the ArticlesRepository interface) from the domain to the data layer.

rss reader android

So, the information provided in this article may be outdated. Important note: This app is under heavy development. Implements local RoomDatabase which acts as single source of truthįetches XML string using ktor client, parses the XML feed and converts the XML to remote data (which is transformed to local data for local database writing) Implements the ArticlesRepository interface, fetches articles from WebService and write into the ArticlesDatabase, map and transform local data to domain data











Rss reader android