How zack20136/quill-diary works
Quill Diary is an Android-first offline encrypted diary; the README describes encrypted vaults, secure unlocking, diary editing, AI features, backup/restore, portable import/export, and Drive backup. Its principal user flow is creating and managing diary content in the app, then protecting it locally or exporting/backing it up. The supplied tree and excerpts expose Android platform bridges and Drive upload internals, but not the main Flutter lib/ implementation; those app-level capabilities are therefore represented at a high level, without inferred call links. The remaining listed desktop and iOS files are unsupported platform skeletons.
Main entry points: BackupUploadForegroundService.kt Upload service · DriveResumableUploader.kt Resumable uploader · DriveUploadBridge.kt Drive app bridge · DriveUploadJobStore.kt Upload job store
Components 17
Diary app
- Diary experience
- Secure access
- Writing and search
- AI diary tools
- One-time support
Vault and exchange
- Realm import bridge
android/app/src/main/kotlin/zack20136/com/quill_diary/EasyDiaryRealmChannel.kt - Realm reader
android/app/src/main/kotlin/zack20136/com/quill_diary/EasyDiaryRealmReader.kt - Portable export
android/app/src/main/kotlin/zack20136/com/quill_diary/MediaStoreExportChannel.kt
Drive backup
- Drive app bridge
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveUploadBridge.kt - Upload service
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/BackupUploadForegroundService.kt - Upload job store
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveUploadJobStore.kt - Resumable uploader
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveResumableUploader.kt - Access token provider
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveAccessTokenProvider.kt - Remote cleanup
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveRemoteFileCleanup.kt
Android integration
- Android host
android/app/src/main/kotlin/zack20136/com/quill_diary/MainActivity.kt
Other components
- Diary user
- Google Drive
Connections 23
- Diary user → Diary experience: uses
README.md - Diary experience → Secure access: unlocks vault
README.md - Diary experience → Writing and search: writes entries
README.md - Diary experience → AI diary tools: uses optional AI
README.md - Diary experience → One-time support: offers support
README.md - Diary experience → Realm import bridge: imports legacy data
- Realm import bridge → Realm reader: reads Realm
android/app/src/main/kotlin/zack20136/com/quill_diary/EasyDiaryRealmChannel.kt - Diary experience → Portable export: exports portable files
- Android host → Realm import bridge: registers channel
android/app/src/main/kotlin/zack20136/com/quill_diary/MainActivity.kt - Android host → Portable export: registers channel
android/app/src/main/kotlin/zack20136/com/quill_diary/MainActivity.kt - Android host → Drive app bridge: registers bridge
android/app/src/main/kotlin/zack20136/com/quill_diary/MainActivity.kt - Diary experience → Drive app bridge: starts manual backup
README.md - Drive app bridge → Upload job store: reads and updates
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveUploadBridge.kt - Drive app bridge → Upload service: starts service
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveUploadBridge.kt - Upload service → Upload job store: loads and saves jobs
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/BackupUploadForegroundService.kt - Upload service → Resumable uploader: runs upload
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/BackupUploadForegroundService.kt - Upload service → Access token provider: creates provider
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/BackupUploadForegroundService.kt - Resumable uploader → Access token provider: gets tokens
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveResumableUploader.kt - Resumable uploader → Upload job store: persists progress
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveResumableUploader.kt - Resumable uploader → Google Drive: uploads chunks
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveResumableUploader.kt - Remote cleanup → Access token provider: uses credentials
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveRemoteFileCleanup.kt - Remote cleanup → Upload job store: reads job state
android/app/src/main/kotlin/zack20136/com/quill_diary/drive/DriveRemoteFileCleanup.kt - Remote cleanup → Google Drive: cleans remote files