fix(android): use .noopbak extension for Backup & Move export in Data Sources #19
No reviewers
Labels
No labels
bug
discussion
enhancement
help wanted
multi-source
question
roadmap
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NoopApp/noop!19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "A/noop:fix/datasources-backup-extension-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
The Backup & Move card in the Data Sources screen was passing
"strand-backup.noopdb"as the suggested filename to the system file picker. The.noopdbextension belongs to the old plain-SQLite format that was retired in favour of the compressed.noopbakformat (ZIP-wrapped SQLite, typically 80-90% smaller).DataBackup.exportTohas always written the compressed format - the stale extension was the only bug. A user who accepted the default filename would end up with a.noopdbfile that actually contained a ZIP, which:Details:
exportLauncher.launch("strand-backup.noopdb")?exportLauncher.launch("noop-backup-${java.time.LocalDate.now()}.noopbak")inDataSourcesScreen.ktNo logic changes -
DataBackup.exportToalready writes a correct single-entry ZIP with deflate compression.Type of change
How it was tested
Built and ran
assembleFullReleaselocally. Tapped Export in Data Sources - file picker now suggestsnoop-backup-2026-06-17.noopbak. Imported the exported file on the same device - import succeeded and prompted restart as expected.Checklist
swift testinPackages/<name>)android/(./gradlew testFullDebugUnitTest)StrandDesigntokens - no hardcoded colors, fonts, or spacingdocs/CONTRIBUTING.mdStrand.xcodeproj/) or any secrets/keystoresRelated issues
Verified against source and merged — thank you! 🙏
Confirmed:
DataBackup.exportTowrites a.noopbakZIP, the Settings export already uses this exactnoop-backup-<date>.noopbakpattern, and.noopdbis the retired plain-SQLite format — so the suggested filename here was the only thing out of step. Clean catch, and it now matches the Settings export verbatim. Ships in the next release.Welcome, and nice first PR on the new home. 🖤