-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saeed Rezaee #5
base: master
Are you sure you want to change the base?
Saeed Rezaee #5
Conversation
The app is implemented in MVVM architectural pattern. The Koin library is used for dependency injection. The json data file is stored in assets folder. The file is read in data module. The core logic of the application is implemented in MainViewModel.kt file where data is fetch from the data module and the passed down to the view by data binding. The MainActivity.kt only shows the data and starts the process of the MainViewModel.kt The json file is read and converted into PaymentDetails.kt and PaymentModel.kt files. Some animations are implemented in the app and there is Animations.kt to handle the animations easily. The BindingAdapters.kt file contains the binding adapters for the activity_main.xml layout file to populate the data that are observed from the MainViewModel.kt
User can now set a json path url from the menu in an input dialog. Added Retrofit library to handle remote requests. Added NetworkApi.kt and RetrofitClient.kt files to handle network requests. Changed the PaymentRepository.kt files to return a flow from the data module. In the PaymentRepositoryImpl.kt file, now fetching the data is decided by checking the shared preferences and getting the data from remote or cache. Added toolbar to main activity to show a refresh button and an input dialog which user can use to set a custom data.json url. Added Internet permission to AndroidManifest.xml file.
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
Worked on adding online features to the app on my spare times. |
The app is implemented in MVVM architectural pattern. The Koin library is used for dependency injection. The json data file is stored in assets folder.
The file is read in data module.
The core logic of the application is implemented in MainViewModel.kt file where data is fetch from the data module and the passed down to the view by data binding. The MainActivity.kt only shows the data and starts the process of the MainViewModel.kt The json file is read and converted into PaymentDetails.kt and PaymentModel.kt files. Some animations are implemented in the app and there is Animations.kt to handle the animations easily. The BindingAdapters.kt file contains the binding adapters for the activity_main.xml layout file to populate the data that are observed from the MainViewModel.kt