Primary sync: replace PersistenceActor JSON file with SwiftData + CloudKit - Add SavedCardModel (@Model class) and PersistenceController (ModelContainer with .automatic CloudKit, fallback to local). BackgroundPersistenceActor (@ModelActor) handles all DB I/O off the main thread. - One-time migration imports user_collection.json into SwiftData and renames the original file to prevent re-import. - Inject modelContainer into SwiftUI environment in IYmtgApp. Image storage: Documents/UserContent/ subfolder (blueprint requirement) - ImageManager.dir now targets iCloud Documents/UserContent/ (or local equiv). - migrateImagesToUserContent() moves existing JPGs to the new subfolder on first launch; called during the SwiftData migration. Firebase: demoted to optional manual backup (metadata only, no images) - Remove all automatic CloudEngine.save/delete/batchUpdatePrices calls from CollectionViewModel mutations. - Add backupAllToFirebase() for user-triggered metadata sync. - Add isFirebaseBackupEnabled to AppConfig (default false). - Add Cloud Backup section in Library settings with iCloud vs Firebase explanation and "Backup Metadata to Firebase Now" button. Also: full modular refactor (Data/, Features/, Services/ directories) and README updated with CloudKit setup steps and revised release checklist. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
958 B
Swift
16 lines
958 B
Swift
// ============================================================
|
|
// MIGRATION NOTICE — This file has been refactored.
|
|
// All code has been moved to the new modular structure.
|
|
// Remove this file from your Xcode project and add the
|
|
// new files from the following directories:
|
|
//
|
|
// Services/CoreML/ — ModelManager, ConditionEngine, FoilEngine, SetSymbolEngine
|
|
// Services/Vision/ — CardRecognizer (AnalysisActor), OCREngine
|
|
// Services/Vision/Heuristics/ — BorderDetector, CornerDetector, ListSymbolDetector,
|
|
// SaturationDetector, StampDetector
|
|
// Services/Cloud/ — CloudEngine, TrainingUploader
|
|
// Services/Utilities/ — StoreEngine, ExportEngine, DevEngine, ReviewEngine
|
|
// Data/Network/ — ScryfallAPI (fka InsuranceEngine), NetworkMonitor
|
|
// Data/Persistence/ — ImageManager, PersistenceActor
|
|
// ============================================================
|