Skip to content

Commit 33aab06

Browse files
robbiet480Jeremy Chiang
andauthored
Add Swift Package Manager support (#232)
* Add Package.swift to enable Swift Package Manager support * Add import UIKit where needed * Bump version to 0.8.7 Co-authored-by: Jeremy Chiang <jeremy@steamclock.com>
1 parent 78672c0 commit 33aab06

File tree

10 files changed

+40
-6
lines changed

10 files changed

+40
-6
lines changed

Bluejay.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'Bluejay'
3-
spec.version = '0.8.6'
3+
spec.version = '0.8.7'
44
spec.license = { type: 'MIT', file: 'LICENSE' }
55
spec.homepage = 'https://github.com/steamclock/bluejay'
66
spec.authors = { 'Jeremy Chiang' => 'jeremy@steamclock.com' }
77
spec.summary = 'Bluejay is a simple Swift framework for building reliable Bluetooth apps.'
88
spec.homepage = 'https://github.com/steamclock/bluejay'
9-
spec.source = { git: 'https://github.com/steamclock/bluejay.git', tag: 'v0.8.6' }
9+
spec.source = { git: 'https://github.com/steamclock/bluejay.git', tag: 'v0.8.7' }
1010
spec.source_files = 'Bluejay/Bluejay/*.{h,swift}'
1111
spec.framework = 'SystemConfiguration'
1212
spec.platform = :ios, '11.0'

Bluejay/.jazzy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ output: ../docs
22
author: Steamclock Software
33
author_url: http://steamclock.com
44
module: Bluejay
5-
module_version: 0.8.5
5+
module_version: 0.8.7
66
readme: ../README.md
77
sdk: iphone
88
copyright: Copyright © 2017 Steamclock Software. All rights reserved.

Bluejay/Bluejay.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@
11261126
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
11271127
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
11281128
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1129-
MARKETING_VERSION = 0.8.6;
1129+
MARKETING_VERSION = 0.8.7;
11301130
PRODUCT_BUNDLE_IDENTIFIER = com.steamclock.Bluejay;
11311131
PRODUCT_NAME = "$(TARGET_NAME)";
11321132
SKIP_INSTALL = YES;
@@ -1153,7 +1153,7 @@
11531153
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
11541154
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
11551155
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1156-
MARKETING_VERSION = 0.8.6;
1156+
MARKETING_VERSION = 0.8.7;
11571157
PRODUCT_BUNDLE_IDENTIFIER = com.steamclock.Bluejay;
11581158
PRODUCT_NAME = "$(TARGET_NAME)";
11591159
SKIP_INSTALL = YES;

Bluejay/Bluejay/BackgroundRestoreConfig.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import Foundation
10+
import UIKit
1011

1112
/// Contains all required configurations for background restoration.
1213
public struct BackgroundRestoreConfig {

Bluejay/Bluejay/BackgroundRestorer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import Foundation
10+
import UIKit
1011

1112
/**
1213
* Protocols for handling the results of a background restoration.

Bluejay/Bluejay/Bluejay.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
// Copyright © 2017 Steamclock Software. All rights reserved.
77
//
88

9-
import CoreBluetooth
109
import Foundation
10+
import UIKit
11+
import CoreBluetooth
1112
import XCGLogger
1213

1314
/**

Bluejay/Bluejay/ListenRestorer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import Foundation
10+
import UIKit
1011

1112
/**
1213
* Protocol for handling a listen event that does not have a callback due to background restoration.

Bluejay/Bluejay/Scan.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import CoreBluetooth
1010
import Foundation
11+
import UIKit
1112

1213
/// A scan operation.
1314
class Scan: Queueable {

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [Unreleased]
88
### Changed
99

10+
## [0.8.7] - 2020-05-11
11+
### Added
12+
- Added support for Swift Package Manager
13+
1014
## [0.8.6] - 2020-02-03
1115
### Changed
1216
- Bumped iOS target to 11 and recommended Xcode to 11.3.1

Package.swift

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// swift-tools-version:5.1
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "Bluejay",
7+
platforms: [
8+
.iOS(.v11),
9+
],
10+
products: [
11+
.library(
12+
name: "Bluejay",
13+
targets: ["Bluejay"]),
14+
],
15+
dependencies: [
16+
.package(url: "https://github.com/DaveWoodCom/XCGLogger", from: "7.0.0"),
17+
],
18+
targets: [
19+
.target(
20+
name: "Bluejay",
21+
dependencies: ["XCGLogger"],
22+
path: "Bluejay/Bluejay"),
23+
],
24+
swiftLanguageVersions: [.v5]
25+
)

0 commit comments

Comments
 (0)