Skip to content

chore: cleaning code base#658

Merged
mCodex merged 1 commit into
masterfrom
chore-updating-libs
Jun 30, 2026
Merged

chore: cleaning code base#658
mCodex merged 1 commit into
masterfrom
chore-updating-libs

Conversation

@mCodex

@mCodex mCodex commented Jun 30, 2026

Copy link
Copy Markdown
Owner

This pull request includes several improvements and fixes across Android, iOS, documentation, and tooling. The most significant changes focus on increasing Android security robustness, improving code maintainability, updating dependencies, and refining documentation for clarity. Below are the most important updates:

Android Security and Stability Improvements:

  • Refactored CryptoManager in android/src/main/java/com/sensitiveinfo/internal/crypto/CryptoManager.kt to centralize cipher initialization and error handling in a new initCipher method, reducing code repetition and improving maintainability. [1] [2] [3]
  • Added a check for secure lock screen presence before calling setUnlockedDeviceRequired, preventing crashes on Android 12–14 devices lacking a secure screen lock. This change addresses a known Android platform issue and ensures compatibility. [1] [2]
  • Updated CryptoManager and its usage to require a Context parameter, enabling the secure lock screen check. [1] [2] [3]

Documentation and Clarity:

  • Edited the README.md and docs/PERFORMANCE.md to clarify security details, simplify language, and remove redundant or outdated explanations, making the documentation more concise and accurate. [1] [2] [3] [4] [5]
  • Improved iOS Keychain documentation in HybridSensitiveInfo.swift by streamlining the explanation for the upsert logic and clarifying the reasoning behind force-deletion and retry behavior.

Tooling and Dependency Updates:

  • Upgraded dependencies for the example app, including react, react-native, and related tooling, to their latest versions for improved compatibility and security.
  • Updated biome.json configuration to the latest schema, refined linter rules for better code quality, and added targeted overrides for specific directories. [1] [2] [3] [4]

iOS Project Configuration:

  • Added the PODFILE_DIR variable to the Xcode project configuration to improve CocoaPods integration. [1] [2]

Android Code Comments and Legacy Handling:

  • Simplified and clarified comments regarding authentication requirements and legacy entry handling in HybridSensitiveInfo.kt.

These changes collectively improve security, maintainability, and clarity across the project.

@mCodex

mCodex commented Jun 30, 2026

Copy link
Copy Markdown
Owner Author

It also fixes: [#615]

@mCodex mCodex merged commit 72149f7 into master Jun 30, 2026
9 checks passed
@mCodex mCodex deleted the chore-updating-libs branch June 30, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant