feat: scaffold MyPassCore Swift Package

- Add MyPassCore local Swift Package with directory structure for
  Models, KDBX, TOTP, Keychain, AutoFill, and Session modules
- Add KeePassKit as git submodule (Vendor/KeePassKit) with SPM wrapper
  Package.swift since upstream has no native SPM support
- Delete SwiftData boilerplate Item.swift from main app target

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 12:19:36 +02:00
co-authored by Claude Sonnet 4.6
parent 9b93ca59b8
commit 32c37c6f30
4 changed files with 30 additions and 18 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "Vendor/KeePassKit"]
path = Vendor/KeePassKit
url = https://github.com/mstarke/KeePassKit
-18
View File
@@ -1,18 +0,0 @@
//
// Item.swift
// MyPass
//
// Created by Christophe Vila on 21/05/2026.
//
import Foundation
import SwiftData
@Model
final class Item {
var timestamp: Date
init(timestamp: Date) {
self.timestamp = timestamp
}
}
+26
View File
@@ -0,0 +1,26 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "MyPassCore",
platforms: [.iOS(.v17), .macOS(.v14)],
products: [
.library(name: "MyPassCore", targets: ["MyPassCore"]),
],
dependencies: [
.package(path: "../Vendor/KeePassKit"),
],
targets: [
.target(
name: "MyPassCore",
dependencies: [
.product(name: "KeePassKit", package: "KeePassKit"),
]
),
.testTarget(
name: "MyPassCoreTests",
dependencies: ["MyPassCore"],
resources: [.copy("Fixtures")]
),
]
)
Vendored Submodule
+1
Submodule Vendor/KeePassKit added at 4dbd8cd7bc