Skip to content
CAI
Software that uses CAICheck a score

oblador/react-native-keychain

55.3

Adequate · 14 November 2026

4.7k

lines of production code

Kotlin

with TypeScript, Objective-C

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added Android Detox integration test and Gradle wrapper scripts

The KeychainExample Android project now includes an end-to-end integration test suite using Detox, with a new DetoxTest class configured to run against the MainActivity. Additionally, the project now ships with the standard Gradle wrapper scripts (gradlew and gradlew.bat), enabling users to build and run the example app without manually installing Gradle.

KeychainExample/android · high confidence

Added Android build scaffolding with Gradle wrapper

The Android module now includes the standard Gradle wrapper scripts (gradlew, gradlew.bat) and an .npmignore file to support building Android components. This change provides the necessary infrastructure for developers to execute Gradle tasks locally without requiring a pre-installed Gradle environment, establishing the baseline build configuration for the Android portion of the project.

android · high confidence

Example app now supports configurable security storage and access control options

The KeychainExample app has been updated to demonstrate advanced security features, allowing users to select specific storage types (AES-CBC, AES-GCM, AES-GCM without authentication, RSA) and access control methods (None, Passcode, Password, Biometry) when saving credentials. This change introduces UI controls for these options and maps them to the underlying Keychain API, enabling developers to test how different encryption and authentication configurations affect credential storage and retrieval on both iOS and Android platforms.

KeychainExample/src · high confidence

Project initialization and repository structure overhaul

The repository has been initialized with a comprehensive project structure, including TypeScript configuration, ESLint and Prettier rules, and a new README that documents the library's features, installation, and maintainers. This change establishes the foundational tooling and documentation for the react-native-keychain library, preparing it for development and distribution.

(repo-wide) · high confidence

Behavioural changes

13 commits (5 fixes) modifying android/src/main/java/com/oblador/keychain/cipherStorage

