Includes SwiftData dual-store architecture (local reference + CloudKit user data), JSON-based data seeding, 20 tense guides, 20 grammar notes, SRS review system, course vocabulary, and widget support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
530 B
Swift
15 lines
530 B
Swift
#!/usr/bin/env swift
|
|
|
|
// Run this script to generate a pre-built SwiftData store (default.store)
|
|
// that ships with the app bundle. No first-launch seeding needed.
|
|
|
|
import Foundation
|
|
import SwiftData
|
|
|
|
// We can't easily run this as a standalone script because it needs
|
|
// the @Model types compiled. Instead, we'll build it as part of the app.
|
|
// See DataLoader.buildPreloadedStore() below.
|
|
|
|
print("Use DataLoader.buildPreloadedStore() from within the app to generate the store.")
|
|
print("Then copy the .store file to the bundle.")
|