Extrahiert die zuvor zweimal von Hand gebaute Plumbing aus pageta-native + nutriphi-native in ein Paket ManaEventSync (Counterpart zu @mana/event-sync): - Core: EventEnvelope (+clientId/payloadHash), JSONValue, ULID, JWTSubject, EventSyncError - EventStorage (SwiftData): parametrierbar (Store/App-Group/additionalModels/In-Memory), Outbox, Claim-Reattribute, Anonymous-Retention-Prune - Transport: SyncHTTPClient (+X-Schema-Hash/422), optionaler SyncWSClient - Crypto: CryptoProvider/NoOp/MasterKey (AES-GCM enc:1:), VaultClient — opt-in - EventSyncEngine: besitzt die Identität (makeEnvelope anon/echt), emit offline, signIn(realUserId) re-taggt idempotent + drained, Retention 10k/90d 18 Tests grün. Plan: mana/docs/playbooks/MANA_SWIFT_EVENT_SYNC.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
889 B
Swift
34 lines
889 B
Swift
// swift-tools-version: 6.0
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "mana-swift-event-sync",
|
|
defaultLocalization: "de",
|
|
platforms: [
|
|
.iOS(.v18),
|
|
.macOS(.v15),
|
|
],
|
|
products: [
|
|
.library(name: "ManaEventSync", targets: ["ManaEventSync"]),
|
|
],
|
|
dependencies: [
|
|
.package(path: "../mana-swift-core"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "ManaEventSync",
|
|
dependencies: [
|
|
.product(name: "ManaCore", package: "mana-swift-core"),
|
|
],
|
|
path: "Sources/ManaEventSync",
|
|
swiftSettings: [
|
|
.enableExperimentalFeature("StrictConcurrency"),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "ManaEventSyncTests",
|
|
dependencies: ["ManaEventSync"],
|
|
path: "Tests/ManaEventSyncTests"
|
|
),
|
|
]
|
|
)
|