├── AppIcon@2x.png ├── AppIcon@3x.png ├── Holdr.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── uqbar.xcuserdatad │ └── xcschemes │ ├── Holdr.xcscheme │ └── xcschememanagement.plist ├── Holdr ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-40.png │ │ ├── Icon-40@2x.png │ │ ├── Icon-40@3x.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-72.png │ │ ├── Icon-72@2x.png │ │ ├── Icon-76.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-Small-50.png │ │ ├── Icon-Small-50@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ ├── Icon.png │ │ └── Icon@2x.png │ └── LaunchImage.launchimage │ │ ├── Contents.json │ │ ├── Default-568h@2x.png │ │ ├── Default.png │ │ ├── Default@2x.png │ │ ├── Default~ipad.png │ │ ├── Default~ipad@2x.png │ │ ├── Default~ipad~landscape.png │ │ ├── Default~ipad~landscape@2x.png │ │ ├── Default~ipad~landscape~nostatusbar.png │ │ ├── Default~ipad~landscape~nostatusbar@2x.png │ │ ├── Default~ipad~nostatusbar.png │ │ ├── Default~ipad~nostatusbar@2x.png │ │ ├── iPhone6-Plus-landscape@3x.png │ │ ├── iPhone6-Plus-portrait@3x.png │ │ └── iPhone6-portrait@2x.png ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── HoldrTests ├── HoldrTests.m └── Info.plist ├── LICENSE └── README.md /AppIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/AppIcon@2x.png -------------------------------------------------------------------------------- /AppIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/AppIcon@3x.png -------------------------------------------------------------------------------- /Holdr.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 036FAC851A41512300AF7D89 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 036FAC841A41512300AF7D89 /* CoreFoundation.framework */; }; 11 | 036FAC871A41512800AF7D89 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 036FAC861A41512800AF7D89 /* Foundation.framework */; }; 12 | 036FAC891A41512F00AF7D89 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 036FAC881A41512F00AF7D89 /* AVFoundation.framework */; }; 13 | 036FAC8B1A41513E00AF7D89 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 036FAC8A1A41513E00AF7D89 /* CoreMotion.framework */; }; 14 | 036FAC8D1A41514400AF7D89 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 036FAC8C1A41514400AF7D89 /* UIKit.framework */; }; 15 | 03D563381A26CD690026B7CC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 03D563371A26CD690026B7CC /* main.m */; }; 16 | 03D5633B1A26CD690026B7CC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 03D5633A1A26CD690026B7CC /* AppDelegate.m */; }; 17 | 03D5633E1A26CD690026B7CC /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 03D5633D1A26CD690026B7CC /* ViewController.m */; }; 18 | 03D563411A26CD690026B7CC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 03D5633F1A26CD690026B7CC /* Main.storyboard */; }; 19 | 03D563431A26CD690026B7CC /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 03D563421A26CD690026B7CC /* Images.xcassets */; }; 20 | 03D563461A26CD690026B7CC /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 03D563441A26CD690026B7CC /* LaunchScreen.xib */; }; 21 | 03D563521A26CD690026B7CC /* HoldrTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 03D563511A26CD690026B7CC /* HoldrTests.m */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | 03D5634C1A26CD690026B7CC /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = 03D5632A1A26CD690026B7CC /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 03D563311A26CD690026B7CC; 30 | remoteInfo = Holdr; 31 | }; 32 | /* End PBXContainerItemProxy section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 036FAC841A41512300AF7D89 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; 36 | 036FAC861A41512800AF7D89 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 37 | 036FAC881A41512F00AF7D89 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 38 | 036FAC8A1A41513E00AF7D89 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; }; 39 | 036FAC8C1A41514400AF7D89 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 40 | 03D563321A26CD690026B7CC /* Holdr.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Holdr.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 03D563361A26CD690026B7CC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 03D563371A26CD690026B7CC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 43 | 03D563391A26CD690026B7CC /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 44 | 03D5633A1A26CD690026B7CC /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 45 | 03D5633C1A26CD690026B7CC /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 46 | 03D5633D1A26CD690026B7CC /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 47 | 03D563401A26CD690026B7CC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 48 | 03D563421A26CD690026B7CC /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 49 | 03D563451A26CD690026B7CC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 50 | 03D5634B1A26CD690026B7CC /* HoldrTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HoldrTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 03D563501A26CD690026B7CC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 03D563511A26CD690026B7CC /* HoldrTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HoldrTests.m; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 03D5632F1A26CD690026B7CC /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 036FAC8D1A41514400AF7D89 /* UIKit.framework in Frameworks */, 61 | 036FAC8B1A41513E00AF7D89 /* CoreMotion.framework in Frameworks */, 62 | 036FAC891A41512F00AF7D89 /* AVFoundation.framework in Frameworks */, 63 | 036FAC871A41512800AF7D89 /* Foundation.framework in Frameworks */, 64 | 036FAC851A41512300AF7D89 /* CoreFoundation.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | 03D563481A26CD690026B7CC /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 03D563291A26CD690026B7CC = { 79 | isa = PBXGroup; 80 | children = ( 81 | 036FAC8C1A41514400AF7D89 /* UIKit.framework */, 82 | 036FAC8A1A41513E00AF7D89 /* CoreMotion.framework */, 83 | 036FAC881A41512F00AF7D89 /* AVFoundation.framework */, 84 | 036FAC861A41512800AF7D89 /* Foundation.framework */, 85 | 036FAC841A41512300AF7D89 /* CoreFoundation.framework */, 86 | 03D563341A26CD690026B7CC /* Holdr */, 87 | 03D5634E1A26CD690026B7CC /* HoldrTests */, 88 | 03D563331A26CD690026B7CC /* Products */, 89 | ); 90 | sourceTree = ""; 91 | }; 92 | 03D563331A26CD690026B7CC /* Products */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 03D563321A26CD690026B7CC /* Holdr.app */, 96 | 03D5634B1A26CD690026B7CC /* HoldrTests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | 03D563341A26CD690026B7CC /* Holdr */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 03D563391A26CD690026B7CC /* AppDelegate.h */, 105 | 03D5633A1A26CD690026B7CC /* AppDelegate.m */, 106 | 03D5633C1A26CD690026B7CC /* ViewController.h */, 107 | 03D5633D1A26CD690026B7CC /* ViewController.m */, 108 | 03D5633F1A26CD690026B7CC /* Main.storyboard */, 109 | 03D563421A26CD690026B7CC /* Images.xcassets */, 110 | 03D563441A26CD690026B7CC /* LaunchScreen.xib */, 111 | 03D563351A26CD690026B7CC /* Supporting Files */, 112 | ); 113 | path = Holdr; 114 | sourceTree = ""; 115 | }; 116 | 03D563351A26CD690026B7CC /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 03D563361A26CD690026B7CC /* Info.plist */, 120 | 03D563371A26CD690026B7CC /* main.m */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | 03D5634E1A26CD690026B7CC /* HoldrTests */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 03D563511A26CD690026B7CC /* HoldrTests.m */, 129 | 03D5634F1A26CD690026B7CC /* Supporting Files */, 130 | ); 131 | path = HoldrTests; 132 | sourceTree = ""; 133 | }; 134 | 03D5634F1A26CD690026B7CC /* Supporting Files */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 03D563501A26CD690026B7CC /* Info.plist */, 138 | ); 139 | name = "Supporting Files"; 140 | sourceTree = ""; 141 | }; 142 | /* End PBXGroup section */ 143 | 144 | /* Begin PBXNativeTarget section */ 145 | 03D563311A26CD690026B7CC /* Holdr */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = 03D563551A26CD690026B7CC /* Build configuration list for PBXNativeTarget "Holdr" */; 148 | buildPhases = ( 149 | 03D5632E1A26CD690026B7CC /* Sources */, 150 | 03D5632F1A26CD690026B7CC /* Frameworks */, 151 | 03D563301A26CD690026B7CC /* Resources */, 152 | ); 153 | buildRules = ( 154 | ); 155 | dependencies = ( 156 | ); 157 | name = Holdr; 158 | productName = Holdr; 159 | productReference = 03D563321A26CD690026B7CC /* Holdr.app */; 160 | productType = "com.apple.product-type.application"; 161 | }; 162 | 03D5634A1A26CD690026B7CC /* HoldrTests */ = { 163 | isa = PBXNativeTarget; 164 | buildConfigurationList = 03D563581A26CD690026B7CC /* Build configuration list for PBXNativeTarget "HoldrTests" */; 165 | buildPhases = ( 166 | 03D563471A26CD690026B7CC /* Sources */, 167 | 03D563481A26CD690026B7CC /* Frameworks */, 168 | 03D563491A26CD690026B7CC /* Resources */, 169 | ); 170 | buildRules = ( 171 | ); 172 | dependencies = ( 173 | 03D5634D1A26CD690026B7CC /* PBXTargetDependency */, 174 | ); 175 | name = HoldrTests; 176 | productName = HoldrTests; 177 | productReference = 03D5634B1A26CD690026B7CC /* HoldrTests.xctest */; 178 | productType = "com.apple.product-type.bundle.unit-test"; 179 | }; 180 | /* End PBXNativeTarget section */ 181 | 182 | /* Begin PBXProject section */ 183 | 03D5632A1A26CD690026B7CC /* Project object */ = { 184 | isa = PBXProject; 185 | attributes = { 186 | LastUpgradeCheck = 0610; 187 | ORGANIZATIONNAME = "Useless Apps"; 188 | TargetAttributes = { 189 | 03D563311A26CD690026B7CC = { 190 | CreatedOnToolsVersion = 6.1; 191 | }; 192 | 03D5634A1A26CD690026B7CC = { 193 | CreatedOnToolsVersion = 6.1; 194 | TestTargetID = 03D563311A26CD690026B7CC; 195 | }; 196 | }; 197 | }; 198 | buildConfigurationList = 03D5632D1A26CD690026B7CC /* Build configuration list for PBXProject "Holdr" */; 199 | compatibilityVersion = "Xcode 3.2"; 200 | developmentRegion = English; 201 | hasScannedForEncodings = 0; 202 | knownRegions = ( 203 | en, 204 | Base, 205 | ); 206 | mainGroup = 03D563291A26CD690026B7CC; 207 | productRefGroup = 03D563331A26CD690026B7CC /* Products */; 208 | projectDirPath = ""; 209 | projectRoot = ""; 210 | targets = ( 211 | 03D563311A26CD690026B7CC /* Holdr */, 212 | 03D5634A1A26CD690026B7CC /* HoldrTests */, 213 | ); 214 | }; 215 | /* End PBXProject section */ 216 | 217 | /* Begin PBXResourcesBuildPhase section */ 218 | 03D563301A26CD690026B7CC /* Resources */ = { 219 | isa = PBXResourcesBuildPhase; 220 | buildActionMask = 2147483647; 221 | files = ( 222 | 03D563411A26CD690026B7CC /* Main.storyboard in Resources */, 223 | 03D563461A26CD690026B7CC /* LaunchScreen.xib in Resources */, 224 | 03D563431A26CD690026B7CC /* Images.xcassets in Resources */, 225 | ); 226 | runOnlyForDeploymentPostprocessing = 0; 227 | }; 228 | 03D563491A26CD690026B7CC /* Resources */ = { 229 | isa = PBXResourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | ); 233 | runOnlyForDeploymentPostprocessing = 0; 234 | }; 235 | /* End PBXResourcesBuildPhase section */ 236 | 237 | /* Begin PBXSourcesBuildPhase section */ 238 | 03D5632E1A26CD690026B7CC /* Sources */ = { 239 | isa = PBXSourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 03D5633E1A26CD690026B7CC /* ViewController.m in Sources */, 243 | 03D5633B1A26CD690026B7CC /* AppDelegate.m in Sources */, 244 | 03D563381A26CD690026B7CC /* main.m in Sources */, 245 | ); 246 | runOnlyForDeploymentPostprocessing = 0; 247 | }; 248 | 03D563471A26CD690026B7CC /* Sources */ = { 249 | isa = PBXSourcesBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | 03D563521A26CD690026B7CC /* HoldrTests.m in Sources */, 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | /* End PBXSourcesBuildPhase section */ 257 | 258 | /* Begin PBXTargetDependency section */ 259 | 03D5634D1A26CD690026B7CC /* PBXTargetDependency */ = { 260 | isa = PBXTargetDependency; 261 | target = 03D563311A26CD690026B7CC /* Holdr */; 262 | targetProxy = 03D5634C1A26CD690026B7CC /* PBXContainerItemProxy */; 263 | }; 264 | /* End PBXTargetDependency section */ 265 | 266 | /* Begin PBXVariantGroup section */ 267 | 03D5633F1A26CD690026B7CC /* Main.storyboard */ = { 268 | isa = PBXVariantGroup; 269 | children = ( 270 | 03D563401A26CD690026B7CC /* Base */, 271 | ); 272 | name = Main.storyboard; 273 | sourceTree = ""; 274 | }; 275 | 03D563441A26CD690026B7CC /* LaunchScreen.xib */ = { 276 | isa = PBXVariantGroup; 277 | children = ( 278 | 03D563451A26CD690026B7CC /* Base */, 279 | ); 280 | name = LaunchScreen.xib; 281 | sourceTree = ""; 282 | }; 283 | /* End PBXVariantGroup section */ 284 | 285 | /* Begin XCBuildConfiguration section */ 286 | 03D563531A26CD690026B7CC /* Debug */ = { 287 | isa = XCBuildConfiguration; 288 | buildSettings = { 289 | ALWAYS_SEARCH_USER_PATHS = NO; 290 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 291 | CLANG_CXX_LIBRARY = "libc++"; 292 | CLANG_ENABLE_MODULES = YES; 293 | CLANG_ENABLE_OBJC_ARC = YES; 294 | CLANG_WARN_BOOL_CONVERSION = YES; 295 | CLANG_WARN_CONSTANT_CONVERSION = YES; 296 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 297 | CLANG_WARN_EMPTY_BODY = YES; 298 | CLANG_WARN_ENUM_CONVERSION = YES; 299 | CLANG_WARN_INT_CONVERSION = YES; 300 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 301 | CLANG_WARN_UNREACHABLE_CODE = YES; 302 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 303 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 304 | COPY_PHASE_STRIP = NO; 305 | ENABLE_STRICT_OBJC_MSGSEND = YES; 306 | GCC_C_LANGUAGE_STANDARD = gnu99; 307 | GCC_DYNAMIC_NO_PIC = NO; 308 | GCC_OPTIMIZATION_LEVEL = 0; 309 | GCC_PREPROCESSOR_DEFINITIONS = ( 310 | "DEBUG=1", 311 | "$(inherited)", 312 | ); 313 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 314 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 315 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 316 | GCC_WARN_UNDECLARED_SELECTOR = YES; 317 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 318 | GCC_WARN_UNUSED_FUNCTION = YES; 319 | GCC_WARN_UNUSED_VARIABLE = YES; 320 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 321 | MTL_ENABLE_DEBUG_INFO = YES; 322 | ONLY_ACTIVE_ARCH = YES; 323 | SDKROOT = iphoneos; 324 | }; 325 | name = Debug; 326 | }; 327 | 03D563541A26CD690026B7CC /* Release */ = { 328 | isa = XCBuildConfiguration; 329 | buildSettings = { 330 | ALWAYS_SEARCH_USER_PATHS = NO; 331 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 332 | CLANG_CXX_LIBRARY = "libc++"; 333 | CLANG_ENABLE_MODULES = YES; 334 | CLANG_ENABLE_OBJC_ARC = YES; 335 | CLANG_WARN_BOOL_CONVERSION = YES; 336 | CLANG_WARN_CONSTANT_CONVERSION = YES; 337 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 338 | CLANG_WARN_EMPTY_BODY = YES; 339 | CLANG_WARN_ENUM_CONVERSION = YES; 340 | CLANG_WARN_INT_CONVERSION = YES; 341 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 342 | CLANG_WARN_UNREACHABLE_CODE = YES; 343 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 344 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 345 | COPY_PHASE_STRIP = YES; 346 | ENABLE_NS_ASSERTIONS = NO; 347 | ENABLE_STRICT_OBJC_MSGSEND = YES; 348 | GCC_C_LANGUAGE_STANDARD = gnu99; 349 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 350 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 351 | GCC_WARN_UNDECLARED_SELECTOR = YES; 352 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 353 | GCC_WARN_UNUSED_FUNCTION = YES; 354 | GCC_WARN_UNUSED_VARIABLE = YES; 355 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 356 | MTL_ENABLE_DEBUG_INFO = NO; 357 | SDKROOT = iphoneos; 358 | VALIDATE_PRODUCT = YES; 359 | }; 360 | name = Release; 361 | }; 362 | 03D563561A26CD690026B7CC /* Debug */ = { 363 | isa = XCBuildConfiguration; 364 | buildSettings = { 365 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 366 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 367 | CLANG_ENABLE_MODULES = NO; 368 | INFOPLIST_FILE = Holdr/Info.plist; 369 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 370 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | }; 373 | name = Debug; 374 | }; 375 | 03D563571A26CD690026B7CC /* Release */ = { 376 | isa = XCBuildConfiguration; 377 | buildSettings = { 378 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 379 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 380 | CLANG_ENABLE_MODULES = NO; 381 | INFOPLIST_FILE = Holdr/Info.plist; 382 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 383 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 384 | PRODUCT_NAME = "$(TARGET_NAME)"; 385 | }; 386 | name = Release; 387 | }; 388 | 03D563591A26CD690026B7CC /* Debug */ = { 389 | isa = XCBuildConfiguration; 390 | buildSettings = { 391 | BUNDLE_LOADER = "$(TEST_HOST)"; 392 | FRAMEWORK_SEARCH_PATHS = ( 393 | "$(SDKROOT)/Developer/Library/Frameworks", 394 | "$(inherited)", 395 | ); 396 | GCC_PREPROCESSOR_DEFINITIONS = ( 397 | "DEBUG=1", 398 | "$(inherited)", 399 | ); 400 | INFOPLIST_FILE = HoldrTests/Info.plist; 401 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 402 | PRODUCT_NAME = "$(TARGET_NAME)"; 403 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Holdr.app/Holdr"; 404 | }; 405 | name = Debug; 406 | }; 407 | 03D5635A1A26CD690026B7CC /* Release */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | BUNDLE_LOADER = "$(TEST_HOST)"; 411 | FRAMEWORK_SEARCH_PATHS = ( 412 | "$(SDKROOT)/Developer/Library/Frameworks", 413 | "$(inherited)", 414 | ); 415 | INFOPLIST_FILE = HoldrTests/Info.plist; 416 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 417 | PRODUCT_NAME = "$(TARGET_NAME)"; 418 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Holdr.app/Holdr"; 419 | }; 420 | name = Release; 421 | }; 422 | /* End XCBuildConfiguration section */ 423 | 424 | /* Begin XCConfigurationList section */ 425 | 03D5632D1A26CD690026B7CC /* Build configuration list for PBXProject "Holdr" */ = { 426 | isa = XCConfigurationList; 427 | buildConfigurations = ( 428 | 03D563531A26CD690026B7CC /* Debug */, 429 | 03D563541A26CD690026B7CC /* Release */, 430 | ); 431 | defaultConfigurationIsVisible = 0; 432 | defaultConfigurationName = Release; 433 | }; 434 | 03D563551A26CD690026B7CC /* Build configuration list for PBXNativeTarget "Holdr" */ = { 435 | isa = XCConfigurationList; 436 | buildConfigurations = ( 437 | 03D563561A26CD690026B7CC /* Debug */, 438 | 03D563571A26CD690026B7CC /* Release */, 439 | ); 440 | defaultConfigurationIsVisible = 0; 441 | defaultConfigurationName = Release; 442 | }; 443 | 03D563581A26CD690026B7CC /* Build configuration list for PBXNativeTarget "HoldrTests" */ = { 444 | isa = XCConfigurationList; 445 | buildConfigurations = ( 446 | 03D563591A26CD690026B7CC /* Debug */, 447 | 03D5635A1A26CD690026B7CC /* Release */, 448 | ); 449 | defaultConfigurationIsVisible = 0; 450 | defaultConfigurationName = Release; 451 | }; 452 | /* End XCConfigurationList section */ 453 | }; 454 | rootObject = 03D5632A1A26CD690026B7CC /* Project object */; 455 | } 456 | -------------------------------------------------------------------------------- /Holdr.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Holdr.xcodeproj/xcuserdata/uqbar.xcuserdatad/xcschemes/Holdr.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 94 | 100 | 101 | 102 | 103 | 105 | 106 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /Holdr.xcodeproj/xcuserdata/uqbar.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Holdr.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 03D563311A26CD690026B7CC 16 | 17 | primary 18 | 19 | 20 | 03D5634A1A26CD690026B7CC 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Holdr/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Holdr 4 | // 5 | // Created by Sam Tarakajian on 27/11/2014. 6 | // Copyright (c) 2014 Useless Shit. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Holdr/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Holdr 4 | // 5 | // Created by Sam Tarakajian on 27/11/2014. 6 | // Copyright (c) 2014 Useless Shit. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // 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. 25 | // 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. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // 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. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Holdr/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Holdr/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 32 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "40x40", 5 | "idiom" : "ipad", 6 | "filename" : "Icon-40.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "40x40", 11 | "idiom" : "ipad", 12 | "filename" : "Icon-40@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "60x60", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-60@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "72x72", 23 | "idiom" : "ipad", 24 | "filename" : "Icon-72.png", 25 | "scale" : "1x" 26 | }, 27 | { 28 | "size" : "72x72", 29 | "idiom" : "ipad", 30 | "filename" : "Icon-72@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "76x76", 35 | "idiom" : "ipad", 36 | "filename" : "Icon-76.png", 37 | "scale" : "1x" 38 | }, 39 | { 40 | "size" : "76x76", 41 | "idiom" : "ipad", 42 | "filename" : "Icon-76@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "50x50", 47 | "idiom" : "ipad", 48 | "filename" : "Icon-Small-50.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "50x50", 53 | "idiom" : "ipad", 54 | "filename" : "Icon-Small-50@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "29x29", 59 | "idiom" : "iphone", 60 | "filename" : "Icon-Small.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "29x29", 65 | "idiom" : "iphone", 66 | "filename" : "Icon-Small@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "57x57", 71 | "idiom" : "iphone", 72 | "filename" : "Icon.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "57x57", 77 | "idiom" : "iphone", 78 | "filename" : "Icon@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "29x29", 83 | "idiom" : "iphone", 84 | "filename" : "Icon-Small@3x.png", 85 | "scale" : "3x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "iphone", 90 | "filename" : "Icon-40@3x.png", 91 | "scale" : "3x" 92 | }, 93 | { 94 | "size" : "60x60", 95 | "idiom" : "iphone", 96 | "filename" : "Icon-60@3x.png", 97 | "scale" : "3x" 98 | }, 99 | { 100 | "size" : "40x40", 101 | "idiom" : "iphone", 102 | "filename" : "Icon-40@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "29x29", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-Small.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "29x29", 113 | "idiom" : "ipad", 114 | "filename" : "Icon-Small@2x.png", 115 | "scale" : "2x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-40.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-72.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/AppIcon.appiconset/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/AppIcon.appiconset/Icon@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "filename" : "Default.png", 7 | "orientation" : "portrait", 8 | "scale" : "1x" 9 | }, 10 | { 11 | "extent" : "full-screen", 12 | "idiom" : "iphone", 13 | "filename" : "Default@2x.png", 14 | "minimum-system-version" : "7.0", 15 | "orientation" : "portrait", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "extent" : "full-screen", 20 | "idiom" : "iphone", 21 | "subtype" : "retina4", 22 | "filename" : "Default-568h@2x.png", 23 | "minimum-system-version" : "7.0", 24 | "orientation" : "portrait", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "extent" : "full-screen", 29 | "idiom" : "iphone", 30 | "filename" : "Default@2x.png", 31 | "orientation" : "portrait", 32 | "scale" : "2x" 33 | }, 34 | { 35 | "extent" : "to-status-bar", 36 | "idiom" : "ipad", 37 | "filename" : "Default~ipad.png", 38 | "orientation" : "portrait", 39 | "scale" : "1x" 40 | }, 41 | { 42 | "extent" : "to-status-bar", 43 | "idiom" : "ipad", 44 | "filename" : "Default~ipad@2x.png", 45 | "orientation" : "portrait", 46 | "scale" : "2x" 47 | }, 48 | { 49 | "extent" : "to-status-bar", 50 | "idiom" : "ipad", 51 | "filename" : "Default~ipad~landscape.png", 52 | "orientation" : "landscape", 53 | "scale" : "1x" 54 | }, 55 | { 56 | "extent" : "to-status-bar", 57 | "idiom" : "ipad", 58 | "filename" : "Default~ipad~landscape@2x.png", 59 | "orientation" : "landscape", 60 | "scale" : "2x" 61 | }, 62 | { 63 | "extent" : "full-screen", 64 | "idiom" : "ipad", 65 | "filename" : "Default~ipad~nostatusbar.png", 66 | "minimum-system-version" : "7.0", 67 | "orientation" : "portrait", 68 | "scale" : "1x" 69 | }, 70 | { 71 | "extent" : "full-screen", 72 | "idiom" : "ipad", 73 | "filename" : "Default~ipad~nostatusbar.png", 74 | "orientation" : "portrait", 75 | "scale" : "1x" 76 | }, 77 | { 78 | "extent" : "full-screen", 79 | "idiom" : "ipad", 80 | "filename" : "Default~ipad~nostatusbar@2x.png", 81 | "minimum-system-version" : "7.0", 82 | "orientation" : "portrait", 83 | "scale" : "2x" 84 | }, 85 | { 86 | "extent" : "full-screen", 87 | "idiom" : "ipad", 88 | "filename" : "Default~ipad~nostatusbar@2x.png", 89 | "orientation" : "portrait", 90 | "scale" : "2x" 91 | }, 92 | { 93 | "extent" : "full-screen", 94 | "idiom" : "ipad", 95 | "filename" : "Default~ipad~landscape~nostatusbar.png", 96 | "minimum-system-version" : "7.0", 97 | "orientation" : "landscape", 98 | "scale" : "1x" 99 | }, 100 | { 101 | "extent" : "full-screen", 102 | "idiom" : "ipad", 103 | "filename" : "Default~ipad~landscape~nostatusbar.png", 104 | "orientation" : "landscape", 105 | "scale" : "1x" 106 | }, 107 | { 108 | "extent" : "full-screen", 109 | "idiom" : "ipad", 110 | "filename" : "Default~ipad~landscape~nostatusbar@2x.png", 111 | "minimum-system-version" : "7.0", 112 | "orientation" : "landscape", 113 | "scale" : "2x" 114 | }, 115 | { 116 | "extent" : "full-screen", 117 | "idiom" : "ipad", 118 | "filename" : "Default~ipad~landscape~nostatusbar@2x.png", 119 | "orientation" : "landscape", 120 | "scale" : "2x" 121 | }, 122 | { 123 | "extent" : "full-screen", 124 | "idiom" : "iphone", 125 | "subtype" : "736h", 126 | "filename" : "iPhone6-Plus-portrait@3x.png", 127 | "minimum-system-version" : "8.0", 128 | "orientation" : "portrait", 129 | "scale" : "3x" 130 | }, 131 | { 132 | "extent" : "full-screen", 133 | "idiom" : "iphone", 134 | "subtype" : "736h", 135 | "filename" : "iPhone6-Plus-landscape@3x.png", 136 | "minimum-system-version" : "8.0", 137 | "orientation" : "landscape", 138 | "scale" : "3x" 139 | }, 140 | { 141 | "extent" : "full-screen", 142 | "idiom" : "iphone", 143 | "subtype" : "667h", 144 | "filename" : "iPhone6-portrait@2x.png", 145 | "minimum-system-version" : "8.0", 146 | "orientation" : "portrait", 147 | "scale" : "2x" 148 | } 149 | ], 150 | "info" : { 151 | "version" : 1, 152 | "author" : "xcode" 153 | } 154 | } -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~landscape~nostatusbar@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/Default~ipad~nostatusbar@2x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-landscape@3x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/iPhone6-Plus-portrait@3x.png -------------------------------------------------------------------------------- /Holdr/Images.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starakaj/holdr/4d61252ec4c90eda82e9c1f43e17098fc8d8daca/Holdr/Images.xcassets/LaunchImage.launchimage/iPhone6-portrait@2x.png -------------------------------------------------------------------------------- /Holdr/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.useless.$(PRODUCT_NAME:rfc1034identifier) 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 | 2 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | gyroscope 32 | armv7 33 | 34 | UISupportedInterfaceOrientations 35 | 36 | UIInterfaceOrientationPortrait 37 | UIInterfaceOrientationLandscapeLeft 38 | UIInterfaceOrientationLandscapeRight 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Holdr/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // Holdr 4 | // 5 | // Created by Sam Tarakajian on 15/11/2014. 6 | // Copyright (c) 2014 Useless Shit. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface ViewController : UIViewController 14 | 15 | @property (nonatomic, strong) CMMotionManager *motionManager; 16 | @property (nonatomic, strong) IBOutlet UILabel *holdingLabel; 17 | @end -------------------------------------------------------------------------------- /Holdr/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // Holdr 4 | // 5 | // Created by Sam Tarakajian on 15/11/2014. 6 | // Copyright (c) 2014 Useless Shit. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | #define Holdr_DROP_ACCEL_THRESHOLD 0.09 12 | #define Holdr_MINIMUM_DROP_TIME 0.1 13 | #define Holdr_STILLNESS_THRESHOLD 0.025 14 | #define Holdr_BUMP_THRESHOLD 0.1 15 | 16 | typedef enum { 17 | HoldrPhoneState_NotHolding, 18 | HoldrPhoneState_Holding, 19 | HoldrPhoneState_Unknown, 20 | HoldrPhoneState_Dropping 21 | } HoldrPhoneState_t; 22 | 23 | @interface ViewController () { 24 | NSTimer *_startHoldingTimer; 25 | NSTimer *_stopHoldingTimer; 26 | NSTimer *_droppingTimer; 27 | HoldrPhoneState_t _phoneState; 28 | 29 | AVSpeechUtterance *_holdingUtterance; 30 | AVSpeechUtterance *_unholdingUtterance; 31 | AVSpeechUtterance *_droppingUtterance; 32 | AVSpeechSynthesizer *_speechSynth; 33 | } 34 | @end 35 | 36 | @implementation ViewController 37 | 38 | - (void)viewDidLoad { 39 | [super viewDidLoad]; 40 | 41 | _holdingUtterance = [AVSpeechUtterance 42 | speechUtteranceWithString:@"You are now holding your phone"]; 43 | _holdingUtterance.pitchMultiplier = 1.0; 44 | _holdingUtterance.rate = 0.2; 45 | _unholdingUtterance = [AVSpeechUtterance 46 | speechUtteranceWithString:@"You are no longer holding your phone"]; 47 | _unholdingUtterance.pitchMultiplier = 1.0; 48 | _unholdingUtterance.rate = 0.2; 49 | _droppingUtterance = [AVSpeechUtterance 50 | speechUtteranceWithString:@"You are now dropping your phone"]; 51 | _droppingUtterance.pitchMultiplier = 1.0; 52 | _droppingUtterance.rate = 0.2; 53 | _speechSynth = [[AVSpeechSynthesizer alloc] init]; 54 | _phoneState = HoldrPhoneState_Unknown; 55 | 56 | 57 | self.motionManager = [[CMMotionManager alloc] init]; 58 | self.motionManager.deviceMotionUpdateInterval = 0.01; 59 | 60 | [self.motionManager startDeviceMotionUpdatesToQueue:[NSOperationQueue currentQueue] 61 | withHandler:^(CMDeviceMotion *motion, NSError *error) { 62 | [self handleDeviceMotion:motion error:error]; 63 | }]; 64 | 65 | [self.motionManager startAccelerometerUpdatesToQueue:[NSOperationQueue currentQueue] 66 | withHandler:^(CMAccelerometerData *accel, NSError *error) { 67 | [self handleAcceleration:accel error:error]; 68 | }]; 69 | } 70 | 71 | - (void) handleAcceleration:(CMAccelerometerData *)accel error:(NSError *)error 72 | { 73 | double totalAcceleration = fabs(accel.acceleration.x) + fabs(accel.acceleration.y) + fabs(accel.acceleration.z); 74 | if (totalAcceleration < Holdr_DROP_ACCEL_THRESHOLD) { 75 | if (!_droppingTimer) { 76 | NSLog(@"Very low total acceleration. Drop detected? Starting drop timer"); 77 | _droppingTimer = [NSTimer scheduledTimerWithTimeInterval:Holdr_MINIMUM_DROP_TIME target:self selector:@selector(startDropping) userInfo:nil repeats:NO]; 78 | } 79 | } else { 80 | if (_droppingTimer) { 81 | NSLog(@"Thought we were dropping, but acceleration got too big. Invalidating Drop timer."); 82 | [_droppingTimer invalidate]; 83 | _droppingTimer = nil; 84 | } 85 | if (_phoneState == HoldrPhoneState_Dropping) { 86 | _phoneState = HoldrPhoneState_Unknown; 87 | } 88 | } 89 | } 90 | 91 | - (void) handleDeviceMotion:(CMDeviceMotion *)motion error:(NSError *)error 92 | { 93 | double totalMotion = fabs(motion.userAcceleration.x) + fabs(motion.userAcceleration.y) + fabs(motion.userAcceleration.z); 94 | 95 | // If you're about to enter the not holding state, but there's some motion, then nevermind 96 | if (_stopHoldingTimer) { 97 | if (totalMotion > Holdr_STILLNESS_THRESHOLD) { 98 | NSLog(@"It looked like the phone was still, but then it got a jostle. Invalidating Not Hold timer"); 99 | [_stopHoldingTimer invalidate]; 100 | _stopHoldingTimer = nil; 101 | } 102 | } 103 | 104 | // If the phone's not getting any user acceleration, then maybe it's not being held? 105 | if (!_stopHoldingTimer) { 106 | if (_phoneState != HoldrPhoneState_NotHolding) { 107 | if (totalMotion <= Holdr_STILLNESS_THRESHOLD) { 108 | NSLog(@"Phone is very still. Probably it's not being held. Starting Not Hold timer"); 109 | _stopHoldingTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(stopHolding) userInfo:nil repeats:NO]; 110 | } 111 | } 112 | } 113 | 114 | // If the phone has a very small user acceleration, then you're almost definitely not holding it 115 | if (totalMotion <= Holdr_STILLNESS_THRESHOLD) { 116 | if (_startHoldingTimer) { 117 | NSLog(@"Had a bump but then went still. Invalidating Hold"); 118 | [_startHoldingTimer invalidate]; 119 | _startHoldingTimer = nil; 120 | } 121 | } 122 | 123 | // If the phone is not being held and it gets a bump, then maybe you're holding it now 124 | if (_phoneState == HoldrPhoneState_NotHolding) { 125 | if (!_startHoldingTimer) { 126 | if (totalMotion > 0.1) { 127 | NSLog(@"Phone got a bump. Maybe it's being held now? Starting Hold timer"); 128 | _startHoldingTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(startHolding) userInfo:nil repeats:NO]; 129 | } 130 | } 131 | } 132 | 133 | // If the phone is in an unknown state, then simply some motion is enough to suggest that we're being held 134 | if (_phoneState == HoldrPhoneState_Unknown) { 135 | if (!_startHoldingTimer) { 136 | if (totalMotion > Holdr_STILLNESS_THRESHOLD) { 137 | NSLog(@"Phone seems to be moving a bit. Starting Hold timer"); 138 | _startHoldingTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(startHolding) userInfo:nil repeats:NO]; 139 | } 140 | } 141 | } 142 | } 143 | 144 | - (void) startDropping 145 | { 146 | if (_phoneState != HoldrPhoneState_Dropping) { 147 | [_startHoldingTimer invalidate]; 148 | _startHoldingTimer = nil; 149 | [_stopHoldingTimer invalidate]; 150 | _stopHoldingTimer = nil; 151 | _phoneState = HoldrPhoneState_Dropping; 152 | self.holdingLabel.text = @"Dropping"; 153 | self.view.backgroundColor = [[UIColor redColor] colorWithAlphaComponent:0.8]; 154 | [_speechSynth speakUtterance:_droppingUtterance]; 155 | } 156 | } 157 | 158 | - (void) startHolding 159 | { 160 | if (_phoneState == HoldrPhoneState_Dropping) 161 | return; 162 | if (_phoneState != HoldrPhoneState_Holding ) { 163 | _phoneState = HoldrPhoneState_Holding; 164 | self.holdingLabel.text = @"Holding"; 165 | self.view.backgroundColor = [[UIColor greenColor] colorWithAlphaComponent:0.8]; 166 | [_speechSynth speakUtterance:_holdingUtterance]; 167 | } 168 | _startHoldingTimer = nil; 169 | } 170 | 171 | - (void) stopHolding 172 | { 173 | if (_phoneState == HoldrPhoneState_Dropping) 174 | return; 175 | if (_phoneState != HoldrPhoneState_NotHolding) { 176 | _phoneState = HoldrPhoneState_NotHolding; 177 | self.holdingLabel.text = @"Not Holding"; 178 | self.view.backgroundColor = [UIColor whiteColor]; 179 | [_speechSynth speakUtterance:_unholdingUtterance]; 180 | } 181 | _stopHoldingTimer = nil; 182 | } 183 | 184 | @end 185 | -------------------------------------------------------------------------------- /Holdr/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Holdr 4 | // 5 | // Created by Sam Tarakajian on 27/11/2014. 6 | // Copyright (c) 2014 Useless Shit. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /HoldrTests/HoldrTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // HoldrTests.m 3 | // HoldrTests 4 | // 5 | // Created by Sam Tarakajian on 27/11/2014. 6 | // Copyright (c) 2014 Useless Shit. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface HoldrTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation HoldrTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /HoldrTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.useless.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Sam Tarakajian 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 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | holdr 2 | ===== 3 | 4 | Holdr solves the problem of knowing when you're holding your phone. 5 | --------------------------------------------------------------------------------