named-data-mobile / ndn-photo-app

NDN Photo and File Sharing Application (npChat)
https://redmine.named-data.net/projects/npchat/issues
Other
27 stars 24 forks source link

Introduce MVVM architecture #161

Closed dev-ritik closed 5 years ago

dev-ritik commented 5 years ago

Description (required) This PR introduces MVVM architectural pattern as described here. Fixes #https://redmine.named-data.net/issues/4939

What changes did you make and why? Consequently, the following changes have been made:

  1. Moved to androidx
  2. Introduced Navigation, ViewModel, LiveData
  3. Converted multiple activities into single activity multiple fragments design.
  4. Moved code into different packages.
  5. Introduced BackgroundJobs, RealmRepository, UserRepository and supporting classes to handle data and network connection.
  6. Introduced simple java object classes alongside RealmObjects to conveniently store data independent of Realm instances.
dev-ritik commented 5 years ago

Thanks for the review @jrandallclark , I have resolved them. While making friends via QR exchange, friends were successfully made and saved on one of my devices.