├── .gitignore ├── .swift-version ├── .travis.yml ├── CCGestureLock.podspec ├── CCGestureLock ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── CCGestureLock.swift │ ├── CCGestureLockAppearance.swift │ ├── CCGestureLockCollectionViewCell.swift │ ├── CCGestureLockSensor.swift │ └── VersionBridge.swift ├── Example ├── CCGestureLock.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── CCGestureLock-Example.xcscheme ├── CCGestureLock.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── CCGestureLock │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── GestureLockDemoViewController.swift │ ├── GestureLockDemoViewController.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── VersionBridge.swift │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── CCGestureLock.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── CCGestureLock │ │ ├── CCGestureLock-Info.plist │ │ ├── CCGestureLock-dummy.m │ │ ├── CCGestureLock-prefix.pch │ │ ├── CCGestureLock-umbrella.h │ │ ├── CCGestureLock.modulemap │ │ ├── CCGestureLock.xcconfig │ │ └── Info.plist │ │ ├── Pods-CCGestureLock_Example │ │ ├── Info.plist │ │ ├── Pods-CCGestureLock_Example-Info.plist │ │ ├── Pods-CCGestureLock_Example-acknowledgements.markdown │ │ ├── Pods-CCGestureLock_Example-acknowledgements.plist │ │ ├── Pods-CCGestureLock_Example-dummy.m │ │ ├── Pods-CCGestureLock_Example-frameworks.sh │ │ ├── Pods-CCGestureLock_Example-resources.sh │ │ ├── Pods-CCGestureLock_Example-umbrella.h │ │ ├── Pods-CCGestureLock_Example.debug.xcconfig │ │ ├── Pods-CCGestureLock_Example.modulemap │ │ └── Pods-CCGestureLock_Example.release.xcconfig │ │ └── Pods-CCGestureLock_Tests │ │ ├── Info.plist │ │ ├── Pods-CCGestureLock_Tests-Info.plist │ │ ├── Pods-CCGestureLock_Tests-acknowledgements.markdown │ │ ├── Pods-CCGestureLock_Tests-acknowledgements.plist │ │ ├── Pods-CCGestureLock_Tests-dummy.m │ │ ├── Pods-CCGestureLock_Tests-frameworks.sh │ │ ├── Pods-CCGestureLock_Tests-resources.sh │ │ ├── Pods-CCGestureLock_Tests-umbrella.h │ │ ├── Pods-CCGestureLock_Tests.debug.xcconfig │ │ ├── Pods-CCGestureLock_Tests.modulemap │ │ └── Pods-CCGestureLock_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── Screenshots ├── theme_android.png ├── theme_capamerica.png └── theme_ironman.png └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 3.1 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/CCGestureLock.xcworkspace -scheme CCGestureLock-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /CCGestureLock.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint CCGestureLock.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'CCGestureLock' 11 | s.version = '0.1.4' 12 | s.summary = 'CCGestureLock (Swift) is a customisable gesture/pattern lock for iOS written in Swift.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | The CCGestureLock (Swift) CocoaPod provides a customisable gesture/pattern lock for iOS written in Swift. 22 | DESC 23 | 24 | s.homepage = 'https://github.com/hsuanchih/CCGestureLock-Swift' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'Hsuan-Chih Chuang' => 'hsuanchih.chuang@gmail.com' } 28 | s.source = { :git => 'https://github.com/hsuanchih/CCGestureLock-Swift.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '8.0' 32 | 33 | s.source_files = 'CCGestureLock/Classes/**/*' 34 | 35 | # s.resource_bundles = { 36 | # 'CCGestureLock' => ['CCGestureLock/Assets/*.png'] 37 | # } 38 | 39 | # s.public_header_files = 'Pod/Classes/**/*.h' 40 | # s.frameworks = 'UIKit', 'MapKit' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /CCGestureLock/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hsuanchih/CCGestureLock-Swift/91fa9e37c075f330fcfbe8834ff367c2ffc6c115/CCGestureLock/Assets/.gitkeep -------------------------------------------------------------------------------- /CCGestureLock/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hsuanchih/CCGestureLock-Swift/91fa9e37c075f330fcfbe8834ff367c2ffc6c115/CCGestureLock/Classes/.gitkeep -------------------------------------------------------------------------------- /CCGestureLock/Classes/CCGestureLock.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CCGestureLock.swift 3 | // 4 | // Created by Hsuan-Chih Chuang on 11/04/2017. 5 | // Copyright (c) 2017 Hsuan-Chih Chuang. All rights reserved. 6 | // 7 | 8 | import UIKit 9 | 10 | 11 | public extension UIControlEvents { 12 | static var gestureBegan: UIControlEvents { return UIControlEvents(rawValue: 0b0001 << 23) } 13 | static var gestureComplete: UIControlEvents { return UIControlEvents(rawValue: 0b0001 << 24) } 14 | static var gestureConnectedNode: UIControlEvents { return UIControlEvents(rawValue: 0b0001 << 25) } 15 | } 16 | 17 | 18 | public class CCGestureLock: UIControl { 19 | 20 | lazy var appearance : CCGestureLockAppearance = { 21 | return CCGestureLockAppearance(control: self) 22 | }() 23 | 24 | 25 | 26 | 27 | // MARK : - Customizable properties 28 | // Gesture lock edge insets 29 | public var edgeInsets : UIEdgeInsets { 30 | 31 | get { 32 | return appearance.edgeInsets 33 | } 34 | set (edgeInsets) { 35 | appearance.edgeInsets = edgeInsets 36 | DispatchQueue.main.async { 37 | self.collectionView.reloadData() 38 | } 39 | } 40 | } 41 | 42 | // Gesture lock size 43 | public typealias LockSize = (numHorizontalSensors: Int, numVerticalSensors : Int) 44 | public var lockSize : LockSize { 45 | get { 46 | return appearance.lockSize 47 | } 48 | set (lockSize) { 49 | appearance.lockSize = lockSize 50 | DispatchQueue.main.async { 51 | self.collectionView.reloadData() 52 | } 53 | } 54 | } 55 | 56 | // Responder size 57 | public var responderSize = CGSize(width: 60, height: 60) 58 | 59 | // Sensor size 60 | public typealias RingType = CCGestureLockSensor.SensorAppearance.RingType 61 | public func setSensorAppearance(type: RingType, 62 | radius: CGFloat? = nil, 63 | width: CGFloat? = nil, 64 | color: UIColor? = nil, forState state: GestureLockState) { 65 | 66 | guard radius != nil || width != nil || color != nil else { 67 | return 68 | } 69 | if let setting = appearance.settings[state] { 70 | setting.sensor.update(type: type, radius: radius, width: width, color: color) 71 | } 72 | collectionView.reloadData() 73 | 74 | } 75 | 76 | // Line appearance 77 | public func setLineAppearance(width: CGFloat? = nil, color: UIColor? = nil, forState state: GestureLockState) { 78 | 79 | guard width != nil || color != nil else { 80 | return 81 | } 82 | if let setting = appearance.settings[state] { 83 | setting.line.update(width: width, color: color) 84 | } 85 | } 86 | 87 | // MARK: - CCGestureLock state management 88 | public enum GestureLockState { 89 | case normal 90 | case selected 91 | case error 92 | } 93 | public var gestureLockState: GestureLockState = .normal { 94 | 95 | willSet(gestureLockState) {} 96 | didSet { 97 | if gestureLockState == .normal { 98 | resetLock() 99 | } 100 | if gestureLockState == .error { 101 | 102 | collectionView.reloadItems(at: selectionPath) 103 | for indexPath in selectionPath { 104 | collectionView.selectItem( 105 | at: indexPath, 106 | animated: true, 107 | scrollPosition: [.centeredVertically, .centeredHorizontally] ) 108 | } 109 | setNeedsDisplay() 110 | } 111 | } 112 | } 113 | 114 | 115 | 116 | 117 | // Private utilities 118 | private var latestTouchPoint = CGPoint.zero 119 | 120 | private lazy var collectionView : UICollectionView = { 121 | let collectionView = UICollectionView(frame: CGRect.zero, collectionViewLayout: UICollectionViewFlowLayout()) 122 | collectionView.register( 123 | CCGestureLockCollectionViewCell.self, 124 | forCellWithReuseIdentifier: "\(String(describing: CCGestureLockCollectionViewCell.self))ID") 125 | collectionView.backgroundColor = UIColor.clear 126 | collectionView.isUserInteractionEnabled = false 127 | collectionView.allowsMultipleSelection = true 128 | collectionView.delegate = self.appearance 129 | collectionView.dataSource = self.appearance 130 | collectionView.accessibilityIdentifier = "Gesture Lock" 131 | if #available(iOS 9.0, *) { 132 | collectionView.semanticContentAttribute = .forceLeftToRight 133 | } 134 | return collectionView 135 | }() 136 | 137 | 138 | // Lock sequence cache 139 | private var selectionPath = [IndexPath]() 140 | 141 | public var lockSequence: [NSNumber] { 142 | get { 143 | return selectionPath.map({ (indexPath) -> NSNumber in 144 | return NSNumber(value: indexPath.item as Int) 145 | }) 146 | } 147 | } 148 | 149 | func updateSelectionPath(with indexPath: IndexPath) { 150 | guard !selectionPath.contains(indexPath) else { return } 151 | selectionPath.append(indexPath) 152 | sendActions(for: .gestureConnectedNode) 153 | } 154 | 155 | func resetLock() { 156 | collectionView.reloadItems(at: selectionPath) 157 | selectionPath.removeAll() 158 | setNeedsDisplay() 159 | } 160 | 161 | 162 | 163 | 164 | // MARK: - View drawing & layout 165 | override open func draw(_ rect: CGRect) { 166 | 167 | let context = UIGraphicsGetCurrentContext() 168 | context?.setStrokeColor(appearance.settings[gestureLockState]!.line.color.cgColor) 169 | context?.setLineWidth(appearance.settings[gestureLockState]!.line.width) 170 | var fromCenter: CGPoint, toCenter: CGPoint 171 | 172 | for (index, item) in selectionPath.enumerated() { 173 | fromCenter = centerForSensorAtIndexPath(item) 174 | context?.move(to: CGPoint(x: fromCenter.x, y: fromCenter.y)) 175 | if index+1 < selectionPath.count { 176 | toCenter = centerForSensorAtIndexPath(selectionPath[index+1]) 177 | context?.addLine(to: CGPoint(x: toCenter.x, y: toCenter.y)) 178 | context?.strokePath() 179 | } 180 | } 181 | 182 | if !latestTouchPoint.equalTo(CGPoint.zero) { 183 | toCenter = latestTouchPoint 184 | context?.addLine(to: CGPoint(x: toCenter.x, y: toCenter.y)) 185 | context?.strokePath() 186 | } 187 | } 188 | 189 | override open func layoutSubviews() { 190 | super.layoutSubviews() 191 | if !self.subviews.contains(collectionView) { 192 | addSubview(collectionView) 193 | } 194 | collectionView.frame = self.bounds 195 | let layoutAttributes = collectionView.layoutAttributesForItem(at: IndexPath(item: 0, section: 0)) 196 | for (_, item) in appearance.settings { 197 | item.sensor.size = layoutAttributes!.size 198 | } 199 | } 200 | 201 | 202 | 203 | 204 | // MARK: - Sensor selection path algorithm 205 | private func updateSelectionPathForSelectedSensor(_ indexPath: IndexPath) { 206 | 207 | if let previousSelection = selectionPath.last { 208 | 209 | let deltaIndex = abs(indexPath.item - previousSelection.item) 210 | let deltaRows = abs(previousSelection.item/lockSize.numHorizontalSensors - indexPath.item/lockSize.numHorizontalSensors) 211 | let divisor = deltaRows > 1 && deltaIndex%deltaRows == 0 ? deltaIndex/deltaRows : deltaIndex 212 | updateSelectionPath(previousSelection.item, end: indexPath.item, increment: deltaRows == 0 ? 1 : divisor) 213 | 214 | } else { 215 | 216 | updateSelectionPath(-1, end: indexPath.item, increment: indexPath.item+1) 217 | } 218 | } 219 | 220 | private func updateSelectionPath(_ start: Int, end: Int, increment: Int) { 221 | 222 | if start == end { 223 | return 224 | } 225 | 226 | let next = start < end ? start + increment : start - increment 227 | let indexPath = IndexPath(item: next, section: 0) 228 | if !selectionPath.contains(indexPath) { 229 | updateSelectionPath(with: indexPath) 230 | collectionView.selectItem( 231 | at: indexPath, 232 | animated: true, 233 | scrollPosition: UICollectionViewScrollPosition()) 234 | } 235 | updateSelectionPath(next, end: end, increment: increment) 236 | } 237 | 238 | 239 | 240 | 241 | // MARK: - Sensor touch responder arithmetics 242 | private func hitTest(_ point: CGPoint) -> IndexPath? { 243 | 244 | if let indexPath = collectionView.indexPathForItem(at: point) { 245 | 246 | if let cell = collectionView.cellForItem(at: indexPath) as? CCGestureLockCollectionViewCell { 247 | 248 | let size = CGSize( 249 | width: max(responderSize.width, cell.bounds.size.width*0.4), 250 | height: max(responderSize.height, cell.bounds.size.height*0.4) 251 | ) 252 | 253 | let center = collectionView.convert(cell.center, to: self) 254 | let respondArea = CGRect( 255 | x: center.x - size.width/2.0, 256 | y: center.y - size.height/2.0, 257 | width: size.width, 258 | height: size.height) 259 | 260 | if respondArea.contains(point) { 261 | return indexPath 262 | } 263 | } 264 | } 265 | return nil 266 | } 267 | 268 | private func centerForSensorAtIndexPath(_ indexPath: IndexPath) -> CGPoint { 269 | if let cell = collectionView.cellForItem(at: indexPath) as? CCGestureLockCollectionViewCell { 270 | return collectionView.convert(cell.center, to: self) 271 | } 272 | return CGPoint.zero 273 | } 274 | 275 | 276 | 277 | 278 | // MARK: - Touch handlers 279 | override public func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool { 280 | if selectionPath.count == 0 { 281 | if let sensorIndexPath = hitTest(touch.location(in: self)) { 282 | sendActions(for: .gestureBegan) 283 | 284 | updateSelectionPathForSelectedSensor(sensorIndexPath) 285 | return true 286 | } 287 | } 288 | return false 289 | } 290 | 291 | override public func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool { 292 | latestTouchPoint = touch.location(in: self) 293 | if let sensorIndexPath = hitTest(latestTouchPoint) { 294 | if selectionPath.firstIndex(of: sensorIndexPath) == nil { 295 | updateSelectionPathForSelectedSensor(sensorIndexPath) 296 | sendActions(for: .valueChanged) 297 | } 298 | } 299 | setNeedsDisplay() 300 | return true 301 | } 302 | 303 | override public func endTracking(_ touch: UITouch?, with event: UIEvent?) { 304 | latestTouchPoint = CGPoint.zero 305 | setNeedsDisplay() 306 | sendActions(for: .gestureComplete) 307 | } 308 | 309 | 310 | } 311 | -------------------------------------------------------------------------------- /CCGestureLock/Classes/CCGestureLockAppearance.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CCGestureLockAppearance.swift 3 | // 4 | // Created by Hsuan-Chih Chuang on 12/04/2017. 5 | // Copyright (c) 2017 Hsuan-Chih Chuang. All rights reserved. 6 | // 7 | 8 | import Foundation 9 | 10 | 11 | // MARK: - UICollectionViewDataSource 12 | extension CCGestureLockAppearance: UICollectionViewDataSource { 13 | 14 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 15 | return lockSize.numHorizontalSensors * lockSize.numVerticalSensors 16 | } 17 | 18 | func numberOfSections(in collectionView: UICollectionView) -> Int { 19 | return 1 20 | } 21 | 22 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 23 | 24 | let cell = collectionView.dequeueReusableCell( 25 | withReuseIdentifier: "\(String(describing: CCGestureLockCollectionViewCell.self))ID", 26 | for: indexPath 27 | ) 28 | 29 | cell.accessibilityIdentifier = "Grid section \(indexPath.section), row \(indexPath.row)" 30 | (cell as? CCGestureLockCollectionViewCell)?.sensorImageView.image = settings[.normal]?.sensor.image 31 | (cell as? CCGestureLockCollectionViewCell)?.sensorImageView.highlightedImage = (control?.gestureLockState == .normal) ? settings[.selected]?.sensor.image : settings[.error]?.sensor.image 32 | 33 | return cell 34 | } 35 | } 36 | 37 | 38 | 39 | // MARK: - UICollectionViewDelegate 40 | extension CCGestureLockAppearance: UICollectionViewDelegate { 41 | 42 | func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { 43 | if let cell = collectionView.cellForItem(at: indexPath) as? CCGestureLockCollectionViewCell { 44 | cell.sensorImageView.isHighlighted = true 45 | } 46 | } 47 | 48 | func collectionView(_ collectionView: UICollectionView, didDeselectItemAt indexPath: IndexPath) { 49 | if let cell = collectionView.cellForItem(at: indexPath) as? CCGestureLockCollectionViewCell { 50 | cell.sensorImageView.isHighlighted = false 51 | } 52 | } 53 | } 54 | 55 | 56 | 57 | // MARK: - UICollectionViewDelegateFlowLayout 58 | extension CCGestureLockAppearance: UICollectionViewDelegateFlowLayout { 59 | 60 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { 61 | return 0.0 62 | } 63 | 64 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat { 65 | return 0.0 66 | } 67 | 68 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { 69 | 70 | let cellWidth = 71 | (collectionView.bounds.width - (edgeInsets.left + edgeInsets.right)) / CGFloat(lockSize.numHorizontalSensors) 72 | return CGSize(width: cellWidth, height: cellWidth) 73 | } 74 | 75 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets { 76 | return edgeInsets 77 | } 78 | } 79 | 80 | 81 | class CCGestureLockAppearance : NSObject { 82 | 83 | fileprivate weak var control : CCGestureLock? 84 | init(control: CCGestureLock) { 85 | super.init() 86 | self.control = control 87 | } 88 | 89 | var edgeInsets = UIEdgeInsets(top: 30, left: 30, bottom: 30, right: 30) 90 | 91 | typealias LockSize = CCGestureLock.LockSize 92 | var lockSize : LockSize = (3, 3) 93 | 94 | var settings: [CCGestureLock.GestureLockState : (sensor: CCGestureLockSensor, line: LineAppearance)] = [ 95 | 96 | .normal : ( 97 | CCGestureLockSensor( 98 | appearance: CCGestureLockSensor.SensorAppearance( 99 | innerRing: CCGestureLockSensor.SensorAppearance.RingAppearance(radius: 5, width: 1, color: .darkGray), 100 | outerRing: CCGestureLockSensor.SensorAppearance.RingAppearance(radius: 0, width: 0, color: .clear) 101 | )) 102 | , 103 | LineAppearance( 104 | width: 5.5, 105 | color: UIColor.darkGray.withAlphaComponent(0.5) 106 | ) 107 | ), 108 | 109 | .selected : ( 110 | CCGestureLockSensor(appearance: CCGestureLockSensor.SensorAppearance( 111 | innerRing: CCGestureLockSensor.SensorAppearance.RingAppearance(radius: 3, width: 5, color: .darkGray), 112 | outerRing: CCGestureLockSensor.SensorAppearance.RingAppearance(radius: 30, width: 5, color: .darkGray) 113 | )) 114 | , 115 | LineAppearance( 116 | width: 5.5, 117 | color: UIColor.darkGray.withAlphaComponent(0.5) 118 | ) 119 | ), 120 | 121 | .error : ( 122 | CCGestureLockSensor(appearance: CCGestureLockSensor.SensorAppearance( 123 | innerRing: CCGestureLockSensor.SensorAppearance.RingAppearance(radius: 3, width: 5, color: .red), 124 | outerRing: CCGestureLockSensor.SensorAppearance.RingAppearance(radius: 30, width: 5, color: .red) 125 | )) 126 | , 127 | LineAppearance( 128 | width: 5.5, 129 | color: UIColor.darkGray.withAlphaComponent(0.5) 130 | ) 131 | ) 132 | ] 133 | 134 | class LineAppearance : Appearance { 135 | 136 | var width : CGFloat 137 | var color : UIColor 138 | 139 | init(width: CGFloat, color: UIColor) { 140 | self.width = width 141 | self.color = color 142 | } 143 | 144 | func update(width: CGFloat?, color: UIColor?) { 145 | self.width = width ?? self.width 146 | self.color = color ?? self.color 147 | } 148 | } 149 | 150 | } 151 | 152 | protocol Appearance { 153 | 154 | var width : CGFloat { get set } 155 | var color : UIColor { get set } 156 | } 157 | -------------------------------------------------------------------------------- /CCGestureLock/Classes/CCGestureLockCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CCGestureLockCollectionViewCell.swift 3 | // 4 | // Created by Hsuan-Chih Chuang on 11/04/2017. 5 | // Copyright (c) 2017 Hsuan-Chih Chuang. All rights reserved. 6 | // 7 | 8 | import UIKit 9 | 10 | class CCGestureLockCollectionViewCell: UICollectionViewCell { 11 | 12 | lazy var sensorImageView = { 13 | 14 | return UIImageView(frame: CGRect.zero) 15 | }() 16 | 17 | override func layoutSubviews() { 18 | 19 | super.layoutSubviews() 20 | if !contentView.subviews.contains(sensorImageView) { 21 | contentView.addSubview(sensorImageView) 22 | } 23 | sensorImageView.frame = contentView.bounds 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /CCGestureLock/Classes/CCGestureLockSensor.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CCGestureLockSensor.swift 3 | // 4 | // Created by Hsuan-Chih Chuang on 11/04/2017. 5 | // Copyright (c) 2017 Hsuan-Chih Chuang. All rights reserved. 6 | // 7 | 8 | import Foundation 9 | 10 | public class CCGestureLockSensor { 11 | 12 | private var appearance: SensorAppearance 13 | 14 | 15 | 16 | 17 | // MARK: - Public instance methods & accessors 18 | var size : CGSize? { 19 | didSet { 20 | image = createSensorImage() 21 | } 22 | } 23 | var image : UIImage? 24 | 25 | init(appearance: SensorAppearance) { 26 | self.appearance = appearance 27 | image = createSensorImage() 28 | } 29 | 30 | func update(type: SensorAppearance.RingType, radius: CGFloat?, width: CGFloat?, color: UIColor?) { 31 | appearance[type].update(radius: radius, width: width, color: color) 32 | image = createSensorImage() 33 | } 34 | 35 | 36 | 37 | 38 | // MARK: - Sensor image drawing code 39 | private func isValid(_ ring: SensorAppearance.RingAppearance) -> Bool { 40 | return ring.radius > 0.0 && ring.width > 0.0 && !ring.color.isEqual(UIColor.clear) 41 | } 42 | 43 | private func createSensorImage() -> UIImage? { 44 | 45 | if let size = self.size { 46 | 47 | UIGraphicsBeginImageContextWithOptions(size, false, 0.0) 48 | if let context = UIGraphicsGetCurrentContext() { 49 | 50 | var image: UIImage? 51 | context.saveGState() 52 | 53 | if isValid(appearance.innerRing) { 54 | 55 | if isValid(appearance.outerRing) { 56 | 57 | appearance.outerRing.radius = min(size.width - appearance.outerRing.width/2.0, appearance.outerRing.radius) 58 | strokeCircleWithRing(appearance.outerRing, context: context, imageSize: size) 59 | 60 | appearance.innerRing.radius = min( 61 | appearance.outerRing.radius - (appearance.outerRing.width+appearance.innerRing.width)/2.0, 62 | appearance.innerRing.radius 63 | ) 64 | 65 | } 66 | strokeCircleWithRing(appearance.innerRing, context: context, imageSize: size) 67 | } 68 | 69 | context.restoreGState() 70 | image = UIGraphicsGetImageFromCurrentImageContext() 71 | UIGraphicsEndImageContext() 72 | 73 | return image; 74 | } 75 | 76 | } 77 | return nil 78 | } 79 | 80 | private func strokeCircleWithRing(_ ring: SensorAppearance.RingAppearance, context: CGContext, imageSize: CGSize) { 81 | 82 | let radius = min(imageSize.width/2.0, ring.radius) 83 | let rect = CGRect( 84 | x: imageSize.width/2.0 - radius, 85 | y: imageSize.height/2.0 - radius, 86 | width: radius*2, 87 | height: radius*2) 88 | 89 | context.setLineWidth(ring.width) 90 | context.setStrokeColor(ring.color.cgColor) 91 | context.strokeEllipse(in: rect) 92 | } 93 | 94 | 95 | 96 | 97 | // MARK: - Utility classes 98 | public class SensorAppearance { 99 | 100 | public enum RingType { 101 | case inner 102 | case outer 103 | } 104 | 105 | class RingAppearance: Appearance { 106 | 107 | var radius: CGFloat 108 | var width : CGFloat 109 | var color : UIColor 110 | 111 | init(radius: CGFloat, width: CGFloat, color: UIColor) { 112 | self.radius = radius 113 | self.width = width 114 | self.color = color 115 | } 116 | 117 | func update(radius: CGFloat?, width: CGFloat?, color: UIColor?) { 118 | self.radius = radius ?? self.radius 119 | self.width = width ?? self.width 120 | self.color = color ?? self.color 121 | } 122 | } 123 | 124 | var innerRing: RingAppearance 125 | var outerRing: RingAppearance 126 | 127 | init(innerRing: RingAppearance, outerRing: RingAppearance) { 128 | self.innerRing = innerRing 129 | self.outerRing = outerRing 130 | } 131 | 132 | subscript(type: RingType) -> RingAppearance { 133 | return type == .inner ? innerRing : outerRing 134 | } 135 | } 136 | } 137 | -------------------------------------------------------------------------------- /CCGestureLock/Classes/VersionBridge.swift: -------------------------------------------------------------------------------- 1 | // 2 | // VersionBridge.swift 3 | // CCGestureLock 4 | // 5 | // Created by Hsuan-Chih Chuang on 2018/10/12. 6 | // 7 | 8 | import Foundation 9 | 10 | #if swift(>=4.2) 11 | public typealias UICollectionViewScrollPosition = UICollectionView.ScrollPosition 12 | public typealias UIControlEvents = UIControl.Event 13 | #endif 14 | -------------------------------------------------------------------------------- /Example/CCGestureLock.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 472443681E9F6FAE002971E5 /* GestureLockDemoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 472443661E9F6FAE002971E5 /* GestureLockDemoViewController.swift */; }; 11 | 472443691E9F6FAE002971E5 /* GestureLockDemoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 472443671E9F6FAE002971E5 /* GestureLockDemoViewController.xib */; }; 12 | 4769727A2170494A00FA3B50 /* VersionBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 476972792170494A00FA3B50 /* VersionBridge.swift */; }; 13 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 14 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 15 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 16 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 17 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 18 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 19 | 8EBBB63D8EA17B14BB54C69A /* Pods_CCGestureLock_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D6FBD6E0A4A3FE443FB972D /* Pods_CCGestureLock_Tests.framework */; }; 20 | B2AA3EF62308C002FE4B11F5 /* Pods_CCGestureLock_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B9CB47C8BB8C9C4FC7F7F9DB /* Pods_CCGestureLock_Example.framework */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 29 | remoteInfo = CCGestureLock; 30 | }; 31 | /* End PBXContainerItemProxy section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | 13DB95DEE359FDAEE79B005B /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 35 | 2F7B8F1D012C882A6CA31923 /* Pods-CCGestureLock_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CCGestureLock_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests.release.xcconfig"; sourceTree = ""; }; 36 | 472443661E9F6FAE002971E5 /* GestureLockDemoViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GestureLockDemoViewController.swift; sourceTree = ""; }; 37 | 472443671E9F6FAE002971E5 /* GestureLockDemoViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GestureLockDemoViewController.xib; sourceTree = ""; }; 38 | 476972792170494A00FA3B50 /* VersionBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VersionBridge.swift; sourceTree = ""; }; 39 | 48A361E16399D695A5006891 /* CCGestureLock.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CCGestureLock.podspec; path = ../CCGestureLock.podspec; sourceTree = ""; }; 40 | 5BC68DB9F8AEA3637EC49F87 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 41 | 607FACD01AFB9204008FA782 /* CCGestureLock_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CCGestureLock_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 45 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 47 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 48 | 607FACE51AFB9204008FA782 /* CCGestureLock_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CCGestureLock_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 51 | 68032FB591446130E7CB35AA /* Pods-CCGestureLock_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CCGestureLock_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example.release.xcconfig"; sourceTree = ""; }; 52 | 7D6FBD6E0A4A3FE443FB972D /* Pods_CCGestureLock_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CCGestureLock_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 87F93E45AC24FFF16005B858 /* Pods-CCGestureLock_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CCGestureLock_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example.debug.xcconfig"; sourceTree = ""; }; 54 | 949CEB33FBA2F8D90F725368 /* Pods-CCGestureLock_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CCGestureLock_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests.debug.xcconfig"; sourceTree = ""; }; 55 | B9CB47C8BB8C9C4FC7F7F9DB /* Pods_CCGestureLock_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CCGestureLock_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | B2AA3EF62308C002FE4B11F5 /* Pods_CCGestureLock_Example.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 8EBBB63D8EA17B14BB54C69A /* Pods_CCGestureLock_Tests.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 607FACC71AFB9204008FA782 = { 79 | isa = PBXGroup; 80 | children = ( 81 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 82 | 607FACD21AFB9204008FA782 /* Example for CCGestureLock */, 83 | 607FACE81AFB9204008FA782 /* Tests */, 84 | 607FACD11AFB9204008FA782 /* Products */, 85 | 649181C404CD139B58AE3352 /* Pods */, 86 | B752757EA0817E09E7B672AF /* Frameworks */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 607FACD11AFB9204008FA782 /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 607FACD01AFB9204008FA782 /* CCGestureLock_Example.app */, 94 | 607FACE51AFB9204008FA782 /* CCGestureLock_Tests.xctest */, 95 | ); 96 | name = Products; 97 | sourceTree = ""; 98 | }; 99 | 607FACD21AFB9204008FA782 /* Example for CCGestureLock */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 472443661E9F6FAE002971E5 /* GestureLockDemoViewController.swift */, 103 | 472443671E9F6FAE002971E5 /* GestureLockDemoViewController.xib */, 104 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 105 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 106 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 107 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 108 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 109 | 607FACD31AFB9204008FA782 /* Supporting Files */, 110 | 476972792170494A00FA3B50 /* VersionBridge.swift */, 111 | ); 112 | name = "Example for CCGestureLock"; 113 | path = CCGestureLock; 114 | sourceTree = ""; 115 | }; 116 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 607FACD41AFB9204008FA782 /* Info.plist */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | 607FACE81AFB9204008FA782 /* Tests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 128 | 607FACE91AFB9204008FA782 /* Supporting Files */, 129 | ); 130 | path = Tests; 131 | sourceTree = ""; 132 | }; 133 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 607FACEA1AFB9204008FA782 /* Info.plist */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 48A361E16399D695A5006891 /* CCGestureLock.podspec */, 145 | 5BC68DB9F8AEA3637EC49F87 /* README.md */, 146 | 13DB95DEE359FDAEE79B005B /* LICENSE */, 147 | ); 148 | name = "Podspec Metadata"; 149 | sourceTree = ""; 150 | }; 151 | 649181C404CD139B58AE3352 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 87F93E45AC24FFF16005B858 /* Pods-CCGestureLock_Example.debug.xcconfig */, 155 | 68032FB591446130E7CB35AA /* Pods-CCGestureLock_Example.release.xcconfig */, 156 | 949CEB33FBA2F8D90F725368 /* Pods-CCGestureLock_Tests.debug.xcconfig */, 157 | 2F7B8F1D012C882A6CA31923 /* Pods-CCGestureLock_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | B752757EA0817E09E7B672AF /* Frameworks */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | B9CB47C8BB8C9C4FC7F7F9DB /* Pods_CCGestureLock_Example.framework */, 166 | 7D6FBD6E0A4A3FE443FB972D /* Pods_CCGestureLock_Tests.framework */, 167 | ); 168 | name = Frameworks; 169 | sourceTree = ""; 170 | }; 171 | /* End PBXGroup section */ 172 | 173 | /* Begin PBXNativeTarget section */ 174 | 607FACCF1AFB9204008FA782 /* CCGestureLock_Example */ = { 175 | isa = PBXNativeTarget; 176 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CCGestureLock_Example" */; 177 | buildPhases = ( 178 | AE410EF2C6CCFDCCF23CEB9C /* [CP] Check Pods Manifest.lock */, 179 | 607FACCC1AFB9204008FA782 /* Sources */, 180 | 607FACCD1AFB9204008FA782 /* Frameworks */, 181 | 607FACCE1AFB9204008FA782 /* Resources */, 182 | 02FBC19D39654F57667E7370 /* [CP] Embed Pods Frameworks */, 183 | ); 184 | buildRules = ( 185 | ); 186 | dependencies = ( 187 | ); 188 | name = CCGestureLock_Example; 189 | productName = CCGestureLock; 190 | productReference = 607FACD01AFB9204008FA782 /* CCGestureLock_Example.app */; 191 | productType = "com.apple.product-type.application"; 192 | }; 193 | 607FACE41AFB9204008FA782 /* CCGestureLock_Tests */ = { 194 | isa = PBXNativeTarget; 195 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CCGestureLock_Tests" */; 196 | buildPhases = ( 197 | 4C85C819824847E1E8297A3C /* [CP] Check Pods Manifest.lock */, 198 | 607FACE11AFB9204008FA782 /* Sources */, 199 | 607FACE21AFB9204008FA782 /* Frameworks */, 200 | 607FACE31AFB9204008FA782 /* Resources */, 201 | ); 202 | buildRules = ( 203 | ); 204 | dependencies = ( 205 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 206 | ); 207 | name = CCGestureLock_Tests; 208 | productName = Tests; 209 | productReference = 607FACE51AFB9204008FA782 /* CCGestureLock_Tests.xctest */; 210 | productType = "com.apple.product-type.bundle.unit-test"; 211 | }; 212 | /* End PBXNativeTarget section */ 213 | 214 | /* Begin PBXProject section */ 215 | 607FACC81AFB9204008FA782 /* Project object */ = { 216 | isa = PBXProject; 217 | attributes = { 218 | LastSwiftUpdateCheck = 0720; 219 | LastUpgradeCheck = 1140; 220 | ORGANIZATIONNAME = CocoaPods; 221 | TargetAttributes = { 222 | 607FACCF1AFB9204008FA782 = { 223 | CreatedOnToolsVersion = 6.3.1; 224 | LastSwiftMigration = 0820; 225 | }; 226 | 607FACE41AFB9204008FA782 = { 227 | CreatedOnToolsVersion = 6.3.1; 228 | LastSwiftMigration = 0820; 229 | TestTargetID = 607FACCF1AFB9204008FA782; 230 | }; 231 | }; 232 | }; 233 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CCGestureLock" */; 234 | compatibilityVersion = "Xcode 3.2"; 235 | developmentRegion = en; 236 | hasScannedForEncodings = 0; 237 | knownRegions = ( 238 | en, 239 | Base, 240 | ); 241 | mainGroup = 607FACC71AFB9204008FA782; 242 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 243 | projectDirPath = ""; 244 | projectRoot = ""; 245 | targets = ( 246 | 607FACCF1AFB9204008FA782 /* CCGestureLock_Example */, 247 | 607FACE41AFB9204008FA782 /* CCGestureLock_Tests */, 248 | ); 249 | }; 250 | /* End PBXProject section */ 251 | 252 | /* Begin PBXResourcesBuildPhase section */ 253 | 607FACCE1AFB9204008FA782 /* Resources */ = { 254 | isa = PBXResourcesBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 258 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 259 | 472443691E9F6FAE002971E5 /* GestureLockDemoViewController.xib in Resources */, 260 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | 607FACE31AFB9204008FA782 /* Resources */ = { 265 | isa = PBXResourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | /* End PBXResourcesBuildPhase section */ 272 | 273 | /* Begin PBXShellScriptBuildPhase section */ 274 | 02FBC19D39654F57667E7370 /* [CP] Embed Pods Frameworks */ = { 275 | isa = PBXShellScriptBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | ); 279 | inputPaths = ( 280 | "${PODS_ROOT}/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-frameworks.sh", 281 | "${BUILT_PRODUCTS_DIR}/CCGestureLock/CCGestureLock.framework", 282 | ); 283 | name = "[CP] Embed Pods Frameworks"; 284 | outputPaths = ( 285 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CCGestureLock.framework", 286 | ); 287 | runOnlyForDeploymentPostprocessing = 0; 288 | shellPath = /bin/sh; 289 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-frameworks.sh\"\n"; 290 | showEnvVarsInLog = 0; 291 | }; 292 | 4C85C819824847E1E8297A3C /* [CP] Check Pods Manifest.lock */ = { 293 | isa = PBXShellScriptBuildPhase; 294 | buildActionMask = 2147483647; 295 | files = ( 296 | ); 297 | inputPaths = ( 298 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 299 | "${PODS_ROOT}/Manifest.lock", 300 | ); 301 | name = "[CP] Check Pods Manifest.lock"; 302 | outputPaths = ( 303 | "$(DERIVED_FILE_DIR)/Pods-CCGestureLock_Tests-checkManifestLockResult.txt", 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | shellPath = /bin/sh; 307 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 308 | showEnvVarsInLog = 0; 309 | }; 310 | AE410EF2C6CCFDCCF23CEB9C /* [CP] Check Pods Manifest.lock */ = { 311 | isa = PBXShellScriptBuildPhase; 312 | buildActionMask = 2147483647; 313 | files = ( 314 | ); 315 | inputPaths = ( 316 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 317 | "${PODS_ROOT}/Manifest.lock", 318 | ); 319 | name = "[CP] Check Pods Manifest.lock"; 320 | outputPaths = ( 321 | "$(DERIVED_FILE_DIR)/Pods-CCGestureLock_Example-checkManifestLockResult.txt", 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | shellPath = /bin/sh; 325 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 326 | showEnvVarsInLog = 0; 327 | }; 328 | /* End PBXShellScriptBuildPhase section */ 329 | 330 | /* Begin PBXSourcesBuildPhase section */ 331 | 607FACCC1AFB9204008FA782 /* Sources */ = { 332 | isa = PBXSourcesBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 336 | 4769727A2170494A00FA3B50 /* VersionBridge.swift in Sources */, 337 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 338 | 472443681E9F6FAE002971E5 /* GestureLockDemoViewController.swift in Sources */, 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | }; 342 | 607FACE11AFB9204008FA782 /* Sources */ = { 343 | isa = PBXSourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | }; 350 | /* End PBXSourcesBuildPhase section */ 351 | 352 | /* Begin PBXTargetDependency section */ 353 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 354 | isa = PBXTargetDependency; 355 | target = 607FACCF1AFB9204008FA782 /* CCGestureLock_Example */; 356 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 357 | }; 358 | /* End PBXTargetDependency section */ 359 | 360 | /* Begin PBXVariantGroup section */ 361 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 362 | isa = PBXVariantGroup; 363 | children = ( 364 | 607FACDA1AFB9204008FA782 /* Base */, 365 | ); 366 | name = Main.storyboard; 367 | sourceTree = ""; 368 | }; 369 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 370 | isa = PBXVariantGroup; 371 | children = ( 372 | 607FACDF1AFB9204008FA782 /* Base */, 373 | ); 374 | name = LaunchScreen.xib; 375 | sourceTree = ""; 376 | }; 377 | /* End PBXVariantGroup section */ 378 | 379 | /* Begin XCBuildConfiguration section */ 380 | 607FACED1AFB9204008FA782 /* Debug */ = { 381 | isa = XCBuildConfiguration; 382 | buildSettings = { 383 | ALWAYS_SEARCH_USER_PATHS = NO; 384 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 385 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 386 | CLANG_CXX_LIBRARY = "libc++"; 387 | CLANG_ENABLE_MODULES = YES; 388 | CLANG_ENABLE_OBJC_ARC = YES; 389 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 390 | CLANG_WARN_BOOL_CONVERSION = YES; 391 | CLANG_WARN_COMMA = YES; 392 | CLANG_WARN_CONSTANT_CONVERSION = YES; 393 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 394 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 395 | CLANG_WARN_EMPTY_BODY = YES; 396 | CLANG_WARN_ENUM_CONVERSION = YES; 397 | CLANG_WARN_INFINITE_RECURSION = YES; 398 | CLANG_WARN_INT_CONVERSION = YES; 399 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 400 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 401 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 402 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 403 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 404 | CLANG_WARN_STRICT_PROTOTYPES = YES; 405 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 406 | CLANG_WARN_UNREACHABLE_CODE = YES; 407 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 408 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 409 | COPY_PHASE_STRIP = NO; 410 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 411 | ENABLE_STRICT_OBJC_MSGSEND = YES; 412 | ENABLE_TESTABILITY = YES; 413 | GCC_C_LANGUAGE_STANDARD = gnu99; 414 | GCC_DYNAMIC_NO_PIC = NO; 415 | GCC_NO_COMMON_BLOCKS = YES; 416 | GCC_OPTIMIZATION_LEVEL = 0; 417 | GCC_PREPROCESSOR_DEFINITIONS = ( 418 | "DEBUG=1", 419 | "$(inherited)", 420 | ); 421 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 422 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 423 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 424 | GCC_WARN_UNDECLARED_SELECTOR = YES; 425 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 426 | GCC_WARN_UNUSED_FUNCTION = YES; 427 | GCC_WARN_UNUSED_VARIABLE = YES; 428 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 429 | MTL_ENABLE_DEBUG_INFO = YES; 430 | ONLY_ACTIVE_ARCH = YES; 431 | SDKROOT = iphoneos; 432 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 433 | }; 434 | name = Debug; 435 | }; 436 | 607FACEE1AFB9204008FA782 /* Release */ = { 437 | isa = XCBuildConfiguration; 438 | buildSettings = { 439 | ALWAYS_SEARCH_USER_PATHS = NO; 440 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 441 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 442 | CLANG_CXX_LIBRARY = "libc++"; 443 | CLANG_ENABLE_MODULES = YES; 444 | CLANG_ENABLE_OBJC_ARC = YES; 445 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 446 | CLANG_WARN_BOOL_CONVERSION = YES; 447 | CLANG_WARN_COMMA = YES; 448 | CLANG_WARN_CONSTANT_CONVERSION = YES; 449 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 450 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 451 | CLANG_WARN_EMPTY_BODY = YES; 452 | CLANG_WARN_ENUM_CONVERSION = YES; 453 | CLANG_WARN_INFINITE_RECURSION = YES; 454 | CLANG_WARN_INT_CONVERSION = YES; 455 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 456 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 457 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 458 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 459 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 460 | CLANG_WARN_STRICT_PROTOTYPES = YES; 461 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 462 | CLANG_WARN_UNREACHABLE_CODE = YES; 463 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 464 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 465 | COPY_PHASE_STRIP = NO; 466 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 467 | ENABLE_NS_ASSERTIONS = NO; 468 | ENABLE_STRICT_OBJC_MSGSEND = YES; 469 | GCC_C_LANGUAGE_STANDARD = gnu99; 470 | GCC_NO_COMMON_BLOCKS = YES; 471 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 472 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 473 | GCC_WARN_UNDECLARED_SELECTOR = YES; 474 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 475 | GCC_WARN_UNUSED_FUNCTION = YES; 476 | GCC_WARN_UNUSED_VARIABLE = YES; 477 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 478 | MTL_ENABLE_DEBUG_INFO = NO; 479 | SDKROOT = iphoneos; 480 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 481 | VALIDATE_PRODUCT = YES; 482 | }; 483 | name = Release; 484 | }; 485 | 607FACF01AFB9204008FA782 /* Debug */ = { 486 | isa = XCBuildConfiguration; 487 | baseConfigurationReference = 87F93E45AC24FFF16005B858 /* Pods-CCGestureLock_Example.debug.xcconfig */; 488 | buildSettings = { 489 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)"; 490 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 491 | INFOPLIST_FILE = CCGestureLock/Info.plist; 492 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 493 | MODULE_NAME = ExampleApp; 494 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 495 | PRODUCT_NAME = "$(TARGET_NAME)"; 496 | SWIFT_VERSION = 5.0; 497 | }; 498 | name = Debug; 499 | }; 500 | 607FACF11AFB9204008FA782 /* Release */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 68032FB591446130E7CB35AA /* Pods-CCGestureLock_Example.release.xcconfig */; 503 | buildSettings = { 504 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)"; 505 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 506 | INFOPLIST_FILE = CCGestureLock/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 508 | MODULE_NAME = ExampleApp; 509 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 510 | PRODUCT_NAME = "$(TARGET_NAME)"; 511 | SWIFT_VERSION = 5.0; 512 | }; 513 | name = Release; 514 | }; 515 | 607FACF31AFB9204008FA782 /* Debug */ = { 516 | isa = XCBuildConfiguration; 517 | baseConfigurationReference = 949CEB33FBA2F8D90F725368 /* Pods-CCGestureLock_Tests.debug.xcconfig */; 518 | buildSettings = { 519 | FRAMEWORK_SEARCH_PATHS = ( 520 | "$(SDKROOT)/Developer/Library/Frameworks", 521 | "$(inherited)", 522 | ); 523 | GCC_PREPROCESSOR_DEFINITIONS = ( 524 | "DEBUG=1", 525 | "$(inherited)", 526 | ); 527 | INFOPLIST_FILE = Tests/Info.plist; 528 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 529 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 530 | PRODUCT_NAME = "$(TARGET_NAME)"; 531 | SWIFT_VERSION = 5.0; 532 | }; 533 | name = Debug; 534 | }; 535 | 607FACF41AFB9204008FA782 /* Release */ = { 536 | isa = XCBuildConfiguration; 537 | baseConfigurationReference = 2F7B8F1D012C882A6CA31923 /* Pods-CCGestureLock_Tests.release.xcconfig */; 538 | buildSettings = { 539 | FRAMEWORK_SEARCH_PATHS = ( 540 | "$(SDKROOT)/Developer/Library/Frameworks", 541 | "$(inherited)", 542 | ); 543 | INFOPLIST_FILE = Tests/Info.plist; 544 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 545 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 546 | PRODUCT_NAME = "$(TARGET_NAME)"; 547 | SWIFT_VERSION = 5.0; 548 | }; 549 | name = Release; 550 | }; 551 | /* End XCBuildConfiguration section */ 552 | 553 | /* Begin XCConfigurationList section */ 554 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CCGestureLock" */ = { 555 | isa = XCConfigurationList; 556 | buildConfigurations = ( 557 | 607FACED1AFB9204008FA782 /* Debug */, 558 | 607FACEE1AFB9204008FA782 /* Release */, 559 | ); 560 | defaultConfigurationIsVisible = 0; 561 | defaultConfigurationName = Release; 562 | }; 563 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CCGestureLock_Example" */ = { 564 | isa = XCConfigurationList; 565 | buildConfigurations = ( 566 | 607FACF01AFB9204008FA782 /* Debug */, 567 | 607FACF11AFB9204008FA782 /* Release */, 568 | ); 569 | defaultConfigurationIsVisible = 0; 570 | defaultConfigurationName = Release; 571 | }; 572 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CCGestureLock_Tests" */ = { 573 | isa = XCConfigurationList; 574 | buildConfigurations = ( 575 | 607FACF31AFB9204008FA782 /* Debug */, 576 | 607FACF41AFB9204008FA782 /* Release */, 577 | ); 578 | defaultConfigurationIsVisible = 0; 579 | defaultConfigurationName = Release; 580 | }; 581 | /* End XCConfigurationList section */ 582 | }; 583 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 584 | } 585 | -------------------------------------------------------------------------------- /Example/CCGestureLock.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/CCGestureLock.xcodeproj/xcshareddata/xcschemes/CCGestureLock-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 76 | 78 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Example/CCGestureLock.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/CCGestureLock.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/CCGestureLock/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CCGestureLock 4 | // 5 | // Created by Hsuan-Chih Chuang on 04/13/2017. 6 | // Copyright (c) 2017 Hsuan-Chih Chuang. 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: [UIApplicationLaunchOptionsKey: Any]?) -> 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 | -------------------------------------------------------------------------------- /Example/CCGestureLock/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/CCGestureLock/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 | -------------------------------------------------------------------------------- /Example/CCGestureLock/GestureLockDemoViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GestureLockDemoViewController.swift 3 | // CCGestureLockSwift 4 | // 5 | // Created by Hsuan-Chih Chuang on 12/04/2017. 6 | // Copyright (c) 2017 Hsuan-Chih Chuang. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CCGestureLock 11 | 12 | class GestureLockDemoViewController: UIViewController { 13 | 14 | 15 | @IBOutlet weak var gestureLock : CCGestureLock! 16 | @IBOutlet weak var controlView : UIView! 17 | @IBOutlet weak var leftButton : UIButton! 18 | @IBOutlet weak var rightButton : UIButton! 19 | 20 | private enum LockMode { 21 | 22 | case unlocked 23 | case locked 24 | } 25 | private var lockMode : LockMode { 26 | get { 27 | return Password.lockSequence == nil ? .unlocked : .locked 28 | } 29 | } 30 | 31 | 32 | override func viewDidLoad() { 33 | super.viewDidLoad() 34 | 35 | // Do any additional setup after loading the view. 36 | 37 | setupGestureLock() 38 | setupControlPanel() 39 | } 40 | 41 | override func didReceiveMemoryWarning() { 42 | super.didReceiveMemoryWarning() 43 | // Dispose of any resources that can be recreated. 44 | } 45 | 46 | 47 | /* 48 | // MARK: - Navigation 49 | 50 | // In a storyboard-based application, you will often want to do a little preparation before navigation 51 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 52 | // Get the new view controller using segue.destinationViewController. 53 | // Pass the selected object to the new view controller. 54 | } 55 | */ 56 | private func enableButtons(_ enable: Bool) { 57 | 58 | [leftButton, rightButton].forEach { (button) in 59 | button?.isEnabled = enable 60 | button?.alpha = enable ? 1 : 0.5 61 | } 62 | } 63 | private func setupButtons() { 64 | 65 | [leftButton, rightButton].forEach { (button) in 66 | 67 | button?.layer.cornerRadius = 5 68 | button?.layer.borderColor = UIColor.white.cgColor 69 | button?.layer.borderWidth = 2 70 | button?.addTarget( 71 | self, 72 | action: #selector(buttonTapped), 73 | for: .touchUpInside 74 | ) 75 | } 76 | } 77 | 78 | private func setupControlPanel() { 79 | 80 | controlView.isHidden = lockMode == .locked 81 | if !controlView.isHidden { 82 | setupButtons() 83 | enableButtons(false) 84 | } 85 | } 86 | 87 | private func setupGestureLock() { 88 | 89 | // Set number of sensors 90 | gestureLock.lockSize = (3, 3) 91 | 92 | // Sensor grid customisations 93 | gestureLock.edgeInsets = UIEdgeInsetsMake(30, 30, 30, 30) 94 | 95 | // Sensor point customisation (normal) 96 | gestureLock.setSensorAppearance( 97 | type: .inner, 98 | radius: 5, 99 | width: 1, 100 | color: .white, 101 | forState: .normal 102 | ) 103 | gestureLock.setSensorAppearance( 104 | type: .outer, 105 | color: .clear, 106 | forState: .normal 107 | ) 108 | 109 | // Sensor point customisation (selected) 110 | gestureLock.setSensorAppearance( 111 | type: .inner, 112 | radius: 3, 113 | width: 5, 114 | color: .white, 115 | forState: .selected 116 | ) 117 | gestureLock.setSensorAppearance( 118 | type: .outer, 119 | radius: 30, 120 | width: 5, 121 | color: .green, 122 | forState: .selected 123 | ) 124 | 125 | // Sensor point customisation (wrong password) 126 | gestureLock.setSensorAppearance( 127 | type: .inner, 128 | radius: 3, 129 | width: 5, 130 | color: .red, 131 | forState: .error 132 | ) 133 | gestureLock.setSensorAppearance( 134 | type: .outer, 135 | radius: 30, 136 | width: 5, 137 | color: .red, 138 | forState: .error 139 | ) 140 | 141 | // Line connecting sensor points (normal/selected) 142 | [CCGestureLock.GestureLockState.normal, CCGestureLock.GestureLockState.selected].forEach { (state) in 143 | gestureLock.setLineAppearance( 144 | width: 5.5, 145 | color: UIColor.white.withAlphaComponent(0.5), 146 | forState: state 147 | ) 148 | } 149 | 150 | // Line connection sensor points (wrong password) 151 | gestureLock.setLineAppearance( 152 | width: 5.5, 153 | color: UIColor.red.withAlphaComponent(0.5), 154 | forState: .error 155 | ) 156 | 157 | gestureLock.addTarget( 158 | self, 159 | action: #selector(gestureComplete), 160 | for: .gestureComplete 161 | ) 162 | 163 | } 164 | 165 | @objc func buttonTapped(button: UIButton) { 166 | 167 | if button == rightButton { 168 | Password.lockSequence = gestureLock.lockSequence 169 | dismiss(animated: true, completion: nil) 170 | } else { 171 | gestureLock.gestureLockState = .normal 172 | enableButtons(false) 173 | } 174 | 175 | } 176 | 177 | @objc func gestureComplete(gestureLock: CCGestureLock) { 178 | 179 | if lockMode == .locked { 180 | 181 | if Password.lockSequence! == gestureLock.lockSequence { 182 | 183 | Password.lockSequence = nil 184 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(0.5 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC), execute: { 185 | self.dismiss(animated: true, completion: nil) 186 | }) 187 | } else { 188 | 189 | gestureLock.gestureLockState = .error 190 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(0.5 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC), execute: { 191 | gestureLock.gestureLockState = .normal 192 | }) 193 | } 194 | 195 | } else { 196 | enableButtons(true) 197 | } 198 | } 199 | } 200 | 201 | struct Password { 202 | 203 | static let passwordKey = "password" 204 | 205 | static var lockSequence : [NSNumber]? { 206 | get { 207 | return UserDefaults.standard.array(forKey: passwordKey) as? [NSNumber] 208 | } 209 | set (lockSequence) { 210 | UserDefaults.standard.set(lockSequence, forKey: passwordKey) 211 | } 212 | } 213 | } 214 | -------------------------------------------------------------------------------- /Example/CCGestureLock/GestureLockDemoViewController.xib: -------------------------------------------------------------------------------- 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 | 46 | 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 | -------------------------------------------------------------------------------- /Example/CCGestureLock/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 | "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 | } 39 | -------------------------------------------------------------------------------- /Example/CCGestureLock/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 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/CCGestureLock/VersionBridge.swift: -------------------------------------------------------------------------------- 1 | // 2 | // VersionBridge.swift 3 | // CCGestureLock_Example 4 | // 5 | // Created by Hsuan-Chih Chuang on 2018/10/12. 6 | // Copyright © 2018 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | #if swift(>=4.2) 12 | public typealias UIApplicationLaunchOptionsKey = UIApplication.LaunchOptionsKey 13 | public func UIEdgeInsetsMake(_ top: CGFloat, _ left: CGFloat, _ bottom: CGFloat, _ right: CGFloat) -> UIEdgeInsets { 14 | return UIEdgeInsets(top: top, left: left, bottom: bottom, right: right) 15 | } 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/CCGestureLock/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CCGestureLock 4 | // 5 | // Created by Hsuan-Chih Chuang on 04/13/2017. 6 | // Copyright (c) 2017 Hsuan-Chih Chuang. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func viewDidAppear(_ animated: Bool) { 19 | super.viewDidAppear(animated) 20 | 21 | let vc = GestureLockDemoViewController() 22 | vc.modalPresentationStyle = .fullScreen 23 | present( 24 | vc, 25 | animated: true, 26 | completion: nil 27 | ) 28 | } 29 | 30 | override func didReceiveMemoryWarning() { 31 | super.didReceiveMemoryWarning() 32 | // Dispose of any resources that can be recreated. 33 | } 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '8.0' 2 | use_frameworks! 3 | 4 | target 'CCGestureLock_Example' do 5 | pod 'CCGestureLock', :path => '../' 6 | 7 | target 'CCGestureLock_Tests' do 8 | inherit! :search_paths 9 | 10 | 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CCGestureLock (0.1.4) 3 | 4 | DEPENDENCIES: 5 | - CCGestureLock (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CCGestureLock: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CCGestureLock: 9cd4ef1bc410b1457c1b131de87c438b2dcd29f5 13 | 14 | PODFILE CHECKSUM: 999ccd7a7f86a6e15e5cb1df21700e310f3b807e 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/CCGestureLock.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CCGestureLock", 3 | "version": "0.1.4", 4 | "summary": "CCGestureLock (Swift) is a customisable gesture/pattern lock for iOS written in Swift.", 5 | "description": "The CCGestureLock (Swift) CocoaPod provides a customisable gesture/pattern lock for iOS written in Swift.", 6 | "homepage": "https://github.com/hsuanchih/CCGestureLock-Swift", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Hsuan-Chih Chuang": "hsuanchih.chuang@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/hsuanchih/CCGestureLock-Swift.git", 16 | "tag": "0.1.4" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "CCGestureLock/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CCGestureLock (0.1.4) 3 | 4 | DEPENDENCIES: 5 | - CCGestureLock (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CCGestureLock: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CCGestureLock: 9cd4ef1bc410b1457c1b131de87c438b2dcd29f5 13 | 14 | PODFILE CHECKSUM: 999ccd7a7f86a6e15e5cb1df21700e310f3b807e 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 08149967E06BC8D37FACC51DC8556B70 /* CCGestureLockAppearance.swift in Sources */ = {isa = PBXBuildFile; fileRef = A61DE1F91BF4233A331E75F4CB735096 /* CCGestureLockAppearance.swift */; }; 11 | 2F9970FE28C3DE5090DA66387A8873F3 /* CCGestureLock-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8166FBB9CC6B62C3E86E9CA21139EA9A /* CCGestureLock-dummy.m */; }; 12 | 5270285D6B02B52D7F1543AADD73C5F7 /* CCGestureLockCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB224A2E7E0310886D31F3ECFD3C4798 /* CCGestureLockCollectionViewCell.swift */; }; 13 | 5821F3C5C70FFF74971F6F6DBD406E6B /* Pods-CCGestureLock_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3CAD77CDE7ECFD0DED852263E6CAD2C2 /* Pods-CCGestureLock_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 5D32293E01E7891A0B3CAA63435F6DCD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 15 | 88FCFC39D8FE72685D19206FCED16C88 /* Pods-CCGestureLock_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 47A089757F6E4B9D45D166369939158D /* Pods-CCGestureLock_Example-dummy.m */; }; 16 | 9C14D52A12FF4B1C47B13D8FE82E1D06 /* Pods-CCGestureLock_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A7D868030DB7BBBC0F6F6BC1C81426B2 /* Pods-CCGestureLock_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | ADCA211AFAA797D2BB2BA4D8D3C32B0C /* CCGestureLockSensor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FD6A7BDAEDBFCF5824B00118716D905 /* CCGestureLockSensor.swift */; }; 18 | B4B2AAEE39D2DDEDCEB803934CEB8B45 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 19 | C6231E5667E5626FF86FEEC1017F5D67 /* Pods-CCGestureLock_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D61BE9E470653B7EDCA1E6720E239F8 /* Pods-CCGestureLock_Tests-dummy.m */; }; 20 | C7420F805DF57B99D4C788E74443E4BD /* VersionBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7919E6B3B9BF34F7EB4ED49068C3F902 /* VersionBridge.swift */; }; 21 | CB7360EF6091A9E2C359D774309A986B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 22 | CD05F06859EAE68789D6005338F320E1 /* CCGestureLock.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE1EA369ADFF3DABE9212E903152E743 /* CCGestureLock.swift */; }; 23 | D4AE12D2D4F4042F91AED6ED585BA866 /* CCGestureLock-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 14B8B59B5C0C1C7500704FA88C32C984 /* CCGestureLock-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 5734ECF0082B7962D3C9042D2B6980D7 /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 90BF74A46B5DA6268CFC00AA9303321D; 32 | remoteInfo = "Pods-CCGestureLock_Example"; 33 | }; 34 | FBA14D4EA53276B077B7DD98F1C43CD8 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = 0532D55631869FCCFCFC8CF00B2B2B9E; 39 | remoteInfo = CCGestureLock; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 14B8B59B5C0C1C7500704FA88C32C984 /* CCGestureLock-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CCGestureLock-umbrella.h"; sourceTree = ""; }; 45 | 1A5497E53EFF10E6EC59F3BAC485B988 /* Pods-CCGestureLock_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CCGestureLock_Example.release.xcconfig"; sourceTree = ""; }; 46 | 2A3B95549EFE2B34E26300226D276718 /* CCGestureLock.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = CCGestureLock.modulemap; sourceTree = ""; }; 47 | 2F80B81B92C1C65446DAE75F13DD3AB9 /* Pods-CCGestureLock_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CCGestureLock_Example.debug.xcconfig"; sourceTree = ""; }; 48 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 49 | 37B5A586D2428FC24CE97B823E2893DA /* Pods-CCGestureLock_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CCGestureLock_Tests-acknowledgements.markdown"; sourceTree = ""; }; 50 | 3CA7DC2E53E9B6BABC2D60F11EB2FE82 /* CCGestureLock.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = CCGestureLock.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 51 | 3CAD77CDE7ECFD0DED852263E6CAD2C2 /* Pods-CCGestureLock_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CCGestureLock_Example-umbrella.h"; sourceTree = ""; }; 52 | 47A089757F6E4B9D45D166369939158D /* Pods-CCGestureLock_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CCGestureLock_Example-dummy.m"; sourceTree = ""; }; 53 | 4D61BE9E470653B7EDCA1E6720E239F8 /* Pods-CCGestureLock_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CCGestureLock_Tests-dummy.m"; sourceTree = ""; }; 54 | 4EF0B1460CEA59E9C585812F0AC14952 /* CCGestureLock-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CCGestureLock-prefix.pch"; sourceTree = ""; }; 55 | 4FE072B87EE88007095FFA79A14469D3 /* Pods_CCGestureLock_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_CCGestureLock_Example.framework; path = "Pods-CCGestureLock_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 54BB4CFBCB1FA6BCF9BB7E7718D6E654 /* Pods-CCGestureLock_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CCGestureLock_Tests-acknowledgements.plist"; sourceTree = ""; }; 57 | 5FBB84BC600BEF0770528221378E41B2 /* CCGestureLock.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = CCGestureLock.framework; path = CCGestureLock.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | 5FD6A7BDAEDBFCF5824B00118716D905 /* CCGestureLockSensor.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CCGestureLockSensor.swift; path = CCGestureLock/Classes/CCGestureLockSensor.swift; sourceTree = ""; }; 59 | 6CABEB81B1EF8C5896D9A9EA10EEB093 /* Pods-CCGestureLock_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CCGestureLock_Tests.debug.xcconfig"; sourceTree = ""; }; 60 | 72DC9D5C6330D05151583DC2EDF02FDB /* Pods-CCGestureLock_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CCGestureLock_Example-Info.plist"; sourceTree = ""; }; 61 | 7919E6B3B9BF34F7EB4ED49068C3F902 /* VersionBridge.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = VersionBridge.swift; path = CCGestureLock/Classes/VersionBridge.swift; sourceTree = ""; }; 62 | 79CA175ABDDFCD632B2D1E2FD803B464 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 63 | 7CC641661254CCF71EAAC96F3C0F38FD /* Pods-CCGestureLock_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CCGestureLock_Example-acknowledgements.markdown"; sourceTree = ""; }; 64 | 8166FBB9CC6B62C3E86E9CA21139EA9A /* CCGestureLock-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "CCGestureLock-dummy.m"; sourceTree = ""; }; 65 | 836AA525E218666BB5A749304C663140 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 66 | 8B22953DDCCEEFA7D2F2FD70130AE9DE /* Pods-CCGestureLock_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CCGestureLock_Example.modulemap"; sourceTree = ""; }; 67 | 907A68E0F320554FA56A2D605FB313D3 /* Pods-CCGestureLock_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CCGestureLock_Example-frameworks.sh"; sourceTree = ""; }; 68 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 69 | A3E7C848869B0AD6551A3C423B995DF8 /* Pods_CCGestureLock_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_CCGestureLock_Tests.framework; path = "Pods-CCGestureLock_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 70 | A61DE1F91BF4233A331E75F4CB735096 /* CCGestureLockAppearance.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CCGestureLockAppearance.swift; path = CCGestureLock/Classes/CCGestureLockAppearance.swift; sourceTree = ""; }; 71 | A7D868030DB7BBBC0F6F6BC1C81426B2 /* Pods-CCGestureLock_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CCGestureLock_Tests-umbrella.h"; sourceTree = ""; }; 72 | B054881B9660E268064BEC7221E44E0A /* Pods-CCGestureLock_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CCGestureLock_Tests.release.xcconfig"; sourceTree = ""; }; 73 | B097D7EE1CBF79FEB952909D0DC75B53 /* Pods-CCGestureLock_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CCGestureLock_Tests.modulemap"; sourceTree = ""; }; 74 | CB224A2E7E0310886D31F3ECFD3C4798 /* CCGestureLockCollectionViewCell.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CCGestureLockCollectionViewCell.swift; path = CCGestureLock/Classes/CCGestureLockCollectionViewCell.swift; sourceTree = ""; }; 75 | D6F77E27F06EE702F697822F97FEF908 /* CCGestureLock.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CCGestureLock.xcconfig; sourceTree = ""; }; 76 | DE1EA369ADFF3DABE9212E903152E743 /* CCGestureLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CCGestureLock.swift; path = CCGestureLock/Classes/CCGestureLock.swift; sourceTree = ""; }; 77 | DF2EFA14F02F79B75865F55FE6267646 /* Pods-CCGestureLock_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CCGestureLock_Tests-Info.plist"; sourceTree = ""; }; 78 | F8E88592A1CDE30560ED1D96EDAF206B /* Pods-CCGestureLock_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CCGestureLock_Example-acknowledgements.plist"; sourceTree = ""; }; 79 | FFF65CEB9382253058A3D02728C20605 /* CCGestureLock-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "CCGestureLock-Info.plist"; sourceTree = ""; }; 80 | /* End PBXFileReference section */ 81 | 82 | /* Begin PBXFrameworksBuildPhase section */ 83 | 4E616CE8DB8775195C5D92ED5B0EB647 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | B4B2AAEE39D2DDEDCEB803934CEB8B45 /* Foundation.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | 6E37A317C7BC42186BD7533516E2A8E6 /* Frameworks */ = { 92 | isa = PBXFrameworksBuildPhase; 93 | buildActionMask = 2147483647; 94 | files = ( 95 | CB7360EF6091A9E2C359D774309A986B /* Foundation.framework in Frameworks */, 96 | ); 97 | runOnlyForDeploymentPostprocessing = 0; 98 | }; 99 | 9AD53BC42DF767B7A929EFB55622B0DF /* Frameworks */ = { 100 | isa = PBXFrameworksBuildPhase; 101 | buildActionMask = 2147483647; 102 | files = ( 103 | 5D32293E01E7891A0B3CAA63435F6DCD /* Foundation.framework in Frameworks */, 104 | ); 105 | runOnlyForDeploymentPostprocessing = 0; 106 | }; 107 | /* End PBXFrameworksBuildPhase section */ 108 | 109 | /* Begin PBXGroup section */ 110 | 060E0DDCF1E07715E23A15CC7A59A09C /* Support Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 2A3B95549EFE2B34E26300226D276718 /* CCGestureLock.modulemap */, 114 | D6F77E27F06EE702F697822F97FEF908 /* CCGestureLock.xcconfig */, 115 | 8166FBB9CC6B62C3E86E9CA21139EA9A /* CCGestureLock-dummy.m */, 116 | FFF65CEB9382253058A3D02728C20605 /* CCGestureLock-Info.plist */, 117 | 4EF0B1460CEA59E9C585812F0AC14952 /* CCGestureLock-prefix.pch */, 118 | 14B8B59B5C0C1C7500704FA88C32C984 /* CCGestureLock-umbrella.h */, 119 | ); 120 | name = "Support Files"; 121 | path = "Example/Pods/Target Support Files/CCGestureLock"; 122 | sourceTree = ""; 123 | }; 124 | 097BDA9C918C57F99D226BA6EA172F70 /* Pods-CCGestureLock_Example */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 8B22953DDCCEEFA7D2F2FD70130AE9DE /* Pods-CCGestureLock_Example.modulemap */, 128 | 7CC641661254CCF71EAAC96F3C0F38FD /* Pods-CCGestureLock_Example-acknowledgements.markdown */, 129 | F8E88592A1CDE30560ED1D96EDAF206B /* Pods-CCGestureLock_Example-acknowledgements.plist */, 130 | 47A089757F6E4B9D45D166369939158D /* Pods-CCGestureLock_Example-dummy.m */, 131 | 907A68E0F320554FA56A2D605FB313D3 /* Pods-CCGestureLock_Example-frameworks.sh */, 132 | 72DC9D5C6330D05151583DC2EDF02FDB /* Pods-CCGestureLock_Example-Info.plist */, 133 | 3CAD77CDE7ECFD0DED852263E6CAD2C2 /* Pods-CCGestureLock_Example-umbrella.h */, 134 | 2F80B81B92C1C65446DAE75F13DD3AB9 /* Pods-CCGestureLock_Example.debug.xcconfig */, 135 | 1A5497E53EFF10E6EC59F3BAC485B988 /* Pods-CCGestureLock_Example.release.xcconfig */, 136 | ); 137 | name = "Pods-CCGestureLock_Example"; 138 | path = "Target Support Files/Pods-CCGestureLock_Example"; 139 | sourceTree = ""; 140 | }; 141 | 19F323D5C964A6CE34CEBA6F70E8EDC4 /* Development Pods */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | E47A47C2A2D6093FC0829CB266448782 /* CCGestureLock */, 145 | ); 146 | name = "Development Pods"; 147 | sourceTree = ""; 148 | }; 149 | 5270E04CF24400CF856BE214B78FCD0A /* Targets Support Files */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | 097BDA9C918C57F99D226BA6EA172F70 /* Pods-CCGestureLock_Example */, 153 | 6D0D5D6D7894B5B444D0A9A192CF3912 /* Pods-CCGestureLock_Tests */, 154 | ); 155 | name = "Targets Support Files"; 156 | sourceTree = ""; 157 | }; 158 | 6D0D5D6D7894B5B444D0A9A192CF3912 /* Pods-CCGestureLock_Tests */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | B097D7EE1CBF79FEB952909D0DC75B53 /* Pods-CCGestureLock_Tests.modulemap */, 162 | 37B5A586D2428FC24CE97B823E2893DA /* Pods-CCGestureLock_Tests-acknowledgements.markdown */, 163 | 54BB4CFBCB1FA6BCF9BB7E7718D6E654 /* Pods-CCGestureLock_Tests-acknowledgements.plist */, 164 | 4D61BE9E470653B7EDCA1E6720E239F8 /* Pods-CCGestureLock_Tests-dummy.m */, 165 | DF2EFA14F02F79B75865F55FE6267646 /* Pods-CCGestureLock_Tests-Info.plist */, 166 | A7D868030DB7BBBC0F6F6BC1C81426B2 /* Pods-CCGestureLock_Tests-umbrella.h */, 167 | 6CABEB81B1EF8C5896D9A9EA10EEB093 /* Pods-CCGestureLock_Tests.debug.xcconfig */, 168 | B054881B9660E268064BEC7221E44E0A /* Pods-CCGestureLock_Tests.release.xcconfig */, 169 | ); 170 | name = "Pods-CCGestureLock_Tests"; 171 | path = "Target Support Files/Pods-CCGestureLock_Tests"; 172 | sourceTree = ""; 173 | }; 174 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 175 | isa = PBXGroup; 176 | children = ( 177 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 178 | ); 179 | name = iOS; 180 | sourceTree = ""; 181 | }; 182 | CF1408CF629C7361332E53B88F7BD30C = { 183 | isa = PBXGroup; 184 | children = ( 185 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 186 | 19F323D5C964A6CE34CEBA6F70E8EDC4 /* Development Pods */, 187 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 188 | D4C8BF1DE7DEAD60A05CF5D2D31315B2 /* Products */, 189 | 5270E04CF24400CF856BE214B78FCD0A /* Targets Support Files */, 190 | ); 191 | sourceTree = ""; 192 | }; 193 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 197 | ); 198 | name = Frameworks; 199 | sourceTree = ""; 200 | }; 201 | D4C8BF1DE7DEAD60A05CF5D2D31315B2 /* Products */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | 5FBB84BC600BEF0770528221378E41B2 /* CCGestureLock.framework */, 205 | 4FE072B87EE88007095FFA79A14469D3 /* Pods_CCGestureLock_Example.framework */, 206 | A3E7C848869B0AD6551A3C423B995DF8 /* Pods_CCGestureLock_Tests.framework */, 207 | ); 208 | name = Products; 209 | sourceTree = ""; 210 | }; 211 | E17948F28839EEA1C30E2CAC2769DFD0 /* Pod */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 3CA7DC2E53E9B6BABC2D60F11EB2FE82 /* CCGestureLock.podspec */, 215 | 836AA525E218666BB5A749304C663140 /* LICENSE */, 216 | 79CA175ABDDFCD632B2D1E2FD803B464 /* README.md */, 217 | ); 218 | name = Pod; 219 | sourceTree = ""; 220 | }; 221 | E47A47C2A2D6093FC0829CB266448782 /* CCGestureLock */ = { 222 | isa = PBXGroup; 223 | children = ( 224 | DE1EA369ADFF3DABE9212E903152E743 /* CCGestureLock.swift */, 225 | A61DE1F91BF4233A331E75F4CB735096 /* CCGestureLockAppearance.swift */, 226 | CB224A2E7E0310886D31F3ECFD3C4798 /* CCGestureLockCollectionViewCell.swift */, 227 | 5FD6A7BDAEDBFCF5824B00118716D905 /* CCGestureLockSensor.swift */, 228 | 7919E6B3B9BF34F7EB4ED49068C3F902 /* VersionBridge.swift */, 229 | E17948F28839EEA1C30E2CAC2769DFD0 /* Pod */, 230 | 060E0DDCF1E07715E23A15CC7A59A09C /* Support Files */, 231 | ); 232 | name = CCGestureLock; 233 | path = ../..; 234 | sourceTree = ""; 235 | }; 236 | /* End PBXGroup section */ 237 | 238 | /* Begin PBXHeadersBuildPhase section */ 239 | 04201E7A8F24BCB810C3E1201B4C883B /* Headers */ = { 240 | isa = PBXHeadersBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | 9C14D52A12FF4B1C47B13D8FE82E1D06 /* Pods-CCGestureLock_Tests-umbrella.h in Headers */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | 0CAE3FD16B295903FD230C051F5F6E44 /* Headers */ = { 248 | isa = PBXHeadersBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 5821F3C5C70FFF74971F6F6DBD406E6B /* Pods-CCGestureLock_Example-umbrella.h in Headers */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 5AA87D8884F6E0EB5CD546A59BECD1F6 /* Headers */ = { 256 | isa = PBXHeadersBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | D4AE12D2D4F4042F91AED6ED585BA866 /* CCGestureLock-umbrella.h in Headers */, 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | /* End PBXHeadersBuildPhase section */ 264 | 265 | /* Begin PBXNativeTarget section */ 266 | 0532D55631869FCCFCFC8CF00B2B2B9E /* CCGestureLock */ = { 267 | isa = PBXNativeTarget; 268 | buildConfigurationList = B8FCDC683C40E11259902EE4A8CA7922 /* Build configuration list for PBXNativeTarget "CCGestureLock" */; 269 | buildPhases = ( 270 | 5AA87D8884F6E0EB5CD546A59BECD1F6 /* Headers */, 271 | AA53C9F764D473E6F0DC2902E655148D /* Sources */, 272 | 9AD53BC42DF767B7A929EFB55622B0DF /* Frameworks */, 273 | BD67E6DD429ADA3919969A143BC98FEB /* Resources */, 274 | ); 275 | buildRules = ( 276 | ); 277 | dependencies = ( 278 | ); 279 | name = CCGestureLock; 280 | productName = CCGestureLock; 281 | productReference = 5FBB84BC600BEF0770528221378E41B2 /* CCGestureLock.framework */; 282 | productType = "com.apple.product-type.framework"; 283 | }; 284 | 530E1F1357E4EBDB2E985E81C59D9D1D /* Pods-CCGestureLock_Tests */ = { 285 | isa = PBXNativeTarget; 286 | buildConfigurationList = 90622DF075EA2D4269F32644ADD15DAF /* Build configuration list for PBXNativeTarget "Pods-CCGestureLock_Tests" */; 287 | buildPhases = ( 288 | 04201E7A8F24BCB810C3E1201B4C883B /* Headers */, 289 | 3CD60094E59A072C9610950CE44EBF38 /* Sources */, 290 | 6E37A317C7BC42186BD7533516E2A8E6 /* Frameworks */, 291 | A5D5492BCBCA364F116535B622BE3AE0 /* Resources */, 292 | ); 293 | buildRules = ( 294 | ); 295 | dependencies = ( 296 | 2CB7432714C188ED2A5DBD0BF6369C89 /* PBXTargetDependency */, 297 | ); 298 | name = "Pods-CCGestureLock_Tests"; 299 | productName = "Pods-CCGestureLock_Tests"; 300 | productReference = A3E7C848869B0AD6551A3C423B995DF8 /* Pods_CCGestureLock_Tests.framework */; 301 | productType = "com.apple.product-type.framework"; 302 | }; 303 | 90BF74A46B5DA6268CFC00AA9303321D /* Pods-CCGestureLock_Example */ = { 304 | isa = PBXNativeTarget; 305 | buildConfigurationList = 3147648C699B4CC036EDE406CDD8BF7F /* Build configuration list for PBXNativeTarget "Pods-CCGestureLock_Example" */; 306 | buildPhases = ( 307 | 0CAE3FD16B295903FD230C051F5F6E44 /* Headers */, 308 | 44ED35D5DD754737B931F1F45A805D58 /* Sources */, 309 | 4E616CE8DB8775195C5D92ED5B0EB647 /* Frameworks */, 310 | CB5D46699E7D058F611712969CF2DE71 /* Resources */, 311 | ); 312 | buildRules = ( 313 | ); 314 | dependencies = ( 315 | D49AD40664BE228E2ECF26DB0B9316F4 /* PBXTargetDependency */, 316 | ); 317 | name = "Pods-CCGestureLock_Example"; 318 | productName = "Pods-CCGestureLock_Example"; 319 | productReference = 4FE072B87EE88007095FFA79A14469D3 /* Pods_CCGestureLock_Example.framework */; 320 | productType = "com.apple.product-type.framework"; 321 | }; 322 | /* End PBXNativeTarget section */ 323 | 324 | /* Begin PBXProject section */ 325 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 326 | isa = PBXProject; 327 | attributes = { 328 | LastSwiftUpdateCheck = 1100; 329 | LastUpgradeCheck = 1100; 330 | }; 331 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 332 | compatibilityVersion = "Xcode 3.2"; 333 | developmentRegion = en; 334 | hasScannedForEncodings = 0; 335 | knownRegions = ( 336 | en, 337 | Base, 338 | ); 339 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 340 | productRefGroup = D4C8BF1DE7DEAD60A05CF5D2D31315B2 /* Products */; 341 | projectDirPath = ""; 342 | projectRoot = ""; 343 | targets = ( 344 | 0532D55631869FCCFCFC8CF00B2B2B9E /* CCGestureLock */, 345 | 90BF74A46B5DA6268CFC00AA9303321D /* Pods-CCGestureLock_Example */, 346 | 530E1F1357E4EBDB2E985E81C59D9D1D /* Pods-CCGestureLock_Tests */, 347 | ); 348 | }; 349 | /* End PBXProject section */ 350 | 351 | /* Begin PBXResourcesBuildPhase section */ 352 | A5D5492BCBCA364F116535B622BE3AE0 /* Resources */ = { 353 | isa = PBXResourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | BD67E6DD429ADA3919969A143BC98FEB /* Resources */ = { 360 | isa = PBXResourcesBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | }; 366 | CB5D46699E7D058F611712969CF2DE71 /* Resources */ = { 367 | isa = PBXResourcesBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | ); 371 | runOnlyForDeploymentPostprocessing = 0; 372 | }; 373 | /* End PBXResourcesBuildPhase section */ 374 | 375 | /* Begin PBXSourcesBuildPhase section */ 376 | 3CD60094E59A072C9610950CE44EBF38 /* Sources */ = { 377 | isa = PBXSourcesBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | C6231E5667E5626FF86FEEC1017F5D67 /* Pods-CCGestureLock_Tests-dummy.m in Sources */, 381 | ); 382 | runOnlyForDeploymentPostprocessing = 0; 383 | }; 384 | 44ED35D5DD754737B931F1F45A805D58 /* Sources */ = { 385 | isa = PBXSourcesBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | 88FCFC39D8FE72685D19206FCED16C88 /* Pods-CCGestureLock_Example-dummy.m in Sources */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | AA53C9F764D473E6F0DC2902E655148D /* Sources */ = { 393 | isa = PBXSourcesBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | 2F9970FE28C3DE5090DA66387A8873F3 /* CCGestureLock-dummy.m in Sources */, 397 | CD05F06859EAE68789D6005338F320E1 /* CCGestureLock.swift in Sources */, 398 | 08149967E06BC8D37FACC51DC8556B70 /* CCGestureLockAppearance.swift in Sources */, 399 | 5270285D6B02B52D7F1543AADD73C5F7 /* CCGestureLockCollectionViewCell.swift in Sources */, 400 | ADCA211AFAA797D2BB2BA4D8D3C32B0C /* CCGestureLockSensor.swift in Sources */, 401 | C7420F805DF57B99D4C788E74443E4BD /* VersionBridge.swift in Sources */, 402 | ); 403 | runOnlyForDeploymentPostprocessing = 0; 404 | }; 405 | /* End PBXSourcesBuildPhase section */ 406 | 407 | /* Begin PBXTargetDependency section */ 408 | 2CB7432714C188ED2A5DBD0BF6369C89 /* PBXTargetDependency */ = { 409 | isa = PBXTargetDependency; 410 | name = "Pods-CCGestureLock_Example"; 411 | target = 90BF74A46B5DA6268CFC00AA9303321D /* Pods-CCGestureLock_Example */; 412 | targetProxy = 5734ECF0082B7962D3C9042D2B6980D7 /* PBXContainerItemProxy */; 413 | }; 414 | D49AD40664BE228E2ECF26DB0B9316F4 /* PBXTargetDependency */ = { 415 | isa = PBXTargetDependency; 416 | name = CCGestureLock; 417 | target = 0532D55631869FCCFCFC8CF00B2B2B9E /* CCGestureLock */; 418 | targetProxy = FBA14D4EA53276B077B7DD98F1C43CD8 /* PBXContainerItemProxy */; 419 | }; 420 | /* End PBXTargetDependency section */ 421 | 422 | /* Begin XCBuildConfiguration section */ 423 | 0B00D30F96FE2501A73C99AD2E079711 /* Debug */ = { 424 | isa = XCBuildConfiguration; 425 | baseConfigurationReference = D6F77E27F06EE702F697822F97FEF908 /* CCGestureLock.xcconfig */; 426 | buildSettings = { 427 | CODE_SIGN_IDENTITY = ""; 428 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 429 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 430 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 431 | CURRENT_PROJECT_VERSION = 1; 432 | DEFINES_MODULE = YES; 433 | DYLIB_COMPATIBILITY_VERSION = 1; 434 | DYLIB_CURRENT_VERSION = 1; 435 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 436 | GCC_PREFIX_HEADER = "Target Support Files/CCGestureLock/CCGestureLock-prefix.pch"; 437 | INFOPLIST_FILE = "Target Support Files/CCGestureLock/CCGestureLock-Info.plist"; 438 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 439 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 440 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 441 | MODULEMAP_FILE = "Target Support Files/CCGestureLock/CCGestureLock.modulemap"; 442 | PRODUCT_MODULE_NAME = CCGestureLock; 443 | PRODUCT_NAME = CCGestureLock; 444 | SDKROOT = iphoneos; 445 | SKIP_INSTALL = YES; 446 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 447 | SWIFT_VERSION = 5.0; 448 | TARGETED_DEVICE_FAMILY = "1,2"; 449 | VERSIONING_SYSTEM = "apple-generic"; 450 | VERSION_INFO_PREFIX = ""; 451 | }; 452 | name = Debug; 453 | }; 454 | 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | buildSettings = { 457 | ALWAYS_SEARCH_USER_PATHS = NO; 458 | CLANG_ANALYZER_NONNULL = YES; 459 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 460 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 461 | CLANG_CXX_LIBRARY = "libc++"; 462 | CLANG_ENABLE_MODULES = YES; 463 | CLANG_ENABLE_OBJC_ARC = YES; 464 | CLANG_ENABLE_OBJC_WEAK = YES; 465 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 466 | CLANG_WARN_BOOL_CONVERSION = YES; 467 | CLANG_WARN_COMMA = YES; 468 | CLANG_WARN_CONSTANT_CONVERSION = YES; 469 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 470 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 471 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 472 | CLANG_WARN_EMPTY_BODY = YES; 473 | CLANG_WARN_ENUM_CONVERSION = YES; 474 | CLANG_WARN_INFINITE_RECURSION = YES; 475 | CLANG_WARN_INT_CONVERSION = YES; 476 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 477 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 478 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 479 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 480 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 481 | CLANG_WARN_STRICT_PROTOTYPES = YES; 482 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 483 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 484 | CLANG_WARN_UNREACHABLE_CODE = YES; 485 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 486 | COPY_PHASE_STRIP = NO; 487 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 488 | ENABLE_NS_ASSERTIONS = NO; 489 | ENABLE_STRICT_OBJC_MSGSEND = YES; 490 | GCC_C_LANGUAGE_STANDARD = gnu11; 491 | GCC_NO_COMMON_BLOCKS = YES; 492 | GCC_PREPROCESSOR_DEFINITIONS = ( 493 | "POD_CONFIGURATION_RELEASE=1", 494 | "$(inherited)", 495 | ); 496 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 497 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 498 | GCC_WARN_UNDECLARED_SELECTOR = YES; 499 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 500 | GCC_WARN_UNUSED_FUNCTION = YES; 501 | GCC_WARN_UNUSED_VARIABLE = YES; 502 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 503 | MTL_ENABLE_DEBUG_INFO = NO; 504 | MTL_FAST_MATH = YES; 505 | PRODUCT_NAME = "$(TARGET_NAME)"; 506 | STRIP_INSTALLED_PRODUCT = NO; 507 | SWIFT_COMPILATION_MODE = wholemodule; 508 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 509 | SWIFT_VERSION = 5.0; 510 | SYMROOT = "${SRCROOT}/../build"; 511 | }; 512 | name = Release; 513 | }; 514 | 6A321FF7328343DC60760C31CB10CDB1 /* Release */ = { 515 | isa = XCBuildConfiguration; 516 | baseConfigurationReference = B054881B9660E268064BEC7221E44E0A /* Pods-CCGestureLock_Tests.release.xcconfig */; 517 | buildSettings = { 518 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 519 | CODE_SIGN_IDENTITY = ""; 520 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 521 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 522 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 523 | CURRENT_PROJECT_VERSION = 1; 524 | DEFINES_MODULE = YES; 525 | DYLIB_COMPATIBILITY_VERSION = 1; 526 | DYLIB_CURRENT_VERSION = 1; 527 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 528 | INFOPLIST_FILE = "Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-Info.plist"; 529 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 530 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 531 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 532 | MACH_O_TYPE = staticlib; 533 | MODULEMAP_FILE = "Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests.modulemap"; 534 | OTHER_LDFLAGS = ""; 535 | OTHER_LIBTOOLFLAGS = ""; 536 | PODS_ROOT = "$(SRCROOT)"; 537 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 538 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 539 | SDKROOT = iphoneos; 540 | SKIP_INSTALL = YES; 541 | TARGETED_DEVICE_FAMILY = "1,2"; 542 | VALIDATE_PRODUCT = YES; 543 | VERSIONING_SYSTEM = "apple-generic"; 544 | VERSION_INFO_PREFIX = ""; 545 | }; 546 | name = Release; 547 | }; 548 | 6B134D9249A99145CD7539A98BEFE168 /* Debug */ = { 549 | isa = XCBuildConfiguration; 550 | baseConfigurationReference = 6CABEB81B1EF8C5896D9A9EA10EEB093 /* Pods-CCGestureLock_Tests.debug.xcconfig */; 551 | buildSettings = { 552 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 553 | CODE_SIGN_IDENTITY = ""; 554 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 555 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 556 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 557 | CURRENT_PROJECT_VERSION = 1; 558 | DEFINES_MODULE = YES; 559 | DYLIB_COMPATIBILITY_VERSION = 1; 560 | DYLIB_CURRENT_VERSION = 1; 561 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 562 | INFOPLIST_FILE = "Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-Info.plist"; 563 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 564 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 565 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 566 | MACH_O_TYPE = staticlib; 567 | MODULEMAP_FILE = "Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests.modulemap"; 568 | OTHER_LDFLAGS = ""; 569 | OTHER_LIBTOOLFLAGS = ""; 570 | PODS_ROOT = "$(SRCROOT)"; 571 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 572 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 573 | SDKROOT = iphoneos; 574 | SKIP_INSTALL = YES; 575 | TARGETED_DEVICE_FAMILY = "1,2"; 576 | VERSIONING_SYSTEM = "apple-generic"; 577 | VERSION_INFO_PREFIX = ""; 578 | }; 579 | name = Debug; 580 | }; 581 | 6F172F3298094998041E0EAE9C0BCC48 /* Debug */ = { 582 | isa = XCBuildConfiguration; 583 | baseConfigurationReference = 2F80B81B92C1C65446DAE75F13DD3AB9 /* Pods-CCGestureLock_Example.debug.xcconfig */; 584 | buildSettings = { 585 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 586 | CODE_SIGN_IDENTITY = ""; 587 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 588 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 589 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 590 | CURRENT_PROJECT_VERSION = 1; 591 | DEFINES_MODULE = YES; 592 | DYLIB_COMPATIBILITY_VERSION = 1; 593 | DYLIB_CURRENT_VERSION = 1; 594 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 595 | INFOPLIST_FILE = "Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-Info.plist"; 596 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 597 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 598 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 599 | MACH_O_TYPE = staticlib; 600 | MODULEMAP_FILE = "Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example.modulemap"; 601 | OTHER_LDFLAGS = ""; 602 | OTHER_LIBTOOLFLAGS = ""; 603 | PODS_ROOT = "$(SRCROOT)"; 604 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 605 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 606 | SDKROOT = iphoneos; 607 | SKIP_INSTALL = YES; 608 | TARGETED_DEVICE_FAMILY = "1,2"; 609 | VERSIONING_SYSTEM = "apple-generic"; 610 | VERSION_INFO_PREFIX = ""; 611 | }; 612 | name = Debug; 613 | }; 614 | 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */ = { 615 | isa = XCBuildConfiguration; 616 | buildSettings = { 617 | ALWAYS_SEARCH_USER_PATHS = NO; 618 | CLANG_ANALYZER_NONNULL = YES; 619 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 620 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 621 | CLANG_CXX_LIBRARY = "libc++"; 622 | CLANG_ENABLE_MODULES = YES; 623 | CLANG_ENABLE_OBJC_ARC = YES; 624 | CLANG_ENABLE_OBJC_WEAK = YES; 625 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 626 | CLANG_WARN_BOOL_CONVERSION = YES; 627 | CLANG_WARN_COMMA = YES; 628 | CLANG_WARN_CONSTANT_CONVERSION = YES; 629 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 630 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 631 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 632 | CLANG_WARN_EMPTY_BODY = YES; 633 | CLANG_WARN_ENUM_CONVERSION = YES; 634 | CLANG_WARN_INFINITE_RECURSION = YES; 635 | CLANG_WARN_INT_CONVERSION = YES; 636 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 637 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 638 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 639 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 640 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 641 | CLANG_WARN_STRICT_PROTOTYPES = YES; 642 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 643 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 644 | CLANG_WARN_UNREACHABLE_CODE = YES; 645 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 646 | COPY_PHASE_STRIP = NO; 647 | DEBUG_INFORMATION_FORMAT = dwarf; 648 | ENABLE_STRICT_OBJC_MSGSEND = YES; 649 | ENABLE_TESTABILITY = YES; 650 | GCC_C_LANGUAGE_STANDARD = gnu11; 651 | GCC_DYNAMIC_NO_PIC = NO; 652 | GCC_NO_COMMON_BLOCKS = YES; 653 | GCC_OPTIMIZATION_LEVEL = 0; 654 | GCC_PREPROCESSOR_DEFINITIONS = ( 655 | "POD_CONFIGURATION_DEBUG=1", 656 | "DEBUG=1", 657 | "$(inherited)", 658 | ); 659 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 660 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 661 | GCC_WARN_UNDECLARED_SELECTOR = YES; 662 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 663 | GCC_WARN_UNUSED_FUNCTION = YES; 664 | GCC_WARN_UNUSED_VARIABLE = YES; 665 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 666 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 667 | MTL_FAST_MATH = YES; 668 | ONLY_ACTIVE_ARCH = YES; 669 | PRODUCT_NAME = "$(TARGET_NAME)"; 670 | STRIP_INSTALLED_PRODUCT = NO; 671 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 672 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 673 | SWIFT_VERSION = 5.0; 674 | SYMROOT = "${SRCROOT}/../build"; 675 | }; 676 | name = Debug; 677 | }; 678 | 936958C5D092DA0CF682C7EA3FD3C053 /* Release */ = { 679 | isa = XCBuildConfiguration; 680 | baseConfigurationReference = D6F77E27F06EE702F697822F97FEF908 /* CCGestureLock.xcconfig */; 681 | buildSettings = { 682 | CODE_SIGN_IDENTITY = ""; 683 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 684 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 685 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 686 | CURRENT_PROJECT_VERSION = 1; 687 | DEFINES_MODULE = YES; 688 | DYLIB_COMPATIBILITY_VERSION = 1; 689 | DYLIB_CURRENT_VERSION = 1; 690 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 691 | GCC_PREFIX_HEADER = "Target Support Files/CCGestureLock/CCGestureLock-prefix.pch"; 692 | INFOPLIST_FILE = "Target Support Files/CCGestureLock/CCGestureLock-Info.plist"; 693 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 694 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 695 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 696 | MODULEMAP_FILE = "Target Support Files/CCGestureLock/CCGestureLock.modulemap"; 697 | PRODUCT_MODULE_NAME = CCGestureLock; 698 | PRODUCT_NAME = CCGestureLock; 699 | SDKROOT = iphoneos; 700 | SKIP_INSTALL = YES; 701 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 702 | SWIFT_VERSION = 5.0; 703 | TARGETED_DEVICE_FAMILY = "1,2"; 704 | VALIDATE_PRODUCT = YES; 705 | VERSIONING_SYSTEM = "apple-generic"; 706 | VERSION_INFO_PREFIX = ""; 707 | }; 708 | name = Release; 709 | }; 710 | 9EC832B4471A48C8A9B6177CD3F20353 /* Release */ = { 711 | isa = XCBuildConfiguration; 712 | baseConfigurationReference = 1A5497E53EFF10E6EC59F3BAC485B988 /* Pods-CCGestureLock_Example.release.xcconfig */; 713 | buildSettings = { 714 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 715 | CODE_SIGN_IDENTITY = ""; 716 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 717 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 718 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 719 | CURRENT_PROJECT_VERSION = 1; 720 | DEFINES_MODULE = YES; 721 | DYLIB_COMPATIBILITY_VERSION = 1; 722 | DYLIB_CURRENT_VERSION = 1; 723 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 724 | INFOPLIST_FILE = "Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-Info.plist"; 725 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 726 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 727 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 728 | MACH_O_TYPE = staticlib; 729 | MODULEMAP_FILE = "Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example.modulemap"; 730 | OTHER_LDFLAGS = ""; 731 | OTHER_LIBTOOLFLAGS = ""; 732 | PODS_ROOT = "$(SRCROOT)"; 733 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 734 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 735 | SDKROOT = iphoneos; 736 | SKIP_INSTALL = YES; 737 | TARGETED_DEVICE_FAMILY = "1,2"; 738 | VALIDATE_PRODUCT = YES; 739 | VERSIONING_SYSTEM = "apple-generic"; 740 | VERSION_INFO_PREFIX = ""; 741 | }; 742 | name = Release; 743 | }; 744 | /* End XCBuildConfiguration section */ 745 | 746 | /* Begin XCConfigurationList section */ 747 | 3147648C699B4CC036EDE406CDD8BF7F /* Build configuration list for PBXNativeTarget "Pods-CCGestureLock_Example" */ = { 748 | isa = XCConfigurationList; 749 | buildConfigurations = ( 750 | 6F172F3298094998041E0EAE9C0BCC48 /* Debug */, 751 | 9EC832B4471A48C8A9B6177CD3F20353 /* Release */, 752 | ); 753 | defaultConfigurationIsVisible = 0; 754 | defaultConfigurationName = Release; 755 | }; 756 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 757 | isa = XCConfigurationList; 758 | buildConfigurations = ( 759 | 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */, 760 | 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */, 761 | ); 762 | defaultConfigurationIsVisible = 0; 763 | defaultConfigurationName = Release; 764 | }; 765 | 90622DF075EA2D4269F32644ADD15DAF /* Build configuration list for PBXNativeTarget "Pods-CCGestureLock_Tests" */ = { 766 | isa = XCConfigurationList; 767 | buildConfigurations = ( 768 | 6B134D9249A99145CD7539A98BEFE168 /* Debug */, 769 | 6A321FF7328343DC60760C31CB10CDB1 /* Release */, 770 | ); 771 | defaultConfigurationIsVisible = 0; 772 | defaultConfigurationName = Release; 773 | }; 774 | B8FCDC683C40E11259902EE4A8CA7922 /* Build configuration list for PBXNativeTarget "CCGestureLock" */ = { 775 | isa = XCConfigurationList; 776 | buildConfigurations = ( 777 | 0B00D30F96FE2501A73C99AD2E079711 /* Debug */, 778 | 936958C5D092DA0CF682C7EA3FD3C053 /* Release */, 779 | ); 780 | defaultConfigurationIsVisible = 0; 781 | defaultConfigurationName = Release; 782 | }; 783 | /* End XCConfigurationList section */ 784 | }; 785 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 786 | } 787 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CCGestureLock/CCGestureLock-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 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.4 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CCGestureLock/CCGestureLock-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_CCGestureLock : NSObject 3 | @end 4 | @implementation PodsDummy_CCGestureLock 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CCGestureLock/CCGestureLock-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CCGestureLock/CCGestureLock-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double CCGestureLockVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char CCGestureLockVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CCGestureLock/CCGestureLock.modulemap: -------------------------------------------------------------------------------- 1 | framework module CCGestureLock { 2 | umbrella header "CCGestureLock-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CCGestureLock/CCGestureLock.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CCGestureLock/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 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## CCGestureLock 5 | 6 | MIT License 7 | 8 | Copyright (c) 2017 Hsuan-Chih Chuang 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | MIT License 18 | 19 | Copyright (c) 2017 Hsuan-Chih Chuang 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | CCGestureLock 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CCGestureLock_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CCGestureLock_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/CCGestureLock/CCGestureLock.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/CCGestureLock/CCGestureLock.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 42 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 43 | ;; 44 | *.xib) 45 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 46 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_CCGestureLock_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_CCGestureLock_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock/CCGestureLock.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "CCGestureLock" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CCGestureLock_Example { 2 | umbrella header "Pods-CCGestureLock_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Example/Pods-CCGestureLock_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock/CCGestureLock.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "CCGestureLock" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CCGestureLock_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CCGestureLock_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 42 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 43 | ;; 44 | *.xib) 45 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 46 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_CCGestureLock_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_CCGestureLock_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock/CCGestureLock.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "CCGestureLock" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CCGestureLock_Tests { 2 | umbrella header "Pods-CCGestureLock_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CCGestureLock_Tests/Pods-CCGestureLock_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CCGestureLock/CCGestureLock.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "CCGestureLock" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Tests/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 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import CCGestureLock 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Hsuan-Chih Chuang 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CCGestureLock 2 | 3 | CCGestureLock (Swift) is a customisable gesture/pattern lock for iOS written in Swift. 4 | 5 | 6 | [![Version](https://img.shields.io/cocoapods/v/CCGestureLock.svg?style=flat)](http://cocoapods.org/pods/CCGestureLock) 7 | [![License](https://img.shields.io/cocoapods/l/CCGestureLock.svg?style=flat)](http://cocoapods.org/pods/CCGestureLock) 8 | [![Platform](https://img.shields.io/cocoapods/p/CCGestureLock.svg?style=flat)](http://cocoapods.org/pods/CCGestureLock) 9 | 10 | ## Sample Screenshots 11 | 12 | * Android / Iron Man / Captain America 13 | 14 | ![Theme-Android](./Screenshots/theme_android.png) 15 | ![Theme-Android](./Screenshots/theme_ironman.png) 16 | ![Theme-Android](./Screenshots/theme_capamerica.png) 17 | 18 | ## Example 19 | 20 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 21 | 22 | ## Requirements 23 | 24 | N/A 25 | 26 | ## Installation 27 | 28 | CCGestureLock is available through [CocoaPods](http://cocoapods.org). To install 29 | it, simply add the following line to your Podfile: 30 | 31 | ```ruby 32 | pod "CCGestureLock" 33 | ``` 34 | 35 | ## Usage 36 | ### Adding Gesture Lock 37 | * Add CCGestureLock instance to your view (OR, in Interface Builder, set an UIView's Custom Class to CCGestureLock). 38 | 39 | ### Logic Wire-Up 40 | * Register event listener : 41 | ```Swift 42 | gestureLock.addTarget( 43 | self, 44 | action: #selector(gestureComplete), 45 | for: .gestureComplete 46 | ) 47 | ``` 48 | * And handle event : 49 | ```Swift 50 | func gestureComplete(gestureLock: CCGestureLock) { 51 | let lockSequence = gestureLock.lockSequence 52 | } 53 | ``` 54 | * Managing states : 55 | ```Swift 56 | // Set lock state to GestureLockState.error will highlight (user) selection sequence according appearance specified for "incorrect password" state 57 | gestureLock.gestureLockState = .error 58 | 59 | // Deselect selection sequence, enter reset state 60 | gestureLock.gestureLockState = .normal 61 | ``` 62 | 63 | ### Customisations 64 | * Customise lock size: 65 | ```Swift 66 | gestureLock.lockSize = (numHorizontalSensors: 3, numVerticalSensors: 3) 67 | ``` 68 | * Customise sensor appearance for states normal/selected/error(wrong password): 69 | ```Swift 70 | // Sensor point customisation (normal) 71 | gestureLock.setSensorAppearance( 72 | type: .inner, 73 | radius: 5, 74 | width: 1, 75 | color: .white, 76 | forState: .normal 77 | ) 78 | gestureLock.setSensorAppearance( 79 | type: .outer, 80 | color: .clear, 81 | forState: .normal 82 | ) 83 | 84 | // Sensor point customisation (selected) 85 | gestureLock.setSensorAppearance( 86 | type: .inner, 87 | radius: 3, 88 | width: 5, 89 | color: .white, 90 | forState: .selected 91 | ) 92 | gestureLock.setSensorAppearance( 93 | type: .outer, 94 | radius: 30, 95 | width: 5, 96 | color: .green, 97 | forState: .selected 98 | ) 99 | 100 | // Sensor point customisation (wrong password) 101 | gestureLock.setSensorAppearance( 102 | type: .inner, 103 | radius: 3, 104 | width: 5, 105 | color: .red, 106 | forState: .error 107 | ) 108 | gestureLock.setSensorAppearance( 109 | type: .outer, 110 | radius: 30, 111 | width: 5, 112 | color: .red, 113 | forState: .error 114 | ) 115 | ``` 116 | * Customise line appearance for states normal/selected/error(wrong password): 117 | ```Swift 118 | // Line connecting sensor points (normal/selected) 119 | [CCGestureLock.GestureLockState.normal, CCGestureLock.GestureLockState.selected].forEach { (state) in 120 | gestureLock.setLineAppearance( 121 | width: 5.5, 122 | color: UIColor.white.withAlphaComponent(0.5), 123 | forState: state 124 | ) 125 | } 126 | 127 | // Line connection sensor points (wrong password) 128 | gestureLock.setLineAppearance( 129 | width: 5.5, 130 | color: UIColor.red.withAlphaComponent(0.5), 131 | forState: .error 132 | ) 133 | ``` 134 | 135 | 136 | 137 | ## Author 138 | 139 | Hsuan-Chih Chuang, 140 | 141 | ## License 142 | 143 | CCGestureLock is available under the MIT license. See the LICENSE file for more info. 144 | -------------------------------------------------------------------------------- /Screenshots/theme_android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hsuanchih/CCGestureLock-Swift/91fa9e37c075f330fcfbe8834ff367c2ffc6c115/Screenshots/theme_android.png -------------------------------------------------------------------------------- /Screenshots/theme_capamerica.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hsuanchih/CCGestureLock-Swift/91fa9e37c075f330fcfbe8834ff367c2ffc6c115/Screenshots/theme_capamerica.png -------------------------------------------------------------------------------- /Screenshots/theme_ironman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hsuanchih/CCGestureLock-Swift/91fa9e37c075f330fcfbe8834ff367c2ffc6c115/Screenshots/theme_ironman.png -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------