├── Cartfile ├── MVConstants.swift ├── MVKeys.swift ├── screenshots ├── ios.png └── mac-extension.png ├── Remote ├── Images.xcassets │ ├── Contents.json │ ├── AppIcon.appiconset │ │ ├── icon.png │ │ └── Contents.json │ ├── light.imageset │ │ ├── light@2x.png │ │ ├── light@3x.png │ │ └── Contents.json │ ├── LaunchImage.launchimage │ │ ├── 5C.png │ │ ├── iPhone 6@2x.png │ │ └── Contents.json │ ├── power_on.imageset │ │ ├── power_on@2x.png │ │ ├── power_on@3x.png │ │ └── Contents.json │ ├── input_wii.imageset │ │ ├── input_wii@2x.png │ │ ├── input_wii@3x.png │ │ └── Contents.json │ ├── light_off.imageset │ │ ├── light_off@2x.png │ │ ├── light_off@3x.png │ │ └── Contents.json │ ├── power_off.imageset │ │ ├── power_off@2x.png │ │ ├── power_off@3x.png │ │ └── Contents.json │ ├── volume_up.imageset │ │ ├── volume_up@2x.png │ │ ├── volume_up@3x.png │ │ └── Contents.json │ ├── light_color.imageset │ │ ├── light_color.png │ │ ├── light_color@3x.png │ │ └── Contents.json │ ├── input_apple.imageset │ │ ├── input_apple@2x.png │ │ ├── input_apple@3x.png │ │ └── Contents.json │ ├── volume_down.imageset │ │ ├── volume_down@2x.png │ │ ├── volume_down@3x.png │ │ └── Contents.json │ ├── shortcut_input_wii.imageset │ │ ├── shortcut_input_wii@2x.png │ │ └── Contents.json │ ├── shortcut_power_off.imageset │ │ ├── shortcut_power_off@2x.png │ │ └── Contents.json │ ├── shortcut_power_on.imageset │ │ ├── shortcut_power_on@2x.png │ │ └── Contents.json │ └── shortcut_input_apple.imageset │ │ ├── shortcut_input_apple@2x.png │ │ └── Contents.json ├── Remote-Bridging-Header.h ├── IRCommand.swift ├── AppDelegate.swift ├── Info.plist ├── MVCommands.swift ├── CircleButton.swift ├── IRSender.swift └── ViewController.swift ├── .gitignore ├── Remote.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── RemoteTodayExtension ├── RemoteTodayExtension.entitlements ├── Base.lproj │ └── TodayViewController.xib ├── Info.plist ├── CircleButton.swift └── TodayViewController.swift ├── RemoteOSX ├── ViewController.swift ├── AppDelegate.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist └── Base.lproj │ └── Main.storyboard └── README.md /Cartfile: -------------------------------------------------------------------------------- 1 | github "tatey/LIFXHTTPKit" 2 | -------------------------------------------------------------------------------- /MVConstants.swift: -------------------------------------------------------------------------------- 1 | let MVHost:String = "192.168.86.127" -------------------------------------------------------------------------------- /MVKeys.swift: -------------------------------------------------------------------------------- 1 | let MVLIFXKey = "" -------------------------------------------------------------------------------- /screenshots/ios.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/screenshots/ios.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /screenshots/mac-extension.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/screenshots/mac-extension.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Carthage/ 2 | Cartfile.resolved 3 | Remote.xcodeproj/project.xcworkspace/xcuserdata/ 4 | Remote.xcodeproj/xcuserdata/ 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /Remote/Images.xcassets/AppIcon.appiconset/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/AppIcon.appiconset/icon.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/light.imageset/light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/light.imageset/light@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/light.imageset/light@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/light.imageset/light@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/LaunchImage.launchimage/5C.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/LaunchImage.launchimage/5C.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/power_on.imageset/power_on@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/power_on.imageset/power_on@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/power_on.imageset/power_on@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/power_on.imageset/power_on@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/input_wii.imageset/input_wii@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/input_wii.imageset/input_wii@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/input_wii.imageset/input_wii@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/input_wii.imageset/input_wii@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/light_off.imageset/light_off@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/light_off.imageset/light_off@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/light_off.imageset/light_off@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/light_off.imageset/light_off@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/power_off.imageset/power_off@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/power_off.imageset/power_off@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/power_off.imageset/power_off@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/power_off.imageset/power_off@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/volume_up.imageset/volume_up@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/volume_up.imageset/volume_up@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/volume_up.imageset/volume_up@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/volume_up.imageset/volume_up@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/light_color.imageset/light_color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/light_color.imageset/light_color.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/LaunchImage.launchimage/iPhone 6@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/LaunchImage.launchimage/iPhone 6@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/input_apple.imageset/input_apple@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/input_apple.imageset/input_apple@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/input_apple.imageset/input_apple@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/input_apple.imageset/input_apple@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/light_color.imageset/light_color@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/light_color.imageset/light_color@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/volume_down.imageset/volume_down@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/volume_down.imageset/volume_down@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/volume_down.imageset/volume_down@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/volume_down.imageset/volume_down@3x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/shortcut_input_wii.imageset/shortcut_input_wii@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/shortcut_input_wii.imageset/shortcut_input_wii@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/shortcut_power_off.imageset/shortcut_power_off@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/shortcut_power_off.imageset/shortcut_power_off@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/shortcut_power_on.imageset/shortcut_power_on@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/shortcut_power_on.imageset/shortcut_power_on@2x.png -------------------------------------------------------------------------------- /Remote/Images.xcassets/shortcut_input_apple.imageset/shortcut_input_apple@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelvillar/remote/HEAD/Remote/Images.xcassets/shortcut_input_apple.imageset/shortcut_input_apple@2x.png -------------------------------------------------------------------------------- /Remote.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Remote/Remote-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Remote-Bridging-Header.h 3 | // Remote 4 | // 5 | // Created by Michaël Villar on 7/25/15. 6 | // Copyright (c) 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | #ifndef Remote_Remote_Bridging_Header_h 10 | #define Remote_Remote_Bridging_Header_h 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Remote/Images.xcassets/shortcut_input_wii.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "shortcut_input_wii@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/shortcut_power_off.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "shortcut_power_off@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/shortcut_power_on.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "shortcut_power_on@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /RemoteTodayExtension/RemoteTodayExtension.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | com.apple.security.network.client 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Remote/Images.xcassets/shortcut_input_apple.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "shortcut_input_apple@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/light.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "light@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "light@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/power_on.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "power_on@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "power_on@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/input_wii.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "input_wii@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "input_wii@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/light_color.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "light_color.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "light_color@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/light_off.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "light_off@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "light_off@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/power_off.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "power_off@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "power_off@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/volume_up.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "volume_up@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "volume_up@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/input_apple.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "input_apple@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "input_apple@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/volume_down.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "volume_down@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "volume_down@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /RemoteOSX/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // RemoteOSX 4 | // 5 | // Created by Michaël Villar on 10/8/15. 6 | // Copyright © 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class ViewController: NSViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | // Do any additional setup after loading the view. 17 | } 18 | 19 | override var representedObject: AnyObject? { 20 | didSet { 21 | // Update the view, if already loaded. 22 | } 23 | } 24 | 25 | 26 | } 27 | 28 | -------------------------------------------------------------------------------- /RemoteOSX/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // RemoteOSX 4 | // 5 | // Created by Michaël Villar on 10/8/15. 6 | // Copyright © 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | @NSApplicationMain 12 | class AppDelegate: NSObject, NSApplicationDelegate { 13 | 14 | 15 | 16 | func applicationDidFinishLaunching(aNotification: NSNotification) { 17 | // Insert code here to initialize your application 18 | } 19 | 20 | func applicationWillTerminate(aNotification: NSNotification) { 21 | // Insert code here to tear down your application 22 | } 23 | 24 | 25 | } 26 | 27 | -------------------------------------------------------------------------------- /Remote/IRCommand.swift: -------------------------------------------------------------------------------- 1 | // 2 | // IRCommand.swift 3 | // Remote 4 | // 5 | // Created by Michaël Villar on 7/27/15. 6 | // Copyright (c) 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class IRCommand : NSObject { 12 | var channel:Int = -1 13 | var cmd:String = "" 14 | var userInfo:NSObject? 15 | 16 | convenience init(channel:Int, cmd:String, userInfo:NSObject?) { 17 | self.init() 18 | self.channel = channel 19 | self.cmd = cmd 20 | self.userInfo = userInfo 21 | } 22 | 23 | convenience init(channel:Int, cmd:String) { 24 | self.init(channel: channel, cmd: cmd, userInfo: nil) 25 | } 26 | } -------------------------------------------------------------------------------- /Remote/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "size" : "60x60", 25 | "idiom" : "iphone", 26 | "filename" : "icon.png", 27 | "scale" : "2x" 28 | }, 29 | { 30 | "idiom" : "iphone", 31 | "size" : "60x60", 32 | "scale" : "3x" 33 | } 34 | ], 35 | "info" : { 36 | "version" : 1, 37 | "author" : "xcode" 38 | } 39 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Command your TV, Apple TV or Receiver with your Mac/iOS device through iTach. 2 | ============================================================================= 3 | 4 | # Screenshots 5 | On iOS: 6 | 7 | 8 | 9 | On Mac (notification center): 10 | 11 | 12 | 13 | # How to use 14 | - Buy a iTach: 15 | - ethernet model: http://www.amazon.com/Global-Cache-IP2IR-iTach-Wired/dp/B003BFTKUC 16 | - wifi model: http://www.amazon.com/Global-Cache-WF2IR-iTach-Wi-Fi/dp/B0051BU418 17 | - Change the IP of your iTach in `MVConstants.swift` 18 | - Change the IR commands in `MVCommands.swift` 19 | - Change your Lifx key in `MVKeys.swift` 20 | - Dependencies with Carthage 21 | - `brew install carthage` 22 | - `carthage update` 23 | - `carthage build` 24 | -------------------------------------------------------------------------------- /Remote/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "8.0", 8 | "subtype" : "736h", 9 | "scale" : "3x" 10 | }, 11 | { 12 | "extent" : "full-screen", 13 | "idiom" : "iphone", 14 | "subtype" : "667h", 15 | "filename" : "iPhone 6@2x.png", 16 | "minimum-system-version" : "8.0", 17 | "orientation" : "portrait", 18 | "scale" : "2x" 19 | }, 20 | { 21 | "orientation" : "portrait", 22 | "idiom" : "iphone", 23 | "extent" : "full-screen", 24 | "minimum-system-version" : "7.0", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "extent" : "full-screen", 29 | "idiom" : "iphone", 30 | "subtype" : "retina4", 31 | "filename" : "5C.png", 32 | "minimum-system-version" : "7.0", 33 | "orientation" : "portrait", 34 | "scale" : "2x" 35 | } 36 | ], 37 | "info" : { 38 | "version" : 1, 39 | "author" : "xcode" 40 | } 41 | } -------------------------------------------------------------------------------- /RemoteOSX/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /RemoteOSX/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2015 michaelvillar. All rights reserved. 29 | NSMainStoryboardFile 30 | Main 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /RemoteTodayExtension/Base.lproj/TodayViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /RemoteTodayExtension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Remote 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Remote 17 | CFBundlePackageType 18 | XPC! 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSExtension 28 | 29 | NSExtensionPointIdentifier 30 | com.apple.widget-extension 31 | NSExtensionPrincipalClass 32 | $(PRODUCT_MODULE_NAME).TodayViewController 33 | com.apple.notificationcenter.widget.description 34 | Remote 35 | 36 | NSHumanReadableCopyright 37 | Copyright © 2015 michaelvillar. All rights reserved. 38 | 39 | 40 | -------------------------------------------------------------------------------- /Remote/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Remote 4 | // 5 | // Created by Michaël Villar on 7/25/15. 6 | // Copyright (c) 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window:UIWindow? 15 | var viewController:ViewController! 16 | var launchedShortcutItem: UIApplicationShortcutItem? 17 | 18 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 19 | 20 | self.viewController = ViewController() 21 | 22 | self.window = UIWindow() 23 | self.window?.makeKeyAndVisible() 24 | self.window?.frame = UIScreen.mainScreen().bounds 25 | self.window?.rootViewController = self.viewController 26 | 27 | if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsShortcutItemKey] as? UIApplicationShortcutItem { 28 | launchedShortcutItem = shortcutItem 29 | } 30 | 31 | return true 32 | } 33 | 34 | func application(application: UIApplication, performActionForShortcutItem shortcutItem: UIApplicationShortcutItem, completionHandler: (Bool) -> Void) { 35 | switch shortcutItem.type { 36 | case "com.michaelvillar.remote.power_on": 37 | self.viewController.sendCommand("power_on") 38 | break 39 | case "com.michaelvillar.remote.power_off": 40 | self.viewController.sendCommand("power_off") 41 | break 42 | case "com.michaelvillar.remote.input_wii": 43 | self.viewController.sendCommand("input_wii") 44 | break 45 | case "com.michaelvillar.remote.input_apple": 46 | self.viewController.sendCommand("input_apple") 47 | break 48 | default: 49 | break 50 | } 51 | } 52 | 53 | func applicationDidBecomeActive(application: UIApplication) { 54 | self.viewController.reconnect() 55 | } 56 | 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /RemoteTodayExtension/CircleButton.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CircleButton.swift 3 | // Remote 4 | // 5 | // Created by Michaël Villar on 3/22/16. 6 | // Copyright © 2016 michaelvillar. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class CircleButton: NSButton { 12 | 13 | var imageView: NSImageView! 14 | var key: String = "" 15 | var mainColor: NSColor = NSColor.whiteColor() 16 | 17 | init(frame: CGRect, key: String, color: NSColor?, image: NSImage?) { 18 | super.init(frame: frame) 19 | 20 | self.title = "" 21 | self.mainColor = color ?? NSColor.whiteColor() 22 | self.key = key 23 | 24 | if let aCell = self.cell as? CircleButtonCell { 25 | aCell.mainColor = self.mainColor 26 | aCell.currentColor = self.mainColor 27 | } 28 | 29 | imageView = NSImageView(frame: self.bounds) 30 | imageView.image = image 31 | self.addSubview(imageView) 32 | } 33 | 34 | required init?(coder aDecoder: NSCoder) { 35 | fatalError("init(coder:) has not been implemented") 36 | } 37 | 38 | static override func cellClass() -> AnyClass { 39 | return CircleButtonCell.self 40 | } 41 | } 42 | 43 | class CircleButtonCell : NSButtonCell { 44 | var mainColor: NSColor = NSColor.whiteColor() 45 | var currentColor: NSColor = NSColor.whiteColor() 46 | 47 | override func highlight(flag: Bool, withFrame cellFrame: NSRect, inView controlView: NSView) { 48 | if flag { 49 | var hue:CGFloat = 0 50 | var saturation:CGFloat = 0 51 | var brightness:CGFloat = 0 52 | var alpha:CGFloat = 0 53 | 54 | if let color = mainColor.colorUsingColorSpace(NSColorSpace.deviceRGBColorSpace()) { 55 | color.getHue(&hue, saturation: &saturation, brightness: &brightness, alpha: &alpha) 56 | self.currentColor = NSColor(hue: hue, saturation: min(1, saturation * 1.1), brightness: min(1, brightness * 1.3), alpha: alpha) 57 | } 58 | } else { 59 | self.currentColor = self.mainColor 60 | } 61 | 62 | super.highlight(flag, withFrame: cellFrame, inView: controlView) 63 | } 64 | 65 | override func drawWithFrame(frame: NSRect, inView controlView: NSView) { 66 | NSColor.clearColor().setFill() 67 | NSBezierPath(rect: frame).fill() 68 | self.currentColor.setFill() 69 | NSBezierPath(ovalInRect: frame).fill() 70 | } 71 | } -------------------------------------------------------------------------------- /Remote/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIApplicationShortcutItems 6 | 7 | 8 | UIApplicationShortcutItemIconFile 9 | shortcut_power_on 10 | UIApplicationShortcutItemType 11 | com.michaelvillar.remote.power_on 12 | UIApplicationShortcutItemTitle 13 | Turn On 14 | 15 | 16 | UIApplicationShortcutItemIconFile 17 | shortcut_power_off 18 | UIApplicationShortcutItemType 19 | com.michaelvillar.remote.power_off 20 | UIApplicationShortcutItemTitle 21 | Turn Off 22 | 23 | 24 | UIApplicationShortcutItemIconFile 25 | shortcut_input_apple 26 | UIApplicationShortcutItemType 27 | com.michaelvillar.remote.input_apple 28 | UIApplicationShortcutItemTitle 29 | Apple TV 30 | 31 | 32 | UIApplicationShortcutItemIconFile 33 | shortcut_input_wii 34 | UIApplicationShortcutItemType 35 | com.michaelvillar.remote.input_wii 36 | UIApplicationShortcutItemTitle 37 | Wii U 38 | 39 | 40 | CFBundleDevelopmentRegion 41 | en 42 | CFBundleExecutable 43 | $(EXECUTABLE_NAME) 44 | CFBundleIdentifier 45 | $(PRODUCT_BUNDLE_IDENTIFIER) 46 | CFBundleInfoDictionaryVersion 47 | 6.0 48 | CFBundleName 49 | $(PRODUCT_NAME) 50 | CFBundlePackageType 51 | APPL 52 | CFBundleShortVersionString 53 | 1.0 54 | CFBundleSignature 55 | ???? 56 | CFBundleVersion 57 | 1 58 | LSRequiresIPhoneOS 59 | 60 | UIRequiredDeviceCapabilities 61 | 62 | armv7 63 | 64 | UIRequiresFullScreen 65 | 66 | UIStatusBarHidden 67 | 68 | UISupportedInterfaceOrientations 69 | 70 | UIInterfaceOrientationPortrait 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /Remote/MVCommands.swift: -------------------------------------------------------------------------------- 1 | var MVCommands:[String:[IRCommand]] = [ 2 | "power_on": [ 3 | IRCommand(channel: 1, cmd: "38000,1,69,341,172,21,21,21,65,21,65,21,65,21,21,21,65,21,65,21,65,21,65,21,65,21,65,21,21,21,21,21,21,21,21,21,65,21,65,21,65,21,21,21,21,21,21,21,21,21,21,21,21,21,65,21,65,21,21,21,21,21,21,21,65,21,21,21,21,21,1508,341,85,21,3648"), 4 | IRCommand(channel: 2, cmd: "38000,1,69,341,170,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,64,21,64,21,64,21,64,21,21,21,21,21,1517,341,85,21,3655"), 5 | IRCommand(channel: 3, cmd: "40064,1,1,95,24,25,24,48,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,1014,95,24,25,24,48,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,1014,95,24,25,24,48,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,24"), 6 | IRCommand(channel: 3, cmd: "40064,1,1,95,24,25,24,48,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,1014,95,24,25,24,48,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,1014,95,24,25,24,48,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,24") 7 | ], 8 | "power_off": [ 9 | IRCommand(channel: 2, cmd: "38000,1,69,341,170,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,64,21,64,21,64,21,64,21,64,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,21,21,1517,341,85,21,3655"), 10 | IRCommand(channel: 3, cmd: "40064,1,1,95,24,48,24,48,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,990,95,24,48,24,48,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,990,95,24,48,24,47,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,25,24,25,24,25,24") 11 | ], 12 | "volume_up": [ 13 | IRCommand(channel: 2, cmd: "38000,1,1,341,170,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,64,21,64,21,64,21,21,21,21,21,21,21,64,21,64,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,21,21,500") 14 | ], 15 | "volume_down": [ 16 | IRCommand(channel: 2, cmd: "38000,1,1,341,170,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,64,21,21,21,21,21,64,21,64,21,64,21,64,21,64,21,21,21,64,21,64,21,21,21,21,21,500"), 17 | ], 18 | "input_apple": [ 19 | IRCommand(channel: 3, cmd: "40064,1,1,95,24,25,24,48,24,25,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,48,24,48,24,25,24,25,24,25,821,95,24,25,24,48,24,25,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,48,24,48,24,25,24,25,24,25,821,95,24,25,24,48,24,25,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,48,24,48,24,25,24,25,24,25,24") 20 | ], 21 | "input_wii": [ 22 | IRCommand(channel: 3, cmd: "40064,1,1,95,24,48,24,48,24,25,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,48,24,48,24,25,24,25,24,25,798,95,24,48,24,48,24,25,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,48,24,48,24,25,24,25,24,25,798,95,24,48,24,48,24,25,24,48,24,48,24,25,24,48,24,25,24,48,24,25,24,48,24,48,24,25,24,25,24,25,24") 23 | ] 24 | ] -------------------------------------------------------------------------------- /Remote/CircleButton.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CircleButton.swift 3 | // Remote 4 | // 5 | // Created by Michaël Villar on 10/5/15. 6 | // Copyright © 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CircleButton: UIControl { 12 | 13 | var imageView: UIImageView! 14 | var key: String = "" 15 | var mainColor: UIColor = UIColor.whiteColor() 16 | 17 | var image: UIImage? { 18 | didSet { 19 | dispatch_async(dispatch_get_main_queue()) { 20 | self.imageView.image = self.image 21 | self.imageView.setNeedsDisplay() 22 | } 23 | } 24 | } 25 | 26 | init(frame: CGRect, key: String, color: UIColor?, image: UIImage?) { 27 | super.init(frame: frame) 28 | 29 | self.mainColor = color ?? UIColor.whiteColor() 30 | self.key = key 31 | self.backgroundColor = self.mainColor 32 | self.layer.cornerRadius = frame.size.width / 2 33 | self.clipsToBounds = false 34 | 35 | imageView = UIImageView(image: image) 36 | self.image = image 37 | imageView.frame = self.bounds 38 | self.addSubview(imageView) 39 | 40 | self.addTarget(self, action: #selector(handleTouch), forControlEvents: UIControlEvents.TouchUpInside) 41 | } 42 | 43 | required init?(coder aDecoder: NSCoder) { 44 | fatalError("init(coder:) has not been implemented") 45 | } 46 | 47 | override var highlighted: Bool { 48 | didSet { 49 | if highlighted { 50 | var hue:CGFloat = 0 51 | var saturation:CGFloat = 0 52 | var brightness:CGFloat = 0 53 | var alpha:CGFloat = 0 54 | 55 | mainColor.getHue(&hue, saturation: &saturation, brightness: &brightness, alpha: &alpha) 56 | self.backgroundColor = UIColor(hue: hue, saturation: min(1, saturation * 1.1), brightness: min(1, brightness * 1.3), alpha: alpha) 57 | } else { 58 | self.backgroundColor = self.mainColor 59 | } 60 | } 61 | } 62 | 63 | func handleTouch(button:UIButton) { 64 | let margin:CGFloat = 20 65 | let circle = CircleHighlight(frame: CGRectInset(self.bounds, -margin, -margin), color: self.mainColor) 66 | let scale:CGFloat = self.bounds.width / (self.bounds.width + margin) 67 | circle.transform = CGAffineTransformMakeScale(scale, scale) 68 | circle.userInteractionEnabled = false 69 | self.addSubview(circle) 70 | 71 | UIView.animateWithDuration(0.3, 72 | delay: 0, 73 | options: UIViewAnimationOptions.CurveEaseInOut, 74 | animations: { 75 | circle.transform = CGAffineTransformIdentity 76 | }) { (bool) -> Void in 77 | } 78 | 79 | UIView.animateWithDuration(0.3, 80 | delay: 0, 81 | options: UIViewAnimationOptions.CurveEaseIn, 82 | animations: { 83 | circle.alpha = 0.0 84 | }) { (bool) -> Void in 85 | circle.removeFromSuperview() 86 | } 87 | } 88 | } 89 | 90 | class CircleHighlight: UIView { 91 | 92 | var color: UIColor = UIColor.whiteColor() 93 | 94 | init(frame: CGRect, color: UIColor) { 95 | super.init(frame: frame) 96 | 97 | self.backgroundColor = UIColor.clearColor() 98 | self.color = color 99 | } 100 | 101 | required init?(coder aDecoder: NSCoder) { 102 | fatalError("init(coder:) has not been implemented") 103 | } 104 | 105 | override func drawRect(rect: CGRect) { 106 | let lineWidth:CGFloat = 2.0 107 | let path = UIBezierPath(ovalInRect: CGRectInset(self.bounds, lineWidth, lineWidth)) 108 | path.lineWidth = lineWidth 109 | self.color.setStroke() 110 | path.stroke() 111 | } 112 | 113 | } 114 | -------------------------------------------------------------------------------- /RemoteTodayExtension/TodayViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TodayViewController.swift 3 | // RemoteTodayExtension 4 | // 5 | // Created by Michaël Villar on 10/8/15. 6 | // Copyright © 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import NotificationCenter 11 | 12 | private let greenColor:NSColor = NSColor(red: 0.3137, green: 0.7608, blue: 0.2667, alpha: 1.0) 13 | private let redColor:NSColor = NSColor(red: 0.7687, green: 0.2616, blue: 0.2538, alpha: 1.0) 14 | private let purpleColor:NSColor = NSColor(red: 0.4493, green: 0.2424, blue: 0.7719, alpha: 1.0) 15 | private let grayColor:NSColor = NSColor(red: 0.7608, green: 0.7609, blue: 0.7608, alpha: 1.0) 16 | 17 | class TodayViewController: NSViewController, NCWidgetProviding { 18 | 19 | private var sender:IRSender? 20 | private var colorsForKeys:[String:NSColor] = [String:NSColor]() 21 | 22 | override var nibName: String? { 23 | return "TodayViewController" 24 | } 25 | 26 | func widgetPerformUpdateWithCompletionHandler(completionHandler: ((NCUpdateResult) -> Void)!) { 27 | completionHandler(.NoData) 28 | 29 | self.sender = IRSender(ip: MVHost) 30 | self.sender?.connect() 31 | } 32 | 33 | override func loadView() { 34 | super.loadView() 35 | 36 | self.colorsForKeys["power_on"] = greenColor 37 | self.colorsForKeys["power_off"] = redColor 38 | self.colorsForKeys["volume_up"] = purpleColor 39 | self.colorsForKeys["volume_down"] = purpleColor 40 | self.colorsForKeys["input_apple"] = grayColor 41 | self.colorsForKeys["input_wii"] = grayColor 42 | 43 | let size: CGFloat = 35 44 | let startX: CGFloat = 0.0 45 | let startY: CGFloat = 0.0 46 | 47 | self.preferredContentSize = NSMakeSize(round(size * 1.52) + size, round(size * 1.68 * 2) + size) 48 | 49 | let power_on = CircleButton( 50 | frame: CGRectMake(startX, startY + round(size * 1.68 * 2), size, size), 51 | key: "power_on", 52 | color: self.colorsForKeys["power_on"], 53 | image: NSImage(named: "power_on") 54 | ) 55 | power_on.action = "handleButton:" 56 | power_on.target = self 57 | self.view.addSubview(power_on) 58 | 59 | let power_off = CircleButton( 60 | frame: CGRectMake(startX + round(size * 1.52), startY + round(size * 1.68 * 2), size, size), 61 | key: "power_off", 62 | color: self.colorsForKeys["power_off"], 63 | image: NSImage(named: "power_off") 64 | ) 65 | power_off.action = "handleButton:" 66 | power_off.target = self 67 | self.view.addSubview(power_off) 68 | 69 | let input_apple = CircleButton( 70 | frame: CGRectMake(startX, startY + round(size * 1.68), size, size), 71 | key: "input_apple", 72 | color: self.colorsForKeys["input_apple"], 73 | image: NSImage(named: "input_apple") 74 | ) 75 | input_apple.action = "handleButton:" 76 | input_apple.target = self 77 | self.view.addSubview(input_apple) 78 | 79 | let input_wii = CircleButton( 80 | frame: CGRectMake(startX + round(size * 1.52), startY + round(size * 1.68), size, size), 81 | key: "input_wii", 82 | color: self.colorsForKeys["input_wii"], 83 | image: NSImage(named: "input_wii") 84 | ) 85 | input_wii.action = "handleButton:" 86 | input_wii.target = self 87 | self.view.addSubview(input_wii) 88 | 89 | let volume_down = CircleButton( 90 | frame: CGRectMake(startX, startY, size, size), 91 | key: "volume_down", 92 | color: self.colorsForKeys["volume_down"], 93 | image: NSImage(named: "volume_down") 94 | ) 95 | volume_down.action = "handleButton:" 96 | volume_down.target = self 97 | self.view.addSubview(volume_down) 98 | 99 | let volume_up = CircleButton( 100 | frame: CGRectMake(startX + round(size * 1.52), startY, size, size), 101 | key: "volume_up", 102 | color: self.colorsForKeys["volume_up"], 103 | image: NSImage(named: "volume_up") 104 | ) 105 | volume_up.action = "handleButton:" 106 | volume_up.target = self 107 | self.view.addSubview(volume_up) 108 | } 109 | 110 | func handleButton(button:CircleButton) { 111 | sendCommand(button.key) 112 | } 113 | 114 | func sendCommand(key:String) { 115 | if let cmds = MVCommands[key] { 116 | for cmd in cmds { 117 | self.sender?.send(cmd) 118 | } 119 | } 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /Remote/IRSender.swift: -------------------------------------------------------------------------------- 1 | // 2 | // IRSender.swift 3 | // Remote 4 | // 5 | // Created by Michaël Villar on 7/27/15. 6 | // Copyright (c) 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol IRSenderDelegate { 12 | func senderDidSendCommand(sender:IRSender, cmd:IRCommand) 13 | func senderDidFailToSendCommand(sender:IRSender, cmd:IRCommand) 14 | } 15 | 16 | class IRSender: NSObject, NSStreamDelegate { 17 | private var ip:String = "" 18 | private var inputStream:NSInputStream! 19 | private var outputStream:NSOutputStream! 20 | private var currentId:Int = 0 21 | private var queues:[Int:[IRCommand]] = [Int:[IRCommand]]() 22 | private var availableChannels:[Int:Bool] = [Int:Bool]() 23 | 24 | var delegate:IRSenderDelegate? 25 | 26 | override init() { 27 | super.init() 28 | } 29 | 30 | convenience init(ip:String) { 31 | self.init() 32 | self.ip = ip 33 | } 34 | 35 | func connect() { 36 | var readStream:Unmanaged? 37 | var writeStream:Unmanaged? 38 | CFStreamCreatePairWithSocketToHost(nil, ip as NSString, 4998, &readStream, &writeStream) 39 | inputStream = readStream!.takeRetainedValue() 40 | outputStream = writeStream!.takeRetainedValue() 41 | inputStream.delegate = self 42 | outputStream.delegate = self 43 | inputStream.scheduleInRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode) 44 | outputStream.scheduleInRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode) 45 | inputStream.open() 46 | outputStream.open() 47 | } 48 | 49 | func send(cmd:IRCommand) { 50 | if queues[cmd.channel] == nil { 51 | queues[cmd.channel] = [] 52 | } 53 | queues[cmd.channel]?.append(cmd) 54 | tryChannel(cmd.channel) 55 | } 56 | 57 | func stream(stream: NSStream, handleEvent event: NSStreamEvent) { 58 | switch(event) { 59 | case NSStreamEvent.OpenCompleted: 60 | print("connected!") 61 | break 62 | case NSStreamEvent.HasBytesAvailable: 63 | print("has bytes available!") 64 | if(stream == inputStream) { 65 | read() 66 | } 67 | break 68 | case NSStreamEvent.EndEncountered: 69 | print("end!") 70 | break 71 | case NSStreamEvent.ErrorOccurred: 72 | print("error") 73 | print(stream.streamError) 74 | break 75 | case NSStreamEvent.HasSpaceAvailable: 76 | print("space available") 77 | break 78 | default: 79 | print("default", event) 80 | } 81 | } 82 | 83 | private func read() { 84 | var buffer = [UInt8](count: 4096, repeatedValue: 0) 85 | while (inputStream.hasBytesAvailable){ 86 | let len = inputStream.read(&buffer, maxLength: buffer.count) 87 | if(len > 0){ 88 | let output = NSString(bytes: &buffer, length: buffer.count, encoding: NSUTF8StringEncoding) 89 | print("<< \(output)") 90 | if (output != ""){ 91 | let lines = output?.componentsSeparatedByString("\r") ?? [] 92 | for line in lines { 93 | let str = line 94 | if !(str as NSString).hasPrefix("completeir") { 95 | continue 96 | } 97 | let args = (str.componentsSeparatedByString(",") ?? [])[1].componentsSeparatedByString(":") 98 | let channelStr = args[1] 99 | let channel = (channelStr as NSString).integerValue 100 | availableChannels[channel] = true 101 | tryChannel(channel) 102 | } 103 | } 104 | } 105 | } 106 | } 107 | 108 | private func tryChannel(channel:Int) { 109 | if availableChannels[channel] == nil { 110 | availableChannels[channel] = true 111 | } 112 | 113 | if queues[channel]?.count == 0 || queues[channel]?.count == nil { 114 | return 115 | } 116 | if availableChannels[channel] == false { 117 | return 118 | } 119 | 120 | let cmd = queues[channel]?.removeAtIndex(0) 121 | 122 | if !outputStream.hasSpaceAvailable { 123 | delegate?.senderDidFailToSendCommand(self, cmd: cmd!) 124 | // try to connect again 125 | self.connect() 126 | return 127 | } 128 | 129 | availableChannels[channel] = false 130 | 131 | currentId += 1 132 | print("\(NSDate().timeIntervalSince1970) >> send 1:\(cmd!.channel),\(self.currentId)") 133 | let fullCmd = "sendir,1:\(cmd!.channel),\(self.currentId),\(cmd!.cmd)\r\n" 134 | let data:NSData = fullCmd.dataUsingEncoding(NSUTF8StringEncoding)! 135 | outputStream.write(UnsafePointer(data.bytes), maxLength: data.length) 136 | 137 | delegate?.senderDidSendCommand(self, cmd: cmd!) 138 | } 139 | 140 | } -------------------------------------------------------------------------------- /Remote/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Remote 4 | // 5 | // Created by Michaël Villar on 7/25/15. 6 | // Copyright (c) 2015 michaelvillar. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import LIFXHTTPKit 11 | 12 | private let greenColor:UIColor = UIColor(red: 0.3137, green: 0.7608, blue: 0.2667, alpha: 1.0) 13 | private let redColor:UIColor = UIColor(red: 0.7687, green: 0.2616, blue: 0.2538, alpha: 1.0) 14 | private let purpleColor:UIColor = UIColor(red: 0.4493, green: 0.2424, blue: 0.7719, alpha: 1.0) 15 | private let grayColor:UIColor = UIColor(red: 0.7608, green: 0.7609, blue: 0.7608, alpha: 1.0) 16 | private let yellowColor:UIColor = UIColor(red: 0.8436, green: 0.692, blue: 0.0, alpha: 1.0) 17 | 18 | class ViewController: UIViewController, UIGestureRecognizerDelegate, IRSenderDelegate { 19 | 20 | private var colorsForKeys:[String:UIColor] = [String:UIColor]() 21 | private let sender:IRSender! 22 | private let label:UILabel = UILabel(frame: CGRectZero) 23 | private var lightButton:CircleButton? 24 | private var allLights:LightTarget? 25 | 26 | override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) { 27 | self.sender = IRSender(ip: MVHost) 28 | 29 | super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) 30 | 31 | self.colorsForKeys["power_on"] = greenColor 32 | self.colorsForKeys["power_off"] = redColor 33 | self.colorsForKeys["volume_up"] = purpleColor 34 | self.colorsForKeys["volume_down"] = purpleColor 35 | self.colorsForKeys["input_apple"] = grayColor 36 | self.colorsForKeys["input_wii"] = grayColor 37 | self.colorsForKeys["light"] = yellowColor 38 | self.colorsForKeys["light_color"] = yellowColor 39 | 40 | for (key, commands) in MVCommands { 41 | for command in commands { 42 | command.userInfo = self.colorsForKeys[key] 43 | } 44 | } 45 | 46 | self.sender.delegate = self 47 | self.reconnect() 48 | } 49 | 50 | required init?(coder aDecoder: NSCoder) { 51 | fatalError("init(coder:) has not been implemented") 52 | } 53 | 54 | override func viewDidLoad() { 55 | super.viewDidLoad() 56 | 57 | self.view.backgroundColor = UIColor.blackColor() 58 | 59 | let rows:CGFloat = 4 60 | let buttonSize:CGFloat = 76 61 | 62 | let horizontalSpacing:CGFloat = 40 63 | let verticalSpacing:CGFloat = 60 64 | 65 | let centerX = self.view.bounds.width / 2 66 | let startX = centerX - 20 - buttonSize 67 | 68 | let centerY = self.view.bounds.height / 2 69 | let startY = centerY - ((rows - 1) * verticalSpacing + rows * buttonSize) / 2 70 | 71 | let power_on = CircleButton( 72 | frame: CGRectMake(startX, startY, buttonSize, buttonSize), 73 | key: "power_on", 74 | color: self.colorsForKeys["power_on"], 75 | image: UIImage(named: "power_on") 76 | ) 77 | power_on.addTarget(self, action: #selector(handleButton), forControlEvents: UIControlEvents.TouchUpInside); 78 | self.view.addSubview(power_on) 79 | 80 | let power_off = CircleButton( 81 | frame: CGRectMake(startX + buttonSize + horizontalSpacing, startY, buttonSize, buttonSize), 82 | key: "power_off", 83 | color: self.colorsForKeys["power_off"], 84 | image: UIImage(named: "power_off") 85 | ) 86 | power_off.addTarget(self, action: #selector(handleButton), forControlEvents: UIControlEvents.TouchUpInside); 87 | self.view.addSubview(power_off) 88 | 89 | let input_apple = CircleButton( 90 | frame: CGRectMake(startX, startY + (buttonSize + verticalSpacing) * 1, buttonSize, buttonSize), 91 | key: "input_apple", 92 | color: self.colorsForKeys["input_apple"], 93 | image: UIImage(named: "input_apple") 94 | ) 95 | input_apple.addTarget(self, action: #selector(handleButton), forControlEvents: UIControlEvents.TouchUpInside); 96 | self.view.addSubview(input_apple) 97 | 98 | let input_wii = CircleButton( 99 | frame: CGRectMake(startX + buttonSize + horizontalSpacing, startY + (buttonSize + verticalSpacing) * 1, buttonSize, buttonSize), 100 | key: "input_wii", 101 | color: self.colorsForKeys["input_wii"], 102 | image: UIImage(named: "input_wii") 103 | ) 104 | input_wii.addTarget(self, action: #selector(handleButton), forControlEvents: UIControlEvents.TouchUpInside); 105 | self.view.addSubview(input_wii) 106 | 107 | let volume_down = CircleButton( 108 | frame: CGRectMake(startX, startY + (buttonSize + verticalSpacing) * 2, buttonSize, buttonSize), 109 | key: "volume_down", 110 | color: self.colorsForKeys["volume_down"], 111 | image: UIImage(named: "volume_down") 112 | ) 113 | volume_down.addTarget(self, action: #selector(handleButton), forControlEvents: UIControlEvents.TouchUpInside); 114 | self.view.addSubview(volume_down) 115 | 116 | let volume_up = CircleButton( 117 | frame: CGRectMake(startX + buttonSize + horizontalSpacing, startY + (buttonSize + verticalSpacing) * 2, buttonSize, buttonSize), 118 | key: "volume_up", 119 | color: self.colorsForKeys["volume_up"], 120 | image: UIImage(named: "volume_up") 121 | ) 122 | volume_up.addTarget(self, action: #selector(handleButton), forControlEvents: UIControlEvents.TouchUpInside); 123 | self.view.addSubview(volume_up) 124 | 125 | let light = CircleButton( 126 | frame: CGRectMake(startX, startY + (buttonSize + verticalSpacing) * 3, buttonSize, buttonSize), 127 | key: "light", 128 | color: self.colorsForKeys["light"], 129 | image: UIImage(named: "light") 130 | ) 131 | light.addTarget(self, action: #selector(toggleLight), forControlEvents: UIControlEvents.TouchUpInside); 132 | self.view.addSubview(light) 133 | lightButton = light 134 | 135 | let light_color = CircleButton( 136 | frame: CGRectMake(startX + buttonSize + horizontalSpacing, startY + (buttonSize + verticalSpacing) * 3, buttonSize, buttonSize), 137 | key: "light_color", 138 | color: self.colorsForKeys["light_color"], 139 | image: UIImage(named: "light_color") 140 | ) 141 | light_color.addTarget(self, action: #selector(randomLightColor), forControlEvents: UIControlEvents.TouchUpInside); 142 | self.view.addSubview(light_color) 143 | } 144 | 145 | func handleButton(button:CircleButton) { 146 | sendCommand(button.key) 147 | } 148 | 149 | func getLights(callback:((LightTarget) -> ())) { 150 | if (self.allLights != nil) { 151 | return callback(self.allLights!) 152 | } 153 | 154 | let client = Client(accessToken: MVLIFXKey) 155 | client.fetch() { (error) in 156 | if (error.count > 0) { 157 | self.displayError(error[0].description) 158 | } else { 159 | let all = client.allLightTarget() 160 | if (all.count <= 0) { 161 | self.displayError("Couldn't find any light") 162 | } else { 163 | self.allLights = all 164 | callback(all) 165 | } 166 | } 167 | } 168 | } 169 | 170 | func toggleLight() { 171 | animateSignal(yellowColor) 172 | getLights { (all) in 173 | if let lightTarget = all.toLightTargets().first { 174 | self.updateLightButton(!lightTarget.power) 175 | all.setPower(!lightTarget.power) 176 | } 177 | } 178 | } 179 | 180 | func randomLightColor() { 181 | let hue = Double(Float(arc4random()) / Float(UINT32_MAX)) * 360 182 | let saturation = Double(Float(arc4random()) / Float(UINT32_MAX)) * 60 / 100 183 | let color = Color(hue: hue, saturation: saturation, kelvin: 3500) 184 | animateSignal(yellowColor) 185 | getLights { (all) in 186 | all.setState(color, brightness: 1.0, power: true, duration: 0.5, completionHandler: { (results, error) in 187 | if (error != nil) { 188 | self.displayError(error?.description ?? "Couldn't change the color") 189 | } 190 | }) 191 | } 192 | } 193 | 194 | func reconnect() { 195 | self.sender.connect() 196 | 197 | getLights { (all) in 198 | self.updateLightButton(all.power) 199 | } 200 | } 201 | 202 | private func updateLightButton(power:Bool) { 203 | if (power) { 204 | lightButton?.image = UIImage(named: "light") 205 | } else { 206 | lightButton?.image = UIImage(named: "light_off") 207 | } 208 | } 209 | 210 | override func prefersStatusBarHidden() -> Bool { 211 | return true 212 | } 213 | 214 | func sendCommand(key:String) { 215 | if let cmds = MVCommands[key] { 216 | for cmd in cmds { 217 | sender.send(cmd) 218 | } 219 | } 220 | } 221 | 222 | private func animateSignal(color: UIColor) { 223 | let startY = self.view.subviews[0].frame.origin.y 224 | let width:CGFloat = 192 225 | 226 | let signalView = UIView(frame: CGRectMake(self.view.bounds.width / 2 - width / 2, startY / 2 - 1, width, 2)) 227 | signalView.backgroundColor = color 228 | signalView.transform = CGAffineTransformMakeScale(12.0 / width, 1) 229 | self.view.addSubview(signalView) 230 | 231 | UIView.animateWithDuration(0.5, 232 | delay: 0, 233 | options: UIViewAnimationOptions.CurveEaseInOut, 234 | animations: { 235 | signalView.transform = CGAffineTransformIdentity 236 | }) { (bool) -> Void in 237 | } 238 | 239 | UIView.animateWithDuration(0.5, 240 | delay: 0, 241 | options: UIViewAnimationOptions.CurveEaseIn, 242 | animations: { 243 | signalView.alpha = 0.0 244 | }) { (bool) -> Void in 245 | signalView.removeFromSuperview() 246 | } 247 | } 248 | 249 | private func displayError(error: String) { 250 | let startY = self.view.subviews[0].frame.origin.y 251 | let width:CGFloat = 192 252 | label.frame = CGRectMake(self.view.bounds.width / 2 - width / 2, startY / 2 - 13, width, 26) 253 | label.backgroundColor = UIColor.clearColor() 254 | label.textColor = UIColor(red: 0.7608, green: 0.7608, blue: 0.7608, alpha: 0.5) 255 | label.textAlignment = NSTextAlignment.Center 256 | label.text = "You are not connected" 257 | label.alpha = 1.0 258 | self.view.addSubview(label) 259 | 260 | UIView.animateWithDuration(0.5, 261 | delay: 0.85, 262 | options: UIViewAnimationOptions.CurveEaseIn, 263 | animations: { 264 | self.label.alpha = 0.0 265 | }) { (bool) -> Void in 266 | if bool { 267 | self.label.removeFromSuperview() 268 | } 269 | } 270 | } 271 | 272 | // IRSenderDelegate 273 | func senderDidSendCommand(sender: IRSender, cmd: IRCommand) { 274 | animateSignal(cmd.userInfo as! UIColor) 275 | } 276 | 277 | func senderDidFailToSendCommand(sender: IRSender, cmd: IRCommand) { 278 | displayError("You are not connected") 279 | } 280 | 281 | } 282 | 283 | -------------------------------------------------------------------------------- /Remote.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4C3902CB1BC3891B0005FF42 /* CircleButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C3902CA1BC3891B0005FF42 /* CircleButton.swift */; }; 11 | 4C3962CE1D05200E00B31ABC /* MVKeys.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C3962CD1D05200E00B31ABC /* MVKeys.swift */; }; 12 | 4C3B7B0C1BC8E9AD0073BFD1 /* IRCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CE8A90F1B6748EE005E7566 /* IRCommand.swift */; }; 13 | 4C3B7B0D1BC8E9AF0073BFD1 /* IRSender.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CE8A90C1B672FE3005E7566 /* IRSender.swift */; }; 14 | 4C3B7B0F1BC8E9E40073BFD1 /* MVCommands.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C3B7B0E1BC8E9E40073BFD1 /* MVCommands.swift */; }; 15 | 4C3B7B101BC8EB440073BFD1 /* MVCommands.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C3B7B0E1BC8E9E40073BFD1 /* MVCommands.swift */; }; 16 | 4C3B7B121BC8EC2B0073BFD1 /* MVConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C3B7B111BC8EC2B0073BFD1 /* MVConstants.swift */; }; 17 | 4C3B7B131BC8EC9D0073BFD1 /* MVConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C3B7B111BC8EC2B0073BFD1 /* MVConstants.swift */; }; 18 | 4C6BD3161CA27310000C0FAF /* CircleButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C6BD3151CA27310000C0FAF /* CircleButton.swift */; }; 19 | 4C6BD3171CA27406000C0FAF /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4CF58D8D1B6466DA004D3E5E /* Images.xcassets */; }; 20 | 4C994E2D1D0533FF008FDD6E /* LIFXHTTPKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C994E2C1D0533FF008FDD6E /* LIFXHTTPKit.framework */; }; 21 | 4CBD48011BC7790D00EEB831 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CBD48001BC7790D00EEB831 /* AppDelegate.swift */; }; 22 | 4CBD48031BC7790D00EEB831 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CBD48021BC7790D00EEB831 /* ViewController.swift */; }; 23 | 4CBD48051BC7790D00EEB831 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4CBD48041BC7790D00EEB831 /* Assets.xcassets */; }; 24 | 4CBD48081BC7790D00EEB831 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4CBD48061BC7790D00EEB831 /* Main.storyboard */; }; 25 | 4CBD48121BC7791F00EEB831 /* NotificationCenter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CBD47BA1BC76AF700EEB831 /* NotificationCenter.framework */; }; 26 | 4CBD48171BC7791F00EEB831 /* TodayViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CBD48161BC7791F00EEB831 /* TodayViewController.swift */; }; 27 | 4CBD481A1BC7791F00EEB831 /* TodayViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4CBD48181BC7791F00EEB831 /* TodayViewController.xib */; }; 28 | 4CBD48211BC7791F00EEB831 /* RemoteTodayExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 4CBD48111BC7791F00EEB831 /* RemoteTodayExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 29 | 4CE8A90D1B672FE3005E7566 /* IRSender.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CE8A90C1B672FE3005E7566 /* IRSender.swift */; }; 30 | 4CE8A9101B6748EE005E7566 /* IRCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CE8A90F1B6748EE005E7566 /* IRCommand.swift */; }; 31 | 4CF58D871B6466DA004D3E5E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF58D861B6466DA004D3E5E /* AppDelegate.swift */; }; 32 | 4CF58D891B6466DA004D3E5E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF58D881B6466DA004D3E5E /* ViewController.swift */; }; 33 | 4CF58D8E1B6466DA004D3E5E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4CF58D8D1B6466DA004D3E5E /* Images.xcassets */; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXContainerItemProxy section */ 37 | 4CBD481F1BC7791F00EEB831 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 4CF58D791B6466DA004D3E5E /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = 4CBD48101BC7791F00EEB831; 42 | remoteInfo = RemoteTodayExtension; 43 | }; 44 | /* End PBXContainerItemProxy section */ 45 | 46 | /* Begin PBXCopyFilesBuildPhase section */ 47 | 4CBD48251BC7791F00EEB831 /* Embed App Extensions */ = { 48 | isa = PBXCopyFilesBuildPhase; 49 | buildActionMask = 2147483647; 50 | dstPath = ""; 51 | dstSubfolderSpec = 13; 52 | files = ( 53 | 4CBD48211BC7791F00EEB831 /* RemoteTodayExtension.appex in Embed App Extensions */, 54 | ); 55 | name = "Embed App Extensions"; 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | /* End PBXCopyFilesBuildPhase section */ 59 | 60 | /* Begin PBXFileReference section */ 61 | 4C3902CA1BC3891B0005FF42 /* CircleButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CircleButton.swift; sourceTree = ""; }; 62 | 4C3962CD1D05200E00B31ABC /* MVKeys.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MVKeys.swift; sourceTree = ""; }; 63 | 4C3B7B0E1BC8E9E40073BFD1 /* MVCommands.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MVCommands.swift; path = Remote/MVCommands.swift; sourceTree = ""; }; 64 | 4C3B7B111BC8EC2B0073BFD1 /* MVConstants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MVConstants.swift; sourceTree = ""; }; 65 | 4C6BD3151CA27310000C0FAF /* CircleButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CircleButton.swift; sourceTree = ""; }; 66 | 4C994E2C1D0533FF008FDD6E /* LIFXHTTPKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = LIFXHTTPKit.framework; path = Carthage/Build/iOS/LIFXHTTPKit.framework; sourceTree = ""; }; 67 | 4CBD47BA1BC76AF700EEB831 /* NotificationCenter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NotificationCenter.framework; path = System/Library/Frameworks/NotificationCenter.framework; sourceTree = SDKROOT; }; 68 | 4CBD47FE1BC7790D00EEB831 /* RemoteOSX.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RemoteOSX.app; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | 4CBD48001BC7790D00EEB831 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 70 | 4CBD48021BC7790D00EEB831 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 71 | 4CBD48041BC7790D00EEB831 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 72 | 4CBD48071BC7790D00EEB831 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 73 | 4CBD48091BC7790D00EEB831 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 74 | 4CBD48111BC7791F00EEB831 /* RemoteTodayExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = RemoteTodayExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 75 | 4CBD48151BC7791F00EEB831 /* RemoteTodayExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = RemoteTodayExtension.entitlements; sourceTree = ""; }; 76 | 4CBD48161BC7791F00EEB831 /* TodayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodayViewController.swift; sourceTree = ""; }; 77 | 4CBD48191BC7791F00EEB831 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/TodayViewController.xib; sourceTree = ""; }; 78 | 4CBD481B1BC7791F00EEB831 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 79 | 4CE8A90C1B672FE3005E7566 /* IRSender.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = IRSender.swift; path = Remote/IRSender.swift; sourceTree = ""; }; 80 | 4CE8A90F1B6748EE005E7566 /* IRCommand.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = IRCommand.swift; path = Remote/IRCommand.swift; sourceTree = ""; }; 81 | 4CF58D811B6466DA004D3E5E /* Remote.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Remote.app; sourceTree = BUILT_PRODUCTS_DIR; }; 82 | 4CF58D851B6466DA004D3E5E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 83 | 4CF58D861B6466DA004D3E5E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 84 | 4CF58D881B6466DA004D3E5E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 85 | 4CF58D8D1B6466DA004D3E5E /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 86 | 4CF58DD71B6467E7004D3E5E /* Remote-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Remote-Bridging-Header.h"; sourceTree = ""; }; 87 | /* End PBXFileReference section */ 88 | 89 | /* Begin PBXFrameworksBuildPhase section */ 90 | 4CBD47FB1BC7790D00EEB831 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 4CBD480E1BC7791F00EEB831 /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | 4CBD48121BC7791F00EEB831 /* NotificationCenter.framework in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | 4CF58D7E1B6466DA004D3E5E /* Frameworks */ = { 106 | isa = PBXFrameworksBuildPhase; 107 | buildActionMask = 2147483647; 108 | files = ( 109 | 4C994E2D1D0533FF008FDD6E /* LIFXHTTPKit.framework in Frameworks */, 110 | ); 111 | runOnlyForDeploymentPostprocessing = 0; 112 | }; 113 | /* End PBXFrameworksBuildPhase section */ 114 | 115 | /* Begin PBXGroup section */ 116 | 4C3B7B0B1BC8E9900073BFD1 /* lib */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 4CE8A90C1B672FE3005E7566 /* IRSender.swift */, 120 | 4CE8A90F1B6748EE005E7566 /* IRCommand.swift */, 121 | 4C3B7B0E1BC8E9E40073BFD1 /* MVCommands.swift */, 122 | 4C3B7B111BC8EC2B0073BFD1 /* MVConstants.swift */, 123 | 4C3962CD1D05200E00B31ABC /* MVKeys.swift */, 124 | ); 125 | name = lib; 126 | sourceTree = ""; 127 | }; 128 | 4CBD47B91BC76AF700EEB831 /* Frameworks */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 4C994E2C1D0533FF008FDD6E /* LIFXHTTPKit.framework */, 132 | 4CBD47BA1BC76AF700EEB831 /* NotificationCenter.framework */, 133 | ); 134 | name = Frameworks; 135 | sourceTree = ""; 136 | }; 137 | 4CBD47FF1BC7790D00EEB831 /* RemoteOSX */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 4CBD48001BC7790D00EEB831 /* AppDelegate.swift */, 141 | 4CBD48021BC7790D00EEB831 /* ViewController.swift */, 142 | 4CBD48041BC7790D00EEB831 /* Assets.xcassets */, 143 | 4CBD48061BC7790D00EEB831 /* Main.storyboard */, 144 | 4CBD48091BC7790D00EEB831 /* Info.plist */, 145 | ); 146 | path = RemoteOSX; 147 | sourceTree = ""; 148 | }; 149 | 4CBD48131BC7791F00EEB831 /* RemoteTodayExtension */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | 4CBD48161BC7791F00EEB831 /* TodayViewController.swift */, 153 | 4C6BD3151CA27310000C0FAF /* CircleButton.swift */, 154 | 4CBD48181BC7791F00EEB831 /* TodayViewController.xib */, 155 | 4CBD481B1BC7791F00EEB831 /* Info.plist */, 156 | 4CBD48141BC7791F00EEB831 /* Supporting Files */, 157 | ); 158 | path = RemoteTodayExtension; 159 | sourceTree = ""; 160 | }; 161 | 4CBD48141BC7791F00EEB831 /* Supporting Files */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 4CBD48151BC7791F00EEB831 /* RemoteTodayExtension.entitlements */, 165 | ); 166 | name = "Supporting Files"; 167 | sourceTree = ""; 168 | }; 169 | 4CF58D781B6466DA004D3E5E = { 170 | isa = PBXGroup; 171 | children = ( 172 | 4C3B7B0B1BC8E9900073BFD1 /* lib */, 173 | 4CF58D831B6466DA004D3E5E /* Remote */, 174 | 4CBD47FF1BC7790D00EEB831 /* RemoteOSX */, 175 | 4CBD48131BC7791F00EEB831 /* RemoteTodayExtension */, 176 | 4CBD47B91BC76AF700EEB831 /* Frameworks */, 177 | 4CF58D821B6466DA004D3E5E /* Products */, 178 | ); 179 | sourceTree = ""; 180 | }; 181 | 4CF58D821B6466DA004D3E5E /* Products */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 4CF58D811B6466DA004D3E5E /* Remote.app */, 185 | 4CBD47FE1BC7790D00EEB831 /* RemoteOSX.app */, 186 | 4CBD48111BC7791F00EEB831 /* RemoteTodayExtension.appex */, 187 | ); 188 | name = Products; 189 | sourceTree = ""; 190 | }; 191 | 4CF58D831B6466DA004D3E5E /* Remote */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | 4CF58D861B6466DA004D3E5E /* AppDelegate.swift */, 195 | 4CF58D881B6466DA004D3E5E /* ViewController.swift */, 196 | 4C3902CA1BC3891B0005FF42 /* CircleButton.swift */, 197 | 4CF58D8D1B6466DA004D3E5E /* Images.xcassets */, 198 | 4CF58D841B6466DA004D3E5E /* Supporting Files */, 199 | ); 200 | path = Remote; 201 | sourceTree = ""; 202 | }; 203 | 4CF58D841B6466DA004D3E5E /* Supporting Files */ = { 204 | isa = PBXGroup; 205 | children = ( 206 | 4CF58D851B6466DA004D3E5E /* Info.plist */, 207 | 4CF58DD71B6467E7004D3E5E /* Remote-Bridging-Header.h */, 208 | ); 209 | name = "Supporting Files"; 210 | sourceTree = ""; 211 | }; 212 | /* End PBXGroup section */ 213 | 214 | /* Begin PBXHeadersBuildPhase section */ 215 | 4CF58DD91B646857004D3E5E /* Headers */ = { 216 | isa = PBXHeadersBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXHeadersBuildPhase section */ 223 | 224 | /* Begin PBXNativeTarget section */ 225 | 4CBD47FD1BC7790D00EEB831 /* RemoteOSX */ = { 226 | isa = PBXNativeTarget; 227 | buildConfigurationList = 4CBD480A1BC7790D00EEB831 /* Build configuration list for PBXNativeTarget "RemoteOSX" */; 228 | buildPhases = ( 229 | 4CBD47FA1BC7790D00EEB831 /* Sources */, 230 | 4CBD47FB1BC7790D00EEB831 /* Frameworks */, 231 | 4CBD47FC1BC7790D00EEB831 /* Resources */, 232 | 4CBD48251BC7791F00EEB831 /* Embed App Extensions */, 233 | ); 234 | buildRules = ( 235 | ); 236 | dependencies = ( 237 | 4CBD48201BC7791F00EEB831 /* PBXTargetDependency */, 238 | ); 239 | name = RemoteOSX; 240 | productName = RemoteOSX; 241 | productReference = 4CBD47FE1BC7790D00EEB831 /* RemoteOSX.app */; 242 | productType = "com.apple.product-type.application"; 243 | }; 244 | 4CBD48101BC7791F00EEB831 /* RemoteTodayExtension */ = { 245 | isa = PBXNativeTarget; 246 | buildConfigurationList = 4CBD48221BC7791F00EEB831 /* Build configuration list for PBXNativeTarget "RemoteTodayExtension" */; 247 | buildPhases = ( 248 | 4CBD480D1BC7791F00EEB831 /* Sources */, 249 | 4CBD480E1BC7791F00EEB831 /* Frameworks */, 250 | 4CBD480F1BC7791F00EEB831 /* Resources */, 251 | ); 252 | buildRules = ( 253 | ); 254 | dependencies = ( 255 | ); 256 | name = RemoteTodayExtension; 257 | productName = RemoteTodayExtension; 258 | productReference = 4CBD48111BC7791F00EEB831 /* RemoteTodayExtension.appex */; 259 | productType = "com.apple.product-type.app-extension"; 260 | }; 261 | 4CF58D801B6466DA004D3E5E /* Remote */ = { 262 | isa = PBXNativeTarget; 263 | buildConfigurationList = 4CF58DA01B6466DA004D3E5E /* Build configuration list for PBXNativeTarget "Remote" */; 264 | buildPhases = ( 265 | 4CF58D7D1B6466DA004D3E5E /* Sources */, 266 | 4CF58D7E1B6466DA004D3E5E /* Frameworks */, 267 | 4CF58D7F1B6466DA004D3E5E /* Resources */, 268 | 4CF58DD91B646857004D3E5E /* Headers */, 269 | 4C3962D51D0531DE00B31ABC /* Run Script */, 270 | ); 271 | buildRules = ( 272 | ); 273 | dependencies = ( 274 | ); 275 | name = Remote; 276 | productName = Remote; 277 | productReference = 4CF58D811B6466DA004D3E5E /* Remote.app */; 278 | productType = "com.apple.product-type.application"; 279 | }; 280 | /* End PBXNativeTarget section */ 281 | 282 | /* Begin PBXProject section */ 283 | 4CF58D791B6466DA004D3E5E /* Project object */ = { 284 | isa = PBXProject; 285 | attributes = { 286 | LastSwiftMigration = 0700; 287 | LastSwiftUpdateCheck = 0700; 288 | LastUpgradeCheck = 0700; 289 | ORGANIZATIONNAME = michaelvillar; 290 | TargetAttributes = { 291 | 4CBD47FD1BC7790D00EEB831 = { 292 | CreatedOnToolsVersion = 7.0.1; 293 | }; 294 | 4CBD48101BC7791F00EEB831 = { 295 | CreatedOnToolsVersion = 7.0.1; 296 | }; 297 | 4CF58D801B6466DA004D3E5E = { 298 | CreatedOnToolsVersion = 6.4; 299 | DevelopmentTeam = H9MWYLG8FW; 300 | }; 301 | }; 302 | }; 303 | buildConfigurationList = 4CF58D7C1B6466DA004D3E5E /* Build configuration list for PBXProject "Remote" */; 304 | compatibilityVersion = "Xcode 3.2"; 305 | developmentRegion = English; 306 | hasScannedForEncodings = 0; 307 | knownRegions = ( 308 | en, 309 | Base, 310 | ); 311 | mainGroup = 4CF58D781B6466DA004D3E5E; 312 | productRefGroup = 4CF58D821B6466DA004D3E5E /* Products */; 313 | projectDirPath = ""; 314 | projectRoot = ""; 315 | targets = ( 316 | 4CF58D801B6466DA004D3E5E /* Remote */, 317 | 4CBD47FD1BC7790D00EEB831 /* RemoteOSX */, 318 | 4CBD48101BC7791F00EEB831 /* RemoteTodayExtension */, 319 | ); 320 | }; 321 | /* End PBXProject section */ 322 | 323 | /* Begin PBXResourcesBuildPhase section */ 324 | 4CBD47FC1BC7790D00EEB831 /* Resources */ = { 325 | isa = PBXResourcesBuildPhase; 326 | buildActionMask = 2147483647; 327 | files = ( 328 | 4CBD48051BC7790D00EEB831 /* Assets.xcassets in Resources */, 329 | 4CBD48081BC7790D00EEB831 /* Main.storyboard in Resources */, 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | 4CBD480F1BC7791F00EEB831 /* Resources */ = { 334 | isa = PBXResourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | 4CBD481A1BC7791F00EEB831 /* TodayViewController.xib in Resources */, 338 | 4C6BD3171CA27406000C0FAF /* Images.xcassets in Resources */, 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | }; 342 | 4CF58D7F1B6466DA004D3E5E /* Resources */ = { 343 | isa = PBXResourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | 4CF58D8E1B6466DA004D3E5E /* Images.xcassets in Resources */, 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | }; 350 | /* End PBXResourcesBuildPhase section */ 351 | 352 | /* Begin PBXShellScriptBuildPhase section */ 353 | 4C3962D51D0531DE00B31ABC /* Run Script */ = { 354 | isa = PBXShellScriptBuildPhase; 355 | buildActionMask = 2147483647; 356 | files = ( 357 | ); 358 | inputPaths = ( 359 | "$(SRCROOT)/Carthage/Build/iOS/LIFXHTTPKit.framework", 360 | ); 361 | name = "Run Script"; 362 | outputPaths = ( 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | shellPath = /bin/sh; 366 | shellScript = "/usr/local/bin/carthage copy-frameworks"; 367 | }; 368 | /* End PBXShellScriptBuildPhase section */ 369 | 370 | /* Begin PBXSourcesBuildPhase section */ 371 | 4CBD47FA1BC7790D00EEB831 /* Sources */ = { 372 | isa = PBXSourcesBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | 4CBD48031BC7790D00EEB831 /* ViewController.swift in Sources */, 376 | 4CBD48011BC7790D00EEB831 /* AppDelegate.swift in Sources */, 377 | ); 378 | runOnlyForDeploymentPostprocessing = 0; 379 | }; 380 | 4CBD480D1BC7791F00EEB831 /* Sources */ = { 381 | isa = PBXSourcesBuildPhase; 382 | buildActionMask = 2147483647; 383 | files = ( 384 | 4CBD48171BC7791F00EEB831 /* TodayViewController.swift in Sources */, 385 | 4C3B7B0C1BC8E9AD0073BFD1 /* IRCommand.swift in Sources */, 386 | 4C3B7B0D1BC8E9AF0073BFD1 /* IRSender.swift in Sources */, 387 | 4C6BD3161CA27310000C0FAF /* CircleButton.swift in Sources */, 388 | 4C3B7B101BC8EB440073BFD1 /* MVCommands.swift in Sources */, 389 | 4C3B7B131BC8EC9D0073BFD1 /* MVConstants.swift in Sources */, 390 | ); 391 | runOnlyForDeploymentPostprocessing = 0; 392 | }; 393 | 4CF58D7D1B6466DA004D3E5E /* Sources */ = { 394 | isa = PBXSourcesBuildPhase; 395 | buildActionMask = 2147483647; 396 | files = ( 397 | 4C3B7B0F1BC8E9E40073BFD1 /* MVCommands.swift in Sources */, 398 | 4CE8A9101B6748EE005E7566 /* IRCommand.swift in Sources */, 399 | 4C3902CB1BC3891B0005FF42 /* CircleButton.swift in Sources */, 400 | 4C3B7B121BC8EC2B0073BFD1 /* MVConstants.swift in Sources */, 401 | 4CF58D891B6466DA004D3E5E /* ViewController.swift in Sources */, 402 | 4CE8A90D1B672FE3005E7566 /* IRSender.swift in Sources */, 403 | 4C3962CE1D05200E00B31ABC /* MVKeys.swift in Sources */, 404 | 4CF58D871B6466DA004D3E5E /* AppDelegate.swift in Sources */, 405 | ); 406 | runOnlyForDeploymentPostprocessing = 0; 407 | }; 408 | /* End PBXSourcesBuildPhase section */ 409 | 410 | /* Begin PBXTargetDependency section */ 411 | 4CBD48201BC7791F00EEB831 /* PBXTargetDependency */ = { 412 | isa = PBXTargetDependency; 413 | target = 4CBD48101BC7791F00EEB831 /* RemoteTodayExtension */; 414 | targetProxy = 4CBD481F1BC7791F00EEB831 /* PBXContainerItemProxy */; 415 | }; 416 | /* End PBXTargetDependency section */ 417 | 418 | /* Begin PBXVariantGroup section */ 419 | 4CBD48061BC7790D00EEB831 /* Main.storyboard */ = { 420 | isa = PBXVariantGroup; 421 | children = ( 422 | 4CBD48071BC7790D00EEB831 /* Base */, 423 | ); 424 | name = Main.storyboard; 425 | sourceTree = ""; 426 | }; 427 | 4CBD48181BC7791F00EEB831 /* TodayViewController.xib */ = { 428 | isa = PBXVariantGroup; 429 | children = ( 430 | 4CBD48191BC7791F00EEB831 /* Base */, 431 | ); 432 | name = TodayViewController.xib; 433 | sourceTree = ""; 434 | }; 435 | /* End PBXVariantGroup section */ 436 | 437 | /* Begin XCBuildConfiguration section */ 438 | 4CBD480B1BC7790D00EEB831 /* Debug */ = { 439 | isa = XCBuildConfiguration; 440 | buildSettings = { 441 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 442 | CODE_SIGN_IDENTITY = "-"; 443 | COMBINE_HIDPI_IMAGES = YES; 444 | DEBUG_INFORMATION_FORMAT = dwarf; 445 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; 446 | INFOPLIST_FILE = RemoteOSX/Info.plist; 447 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 448 | MACOSX_DEPLOYMENT_TARGET = 10.10; 449 | PRODUCT_BUNDLE_IDENTIFIER = com.michaelvillar.RemoteOSX; 450 | PRODUCT_NAME = "$(TARGET_NAME)"; 451 | SDKROOT = macosx; 452 | }; 453 | name = Debug; 454 | }; 455 | 4CBD480C1BC7790D00EEB831 /* Release */ = { 456 | isa = XCBuildConfiguration; 457 | buildSettings = { 458 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 459 | CODE_SIGN_IDENTITY = "-"; 460 | COMBINE_HIDPI_IMAGES = YES; 461 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; 462 | INFOPLIST_FILE = RemoteOSX/Info.plist; 463 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 464 | MACOSX_DEPLOYMENT_TARGET = 10.10; 465 | PRODUCT_BUNDLE_IDENTIFIER = com.michaelvillar.RemoteOSX; 466 | PRODUCT_NAME = "$(TARGET_NAME)"; 467 | SDKROOT = macosx; 468 | }; 469 | name = Release; 470 | }; 471 | 4CBD48231BC7791F00EEB831 /* Debug */ = { 472 | isa = XCBuildConfiguration; 473 | buildSettings = { 474 | CODE_SIGN_ENTITLEMENTS = RemoteTodayExtension/RemoteTodayExtension.entitlements; 475 | CODE_SIGN_IDENTITY = "-"; 476 | COMBINE_HIDPI_IMAGES = YES; 477 | DEBUG_INFORMATION_FORMAT = dwarf; 478 | INFOPLIST_FILE = RemoteTodayExtension/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"; 480 | MACOSX_DEPLOYMENT_TARGET = 10.10; 481 | PRODUCT_BUNDLE_IDENTIFIER = com.michaelvillar.RemoteOSX.RemoteTodayExtension; 482 | PRODUCT_NAME = "$(TARGET_NAME)"; 483 | SDKROOT = macosx; 484 | SKIP_INSTALL = YES; 485 | }; 486 | name = Debug; 487 | }; 488 | 4CBD48241BC7791F00EEB831 /* Release */ = { 489 | isa = XCBuildConfiguration; 490 | buildSettings = { 491 | CODE_SIGN_ENTITLEMENTS = RemoteTodayExtension/RemoteTodayExtension.entitlements; 492 | CODE_SIGN_IDENTITY = "-"; 493 | COMBINE_HIDPI_IMAGES = YES; 494 | INFOPLIST_FILE = RemoteTodayExtension/Info.plist; 495 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"; 496 | MACOSX_DEPLOYMENT_TARGET = 10.10; 497 | PRODUCT_BUNDLE_IDENTIFIER = com.michaelvillar.RemoteOSX.RemoteTodayExtension; 498 | PRODUCT_NAME = "$(TARGET_NAME)"; 499 | SDKROOT = macosx; 500 | SKIP_INSTALL = YES; 501 | }; 502 | name = Release; 503 | }; 504 | 4CF58D9E1B6466DA004D3E5E /* Debug */ = { 505 | isa = XCBuildConfiguration; 506 | buildSettings = { 507 | ALWAYS_SEARCH_USER_PATHS = NO; 508 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 509 | CLANG_CXX_LIBRARY = "libc++"; 510 | CLANG_ENABLE_MODULES = YES; 511 | CLANG_ENABLE_OBJC_ARC = YES; 512 | CLANG_WARN_BOOL_CONVERSION = YES; 513 | CLANG_WARN_CONSTANT_CONVERSION = YES; 514 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 515 | CLANG_WARN_EMPTY_BODY = YES; 516 | CLANG_WARN_ENUM_CONVERSION = YES; 517 | CLANG_WARN_INT_CONVERSION = YES; 518 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 519 | CLANG_WARN_UNREACHABLE_CODE = YES; 520 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 521 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 522 | COPY_PHASE_STRIP = NO; 523 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 524 | ENABLE_STRICT_OBJC_MSGSEND = YES; 525 | ENABLE_TESTABILITY = YES; 526 | GCC_C_LANGUAGE_STANDARD = gnu99; 527 | GCC_DYNAMIC_NO_PIC = NO; 528 | GCC_NO_COMMON_BLOCKS = YES; 529 | GCC_OPTIMIZATION_LEVEL = 0; 530 | GCC_PREPROCESSOR_DEFINITIONS = ( 531 | "DEBUG=1", 532 | "$(inherited)", 533 | ); 534 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 535 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 536 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 537 | GCC_WARN_UNDECLARED_SELECTOR = YES; 538 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 539 | GCC_WARN_UNUSED_FUNCTION = YES; 540 | GCC_WARN_UNUSED_VARIABLE = YES; 541 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 542 | MTL_ENABLE_DEBUG_INFO = YES; 543 | ONLY_ACTIVE_ARCH = YES; 544 | SDKROOT = iphoneos; 545 | SWIFT_OBJC_BRIDGING_HEADER = "./Remote/Remote-Bridging-Header.h"; 546 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 547 | }; 548 | name = Debug; 549 | }; 550 | 4CF58D9F1B6466DA004D3E5E /* Release */ = { 551 | isa = XCBuildConfiguration; 552 | buildSettings = { 553 | ALWAYS_SEARCH_USER_PATHS = NO; 554 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 555 | CLANG_CXX_LIBRARY = "libc++"; 556 | CLANG_ENABLE_MODULES = YES; 557 | CLANG_ENABLE_OBJC_ARC = YES; 558 | CLANG_WARN_BOOL_CONVERSION = YES; 559 | CLANG_WARN_CONSTANT_CONVERSION = YES; 560 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 561 | CLANG_WARN_EMPTY_BODY = YES; 562 | CLANG_WARN_ENUM_CONVERSION = YES; 563 | CLANG_WARN_INT_CONVERSION = YES; 564 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 565 | CLANG_WARN_UNREACHABLE_CODE = YES; 566 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 567 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 568 | COPY_PHASE_STRIP = NO; 569 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 570 | ENABLE_NS_ASSERTIONS = NO; 571 | ENABLE_STRICT_OBJC_MSGSEND = YES; 572 | GCC_C_LANGUAGE_STANDARD = gnu99; 573 | GCC_NO_COMMON_BLOCKS = YES; 574 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 575 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 576 | GCC_WARN_UNDECLARED_SELECTOR = YES; 577 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 578 | GCC_WARN_UNUSED_FUNCTION = YES; 579 | GCC_WARN_UNUSED_VARIABLE = YES; 580 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 581 | MTL_ENABLE_DEBUG_INFO = NO; 582 | SDKROOT = iphoneos; 583 | SWIFT_OBJC_BRIDGING_HEADER = "./Remote/Remote-Bridging-Header.h"; 584 | VALIDATE_PRODUCT = YES; 585 | }; 586 | name = Release; 587 | }; 588 | 4CF58DA11B6466DA004D3E5E /* Debug */ = { 589 | isa = XCBuildConfiguration; 590 | buildSettings = { 591 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 592 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 593 | CLANG_ENABLE_MODULES = YES; 594 | CODE_SIGN_IDENTITY = "iPhone Developer"; 595 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 596 | FRAMEWORK_SEARCH_PATHS = ( 597 | "$(inherited)", 598 | "$(PROJECT_DIR)", 599 | "$(PROJECT_DIR)/Carthage/Build/iOS", 600 | ); 601 | INFOPLIST_FILE = Remote/Info.plist; 602 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 603 | PRODUCT_BUNDLE_IDENTIFIER = "com.michaelvillar.$(PRODUCT_NAME:rfc1034identifier)"; 604 | PRODUCT_NAME = "$(TARGET_NAME)"; 605 | PROVISIONING_PROFILE = ""; 606 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 607 | }; 608 | name = Debug; 609 | }; 610 | 4CF58DA21B6466DA004D3E5E /* Release */ = { 611 | isa = XCBuildConfiguration; 612 | buildSettings = { 613 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 614 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 615 | CLANG_ENABLE_MODULES = YES; 616 | CODE_SIGN_IDENTITY = "iPhone Developer"; 617 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 618 | FRAMEWORK_SEARCH_PATHS = ( 619 | "$(inherited)", 620 | "$(PROJECT_DIR)", 621 | "$(PROJECT_DIR)/Carthage/Build/iOS", 622 | ); 623 | INFOPLIST_FILE = Remote/Info.plist; 624 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 625 | PRODUCT_BUNDLE_IDENTIFIER = "com.michaelvillar.$(PRODUCT_NAME:rfc1034identifier)"; 626 | PRODUCT_NAME = "$(TARGET_NAME)"; 627 | PROVISIONING_PROFILE = ""; 628 | }; 629 | name = Release; 630 | }; 631 | /* End XCBuildConfiguration section */ 632 | 633 | /* Begin XCConfigurationList section */ 634 | 4CBD480A1BC7790D00EEB831 /* Build configuration list for PBXNativeTarget "RemoteOSX" */ = { 635 | isa = XCConfigurationList; 636 | buildConfigurations = ( 637 | 4CBD480B1BC7790D00EEB831 /* Debug */, 638 | 4CBD480C1BC7790D00EEB831 /* Release */, 639 | ); 640 | defaultConfigurationIsVisible = 0; 641 | defaultConfigurationName = Release; 642 | }; 643 | 4CBD48221BC7791F00EEB831 /* Build configuration list for PBXNativeTarget "RemoteTodayExtension" */ = { 644 | isa = XCConfigurationList; 645 | buildConfigurations = ( 646 | 4CBD48231BC7791F00EEB831 /* Debug */, 647 | 4CBD48241BC7791F00EEB831 /* Release */, 648 | ); 649 | defaultConfigurationIsVisible = 0; 650 | defaultConfigurationName = Release; 651 | }; 652 | 4CF58D7C1B6466DA004D3E5E /* Build configuration list for PBXProject "Remote" */ = { 653 | isa = XCConfigurationList; 654 | buildConfigurations = ( 655 | 4CF58D9E1B6466DA004D3E5E /* Debug */, 656 | 4CF58D9F1B6466DA004D3E5E /* Release */, 657 | ); 658 | defaultConfigurationIsVisible = 0; 659 | defaultConfigurationName = Release; 660 | }; 661 | 4CF58DA01B6466DA004D3E5E /* Build configuration list for PBXNativeTarget "Remote" */ = { 662 | isa = XCConfigurationList; 663 | buildConfigurations = ( 664 | 4CF58DA11B6466DA004D3E5E /* Debug */, 665 | 4CF58DA21B6466DA004D3E5E /* Release */, 666 | ); 667 | defaultConfigurationIsVisible = 0; 668 | defaultConfigurationName = Release; 669 | }; 670 | /* End XCConfigurationList section */ 671 | }; 672 | rootObject = 4CF58D791B6466DA004D3E5E /* Project object */; 673 | } 674 | -------------------------------------------------------------------------------- /RemoteOSX/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | Default 510 | 511 | 512 | 513 | 514 | 515 | 516 | Left to Right 517 | 518 | 519 | 520 | 521 | 522 | 523 | Right to Left 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | Default 535 | 536 | 537 | 538 | 539 | 540 | 541 | Left to Right 542 | 543 | 544 | 545 | 546 | 547 | 548 | Right to Left 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | --------------------------------------------------------------------------------