Skip to content

Commit

Permalink
Add Support for Swift Package Manager (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbuerger authored Mar 4, 2021
1 parent 32dc6b9 commit c3a0f60
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 12 deletions.
22 changes: 11 additions & 11 deletions McuManager.podspec
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
Pod::Spec.new do |s|
s.name = 'McuManager'
s.version = '0.11.1'
s.license = { :type => "Apache 2.0", :file => 'LICENSE' }
s.summary = 'A mobile management library for devices running Apache Mynewt or Zephyr'
s.homepage = 'https://github.com/JuulLabs-OSS/mcumgr-ios'
s.authors = { 'Brian Giori' => '[email protected]' }
s.source = { :git => 'https://github.com/JuulLabs-OSS/mcumgr-ios.git', :tag => "#{s.version}" }
s.swift_versions = ['4.2', '5.0', '5.1', '5.2']
s.name = "McuManager"
s.version = "0.12.0"
s.license = { :type => "Apache 2.0", :file => "LICENSE" }
s.summary = "A mobile management library for devices running Apache Mynewt or Zephyr"
s.homepage = "https://github.com/JuulLabs-OSS/mcumgr-ios"
s.authors = { "Brian Giori" => "[email protected]" }
s.source = { :git => "https://github.com/JuulLabs-OSS/mcumgr-ios.git", :tag => "#{s.version}" }
s.swift_versions = ["4.2", "5.0", "5.1", "5.2"]

s.ios.deployment_target = '9.0'
s.ios.deployment_target = "9.0"

s.source_files = 'Source/**/*.{swift, h}'
s.source_files = "Source/**/*.{swift, h}"
s.exclude_files = "Source/*.plist"

s.requires_arc = true

s.dependency 'SwiftCBOR', '0.4.3'
s.dependency "SwiftCBOR", "0.4.3"
end
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.3

import PackageDescription

let package = Package(
name: "McuManager",
platforms: [.iOS(.v9)],
products: [
.library(
name: "McuManager",
targets: ["McuManager"]
),
],
dependencies: [
.package(
url: "https://github.com/unrelentingtech/SwiftCBOR.git",
.branch("master")
),
],
targets: [
.target(
name: "McuManager",
dependencies: ["SwiftCBOR"],
path: "Source",
exclude:["Info.plist"]
)
]
)
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ A transport agnostic implementation of the McuManager protocol (aka Newt Manager

## Install

### Swift Package Manager

In Xcode, go to *File → Swift Packages → Add Package Dependency...* and add `https://github.com/JuulLabs-OSS/mcumgr-ios.git`.

### CocoaPods

```
pod 'McuManager', '~> 0.11.1'
pod 'McuManager', '~> 0.12.0'
```

# Introduction
Expand Down

0 comments on commit c3a0f60

Please sign in to comment.