Skip to content

Add selective backup and restore - #772

Merged
ShiftHackZ merged 3 commits into
developfrom
feature/backup-restore
Nov 19, 2026
Merged

ShiftHackZ merged 3 commits into
developfrom
feature/backup-restore

Conversation

@ShiftHackZ

Copy link
Copy Markdown
Owner

Description

Adds selective, versioned binary backups for provider configuration, gallery/history, network statistics and app settings on Android and iOS.

  • Adds reusable Create/Restore screens in Settings and a recovery invitation after first-launch onboarding, followed by normal provider configuration.
  • Includes portable API keys and Basic Auth with an unencrypted-file disclosure. Provider replacements require explicit conflict confirmation; the active provider is preserved.
  • Appends unique gallery images without duplicating existing output bytes and adds network counters. Missing or removed fields/providers are skipped; committed restore sections survive interruption without being applied twice by the same session.
  • Uses shared domain contracts, feature:backup implementations and presentation:backup UI, native document pickers, bounded image validation and durable export/recovery state.
  • Adds consistent dialogs, selected-file details, animated provider choices, shared scrollbars and horizontal tab transitions with a 40% interaction threshold.
  • Fixes local-model Setup remaining enabled when an undownloaded catalog model is selected while Custom is enabled.

Fixes #196. Related to #439.

Checklist

  • I have ensured this PR does not contain any breaking changes for existing functionality
  • I have added automated tests that cover the new behavior and removed obsolete tests and code
  • I have added documentation for any new public APIs and update existing documentation for any changes to public APIs

Tested On

  • Android: Emulator
  • Android: Real device
  • iOS: Simulator
  • iOS: Real iPhone device

Validation: full CI-equivalent Android/JVM coverage run passed with 1,908 tests passing and 26 existing skips; this follow-up adds 92 unit scenarios. Backup module line coverage increased from 60.2% to 83.9%. Kotlin lint, architecture verification, common metadata, Android fullDev assembly, iOS compilation and simulator host build passed.

Android emulator flows covered full/selective backup and restore, provider conflicts, first-launch recovery, process-death export, duplicate-image suppression and scrolling. iOS has native Files integration and shared restore logic, but its live import/export and cross-platform roundtrip remain unverified.

@ShiftHackZ
ShiftHackZ merged commit a80d142 into develop Nov 19, 2026
25 of 28 checks passed
@ShiftHackZ
ShiftHackZ deleted the feature/backup-restore branch November 19, 2026 14:27
@ShiftHackZ ShiftHackZ linked an issue Nov 19, 2026 that may be closed by this pull request
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.

Backup/restore app configuration

1 participant