Skip to content

Commit

Permalink
Merge pull request #55 from netguru/chore/update_version
Browse files Browse the repository at this point in the history
Fix official cocopods release
  • Loading branch information
Siemian authored Jan 25, 2023
2 parents e6f5e5e + 72dec8e commit a418c21
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion BlueSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = 'BlueSwift'
spec.version = '1.1.4'
spec.version = '1.1.5'
spec.summary = 'Easy and lightweight CoreBluetooth wrapper written in Swift'
spec.homepage = 'https://github.com/netguru/BlueSwift'

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.1.5] - 2023-01-24

### Changed

- Fix official cocoapods release

## [1.1.4] - 2023-01-20

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Configurations/Common/Common-Base.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "../xcconfigs/Common/Common.xcconfig"

_BUILD_VERSION = 1.1.4
_BUILD_VERSION = 1.1.5
_BUILD_NUMBER = 1

_DEPLOYMENT_TARGET_IOS = 11.0
Expand Down
4 changes: 2 additions & 2 deletions Framework/Source Files/Connection/ConnectionService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ internal final class ConnectionService: NSObject {

/// Current Bluetooth authorization status.
internal var bluetoothAuthorizationStatus: BluetoothAuthorizationStatus {
if #available(iOSApplicationExtension 13.1, *) {
if #available(iOS 13.1, *) {
return CBManager.authorization.bluetoothAuthorizationStatus
} else if #available(iOSApplicationExtension 13.0, *) {
} else if #available(iOS 13.0, *) {
return centralManager.authorization.bluetoothAuthorizationStatus
} else {
// Until iOS 12 applications could access Bluetooth without the user’s authorization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import CoreBluetooth
case allowedAlways = 3
}

@available(iOSApplicationExtension 13.0, *)
extension BluetoothAuthorizationStatus {

/// `CBManagerAuthorization` representation of current authorization status.
@available(iOS 13.0, *)
var cbManagerAuthorization: CBManagerAuthorization {
switch self {
case .notDetermined:
Expand All @@ -38,10 +38,11 @@ extension BluetoothAuthorizationStatus {
}
}

@available(iOSApplicationExtension 13.0, *)
@available(iOS 13.0, *)
extension CBManagerAuthorization {

/// `BluetoothAuthorizationStatus` representation of current authorization status.
@available(iOSApplicationExtension 13.0, *)
var bluetoothAuthorizationStatus: BluetoothAuthorizationStatus {
switch self {
case .notDetermined:
Expand Down
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ Just drop the line below to your Podfile:

`pod 'BlueSwift'`

(but probably you'd like to pin it to the nearest major release, so `pod 'BlueSwift' , '~> 1.1.4'`)
(but probably you'd like to pin it to the nearest major release, so `pod 'BlueSwift' , '~> 1.1.5'`)

### ![](https://img.shields.io/badge/carthage-compatible-green.svg)

The same as with Cocoapods, insert the line below to your Cartfile:

`github 'netguru/BlueSwift'`

, or including version - `github 'netguru/BlueSwift' ~> 1.1.4`
, or including version - `github 'netguru/BlueSwift' ~> 1.1.5`

## 📄 License

Expand Down

0 comments on commit a418c21

Please sign in to comment.