Feat/key rotation
This pull request introduces several significant improvements and new features to the Android core of the SensitiveInfo module, focusing on type safety, validation, and response consistency. It also includes some minor code style and configuration updates.
Android core improvements:
- Introduced a type-safe
Result<T>class inResult.ktto standardize error handling and composition of operations, along with extension functions for easier usage. - Added
Extensions.ktwith utility functions for working withResult, validation helpers, and keystore alias generation. - Added a central
SensitiveInfoModule.ktfor dependency configuration and storage validation logic, with clear guidance for future Hilt DI integration. - Implemented a
ResponseBuilderinterface and a standard implementation inResponseBuilder.ktto ensure consistent, type-safe responses from native operations. - Added a
StorageValidatorinterface and Android-specific implementation for robust input validation, enforcing key, value, and service constraints.
Metadata serialization and persistence:
- Updated
PersistedMetadataandPersistedEntryto include analiasfield, ensuring alias information is serialized and deserialized correctly for storage metadata. [1] [2] [3] [4] [5] [6]
Code style and configuration:
- Updated
.prettierrc.js,babel.config.js, andapp.plugin.jsto enforce consistent code style (e.g., semicolons, tab width, quote style, trailing commas). [1] [2] [3]
@mCodex I've opened a new pull request, #500, to work on those changes. Once the pull request is ready, I'll request review from you.
@mCodex I've opened a new pull request, #501, to work on those changes. Once the pull request is ready, I'll request review from you.
@mCodex I've opened a new pull request, #502, to work on those changes. Once the pull request is ready, I'll request review from you.
@mCodex I've opened a new pull request, #503, to work on those changes. Once the pull request is ready, I'll request review from you.
@mCodex I've opened a new pull request, #504, to work on those changes. Once the pull request is ready, I'll request review from you.