Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Spriter committed May 18, 2016
2 parents e25c4a2 + 95033f3 commit d2f7909
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,34 @@ Philips Hue SDK written in swift

Work in progress...

# Generate documentation
## Installation

### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ gem install cocoapods
```

To integrate SwiftyHue into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

pod 'SwiftyHue', '~> 0.1.2'
```

Then, run the following command:

```bash
$ pod install
```

## Usage

Coming soon ...

## Generate documentation

Install jazzy:

Expand All @@ -13,7 +40,7 @@ Run generate script:

$ ./generate_doc.sh

# Log
## Log
We use ['Log'](https://github.com/delba/Log) for Logging. Log` is a powerful logging framework that provides built-in themes and formatters, and a nice API to define your owns.
> Get the most out of `Log` by installing [`XcodeColors`](https://github.com/robbiehanson/XcodeColors) and [`KZLinkedConsole`](https://github.com/krzysztofzablocki/KZLinkedConsole)
Expand Down
2 changes: 2 additions & 0 deletions SwiftyHue/Classes/Services/BridgeFinder/BridgeFinder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class BridgeFinder: NSObject, ScannerDelegate {
return
}

Log.trace("Scanner started: \(scannerClass)")
currentScanner = scannerClass.init(delegate: self)
currentScanner?.start()
}
Expand Down Expand Up @@ -83,6 +84,7 @@ public class BridgeFinder: NSObject, ScannerDelegate {
// MARK: - ScannerDelegate

func scanner(scanner: Scanner, didFinishWithResults ips: [String]) {
Log.trace("Scanner finished: \(scanner) with result count: \(ips.count)")
validateBridges(ips)
}
}

0 comments on commit d2f7909

Please sign in to comment.