Skip to content

0.0.6: feat(core-network): Add optional request retry and improve documentation

Choose a tag to compare

@rezaramesh-dev rezaramesh-dev released this 16 Feb 10:27
· 5 commits to master since this release
Adds an optional, configurable request retry mechanism to the `core-network` module and provides comprehensive documentation in a new `Readme` file.

-   **core-network:**
    -   Introduces an optional request retry mechanism.
    -   Adds `RetryConfig` interface to define retry attempts and delay.
    -   Implements `RetryInterceptor` to handle the retry logic.
    -   Uses `@BindsOptionalOf` in `OptionalRetryModule` to make `RetryConfig` an optional dependency, allowing consumers to enable it via Hilt.
    -   Removes the hardcoded `HttpLoggingInterceptor` provider from `NetworkModule`, delegating logging configuration to the consuming application.

-   **docs:**
    -   Adds a detailed `Readme` file for the `core-network` module.
    -   The documentation covers features, installation via JitPack, and usage examples for providing a base URL, signature interceptor, logging, custom headers, and the new retry configuration.

-   **build:**
    -   Updates Android Gradle Plugin from `9.0.0` to `9.0.1`.
    -   Updates `phonenumber` dependency from `9.0.23` to `9.0.24`.