Skip to content

0.0.3: refactor(core-network): Simplify Hilt providers and remove qualifiers

Choose a tag to compare

@rezaramesh-dev rezaramesh-dev released this 15 Feb 10:18
· 8 commits to master since this release
Refactors the Hilt `NetworkModule` to simplify dependency provision by removing custom qualifiers and the internal `NetworkConfig`. This makes the module more configurable by requiring the base URL to be provided externally.

-   **core-network:**
    -   Removes custom Hilt qualifiers (`@ConnectionSpecProvide`, `@OkHttpClientProvide`, `@GsonProvide`, `@RetrofitProvide`) from the provider methods in `NetworkModule`.
    -   Removes the `NetworkConfig` class, as the base URL is now expected to be provided by an external module via the `@NetworkUrls` qualifier.
    -   Updates `provideOkHttpClient` to use `listOf()` instead of `Collections.singletonList()`.

-   **IDE:**
    -   Adds Gradle migration settings to the project's `.idea/gradle.xml` file.