Skip to content

Commit

Permalink
Moved known values into separate KnownValues package.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfmcnally committed Mar 17, 2024
1 parent 83dc8db commit bf5f0c0
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 248 deletions.
14 changes: 8 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ let package = Package(
targets: ["Envelope"]),
],
dependencies: [
.package(url: "https://github.com/BlockchainCommons/BCSwiftSecureComponents.git", from: "8.0.0"),
.package(url: "https://github.com/BlockchainCommons/BCSwiftSecureComponents", from: "8.0.0"),
.package(url: "https://github.com/WolfMcNally/WolfBase", from: "6.0.0"),
.package(url: "https://github.com/WolfMcNally/Graph.git", from: "1.0.0"),
.package(url: "https://github.com/WolfMcNally/GraphMermaid.git", from: "1.0.0"),
.package(url: "https://github.com/WolfMcNally/GraphDot.git", from: "1.0.0"),
.package(url: "https://github.com/WolfMcNally/WolfLorem.git", from: "3.0.0"),
.package(url: "https://github.com/WolfMcNally/TreeDistance.git", from: "1.0.0"),
.package(url: "https://github.com/WolfMcNally/Graph", from: "1.0.0"),
.package(url: "https://github.com/WolfMcNally/GraphMermaid", from: "1.0.0"),
.package(url: "https://github.com/WolfMcNally/GraphDot", from: "1.0.0"),
.package(url: "https://github.com/WolfMcNally/WolfLorem", from: "3.0.0"),
.package(url: "https://github.com/WolfMcNally/TreeDistance", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(path: "../BCSwiftKnownValues"),
],
targets: [
.target(
Expand All @@ -32,6 +33,7 @@ let package = Package(
"GraphMermaid",
"GraphDot",
"TreeDistance",
.product(name: "KnownValues", package: "BCSwiftKnownValues"),
.product(name: "SecureComponents", package: "BCSwiftSecureComponents"),
]),
.testTarget(
Expand Down
4 changes: 4 additions & 0 deletions Sources/Envelope/Base/Exports.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// These re-exports are available to anyone who imports this package.

import Foundation
@_exported import KnownValues
75 changes: 0 additions & 75 deletions Sources/Envelope/Extensions/KnownValue.swift

This file was deleted.

14 changes: 14 additions & 0 deletions Sources/Envelope/Extensions/KnownValueExensions.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Foundation
import SecureComponents

extension KnownValue: DigestProvider {
public var digest: Digest {
Digest(taggedCBOR.cborData)
}
}

extension KnownValue: EnvelopeEncodable {
public var envelope: Envelope {
Envelope(self)
}
}
100 changes: 0 additions & 100 deletions Sources/Envelope/Extensions/KnownValues.swift

This file was deleted.

67 changes: 0 additions & 67 deletions Sources/Envelope/Extensions/KnownValuesStore.swift

This file was deleted.

0 comments on commit bf5f0c0

Please sign in to comment.