Skip to content

Commit

Permalink
Add Swift Package Manager support (#232)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
robbiet480 and Jeremy Chiang authored May 11, 2020
1 parent 78672c0 commit 33aab06
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Bluejay.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |spec|
spec.name = 'Bluejay'
spec.version = '0.8.6'
spec.version = '0.8.7'
spec.license = { type: 'MIT', file: 'LICENSE' }
spec.homepage = 'https://github.com/steamclock/bluejay'
spec.authors = { 'Jeremy Chiang' => '[email protected]' }
spec.summary = 'Bluejay is a simple Swift framework for building reliable Bluetooth apps.'
spec.homepage = 'https://github.com/steamclock/bluejay'
spec.source = { git: 'https://github.com/steamclock/bluejay.git', tag: 'v0.8.6' }
spec.source = { git: 'https://github.com/steamclock/bluejay.git', tag: 'v0.8.7' }
spec.source_files = 'Bluejay/Bluejay/*.{h,swift}'
spec.framework = 'SystemConfiguration'
spec.platform = :ios, '11.0'
Expand Down
2 changes: 1 addition & 1 deletion Bluejay/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ output: ../docs
author: Steamclock Software
author_url: http://steamclock.com
module: Bluejay
module_version: 0.8.5
module_version: 0.8.7
readme: ../README.md
sdk: iphone
copyright: Copyright © 2017 Steamclock Software. All rights reserved.
Expand Down
4 changes: 2 additions & 2 deletions Bluejay/Bluejay.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 0.8.6;
MARKETING_VERSION = 0.8.7;
PRODUCT_BUNDLE_IDENTIFIER = com.steamclock.Bluejay;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -1153,7 +1153,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 0.8.6;
MARKETING_VERSION = 0.8.7;
PRODUCT_BUNDLE_IDENTIFIER = com.steamclock.Bluejay;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
1 change: 1 addition & 0 deletions Bluejay/Bluejay/BackgroundRestoreConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import UIKit

/// Contains all required configurations for background restoration.
public struct BackgroundRestoreConfig {
Expand Down
1 change: 1 addition & 0 deletions Bluejay/Bluejay/BackgroundRestorer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import UIKit

/**
* Protocols for handling the results of a background restoration.
Expand Down
3 changes: 2 additions & 1 deletion Bluejay/Bluejay/Bluejay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
// Copyright © 2017 Steamclock Software. All rights reserved.
//

import CoreBluetooth
import Foundation
import UIKit
import CoreBluetooth
import XCGLogger

/**
Expand Down
1 change: 1 addition & 0 deletions Bluejay/Bluejay/ListenRestorer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import UIKit

/**
* Protocol for handling a listen event that does not have a callback due to background restoration.
Expand Down
1 change: 1 addition & 0 deletions Bluejay/Bluejay/Scan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import CoreBluetooth
import Foundation
import UIKit

/// A scan operation.
class Scan: Queueable {
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Changed

## [0.8.7] - 2020-05-11
### Added
- Added support for Swift Package Manager

## [0.8.6] - 2020-02-03
### Changed
- Bumped iOS target to 11 and recommended Xcode to 11.3.1
Expand Down
25 changes: 25 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// swift-tools-version:5.1

import PackageDescription

let package = Package(
name: "Bluejay",
platforms: [
.iOS(.v11),
],
products: [
.library(
name: "Bluejay",
targets: ["Bluejay"]),
],
dependencies: [
.package(url: "https://github.com/DaveWoodCom/XCGLogger", from: "7.0.0"),
],
targets: [
.target(
name: "Bluejay",
dependencies: ["XCGLogger"],
path: "Bluejay/Bluejay"),
],
swiftLanguageVersions: [.v5]
)

0 comments on commit 33aab06

Please sign in to comment.