Skip to content

0.0.4: feat(core-network): Add request signing interceptor

Choose a tag to compare

@rezaramesh-dev rezaramesh-dev released this 15 Feb 11:47
· 7 commits to master since this release
Introduces an `XSignatureInterceptor` to automatically add a signed `x-signature` header to outgoing network requests for authentication. This change also increases the minimum SDK version for all core modules.

- **`core-network`:**
    - Adds `XSignatureInterceptor`, which generates a signature using AES encryption based on a public key and a timestamp.
    - Defines a `SignatureConfig` interface to provide the necessary `apiKey` and `hmacKey` for signing.
    - Integrates the `XSignatureInterceptor` into the `OkHttpClient` via the Hilt `NetworkModule`.
    - Cleans up unused Hilt qualifiers.

- **Build:**
    - Increases `minSdk` from 24 to 26 for `core-common`, `core-network`, `core-security`, `core-storage`, and `core-ui` modules. This is required for the `java.util.Base64` API used in the new interceptor.