Skip to content

Commit

Permalink
Merge pull request #2 from nabto/spm-support
Browse files Browse the repository at this point in the history
Swift Package Manager support
  • Loading branch information
Quarken authored Jan 24, 2024
2 parents 0624c6a + 90075ce commit 64ce96e
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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>SchemeUserState</key>
<dict>
<key>NabtoEdgeIamUtil.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>edge-iamutil-swift-Package.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>NabtoEdgeIamUtil</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>edge-iamutil-swift</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
32 changes: 32 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "NabtoEdgeIamUtil",
defaultLocalization: "en",
platforms: [
.iOS(.v13)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "NabtoEdgeIamUtil",
targets: ["NabtoEdgeIamUtil"]),
],
dependencies: [
.package(url: "https://github.com/nabto/edge-client-swift.git", from: "3.2.1"),
.package(url: "https://github.com/SomeRandomiOSDev/CBORCoding.git", from: "1.0.0")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "NabtoEdgeIamUtil",
dependencies: [.product(name: "NabtoEdgeClient", package: "edge-client-swift"), "CBORCoding"],
path: ".",
exclude: ["NabtoEdgeIamUtilTests", "HostForTests"]
),
]
)

0 comments on commit 64ce96e

Please sign in to comment.