Skip to content

Commit

Permalink
Added CocoaPods Support (#5)
Browse files Browse the repository at this point in the history
* Added podspec

* Fixed warning
  • Loading branch information
stonehouse authored Aug 29, 2018
1 parent 894df3c commit a0e3b4b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions LIFXHTTPKit.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Be sure to run `pod spec lint LIFXHTTPKit.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

s.name = "LIFXHTTPKit"
s.version = "3.0.1"
s.summary = "A framework for interacting with the LIFX HTTP API that has no external dependencies. Suitable for use inside extensions."

s.license = { :type => 'MIT', :file => 'LICENSE.txt' }
s.homepage = "https://github.com/tatey/LIFXHTTPKit"
s.author = { "Alex Stonehouse" => "[email protected]" }
s.source = { :git => "https://github.com/LIFX/LIFXHTTPKit.git", :tag => "#{s.version}" }

# Version
s.platform = :ios
s.swift_version = "4.0"
s.ios.deployment_target = "8.2"
s.osx.deployment_target = "10.10"
s.watchos.deployment_target = "2.0"

s.source_files = "Source/**/*"

end
2 changes: 1 addition & 1 deletion Source/LightTargetSelector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public struct LightTargetSelector: Equatable, CustomStringConvertible {
if type == .All {
self.type = type
value = ""
} else if let value = components.last, value.characters.count > 0 {
} else if let value = components.last, value.count > 0 {
self.type = type
self.value = value
} else {
Expand Down

0 comments on commit a0e3b4b

Please sign in to comment.