Skip to content
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

Network Module redesign with Kotlin coroutine and retrofit #2

Open
1 task
mithunvaghela opened this issue Aug 12, 2024 · 1 comment
Open
1 task

Comments

@mithunvaghela
Copy link
Collaborator

mithunvaghela commented Aug 12, 2024

Description

The API calls in the Frontline Health Worker Mobile App are not well-formatted or structured for reusability, scalability, and maintainability. Most API calls are designed to run on the UI thread, causing main thread blocking and increasing the risk of ANR (Application Not Responding) errors. We have used RxJava and Retrofit. API calls should be executed on the I/O thread instead of the main thread. Best practices dictate that API calls should be separated from the UI and executed from the business logic layer (e.g., ViewModel, Repository, and DataSource) using coroutine scope. This approach ensures reusability, a single source of truth, scalability, and ease of maintainability.

Goals

  • Redesign the Network module with help of Kotlin coroutine and MVVM design pattern or architecture.

Expected Outcome

Refactored Network module with reusability, a single source of truth, scalability, and ease of maintainability using
Kotlin coroutine and MVVM

Implementation Details

Kotlin coroutine, MVVM and Retrofit

Product Name

Frontline Health Worker Mobile App

Organization Name

Intelehealth

Tech Skills Needed

Android SDK, MVVM, Kotlin, Retrofit

Mentors

@mithunvaghela

Domain

Healthcare

Complexity

Medium

Category

Performance Improvements, Mobile, Refactoring

Sub-Category

APIs, Library, Architecture

@iAmAjayTeli
Copy link

@mithunvaghela @satyadeep-ih Please assign this issue to me , I can solve the mentioned issue properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants