nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

Refactor network module

Open MohShMehr opened this issue 3 months ago • 6 comments

What I have done and why

  • Refactored the network module to use dependency injection (DI).
  • Introduced separate interfaces for each entity API.
  • No functional changes; behavior remains the same.

This refactor was inspired by using the NIA project as a base project. It improves maintainability and makes the codebase easier to extend when working with multiple API methods.

Testing

  • Ran ./gradlew testDemoDebug locally; all tests passed.
  • Applied formatting via ./gradlew --init-script gradle/init.gradle.kts spotlessApply.

Related issues

  • N/A

MohShMehr avatar Aug 27 '25 05:08 MohShMehr