PhilipsHueSDK-iOS-OSX icon indicating copy to clipboard operation
PhilipsHueSDK-iOS-OSX copied to clipboard

Cocoapod support

Open objectiveSee opened this issue 11 years ago • 19 comments
trafficstars

Will there (is there) a Cocoapod for the core of this Application? Would be a great way to stay up to date with the code provided by philips. Thx!

objectiveSee avatar Dec 31 '13 23:12 objectiveSee

+1

sebromero avatar Jan 25 '14 22:01 sebromero

+1 (preferably without all the sample stuff)

twam avatar Feb 16 '14 14:02 twam

+1

lightbow avatar Mar 24 '14 15:03 lightbow

This would also make the Lumberjack situation easier

lightbow avatar Mar 25 '14 17:03 lightbow

anyone want to work together to tackle this issue ourselves? The hard part is just figuring out which files will be included in the Podspec

objectiveSee avatar Mar 29 '14 06:03 objectiveSee

I am working on this now. Stuck on getting framework search paths to find the Hue headers https://gist.github.com/objectiveSee/10403016

objectiveSee avatar Apr 10 '14 17:04 objectiveSee

I have a preliminary version of the Podspec created and it works in my local environment. Can someone test from their env as well?

pod 'PhilipsHueiOS', :git => "[email protected]:objectiveSee/PhilipsHueSDK-iOS-OSX.git"

Include the headers in your project with:

#import <HueSDK_iOS/HueSDK.h>

objectiveSee avatar Apr 14 '14 23:04 objectiveSee

Has anyone tried to test this?

objectiveSee avatar Jun 04 '14 05:06 objectiveSee

Using this in a swift project via a bridge-header seams not to work.


Edit: actually now it somehow works :-)

jjochen avatar Oct 10 '14 17:10 jjochen

Awesome. Works !!

What would it take to get 1.3beta in there?

tychop avatar Oct 16 '14 16:10 tychop

Thanks to @objectiveSee for this, but :+1: for full pod support, please. We shouldn't be manually copying CocoaLumberjack files from a clone of this repo. (https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/pull/76)

williampower avatar Nov 11 '14 03:11 williampower

+1

ryangittings avatar Apr 18 '15 09:04 ryangittings

Looks like you guy also embed AsyncUdpSocket, which can hopefully be left out of your framework in favor of a simple CocoaPods dependency.

lightbow avatar Jun 09 '15 02:06 lightbow

It has been over a year since my last comment, so I'll just hit this thread again in case anyone at Philips is listening. The code you have compiled into your framework from external sources is not consistent with industry best practices. You have many developers complaining about old versions of things like CocoaAsyncSocket and Lumberjack compiled into the Philips hue framework rather than simple CocoaPods dependencies. Not only does this make development more difficult for us, but you're missing out on bug and security fixes for these projects that could hurt your end users as well. It's in everyone's best interest to either address some of the longstanding gripes on this project, or release the sources so we can fix them for you. With recent Apple requirements/plans around App Transport Security, IPv6, Swift, Bitcode, and new platforms, there will come a time when issues like this transcend from mere inconvenience to linker errors, runtime issues, App Store rejections, and more.

lightbow avatar Jun 25 '16 11:06 lightbow

Yeah official Cocoapod please

gorkemg avatar Nov 25 '16 16:11 gorkemg

Just FYI to anybody else still watching this repo. I gave up with this library and ported my code over to SwiftyHue. It supports all of the endpoints I was using and took only a single day to port all of my PhillipsHueSDK-iOS-OSX code over. The maintainer is responsive and integrated my PR when I needed more data back from the scenes API.

https://github.com/Spriter/SwiftyHue

samuelclay avatar Nov 25 '16 18:11 samuelclay

I have been trying to use SwiftyHue but it seems to be incomplete at this point. Also it lacks enough documentation to really use it. For example how does one end push link so you don't have to redo it each time the app starts? Another example is the apparent lack of any interface as of yet for setting the lights. Is there anyway to contact the maintainer other than via a PR?

Sent from my iPad

On Nov 25, 2016, at 1:54 PM, Samuel Clay [email protected] wrote:

Just FYI to anybody else still watching this repo. I gave up with this library and ported my code over to SwiftyHue/SwiftyHue. It supports all of the endpoints I was using and took only a single day to port all of my PhillipsHueSDK-iOS-OSX code over. The maintainer is responsive and integrated my PR when I needed more data back from the scenes API.

https://github.com/Spriter/SwiftyHue

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

cliffspencer avatar Nov 28 '16 03:11 cliffspencer

how does one end push link so you don't have to redo it each time the app starts

You have to save the username you get back from a successful push link bridge authentication. You can then use that username in your requests' urls.

samuelclay avatar Nov 29 '16 19:11 samuelclay

Thanks, Samuel. Cliff

On Nov 29, 2016, at 2:15 PM, Samuel Clay [email protected] wrote:

how does one end push link so you don't have to redo it each time the app starts

You have to save the username you get back from a successful push link bridge authentication. You can then use that username in your requests' urls.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/39#issuecomment-263668644, or mute the thread https://github.com/notifications/unsubscribe-auth/AB9AQHEeYlKSDMlvbvKffP910a8IAi_tks5rDHnMgaJpZM4BW6LU.

cliffspencer avatar Nov 29 '16 19:11 cliffspencer