Skip to content

Commit

Permalink
feat(apollo): add 1.4 prism crypto
Browse files Browse the repository at this point in the history
This will also add the swift package as a local. This method is not ideal and will be changing in the future.
  • Loading branch information
goncalo-frade-iohk committed Nov 24, 2022
1 parent ca8d899 commit e362b54
Show file tree
Hide file tree
Showing 12 changed files with 56,015 additions and 8 deletions.
27 changes: 19 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import PackageDescription

let package = Package(
name: "AtalaPRISMSDK",
platforms: [.iOS(.v15), .watchOS(.v8), .macCatalyst(.v14), .macOS(.v12)],
platforms: [.iOS(.v15)],
products: [
.library(
name: "Domain",
name: "AtalaDomain",
targets: ["Domain"]
),
.library(
Expand Down Expand Up @@ -45,7 +45,9 @@ let package = Package(
url: "https://github.com/apple/swift-log.git",
from: "1.4.4"
),
.package(path: "OpenAPI/PrismAgentAPI")
.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")
],
targets: [
.target(
Expand All @@ -59,7 +61,7 @@ let package = Package(
),
.target(
name: "Apollo",
dependencies: ["Domain", "Core"],
dependencies: ["Domain", "Core", "PrismAPI"],
path: "Apollo/Sources"
),
.testTarget(
Expand All @@ -69,17 +71,26 @@ let package = Package(
),
.target(
name: "Castor",
dependencies: ["Domain", "Core", .product(name: "PrismAgentAPI", package: "PrismAgentAPI")],
dependencies: [
"Domain",
"Core",
"PrismAPI",
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "Antlr4", package: "antlr4")
],
path: "Castor/Sources"
),
.testTarget(
name: "CastorTests",
dependencies: ["Castor"],
dependencies: ["Castor", "Apollo"],
path: "Castor/Tests"
),
.target(
name: "Pollux",
dependencies: ["Domain", "Core", .product(name: "PrismAgentAPI", package: "PrismAgentAPI")],
dependencies: [
"Domain",
"Core"
],
path: "Pollux/Sources"
),
.testTarget(
Expand All @@ -99,7 +110,7 @@ let package = Package(
),
.target(
name: "Pluto",
dependencies: ["Domain", "Core"],
dependencies: ["Domain"],
path: "Pluto/Sources"
),
.testTarget(
Expand Down
21 changes: 21 additions & 0 deletions PrismAPISDK/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// swift-tools-version:5.3
import PackageDescription

let package = Package(
name: "PrismAPI",
platforms: [
.iOS(.v13)
],
products: [
.library(
name: "PrismAPI",
targets: ["PrismAPI"]
),
],
targets: [
.binaryTarget(
name: "PrismAPI",
path: "./PrismAPI.xcframework"
),
]
)
Binary file not shown.
39 changes: 39 additions & 0 deletions PrismAPISDK/PrismAPI.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-x86_64-simulator</string>
<key>LibraryPath</key>
<string>PrismAPI.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>PrismAPI.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
27,929 changes: 27,929 additions & 0 deletions PrismAPISDK/PrismAPI.xcframework/ios-arm64/PrismAPI.framework/Headers/PrismAPI.h

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>PrismAPI</string>
<key>CFBundleIdentifier</key>
<string>io.iohk.atala.prism.api.PrismAPI</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>PrismAPI</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module PrismAPI {
umbrella header "PrismAPI.h"

export *
module * { export * }
}
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>PrismAPI</string>
<key>CFBundleIdentifier</key>
<string>io.iohk.atala.prism.api.PrismAPI</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>PrismAPI</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneSimulator</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module PrismAPI {
umbrella header "PrismAPI.h"

export *
module * { export * }
}
Binary file not shown.

0 comments on commit e362b54

Please sign in to comment.