Skip to content

Commit

Permalink
build: moved prism crypto sdk to his own repo
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Dec 1, 2022
1 parent cfa04fe commit 77e4b81
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 56,131 deletions.
13 changes: 9 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ let package = Package(
// .package(url: "https://github.com/realm/SwiftLint.git", branch: "main"),
.package(url: "https://github.com/apple/swift-protobuf", from: "1.7.0"),
.package(url: "https://github.com/antlr/antlr4", branch: "master"),
.package(name: "PrismAPI", path: "PrismAPISDK"),
.package(url: "https://github.com/input-output-hk/atala-prism-didcomm-swift", from: "0.3.4")
.package(url: "https://github.com/input-output-hk/atala-prism-didcomm-swift", from: "0.3.4"),
.package(url: "https://github.com/input-output-hk/atala-prism-crypto-sdk-sp", from: "1.4.1")
],
targets: [
.target(
Expand All @@ -68,7 +68,11 @@ let package = Package(
),
.target(
name: "Apollo",
dependencies: ["Domain", "Core", "PrismAPI"],
dependencies: [
"Domain",
"Core",
.product(name: "PrismAPI", package: "atala-prism-crypto-sdk-sp")
],
path: "Apollo/Sources"
),
.testTarget(
Expand Down Expand Up @@ -109,7 +113,8 @@ let package = Package(
dependencies: [
"Domain",
"Core",
.product(name: "DIDCommxSwift", package: "atala-prism-didcomm-swift")],
.product(name: "DIDCommxSwift", package: "atala-prism-didcomm-swift")
],
path: "Mercury/Sources"
),
.testTarget(
Expand Down
15 changes: 5 additions & 10 deletions Pluto/Sources/Helpers/CoreData/CoreDataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public final class CoreDataManager {
if let mdl = CoreDataManager._model { return mdl }
let modelPath: URL
switch setup.modelPath {
case let .storeName(name, bundle):
guard let modelURL = bundle.url(forResource: name, withExtension: "momd") else {
case let .storeName(name):
guard let modelURL = Bundle.module.url(forResource: name, withExtension: "momd") else {
fatalError("Unable to Find Data Model")
}
modelPath = modelURL
Expand Down Expand Up @@ -102,7 +102,7 @@ public final class CoreDataManager {
private func persistentStoreUrl() -> URL {
let modelName: String
switch setup.modelPath {
case let .storeName(value, _):
case let .storeName(value):
modelName = value
case let .storeURL(value):
modelName = value.deletingPathExtension().lastPathComponent
Expand All @@ -125,7 +125,7 @@ public extension CoreDataManager {
}

public enum ModelPath {
case storeName(String, Bundle = ModelKit.bundle)
case storeName(String)
case storeURL(URL)
}

Expand All @@ -139,15 +139,10 @@ public extension CoreDataManager {
}
}

// Helper so the core data model can be found
public enum ModelKit {
public static let bundle = Bundle.module
}

private extension CoreDataManager.CoreDataSetup {
var modelName: String {
switch modelPath {
case let .storeName(name, _):
case let .storeName(name):
return name
case let .storeURL(url):
return url.deletingPathExtension().lastPathComponent
Expand Down
2 changes: 1 addition & 1 deletion Pluto/Sources/PlutoImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public struct PlutoImpl {

public init(
coreDataSetup: CoreDataManager.CoreDataSetup = .init(
modelPath: .storeName("com.atala.prism.storage"),
modelPath: .storeName("PrismPluto"),
storeType: .persistent
)
) {
Expand Down
21 changes: 0 additions & 21 deletions PrismAPISDK/Package.swift

This file was deleted.

Binary file not shown.
39 changes: 0 additions & 39 deletions PrismAPISDK/PrismAPI.xcframework/Info.plist

This file was deleted.

27,929 changes: 0 additions & 27,929 deletions PrismAPISDK/PrismAPI.xcframework/ios-arm64/PrismAPI.framework/Headers/PrismAPI.h

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
111 changes: 0 additions & 111 deletions PrismAgent/Sources/ConnectionsManager/Connection.swift

This file was deleted.

9 changes: 0 additions & 9 deletions PrismAgent/Sources/ConnectionsManager/DIDCommConnection.swift

This file was deleted.

0 comments on commit 77e4b81

Please sign in to comment.