├── .gitignore ├── GentleTouch WatchKit App ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ └── Interface.storyboard └── Info.plist ├── GentleTouch WatchKit Extension ├── Assets.xcassets │ └── README__ignoredByTemplate__ ├── ExtensionDelegate.swift ├── GlanceController.swift ├── Info.plist ├── InterfaceController.swift ├── NotificationController.swift └── PushNotificationPayload.apns ├── GentleTouch.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── GentleTouch ├── AppDelegate.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── ViewController.swift ├── GentleTouchTests ├── GentleTouchTests.swift └── Info.plist ├── GentleTouchUITests ├── GentleTouchUITests.swift └── Info.plist └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | # Pods/ 27 | 28 | # Carthage 29 | # 30 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 31 | # Carthage/Checkouts 32 | 33 | Carthage/Build 34 | -------------------------------------------------------------------------------- /GentleTouch WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "24x24", 5 | "idiom" : "watch", 6 | "scale" : "2x", 7 | "role" : "notificationCenter", 8 | "subtype" : "38mm" 9 | }, 10 | { 11 | "size" : "27.5x27.5", 12 | "idiom" : "watch", 13 | "scale" : "2x", 14 | "role" : "notificationCenter", 15 | "subtype" : "42mm" 16 | }, 17 | { 18 | "size" : "29x29", 19 | "idiom" : "watch", 20 | "role" : "companionSettings", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "size" : "29x29", 25 | "idiom" : "watch", 26 | "role" : "companionSettings", 27 | "scale" : "3x" 28 | }, 29 | { 30 | "size" : "40x40", 31 | "idiom" : "watch", 32 | "scale" : "2x", 33 | "role" : "appLauncher", 34 | "subtype" : "38mm" 35 | }, 36 | { 37 | "size" : "44x44", 38 | "idiom" : "watch", 39 | "scale" : "2x", 40 | "role" : "longLook", 41 | "subtype" : "42mm" 42 | }, 43 | { 44 | "size" : "86x86", 45 | "idiom" : "watch", 46 | "scale" : "2x", 47 | "role" : "quickLook", 48 | "subtype" : "38mm" 49 | }, 50 | { 51 | "size" : "98x98", 52 | "idiom" : "watch", 53 | "scale" : "2x", 54 | "role" : "quickLook", 55 | "subtype" : "42mm" 56 | } 57 | ], 58 | "info" : { 59 | "version" : 1, 60 | "author" : "xcode" 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /GentleTouch WatchKit App/Base.lproj/Interface.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 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 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /GentleTouch WatchKit App/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | GentleTouch WatchKit App 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 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 | UISupportedInterfaceOrientations 26 | 27 | UIInterfaceOrientationPortrait 28 | UIInterfaceOrientationPortraitUpsideDown 29 | 30 | WKCompanionAppBundleIdentifier 31 | com.nixWork.GentleTouch 32 | WKWatchKitApp 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /GentleTouch WatchKit Extension/Assets.xcassets/README__ignoredByTemplate__: -------------------------------------------------------------------------------- 1 | Did you know that git does not support storing empty directories? 2 | -------------------------------------------------------------------------------- /GentleTouch WatchKit Extension/ExtensionDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ExtensionDelegate.swift 3 | // GentleTouch WatchKit Extension 4 | // 5 | // Created by NIX on 15/6/13. 6 | // Copyright © 2015年 nixWork. All rights reserved. 7 | // 8 | 9 | import WatchKit 10 | 11 | class ExtensionDelegate: NSObject, WKExtensionDelegate { 12 | 13 | func applicationDidFinishLaunching() { 14 | // Perform any final initialization of your application. 15 | } 16 | 17 | func applicationDidBecomeActive() { 18 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 19 | } 20 | 21 | func applicationWillResignActive() { 22 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 23 | // Use this method to pause ongoing tasks, disable timers, etc. 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /GentleTouch WatchKit Extension/GlanceController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GlanceController.swift 3 | // GentleTouch WatchKit Extension 4 | // 5 | // Created by NIX on 15/6/13. 6 | // Copyright © 2015年 nixWork. All rights reserved. 7 | // 8 | 9 | import WatchKit 10 | import Foundation 11 | 12 | 13 | class GlanceController: WKInterfaceController { 14 | 15 | override func awakeWithContext(context: AnyObject?) { 16 | super.awakeWithContext(context) 17 | 18 | // Configure interface objects here. 19 | } 20 | 21 | override func willActivate() { 22 | // This method is called when watch view controller is about to be visible to user 23 | super.willActivate() 24 | } 25 | 26 | override func didDeactivate() { 27 | // This method is called when watch view controller is no longer visible 28 | super.didDeactivate() 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /GentleTouch WatchKit Extension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | GentleTouch WatchKit Extension 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | XPC! 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | NSExtension 26 | 27 | NSExtensionAttributes 28 | 29 | WKAppBundleIdentifier 30 | com.nixWork.GentleTouch.watchkitapp 31 | 32 | NSExtensionPointIdentifier 33 | com.apple.watchkit 34 | 35 | RemoteInterfacePrincipalClass 36 | $(PRODUCT_MODULE_NAME).InterfaceController 37 | WKExtensionDelegateClassName 38 | $(PRODUCT_MODULE_NAME).ExtensionDelegate 39 | 40 | 41 | -------------------------------------------------------------------------------- /GentleTouch WatchKit Extension/InterfaceController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // InterfaceController.swift 3 | // GentleTouch WatchKit Extension 4 | // 5 | // Created by NIX on 15/6/13. 6 | // Copyright © 2015年 nixWork. All rights reserved. 7 | // 8 | 9 | import WatchKit 10 | import WatchConnectivity 11 | 12 | class InterfaceController: WKInterfaceController { 13 | 14 | @IBOutlet var hapticTypeLabel: WKInterfaceLabel! 15 | 16 | lazy var session: WCSession = { 17 | let session = WCSession.defaultSession() 18 | session.delegate = self 19 | return session 20 | }() 21 | 22 | var sessionEnabled: Bool { 23 | return session.reachable 24 | } 25 | 26 | override func awakeWithContext(context: AnyObject?) { 27 | super.awakeWithContext(context) 28 | 29 | session.activateSession() 30 | } 31 | 32 | // MARK: Actions 33 | 34 | @IBAction func requestSomeRandomTouch() { 35 | if sessionEnabled { 36 | session.sendMessage(["randomTouchTimes": 5], replyHandler: nil, errorHandler: { error in 37 | print(error) 38 | 39 | let dismissAction = WKAlertAction(title: "Dismiss", style: .Default, handler: {}) 40 | self.presentAlertControllerWithTitle("Error", message: error.localizedDescription, preferredStyle: .Alert, actions: [dismissAction]) 41 | }) 42 | 43 | } else { 44 | let dismissAction = WKAlertAction(title: "Dismiss", style: .Default, handler: {}) 45 | self.presentAlertControllerWithTitle("Sorry", message: "Can NOT connect to iPhone!", preferredStyle: .Alert, actions: [dismissAction]) 46 | } 47 | } 48 | } 49 | 50 | extension WKHapticType { 51 | var name: String { 52 | switch self { 53 | case .Notification: 54 | return "Notification" 55 | case .DirectionUp: 56 | return "DirectionUp" 57 | case .DirectionDown: 58 | return "DirectionDown" 59 | case .Success: 60 | return "Success" 61 | case .Failure: 62 | return "Failure" 63 | case .Retry: 64 | return "Retry" 65 | case .Start: 66 | return "Start" 67 | case .Stop: 68 | return "Stop" 69 | case .Click: 70 | return "Click" 71 | } 72 | } 73 | } 74 | 75 | extension InterfaceController: WCSessionDelegate { 76 | 77 | func session(session: WCSession, didReceiveMessage message: [String : AnyObject]) { 78 | 79 | print("receive message: \(message)") 80 | 81 | if let 82 | hapticTypeRawValue = message["hapticTypeRawValue"] as? Int, 83 | type = WKHapticType(rawValue: hapticTypeRawValue) { 84 | 85 | hapticTypeLabel.setText(type.name) 86 | 87 | WKInterfaceDevice.currentDevice().playHaptic(type) 88 | } 89 | } 90 | } 91 | 92 | -------------------------------------------------------------------------------- /GentleTouch WatchKit Extension/NotificationController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NotificationController.swift 3 | // GentleTouch WatchKit Extension 4 | // 5 | // Created by NIX on 15/6/13. 6 | // Copyright © 2015年 nixWork. All rights reserved. 7 | // 8 | 9 | import WatchKit 10 | import Foundation 11 | 12 | 13 | class NotificationController: WKUserNotificationInterfaceController { 14 | 15 | override init() { 16 | // Initialize variables here. 17 | super.init() 18 | 19 | // Configure interface objects here. 20 | } 21 | 22 | override func willActivate() { 23 | // This method is called when watch view controller is about to be visible to user 24 | super.willActivate() 25 | } 26 | 27 | override func didDeactivate() { 28 | // This method is called when watch view controller is no longer visible 29 | super.didDeactivate() 30 | } 31 | 32 | /* 33 | override func didReceiveLocalNotification(localNotification: UILocalNotification, withCompletion completionHandler: ((WKUserNotificationInterfaceType) -> Void)) { 34 | // This method is called when a local notification needs to be presented. 35 | // Implement it if you use a dynamic notification interface. 36 | // Populate your dynamic notification interface as quickly as possible. 37 | // 38 | // After populating your dynamic notification interface call the completion block. 39 | completionHandler(.Custom) 40 | } 41 | */ 42 | 43 | /* 44 | override func didReceiveRemoteNotification(remoteNotification: [NSObject : AnyObject], withCompletion completionHandler: ((WKUserNotificationInterfaceType) -> Void)) { 45 | // This method is called when a remote notification needs to be presented. 46 | // Implement it if you use a dynamic notification interface. 47 | // Populate your dynamic notification interface as quickly as possible. 48 | // 49 | // After populating your dynamic notification interface call the completion block. 50 | completionHandler(.Custom) 51 | } 52 | */ 53 | } 54 | -------------------------------------------------------------------------------- /GentleTouch WatchKit Extension/PushNotificationPayload.apns: -------------------------------------------------------------------------------- 1 | { 2 | "aps": { 3 | "alert": { 4 | "body": "Test message", 5 | "title": "Optional title" 6 | }, 7 | "category": "myCategory" 8 | }, 9 | 10 | "WatchKit Simulator Actions": [ 11 | { 12 | "title": "First Button", 13 | "identifier": "firstButtonAction" 14 | } 15 | ], 16 | 17 | "customKey": "Use this file to define a testing payload for your notifications. The aps dictionary specifies the category, alert text and title. The WatchKit Simulator Actions array can provide info for one or more action buttons in addition to the standard Dismiss button. Any other top level keys are custom payload. If you have multiple such JSON files in your project, you'll be able to select them when choosing to debug the notification interface of your Watch App." 18 | } 19 | -------------------------------------------------------------------------------- /GentleTouch.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 50C03AFD1B2BC873001E277D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C03AFC1B2BC873001E277D /* AppDelegate.swift */; }; 11 | 50C03AFF1B2BC873001E277D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C03AFE1B2BC873001E277D /* ViewController.swift */; }; 12 | 50C03B021B2BC873001E277D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50C03B001B2BC873001E277D /* Main.storyboard */; }; 13 | 50C03B041B2BC873001E277D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50C03B031B2BC873001E277D /* Assets.xcassets */; }; 14 | 50C03B071B2BC873001E277D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50C03B051B2BC873001E277D /* LaunchScreen.storyboard */; }; 15 | 50C03B121B2BC873001E277D /* GentleTouchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C03B111B2BC873001E277D /* GentleTouchTests.swift */; }; 16 | 50C03B1D1B2BC873001E277D /* GentleTouchUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C03B1C1B2BC873001E277D /* GentleTouchUITests.swift */; }; 17 | 50C03B221B2BC873001E277D /* GentleTouch WatchKit App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 50C03B211B2BC873001E277D /* GentleTouch WatchKit App.app */; }; 18 | 50C03B281B2BC873001E277D /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50C03B261B2BC873001E277D /* Interface.storyboard */; }; 19 | 50C03B2A1B2BC873001E277D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50C03B291B2BC873001E277D /* Assets.xcassets */; }; 20 | 50C03B311B2BC873001E277D /* GentleTouch WatchKit Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 50C03B301B2BC873001E277D /* GentleTouch WatchKit Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 21 | 50C03B381B2BC874001E277D /* InterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C03B371B2BC874001E277D /* InterfaceController.swift */; }; 22 | 50C03B3A1B2BC874001E277D /* ExtensionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C03B391B2BC874001E277D /* ExtensionDelegate.swift */; }; 23 | 50C03B3C1B2BC874001E277D /* NotificationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C03B3B1B2BC874001E277D /* NotificationController.swift */; }; 24 | 50C03B3E1B2BC874001E277D /* GlanceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C03B3D1B2BC874001E277D /* GlanceController.swift */; }; 25 | 50C03B401B2BC874001E277D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50C03B3F1B2BC874001E277D /* Assets.xcassets */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 50C03B0E1B2BC873001E277D /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 50C03AF11B2BC873001E277D /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 50C03AF81B2BC873001E277D; 34 | remoteInfo = GentleTouch; 35 | }; 36 | 50C03B191B2BC873001E277D /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 50C03AF11B2BC873001E277D /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 50C03AF81B2BC873001E277D; 41 | remoteInfo = GentleTouch; 42 | }; 43 | 50C03B231B2BC873001E277D /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 50C03AF11B2BC873001E277D /* Project object */; 46 | proxyType = 1; 47 | remoteGlobalIDString = 50C03B201B2BC873001E277D; 48 | remoteInfo = "GentleTouch WatchKit App"; 49 | }; 50 | 50C03B321B2BC873001E277D /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 50C03AF11B2BC873001E277D /* Project object */; 53 | proxyType = 1; 54 | remoteGlobalIDString = 50C03B2F1B2BC873001E277D; 55 | remoteInfo = "GentleTouch WatchKit Extension"; 56 | }; 57 | /* End PBXContainerItemProxy section */ 58 | 59 | /* Begin PBXCopyFilesBuildPhase section */ 60 | 50C03B471B2BC874001E277D /* Embed App Extensions */ = { 61 | isa = PBXCopyFilesBuildPhase; 62 | buildActionMask = 2147483647; 63 | dstPath = ""; 64 | dstSubfolderSpec = 13; 65 | files = ( 66 | 50C03B311B2BC873001E277D /* GentleTouch WatchKit Extension.appex in Embed App Extensions */, 67 | ); 68 | name = "Embed App Extensions"; 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | 50C03B4B1B2BC874001E277D /* Embed Watch Content */ = { 72 | isa = PBXCopyFilesBuildPhase; 73 | buildActionMask = 2147483647; 74 | dstPath = "$(CONTENTS_FOLDER_PATH)/Watch"; 75 | dstSubfolderSpec = 16; 76 | files = ( 77 | 50C03B221B2BC873001E277D /* GentleTouch WatchKit App.app in Embed Watch Content */, 78 | ); 79 | name = "Embed Watch Content"; 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | /* End PBXCopyFilesBuildPhase section */ 83 | 84 | /* Begin PBXFileReference section */ 85 | 50C03AF91B2BC873001E277D /* GentleTouch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GentleTouch.app; sourceTree = BUILT_PRODUCTS_DIR; }; 86 | 50C03AFC1B2BC873001E277D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 87 | 50C03AFE1B2BC873001E277D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 88 | 50C03B011B2BC873001E277D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 89 | 50C03B031B2BC873001E277D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 90 | 50C03B061B2BC873001E277D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 91 | 50C03B081B2BC873001E277D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 92 | 50C03B0D1B2BC873001E277D /* GentleTouchTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GentleTouchTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 93 | 50C03B111B2BC873001E277D /* GentleTouchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GentleTouchTests.swift; sourceTree = ""; }; 94 | 50C03B131B2BC873001E277D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 95 | 50C03B181B2BC873001E277D /* GentleTouchUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GentleTouchUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 96 | 50C03B1C1B2BC873001E277D /* GentleTouchUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GentleTouchUITests.swift; sourceTree = ""; }; 97 | 50C03B1E1B2BC873001E277D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 98 | 50C03B211B2BC873001E277D /* GentleTouch WatchKit App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "GentleTouch WatchKit App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 99 | 50C03B271B2BC873001E277D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = ""; }; 100 | 50C03B291B2BC873001E277D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 101 | 50C03B2B1B2BC873001E277D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 102 | 50C03B301B2BC873001E277D /* GentleTouch WatchKit Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "GentleTouch WatchKit Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 103 | 50C03B361B2BC874001E277D /* PushNotificationPayload.apns */ = {isa = PBXFileReference; lastKnownFileType = text; path = PushNotificationPayload.apns; sourceTree = ""; }; 104 | 50C03B371B2BC874001E277D /* InterfaceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceController.swift; sourceTree = ""; }; 105 | 50C03B391B2BC874001E277D /* ExtensionDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExtensionDelegate.swift; sourceTree = ""; }; 106 | 50C03B3B1B2BC874001E277D /* NotificationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationController.swift; sourceTree = ""; }; 107 | 50C03B3D1B2BC874001E277D /* GlanceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlanceController.swift; sourceTree = ""; }; 108 | 50C03B3F1B2BC874001E277D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 109 | 50C03B411B2BC874001E277D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 110 | /* End PBXFileReference section */ 111 | 112 | /* Begin PBXFrameworksBuildPhase section */ 113 | 50C03AF61B2BC873001E277D /* Frameworks */ = { 114 | isa = PBXFrameworksBuildPhase; 115 | buildActionMask = 2147483647; 116 | files = ( 117 | ); 118 | runOnlyForDeploymentPostprocessing = 0; 119 | }; 120 | 50C03B0A1B2BC873001E277D /* Frameworks */ = { 121 | isa = PBXFrameworksBuildPhase; 122 | buildActionMask = 2147483647; 123 | files = ( 124 | ); 125 | runOnlyForDeploymentPostprocessing = 0; 126 | }; 127 | 50C03B151B2BC873001E277D /* Frameworks */ = { 128 | isa = PBXFrameworksBuildPhase; 129 | buildActionMask = 2147483647; 130 | files = ( 131 | ); 132 | runOnlyForDeploymentPostprocessing = 0; 133 | }; 134 | 50C03B2D1B2BC873001E277D /* Frameworks */ = { 135 | isa = PBXFrameworksBuildPhase; 136 | buildActionMask = 2147483647; 137 | files = ( 138 | ); 139 | runOnlyForDeploymentPostprocessing = 0; 140 | }; 141 | /* End PBXFrameworksBuildPhase section */ 142 | 143 | /* Begin PBXGroup section */ 144 | 50C03AF01B2BC873001E277D = { 145 | isa = PBXGroup; 146 | children = ( 147 | 50C03AFB1B2BC873001E277D /* GentleTouch */, 148 | 50C03B101B2BC873001E277D /* GentleTouchTests */, 149 | 50C03B1B1B2BC873001E277D /* GentleTouchUITests */, 150 | 50C03B251B2BC873001E277D /* GentleTouch WatchKit App */, 151 | 50C03B341B2BC873001E277D /* GentleTouch WatchKit Extension */, 152 | 50C03AFA1B2BC873001E277D /* Products */, 153 | ); 154 | sourceTree = ""; 155 | }; 156 | 50C03AFA1B2BC873001E277D /* Products */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 50C03AF91B2BC873001E277D /* GentleTouch.app */, 160 | 50C03B0D1B2BC873001E277D /* GentleTouchTests.xctest */, 161 | 50C03B181B2BC873001E277D /* GentleTouchUITests.xctest */, 162 | 50C03B211B2BC873001E277D /* GentleTouch WatchKit App.app */, 163 | 50C03B301B2BC873001E277D /* GentleTouch WatchKit Extension.appex */, 164 | ); 165 | name = Products; 166 | sourceTree = ""; 167 | }; 168 | 50C03AFB1B2BC873001E277D /* GentleTouch */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 50C03AFC1B2BC873001E277D /* AppDelegate.swift */, 172 | 50C03AFE1B2BC873001E277D /* ViewController.swift */, 173 | 50C03B001B2BC873001E277D /* Main.storyboard */, 174 | 50C03B031B2BC873001E277D /* Assets.xcassets */, 175 | 50C03B051B2BC873001E277D /* LaunchScreen.storyboard */, 176 | 50C03B081B2BC873001E277D /* Info.plist */, 177 | ); 178 | path = GentleTouch; 179 | sourceTree = ""; 180 | }; 181 | 50C03B101B2BC873001E277D /* GentleTouchTests */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 50C03B111B2BC873001E277D /* GentleTouchTests.swift */, 185 | 50C03B131B2BC873001E277D /* Info.plist */, 186 | ); 187 | path = GentleTouchTests; 188 | sourceTree = ""; 189 | }; 190 | 50C03B1B1B2BC873001E277D /* GentleTouchUITests */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | 50C03B1C1B2BC873001E277D /* GentleTouchUITests.swift */, 194 | 50C03B1E1B2BC873001E277D /* Info.plist */, 195 | ); 196 | path = GentleTouchUITests; 197 | sourceTree = ""; 198 | }; 199 | 50C03B251B2BC873001E277D /* GentleTouch WatchKit App */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | 50C03B261B2BC873001E277D /* Interface.storyboard */, 203 | 50C03B291B2BC873001E277D /* Assets.xcassets */, 204 | 50C03B2B1B2BC873001E277D /* Info.plist */, 205 | ); 206 | path = "GentleTouch WatchKit App"; 207 | sourceTree = ""; 208 | }; 209 | 50C03B341B2BC873001E277D /* GentleTouch WatchKit Extension */ = { 210 | isa = PBXGroup; 211 | children = ( 212 | 50C03B371B2BC874001E277D /* InterfaceController.swift */, 213 | 50C03B391B2BC874001E277D /* ExtensionDelegate.swift */, 214 | 50C03B3B1B2BC874001E277D /* NotificationController.swift */, 215 | 50C03B3D1B2BC874001E277D /* GlanceController.swift */, 216 | 50C03B3F1B2BC874001E277D /* Assets.xcassets */, 217 | 50C03B411B2BC874001E277D /* Info.plist */, 218 | 50C03B351B2BC874001E277D /* Supporting Files */, 219 | ); 220 | path = "GentleTouch WatchKit Extension"; 221 | sourceTree = ""; 222 | }; 223 | 50C03B351B2BC874001E277D /* Supporting Files */ = { 224 | isa = PBXGroup; 225 | children = ( 226 | 50C03B361B2BC874001E277D /* PushNotificationPayload.apns */, 227 | ); 228 | name = "Supporting Files"; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXGroup section */ 232 | 233 | /* Begin PBXNativeTarget section */ 234 | 50C03AF81B2BC873001E277D /* GentleTouch */ = { 235 | isa = PBXNativeTarget; 236 | buildConfigurationList = 50C03B4C1B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouch" */; 237 | buildPhases = ( 238 | 50C03AF51B2BC873001E277D /* Sources */, 239 | 50C03AF61B2BC873001E277D /* Frameworks */, 240 | 50C03AF71B2BC873001E277D /* Resources */, 241 | 50C03B4B1B2BC874001E277D /* Embed Watch Content */, 242 | ); 243 | buildRules = ( 244 | ); 245 | dependencies = ( 246 | 50C03B241B2BC873001E277D /* PBXTargetDependency */, 247 | ); 248 | name = GentleTouch; 249 | productName = GentleTouch; 250 | productReference = 50C03AF91B2BC873001E277D /* GentleTouch.app */; 251 | productType = "com.apple.product-type.application"; 252 | }; 253 | 50C03B0C1B2BC873001E277D /* GentleTouchTests */ = { 254 | isa = PBXNativeTarget; 255 | buildConfigurationList = 50C03B4F1B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouchTests" */; 256 | buildPhases = ( 257 | 50C03B091B2BC873001E277D /* Sources */, 258 | 50C03B0A1B2BC873001E277D /* Frameworks */, 259 | 50C03B0B1B2BC873001E277D /* Resources */, 260 | ); 261 | buildRules = ( 262 | ); 263 | dependencies = ( 264 | 50C03B0F1B2BC873001E277D /* PBXTargetDependency */, 265 | ); 266 | name = GentleTouchTests; 267 | productName = GentleTouchTests; 268 | productReference = 50C03B0D1B2BC873001E277D /* GentleTouchTests.xctest */; 269 | productType = "com.apple.product-type.bundle.unit-test"; 270 | }; 271 | 50C03B171B2BC873001E277D /* GentleTouchUITests */ = { 272 | isa = PBXNativeTarget; 273 | buildConfigurationList = 50C03B521B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouchUITests" */; 274 | buildPhases = ( 275 | 50C03B141B2BC873001E277D /* Sources */, 276 | 50C03B151B2BC873001E277D /* Frameworks */, 277 | 50C03B161B2BC873001E277D /* Resources */, 278 | ); 279 | buildRules = ( 280 | ); 281 | dependencies = ( 282 | 50C03B1A1B2BC873001E277D /* PBXTargetDependency */, 283 | ); 284 | name = GentleTouchUITests; 285 | productName = GentleTouchUITests; 286 | productReference = 50C03B181B2BC873001E277D /* GentleTouchUITests.xctest */; 287 | productType = "com.apple.product-type.bundle.ui-testing"; 288 | }; 289 | 50C03B201B2BC873001E277D /* GentleTouch WatchKit App */ = { 290 | isa = PBXNativeTarget; 291 | buildConfigurationList = 50C03B481B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouch WatchKit App" */; 292 | buildPhases = ( 293 | 50C03B1F1B2BC873001E277D /* Resources */, 294 | 50C03B471B2BC874001E277D /* Embed App Extensions */, 295 | ); 296 | buildRules = ( 297 | ); 298 | dependencies = ( 299 | 50C03B331B2BC873001E277D /* PBXTargetDependency */, 300 | ); 301 | name = "GentleTouch WatchKit App"; 302 | productName = "GentleTouch WatchKit App"; 303 | productReference = 50C03B211B2BC873001E277D /* GentleTouch WatchKit App.app */; 304 | productType = "com.apple.product-type.application.watchapp2"; 305 | }; 306 | 50C03B2F1B2BC873001E277D /* GentleTouch WatchKit Extension */ = { 307 | isa = PBXNativeTarget; 308 | buildConfigurationList = 50C03B441B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouch WatchKit Extension" */; 309 | buildPhases = ( 310 | 50C03B2C1B2BC873001E277D /* Sources */, 311 | 50C03B2D1B2BC873001E277D /* Frameworks */, 312 | 50C03B2E1B2BC873001E277D /* Resources */, 313 | ); 314 | buildRules = ( 315 | ); 316 | dependencies = ( 317 | ); 318 | name = "GentleTouch WatchKit Extension"; 319 | productName = "GentleTouch WatchKit Extension"; 320 | productReference = 50C03B301B2BC873001E277D /* GentleTouch WatchKit Extension.appex */; 321 | productType = "com.apple.product-type.watchkit2-extension"; 322 | }; 323 | /* End PBXNativeTarget section */ 324 | 325 | /* Begin PBXProject section */ 326 | 50C03AF11B2BC873001E277D /* Project object */ = { 327 | isa = PBXProject; 328 | attributes = { 329 | LastUpgradeCheck = 0700; 330 | ORGANIZATIONNAME = nixWork; 331 | TargetAttributes = { 332 | 50C03AF81B2BC873001E277D = { 333 | CreatedOnToolsVersion = 7.0; 334 | }; 335 | 50C03B0C1B2BC873001E277D = { 336 | CreatedOnToolsVersion = 7.0; 337 | TestTargetID = 50C03AF81B2BC873001E277D; 338 | }; 339 | 50C03B171B2BC873001E277D = { 340 | CreatedOnToolsVersion = 7.0; 341 | TestTargetID = 50C03AF81B2BC873001E277D; 342 | }; 343 | 50C03B201B2BC873001E277D = { 344 | CreatedOnToolsVersion = 7.0; 345 | }; 346 | 50C03B2F1B2BC873001E277D = { 347 | CreatedOnToolsVersion = 7.0; 348 | }; 349 | }; 350 | }; 351 | buildConfigurationList = 50C03AF41B2BC873001E277D /* Build configuration list for PBXProject "GentleTouch" */; 352 | compatibilityVersion = "Xcode 3.2"; 353 | developmentRegion = English; 354 | hasScannedForEncodings = 0; 355 | knownRegions = ( 356 | en, 357 | Base, 358 | ); 359 | mainGroup = 50C03AF01B2BC873001E277D; 360 | productRefGroup = 50C03AFA1B2BC873001E277D /* Products */; 361 | projectDirPath = ""; 362 | projectRoot = ""; 363 | targets = ( 364 | 50C03AF81B2BC873001E277D /* GentleTouch */, 365 | 50C03B0C1B2BC873001E277D /* GentleTouchTests */, 366 | 50C03B171B2BC873001E277D /* GentleTouchUITests */, 367 | 50C03B201B2BC873001E277D /* GentleTouch WatchKit App */, 368 | 50C03B2F1B2BC873001E277D /* GentleTouch WatchKit Extension */, 369 | ); 370 | }; 371 | /* End PBXProject section */ 372 | 373 | /* Begin PBXResourcesBuildPhase section */ 374 | 50C03AF71B2BC873001E277D /* Resources */ = { 375 | isa = PBXResourcesBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | 50C03B071B2BC873001E277D /* LaunchScreen.storyboard in Resources */, 379 | 50C03B041B2BC873001E277D /* Assets.xcassets in Resources */, 380 | 50C03B021B2BC873001E277D /* Main.storyboard in Resources */, 381 | ); 382 | runOnlyForDeploymentPostprocessing = 0; 383 | }; 384 | 50C03B0B1B2BC873001E277D /* Resources */ = { 385 | isa = PBXResourcesBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | }; 391 | 50C03B161B2BC873001E277D /* Resources */ = { 392 | isa = PBXResourcesBuildPhase; 393 | buildActionMask = 2147483647; 394 | files = ( 395 | ); 396 | runOnlyForDeploymentPostprocessing = 0; 397 | }; 398 | 50C03B1F1B2BC873001E277D /* Resources */ = { 399 | isa = PBXResourcesBuildPhase; 400 | buildActionMask = 2147483647; 401 | files = ( 402 | 50C03B2A1B2BC873001E277D /* Assets.xcassets in Resources */, 403 | 50C03B281B2BC873001E277D /* Interface.storyboard in Resources */, 404 | ); 405 | runOnlyForDeploymentPostprocessing = 0; 406 | }; 407 | 50C03B2E1B2BC873001E277D /* Resources */ = { 408 | isa = PBXResourcesBuildPhase; 409 | buildActionMask = 2147483647; 410 | files = ( 411 | 50C03B401B2BC874001E277D /* Assets.xcassets in Resources */, 412 | ); 413 | runOnlyForDeploymentPostprocessing = 0; 414 | }; 415 | /* End PBXResourcesBuildPhase section */ 416 | 417 | /* Begin PBXSourcesBuildPhase section */ 418 | 50C03AF51B2BC873001E277D /* Sources */ = { 419 | isa = PBXSourcesBuildPhase; 420 | buildActionMask = 2147483647; 421 | files = ( 422 | 50C03AFF1B2BC873001E277D /* ViewController.swift in Sources */, 423 | 50C03AFD1B2BC873001E277D /* AppDelegate.swift in Sources */, 424 | ); 425 | runOnlyForDeploymentPostprocessing = 0; 426 | }; 427 | 50C03B091B2BC873001E277D /* Sources */ = { 428 | isa = PBXSourcesBuildPhase; 429 | buildActionMask = 2147483647; 430 | files = ( 431 | 50C03B121B2BC873001E277D /* GentleTouchTests.swift in Sources */, 432 | ); 433 | runOnlyForDeploymentPostprocessing = 0; 434 | }; 435 | 50C03B141B2BC873001E277D /* Sources */ = { 436 | isa = PBXSourcesBuildPhase; 437 | buildActionMask = 2147483647; 438 | files = ( 439 | 50C03B1D1B2BC873001E277D /* GentleTouchUITests.swift in Sources */, 440 | ); 441 | runOnlyForDeploymentPostprocessing = 0; 442 | }; 443 | 50C03B2C1B2BC873001E277D /* Sources */ = { 444 | isa = PBXSourcesBuildPhase; 445 | buildActionMask = 2147483647; 446 | files = ( 447 | 50C03B3C1B2BC874001E277D /* NotificationController.swift in Sources */, 448 | 50C03B3A1B2BC874001E277D /* ExtensionDelegate.swift in Sources */, 449 | 50C03B381B2BC874001E277D /* InterfaceController.swift in Sources */, 450 | 50C03B3E1B2BC874001E277D /* GlanceController.swift in Sources */, 451 | ); 452 | runOnlyForDeploymentPostprocessing = 0; 453 | }; 454 | /* End PBXSourcesBuildPhase section */ 455 | 456 | /* Begin PBXTargetDependency section */ 457 | 50C03B0F1B2BC873001E277D /* PBXTargetDependency */ = { 458 | isa = PBXTargetDependency; 459 | target = 50C03AF81B2BC873001E277D /* GentleTouch */; 460 | targetProxy = 50C03B0E1B2BC873001E277D /* PBXContainerItemProxy */; 461 | }; 462 | 50C03B1A1B2BC873001E277D /* PBXTargetDependency */ = { 463 | isa = PBXTargetDependency; 464 | target = 50C03AF81B2BC873001E277D /* GentleTouch */; 465 | targetProxy = 50C03B191B2BC873001E277D /* PBXContainerItemProxy */; 466 | }; 467 | 50C03B241B2BC873001E277D /* PBXTargetDependency */ = { 468 | isa = PBXTargetDependency; 469 | target = 50C03B201B2BC873001E277D /* GentleTouch WatchKit App */; 470 | targetProxy = 50C03B231B2BC873001E277D /* PBXContainerItemProxy */; 471 | }; 472 | 50C03B331B2BC873001E277D /* PBXTargetDependency */ = { 473 | isa = PBXTargetDependency; 474 | target = 50C03B2F1B2BC873001E277D /* GentleTouch WatchKit Extension */; 475 | targetProxy = 50C03B321B2BC873001E277D /* PBXContainerItemProxy */; 476 | }; 477 | /* End PBXTargetDependency section */ 478 | 479 | /* Begin PBXVariantGroup section */ 480 | 50C03B001B2BC873001E277D /* Main.storyboard */ = { 481 | isa = PBXVariantGroup; 482 | children = ( 483 | 50C03B011B2BC873001E277D /* Base */, 484 | ); 485 | name = Main.storyboard; 486 | sourceTree = ""; 487 | }; 488 | 50C03B051B2BC873001E277D /* LaunchScreen.storyboard */ = { 489 | isa = PBXVariantGroup; 490 | children = ( 491 | 50C03B061B2BC873001E277D /* Base */, 492 | ); 493 | name = LaunchScreen.storyboard; 494 | sourceTree = ""; 495 | }; 496 | 50C03B261B2BC873001E277D /* Interface.storyboard */ = { 497 | isa = PBXVariantGroup; 498 | children = ( 499 | 50C03B271B2BC873001E277D /* Base */, 500 | ); 501 | name = Interface.storyboard; 502 | sourceTree = ""; 503 | }; 504 | /* End PBXVariantGroup section */ 505 | 506 | /* Begin XCBuildConfiguration section */ 507 | 50C03B421B2BC874001E277D /* Debug */ = { 508 | isa = XCBuildConfiguration; 509 | buildSettings = { 510 | ALWAYS_SEARCH_USER_PATHS = NO; 511 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 512 | CLANG_CXX_LIBRARY = "libc++"; 513 | CLANG_ENABLE_MODULES = YES; 514 | CLANG_ENABLE_OBJC_ARC = YES; 515 | CLANG_WARN_BOOL_CONVERSION = YES; 516 | CLANG_WARN_CONSTANT_CONVERSION = YES; 517 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 518 | CLANG_WARN_EMPTY_BODY = YES; 519 | CLANG_WARN_ENUM_CONVERSION = YES; 520 | CLANG_WARN_INT_CONVERSION = YES; 521 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 522 | CLANG_WARN_UNREACHABLE_CODE = YES; 523 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 524 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 525 | COPY_PHASE_STRIP = NO; 526 | DEBUG_INFORMATION_FORMAT = dwarf; 527 | ENABLE_STRICT_OBJC_MSGSEND = YES; 528 | ENABLE_TESTABILITY = YES; 529 | GCC_C_LANGUAGE_STANDARD = gnu99; 530 | GCC_DYNAMIC_NO_PIC = NO; 531 | GCC_NO_COMMON_BLOCKS = YES; 532 | GCC_OPTIMIZATION_LEVEL = 0; 533 | GCC_PREPROCESSOR_DEFINITIONS = ( 534 | "DEBUG=1", 535 | "$(inherited)", 536 | ); 537 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 538 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 539 | GCC_WARN_UNDECLARED_SELECTOR = YES; 540 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 541 | GCC_WARN_UNUSED_FUNCTION = YES; 542 | GCC_WARN_UNUSED_VARIABLE = YES; 543 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 544 | MTL_ENABLE_DEBUG_INFO = YES; 545 | ONLY_ACTIVE_ARCH = YES; 546 | SDKROOT = iphoneos; 547 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 548 | }; 549 | name = Debug; 550 | }; 551 | 50C03B431B2BC874001E277D /* Release */ = { 552 | isa = XCBuildConfiguration; 553 | buildSettings = { 554 | ALWAYS_SEARCH_USER_PATHS = NO; 555 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 556 | CLANG_CXX_LIBRARY = "libc++"; 557 | CLANG_ENABLE_MODULES = YES; 558 | CLANG_ENABLE_OBJC_ARC = YES; 559 | CLANG_WARN_BOOL_CONVERSION = YES; 560 | CLANG_WARN_CONSTANT_CONVERSION = YES; 561 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 562 | CLANG_WARN_EMPTY_BODY = YES; 563 | CLANG_WARN_ENUM_CONVERSION = YES; 564 | CLANG_WARN_INT_CONVERSION = YES; 565 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 566 | CLANG_WARN_UNREACHABLE_CODE = YES; 567 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 568 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 569 | COPY_PHASE_STRIP = NO; 570 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 571 | ENABLE_NS_ASSERTIONS = NO; 572 | ENABLE_STRICT_OBJC_MSGSEND = YES; 573 | GCC_C_LANGUAGE_STANDARD = gnu99; 574 | GCC_NO_COMMON_BLOCKS = YES; 575 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 576 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 577 | GCC_WARN_UNDECLARED_SELECTOR = YES; 578 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 579 | GCC_WARN_UNUSED_FUNCTION = YES; 580 | GCC_WARN_UNUSED_VARIABLE = YES; 581 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 582 | MTL_ENABLE_DEBUG_INFO = NO; 583 | SDKROOT = iphoneos; 584 | VALIDATE_PRODUCT = YES; 585 | }; 586 | name = Release; 587 | }; 588 | 50C03B451B2BC874001E277D /* Debug */ = { 589 | isa = XCBuildConfiguration; 590 | buildSettings = { 591 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer"; 592 | INFOPLIST_FILE = "GentleTouch WatchKit Extension/Info.plist"; 593 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 594 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouch.watchkitapp.watchkitextension; 595 | PRODUCT_NAME = "${TARGET_NAME}"; 596 | SDKROOT = watchos; 597 | SKIP_INSTALL = YES; 598 | TARGETED_DEVICE_FAMILY = 4; 599 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 600 | }; 601 | name = Debug; 602 | }; 603 | 50C03B461B2BC874001E277D /* Release */ = { 604 | isa = XCBuildConfiguration; 605 | buildSettings = { 606 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer"; 607 | INFOPLIST_FILE = "GentleTouch WatchKit Extension/Info.plist"; 608 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 609 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouch.watchkitapp.watchkitextension; 610 | PRODUCT_NAME = "${TARGET_NAME}"; 611 | SDKROOT = watchos; 612 | SKIP_INSTALL = YES; 613 | TARGETED_DEVICE_FAMILY = 4; 614 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 615 | }; 616 | name = Release; 617 | }; 618 | 50C03B491B2BC874001E277D /* Debug */ = { 619 | isa = XCBuildConfiguration; 620 | buildSettings = { 621 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 622 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer"; 623 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; 624 | IBSC_MODULE = GentleTouch_WatchKit_Extension; 625 | INFOPLIST_FILE = "GentleTouch WatchKit App/Info.plist"; 626 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouch.watchkitapp; 627 | PRODUCT_NAME = "$(TARGET_NAME)"; 628 | SDKROOT = watchos; 629 | SKIP_INSTALL = YES; 630 | TARGETED_DEVICE_FAMILY = 4; 631 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 632 | }; 633 | name = Debug; 634 | }; 635 | 50C03B4A1B2BC874001E277D /* Release */ = { 636 | isa = XCBuildConfiguration; 637 | buildSettings = { 638 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 639 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer"; 640 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; 641 | IBSC_MODULE = GentleTouch_WatchKit_Extension; 642 | INFOPLIST_FILE = "GentleTouch WatchKit App/Info.plist"; 643 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouch.watchkitapp; 644 | PRODUCT_NAME = "$(TARGET_NAME)"; 645 | SDKROOT = watchos; 646 | SKIP_INSTALL = YES; 647 | TARGETED_DEVICE_FAMILY = 4; 648 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 649 | }; 650 | name = Release; 651 | }; 652 | 50C03B4D1B2BC874001E277D /* Debug */ = { 653 | isa = XCBuildConfiguration; 654 | buildSettings = { 655 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 656 | INFOPLIST_FILE = GentleTouch/Info.plist; 657 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 658 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouch; 659 | PRODUCT_NAME = "$(TARGET_NAME)"; 660 | }; 661 | name = Debug; 662 | }; 663 | 50C03B4E1B2BC874001E277D /* Release */ = { 664 | isa = XCBuildConfiguration; 665 | buildSettings = { 666 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 667 | INFOPLIST_FILE = GentleTouch/Info.plist; 668 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 669 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouch; 670 | PRODUCT_NAME = "$(TARGET_NAME)"; 671 | }; 672 | name = Release; 673 | }; 674 | 50C03B501B2BC874001E277D /* Debug */ = { 675 | isa = XCBuildConfiguration; 676 | buildSettings = { 677 | BUNDLE_LOADER = "$(TEST_HOST)"; 678 | INFOPLIST_FILE = GentleTouchTests/Info.plist; 679 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 680 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouchTests; 681 | PRODUCT_NAME = "$(TARGET_NAME)"; 682 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GentleTouch.app/GentleTouch"; 683 | }; 684 | name = Debug; 685 | }; 686 | 50C03B511B2BC874001E277D /* Release */ = { 687 | isa = XCBuildConfiguration; 688 | buildSettings = { 689 | BUNDLE_LOADER = "$(TEST_HOST)"; 690 | INFOPLIST_FILE = GentleTouchTests/Info.plist; 691 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 692 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouchTests; 693 | PRODUCT_NAME = "$(TARGET_NAME)"; 694 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GentleTouch.app/GentleTouch"; 695 | }; 696 | name = Release; 697 | }; 698 | 50C03B531B2BC874001E277D /* Debug */ = { 699 | isa = XCBuildConfiguration; 700 | buildSettings = { 701 | INFOPLIST_FILE = GentleTouchUITests/Info.plist; 702 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 703 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouchUITests; 704 | PRODUCT_NAME = "$(TARGET_NAME)"; 705 | TEST_TARGET_NAME = GentleTouch; 706 | USES_XCTRUNNER = YES; 707 | }; 708 | name = Debug; 709 | }; 710 | 50C03B541B2BC874001E277D /* Release */ = { 711 | isa = XCBuildConfiguration; 712 | buildSettings = { 713 | INFOPLIST_FILE = GentleTouchUITests/Info.plist; 714 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 715 | PRODUCT_BUNDLE_IDENTIFIER = com.nixWork.GentleTouchUITests; 716 | PRODUCT_NAME = "$(TARGET_NAME)"; 717 | TEST_TARGET_NAME = GentleTouch; 718 | USES_XCTRUNNER = YES; 719 | }; 720 | name = Release; 721 | }; 722 | /* End XCBuildConfiguration section */ 723 | 724 | /* Begin XCConfigurationList section */ 725 | 50C03AF41B2BC873001E277D /* Build configuration list for PBXProject "GentleTouch" */ = { 726 | isa = XCConfigurationList; 727 | buildConfigurations = ( 728 | 50C03B421B2BC874001E277D /* Debug */, 729 | 50C03B431B2BC874001E277D /* Release */, 730 | ); 731 | defaultConfigurationIsVisible = 0; 732 | defaultConfigurationName = Release; 733 | }; 734 | 50C03B441B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouch WatchKit Extension" */ = { 735 | isa = XCConfigurationList; 736 | buildConfigurations = ( 737 | 50C03B451B2BC874001E277D /* Debug */, 738 | 50C03B461B2BC874001E277D /* Release */, 739 | ); 740 | defaultConfigurationIsVisible = 0; 741 | }; 742 | 50C03B481B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouch WatchKit App" */ = { 743 | isa = XCConfigurationList; 744 | buildConfigurations = ( 745 | 50C03B491B2BC874001E277D /* Debug */, 746 | 50C03B4A1B2BC874001E277D /* Release */, 747 | ); 748 | defaultConfigurationIsVisible = 0; 749 | }; 750 | 50C03B4C1B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouch" */ = { 751 | isa = XCConfigurationList; 752 | buildConfigurations = ( 753 | 50C03B4D1B2BC874001E277D /* Debug */, 754 | 50C03B4E1B2BC874001E277D /* Release */, 755 | ); 756 | defaultConfigurationIsVisible = 0; 757 | }; 758 | 50C03B4F1B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouchTests" */ = { 759 | isa = XCConfigurationList; 760 | buildConfigurations = ( 761 | 50C03B501B2BC874001E277D /* Debug */, 762 | 50C03B511B2BC874001E277D /* Release */, 763 | ); 764 | defaultConfigurationIsVisible = 0; 765 | }; 766 | 50C03B521B2BC874001E277D /* Build configuration list for PBXNativeTarget "GentleTouchUITests" */ = { 767 | isa = XCConfigurationList; 768 | buildConfigurations = ( 769 | 50C03B531B2BC874001E277D /* Debug */, 770 | 50C03B541B2BC874001E277D /* Release */, 771 | ); 772 | defaultConfigurationIsVisible = 0; 773 | }; 774 | /* End XCConfigurationList section */ 775 | }; 776 | rootObject = 50C03AF11B2BC873001E277D /* Project object */; 777 | } 778 | -------------------------------------------------------------------------------- /GentleTouch.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GentleTouch/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // GentleTouch 4 | // 5 | // Created by NIX on 15/6/13. 6 | // Copyright © 2015年 nixWork. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /GentleTouch/Assets.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 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /GentleTouch/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /GentleTouch/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 | 53 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 79 | 89 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 115 | 125 | 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 | -------------------------------------------------------------------------------- /GentleTouch/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /GentleTouch/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // GentleTouch 4 | // 5 | // Created by NIX on 15/6/13. 6 | // Copyright © 2015年 nixWork. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import WatchConnectivity 11 | 12 | class ViewController: UIViewController { 13 | 14 | lazy var session: WCSession = { 15 | let session = WCSession.defaultSession() 16 | session.delegate = self 17 | return session 18 | }() 19 | 20 | var sessionEnabled: Bool { 21 | return session.paired && session.watchAppInstalled && session.reachable 22 | } 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | 27 | session.activateSession() 28 | } 29 | 30 | // MARK: Actions 31 | 32 | @IBAction func touch(sender: UIButton) { 33 | 34 | let hapticTypeRawValue: Int 35 | 36 | if let title = sender.titleLabel?.text { 37 | switch title { 38 | case "Notification": 39 | hapticTypeRawValue = 0 40 | case "DirectionUp": 41 | hapticTypeRawValue = 1 42 | case "DirectionDown": 43 | hapticTypeRawValue = 2 44 | case "Success": 45 | hapticTypeRawValue = 3 46 | case "Failure": 47 | hapticTypeRawValue = 4 48 | case "Retry": 49 | hapticTypeRawValue = 5 50 | case "Start": 51 | hapticTypeRawValue = 6 52 | case "Stop": 53 | hapticTypeRawValue = 7 54 | case "Click": 55 | hapticTypeRawValue = 8 56 | default: 57 | hapticTypeRawValue = 8 58 | } 59 | 60 | } else { 61 | hapticTypeRawValue = 8 62 | } 63 | 64 | sendHapticMessageWithRawValue(hapticTypeRawValue) 65 | } 66 | 67 | func sendHapticMessageWithRawValue(hapticTypeRawValue: Int) { 68 | 69 | if sessionEnabled { 70 | 71 | let message: [String: AnyObject] = [ 72 | "hapticTypeRawValue": hapticTypeRawValue, 73 | ] 74 | 75 | session.sendMessage(message, replyHandler: nil, errorHandler: { error in 76 | print(error) 77 | 78 | let alertController = UIAlertController(title: "Error", message: error.localizedDescription, preferredStyle: .Alert) 79 | let dismissAction = UIAlertAction(title: "Dismiss", style: .Default, handler: nil) 80 | alertController.addAction(dismissAction) 81 | self.presentViewController(alertController, animated: true, completion: nil) 82 | }) 83 | 84 | print("send message: \(message)") 85 | 86 | } else { 87 | let alertController = UIAlertController(title: "Sorry", message: "Can NOT connect to WATCH!", preferredStyle: .Alert) 88 | let dismissAction = UIAlertAction(title: "Dismiss", style: .Default, handler: nil) 89 | alertController.addAction(dismissAction) 90 | self.presentViewController(alertController, animated: true, completion: nil) 91 | } 92 | } 93 | } 94 | 95 | extension ViewController: WCSessionDelegate { 96 | 97 | func delay(time: NSTimeInterval, work: dispatch_block_t) { 98 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(time * Double(NSEC_PER_SEC))), dispatch_get_main_queue()) { 99 | work() 100 | } 101 | } 102 | 103 | func session(session: WCSession, didReceiveMessage message: [String : AnyObject]) { 104 | 105 | print("receive message: \(message)") 106 | 107 | if let randomTouchTimes = message["randomTouchTimes"] as? Int { 108 | 109 | for i in 0.. 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /GentleTouchUITests/GentleTouchUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GentleTouchUITests.swift 3 | // GentleTouchUITests 4 | // 5 | // Created by NIX on 15/6/13. 6 | // Copyright © 2015年 nixWork. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import XCTest 11 | 12 | class GentleTouchUITests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | 17 | // Put setup code here. This method is called before the invocation of each test method in the class. 18 | 19 | // In UI tests it is usually best to stop immediately when a failure occurs. 20 | continueAfterFailure = false 21 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 22 | XCUIApplication().launch() 23 | } 24 | 25 | override func tearDown() { 26 | // Put teardown code here. This method is called after the invocation of each test method in the class. 27 | super.tearDown() 28 | } 29 | 30 | func testExample() { 31 | // Use recording to get started writing UI tests. 32 | // Use XCTAssert and related functions to verify your tests produce the correct results. 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /GentleTouchUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GentleTouch 2 | 3 | A demo app showing the usage of WatchConnectivity framework. 4 | 5 | # Requirements 6 | 7 | GentleTouch requires an iPhone with iOS 9, and a WATCH with watchOS 2. 8 | 9 | # Getting Started 10 | 11 | Clone this repo in your local directory and open it in Xcode 7, build & run. Have fun! 12 | 13 | 14 | ================================= 15 | 16 | 实现之前提到的创意([Tweet](https://twitter.com/nixzhu/status/608938528437731328)、[微博](http://weibo.com/2076580237/Cm4F8xOKb)) 17 | 18 | >我们知道WATCH防水,开发者现在又可以控制其震动(SDK提供9种不同的震动方式),还可以通过WatchConnectivity用iPhone控制它震动,然后……我们可以让WATCH靠近人体的某些部位,或将其绑在某个部位…… 19 | --------------------------------------------------------------------------------