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:
@@ -0,0 +1,3 @@
|
||||
[submodule "Vendor/KeePassKit"]
|
||||
path = Vendor/KeePassKit
|
||||
url = https://github.com/mstarke/KeePassKit
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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")]
|
||||
),
|
||||
]
|
||||
)
|
||||
+1
Submodule Vendor/KeePassKit added at 4dbd8cd7bc
Reference in New Issue
Block a user