A change to existing behaviour in android/src/main/java/com/oblador/keychain/cipherStorage — 13 commits (5 fixs), 6 files: “feat: passcode support for android (\#720)”; “fix: add error handling in decryptBytes to throw CryptoFailedException for AEADBadTagException (\#739)”; “feat!: remove FacebookConceal and library warmup, upgrade minAndroidSdk (\#719)”; and 10 more (refs \#720, \#739, \#719, \#670, \#685, …).

android/src/main/java/com/oblador/keychain/cipherStorage · medium confidence · unverified

2 commits (0 fixes) modifying android, ios

A change to existing behaviour in android, ios — 2 commits, 10 files: “test: split native storage coverage from Detox flows (\#833)”; “feat: list internet credential servers without reading passwords (\#828)” (refs \#833, \#828). Also in this area: 1 commit (1 fix) fixing android, src.

android/src/androidTest, android/src/test · medium confidence · unverified

2 commits (0 fixes) modifying android, ios

A change to existing behaviour in android, ios — 2 commits, 10 files: “test: split native storage coverage from Detox flows (\#833)”; “feat: list internet credential servers without reading passwords (\#828)” (refs \#833, \#828). Also in this area: 2 commits (1 fix) modifying KeychainExample, ios, src; iOS Keychain Manager supports Turbo Modules.

ios · medium confidence · unverified

3 commits (1 fix) modifying KeychainExample

A change to existing behaviour in KeychainExample — 3 commits (1 fix), 20 files: “fix: preserve prompt defaults and align public APIs with native results (\#805)”; “test: split native storage coverage from Detox flows (\#833)”; “feat: list internet credential servers without reading passwords (\#828)” (refs \#805, \#833, \#828). Also in this area: Configured end-to-end testing infrastructure with Detox.

KeychainExample/e2e, KeychainExample/e2e/utils · medium confidence · unverified

4 commits (0 fixes) modifying KeychainExample/ios

A change to existing behaviour in KeychainExample/ios — 4 commits, 1 file: “feat!: remove unit tests, add bob builder, modify github workflows”; “chore: remove old example and move code to the new example with react-native-test-app”; “Bump example repo to react-native 0.69 (\#550)”; and 1 more (refs \#550, \#669).

KeychainExample/ios · medium confidence · unverified

4 commits (1 fix) modifying KeychainExample/ios/KeychainExample.xcworkspace

A change to existing behaviour in KeychainExample/ios/KeychainExample.xcworkspace — 4 commits (1 fix), 2 files: “feat!: remove unit tests, add bob builder, modify github workflows”; “Bump React Native to 0.68 (\#535)”; “ci: fix e2e tests”; and 1 more (refs \#535).

KeychainExample/ios/KeychainExample.xcworkspace · medium confidence · unverified

6 commits (0 fixes) modifying website

A change to existing behaviour in website — 6 commits, 136 files: “docs: clarify Android storage defaults and v10 upgrades (\#830)”; “chore(docs): migrate to dark VitePress documentation (\#832)”; “docs: clarify getGenericPassword false result (\#799)”; and 3 more (refs \#830, \#832, \#799, \#828, \#831, …). Also in this area: Website migrated to Docusaurus with versioned documentation.

website · medium confidence · unverified

Android implementation rewritten in Kotlin with modern encryption and storage

The Android module has been completely rewritten in Kotlin, replacing the previous Java implementation. This update introduces AES-GCM encryption (with and without biometric authentication) alongside the existing AES-CBC and RSA options, and migrates persistent storage from SharedPreferences to Android DataStore. It also adds support for strong biometric authentication, device passcode fallback, and StrongBox hardware security, while registering the module as a TurboModule for improved performance. Also in this area: 2 commits (0 fixes) modifying android, ios; 1 commit (1 fix) fixing android, src; 1 commit (0 fixes) modifying android.

android/src/main/java/com/oblador/keychain · medium confidence · unverified

Default authentication prompt text for credential retrieval

When retrieving generic passwords or internet credentials, the system now displays a default authentication prompt with the title "Authenticate to retrieve secret" and a "Cancel" button if the caller does not provide custom \authenticationPrompt\ options. This behavior is implemented via the new \normalizeAuthPrompt\ utility in \src/normalizeOptions.ts\, which merges user-provided prompt settings with these defaults before passing them to the native keychain manager.

src · high confidence

Migrate KeychainExample to react-native-test-app and modern tooling

The KeychainExample has been migrated from the legacy example structure to use react-native-test-app, introducing a new configuration ecosystem including a Detox end-to-end test setup, a modern Metro configuration with peer dependency handling, and a Babel setup using @react-native/babel-preset. This change updates the example's build and test infrastructure to support current React Native standards, including TypeScript support and multi-platform resource definitions, while removing the previous unit test suite in favor of the new e2e testing framework.

KeychainExample · high confidence

Test coverage

1 commit adding/updating tests in KeychainExample; 1 commit adding/updating tests in KeychainExample/ios/KeychainNativeTests, KeychainExample/ios/KeychainUITests.

Dependencies

Example app and library build configuration updated for React Native 0.77 and New Architecture

The KeychainExample app and the library's Android build files have been updated to support React Native 0.77.1 and enable the New Architecture (TurboModules and Fabric) by default. The example project now uses \react-native-test-app\ for bootstrapping, includes Detox for end-to-end testing, and specifies CocoaPods 1.15.2 while excluding known problematic versions (1.15.0, 1.15.1). On Android, the library's \build.gradle\ now targets SDK 34, uses Android Gradle Plugin 8.3.1, and conditionally includes New Architecture source directories. The main \package.json\ has been bumped to version 10.0.0.

(dependencies) · high confidence

Update Gradle wrapper to version 8.6

The Android build system now uses Gradle 8.6 via the wrapper configuration. This ensures consistent build environments across development and CI by pinning the specific Gradle distribution version.

android/gradle · high confidence

Updated Gradle wrapper to version 8.11.1

The Android example project now uses Gradle wrapper version 8.11.1 for building, replacing the previous version. This ensures consistent build environments and leverages the latest Gradle features and improvements for the KeychainExample Android module.

KeychainExample/android/gradle · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 54 → 55 (+1.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 89 → 65 (-24.4)
  • Architecture 100 → 99 (-0.6)
  • Maturity 61 → 66 (+5.1)
  • Readiness 42 → 38 (-4.5)
  • Security 60 → 71 (+11.1)
  • Performance 60 → 100 (+40.0)

Resolved (73)

  • App.App (cognitive 18) (KeychainExample/src/App.tsx)
  • App.App (cyclomatic 16) (KeychainExample/src/App.tsx)
  • Critical CVE: [GHSA redacted] (yarn.lock)
  • Critical CVE: [GHSA redacted] (yarn.lock)
  • Critical CVE: [GHSA redacted] (yarn.lock)
  • Critical CVE: [GHSA redacted] (yarn.lock)
  • Duplicated block (25–30 lines × 2) (android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAesGcm.kt)
  • Duplicated block (6 lines × 2) (android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAesCbc.kt)
  • FunctionTooLong: App.App (KeychainExample/src/App.tsx)
  • High CVE: [CVE redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • …and 53 more

New (53)

  • App.Workbench (cognitive 20) (KeychainExample/src/App.tsx)
  • App.Workbench (cyclomatic 55) (KeychainExample/src/App.tsx)
  • App.Workbench::run (cognitive 21) (KeychainExample/src/App.tsx)
  • Critical CVE: [GHSA redacted] (yarn.lock)
  • Critical CVE: [GHSA redacted] (yarn.lock)
  • Duplicated block (25–30 lines × 2) (android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAesGcm.kt)
  • Duplicated block (6 lines × 2) (android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAesCbc.kt)
  • Edited copy of a member (12 corresponding lines) (android/src/main/java/com/oblador/keychain/KeychainModule.kt)
  • Edited copy of a member (12 corresponding lines) (android/src/main/java/com/oblador/keychain/resultHandler/ResultHandlerInteractiveBiometric.kt)
  • Edited copy of a member (18 corresponding lines) (android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAesCbc.kt)
  • Edited copy of a member (25 corresponding lines) (android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAesGcm.kt)
  • Edited copy of a member (33 corresponding lines) (android/src/main/java/com/oblador/keychain/KeychainModule.kt)
  • FileTooLong: src/App.tsx (KeychainExample/src/App.tsx)
  • FunctionTooLong: App.Workbench (KeychainExample/src/App.tsx)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • High CVE: [GHSA redacted] (yarn.lock)
  • …and 33 more

Changes since last survey

  • 16 commits — 12 feature/other, 4 fixes

By area

  • (root) — 4 commits
  • KeychainExample/e2e — 4 commits
  • android/src — 2 commits
  • website/docs — 2 commits
  • KeychainExample/src — 1 commit
  • android/build.gradle — 1 commit
  • src/index.ts — 1 commit
  • website/versioned_docs — 1 commit

Notable commits

  • fix: fix(android): list stored services and preserve authentication on reads (#827)
  • fix: fix(android): update DataStore for RELRO alignment (#829)
  • fix: fix(ios): respect cloudSync false (#824)
  • fix: fix: preserve prompt defaults and align public APIs with native results (#805)
  • change: Release 11.0.0 (#834)
  • change: chore(docs): migrate to dark VitePress documentation (#832)
  • change: chore: improve coding agent guidance (#825)
  • change: chore: refresh example app (#826)
  • change: docs: clarify Android storage defaults and v10 upgrades (#830)
  • change: docs: clarify getGenericPassword false result (#799)
  • change: docs: show how to store multiple independent values (#831)
  • change: feat!: require React Native 0.82 and the New Architecture (#823)
  • change: feat(ios): add Swift Package Manager support (#822)
  • change: feat: list internet credential servers without reading passwords (#828)
  • change: test: allow iOS contract batch time on hosted simulators (#835)
  • change: test: split native storage coverage from Detox flows (#833)

Architecture

  • Containers 0 added · 0 removed · contexts 1 added · 1 removed · edges 0 added · 0 removed

Added bounded contexts (1)

  • android

Removed bounded contexts (1)

  • android

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

oblador/react-native-keychain was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit ff42a81f957a82485f9f9574ad3ccef92f648c93 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.