Skip to content

feat(offline): standardize native storage on community SQLite - #30

Merged
rdlabo merged 2 commits into
mainfrom
feat/community-sqlite-offline
Jul 23, 2026
Merged

feat(offline): standardize native storage on community SQLite#30
rdlabo merged 2 commits into
mainfrom
feat/community-sqlite-offline

Conversation

@rdlabo

@rdlabo rdlabo commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the Capawesome SQLite-specific offline adapter with @capacitor-community/sqlite
  • store a cryptographically random first-install SQLCipher secret in the plugin's Keychain / Android keystore
  • keep the community SQLite runtime application-supplied so web-only offline bundles have no native plugin dependency
  • remove Capawesome SQLite and Secure Preferences setup from the public API and docs

Verification

  • npm run lint
  • npm run prebuild
  • npm test (455 tests across demo and published libraries)
  • production offline FESM has no @capacitor-community/sqlite runtime import
  • git diff --check

Migration

Offline consumers install the @capacitor-community/sqlite major matching Capacitor, keep CapacitorSQLite encryption enabled, remove Capawesome SQLite/Secure Preferences wiring, and pass both sqliteConnection: new SQLiteConnection(CapacitorSQLite) and a cryptographically random first-install createEncryptionKey generator. Android apps must exclude the database and secret storage from backup/device transfer as documented.

@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for rdlabo-ionic-angular-library ready!

Name Link
🔨 Latest commit f96b8bb
🔍 Latest deploy log https://app.netlify.com/projects/rdlabo-ionic-angular-library/deploys/6a6162c569aef3000818266e
😎 Deploy Preview https://deploy-preview-30--rdlabo-ionic-angular-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@rdlabo
rdlabo marked this pull request as ready for review July 23, 2026 00:42

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@rdlabo
rdlabo merged commit c625a87 into main Jul 23, 2026
12 checks passed
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