├── .gitignore ├── .travis.yml ├── DemoSKTaskManager ├── DemoSKTaskManager.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── DemoSKTaskManager.xcworkspace │ └── contents.xcworkspacedata ├── DemoSKTaskManager │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── DemoSKTaskManagerTests │ ├── DemoSKTaskManagerTests.m │ └── Info.plist ├── Podfile ├── Podfile.lock └── Pods │ ├── Headers │ ├── Private │ │ └── SKTaskManager │ │ │ ├── SKTask.h │ │ │ └── SKTaskManager.h │ └── Public │ │ └── SKTaskManager │ │ ├── SKTask.h │ │ └── SKTaskManager.h │ ├── Manifest.lock │ ├── Pods.xcodeproj │ └── project.pbxproj │ ├── SKTaskManager │ ├── LICENSE │ ├── README.md │ └── SKTaskManager │ │ ├── SKTask.h │ │ ├── SKTask.m │ │ ├── SKTaskManager.h │ │ └── SKTaskManager.m │ └── Target Support Files │ ├── Pods-SKTaskManager │ ├── Pods-SKTaskManager-Private.xcconfig │ ├── Pods-SKTaskManager-dummy.m │ ├── Pods-SKTaskManager-prefix.pch │ └── Pods-SKTaskManager.xcconfig │ └── Pods │ ├── Pods-acknowledgements.markdown │ ├── Pods-acknowledgements.plist │ ├── Pods-dummy.m │ ├── Pods-environment.h │ ├── Pods-resources.sh │ ├── Pods.debug.xcconfig │ └── Pods.release.xcconfig ├── LICENSE ├── README.md ├── SKTaskManager.podspec └── SKTaskManager ├── SKTask.h ├── SKTask.m ├── SKTaskManager.h └── SKTaskManager.m /.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 | # We recommend against adding the Pods directory to your .gitignore. However 26 | # you should judge for yourself, the pros and cons are mentioned at: 27 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 28 | # 29 | # Note: if you ignore the Pods directory, make sure to uncomment 30 | # `pod install` in .travis.yml 31 | # 32 | # Pods/ 33 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | install: 12 | - gem install xcpretty --no-rdoc --no-ri --no-document --quiet 13 | script: 14 | - set -o pipefail && xcodebuild test -workspace Example/SKTaskManager.xcworkspace -scheme SKTaskManager-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c 15 | - pod lib lint --quick 16 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 59B31695CD393E47D3CE7763 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AC8E76DE451A6A11143E450B /* libPods.a */; }; 11 | FED61F4F1B1979A700D3AED9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FED61F4E1B1979A700D3AED9 /* main.m */; }; 12 | FED61F521B1979A700D3AED9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FED61F511B1979A700D3AED9 /* AppDelegate.m */; }; 13 | FED61F551B1979A700D3AED9 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FED61F541B1979A700D3AED9 /* ViewController.m */; }; 14 | FED61F581B1979A700D3AED9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FED61F561B1979A700D3AED9 /* Main.storyboard */; }; 15 | FED61F5A1B1979A700D3AED9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FED61F591B1979A700D3AED9 /* Images.xcassets */; }; 16 | FED61F5D1B1979A700D3AED9 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = FED61F5B1B1979A700D3AED9 /* LaunchScreen.xib */; }; 17 | FED61F691B1979A700D3AED9 /* DemoSKTaskManagerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = FED61F681B1979A700D3AED9 /* DemoSKTaskManagerTests.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | FED61F631B1979A700D3AED9 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = FED61F411B1979A700D3AED9 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = FED61F481B1979A700D3AED9; 26 | remoteInfo = DemoSKTaskManager; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 4815EA4700FB42C304AFE4FD /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; 32 | AC8E76DE451A6A11143E450B /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | D6711BC51C4D2DFEC7765101 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; 34 | FED61F491B1979A700D3AED9 /* DemoSKTaskManager.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DemoSKTaskManager.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | FED61F4D1B1979A700D3AED9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | FED61F4E1B1979A700D3AED9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 37 | FED61F501B1979A700D3AED9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 38 | FED61F511B1979A700D3AED9 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 39 | FED61F531B1979A700D3AED9 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 40 | FED61F541B1979A700D3AED9 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 41 | FED61F571B1979A700D3AED9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | FED61F591B1979A700D3AED9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 43 | FED61F5C1B1979A700D3AED9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 44 | FED61F621B1979A700D3AED9 /* DemoSKTaskManagerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DemoSKTaskManagerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | FED61F671B1979A700D3AED9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | FED61F681B1979A700D3AED9 /* DemoSKTaskManagerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DemoSKTaskManagerTests.m; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | FED61F461B1979A700D3AED9 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | 59B31695CD393E47D3CE7763 /* libPods.a in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | FED61F5F1B1979A700D3AED9 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 52198B82C7E0DFBFCD4BF1E0 /* Frameworks */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | AC8E76DE451A6A11143E450B /* libPods.a */, 72 | ); 73 | name = Frameworks; 74 | sourceTree = ""; 75 | }; 76 | B7180E3D1D7D4F2D83B1E07D /* Pods */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | D6711BC51C4D2DFEC7765101 /* Pods.debug.xcconfig */, 80 | 4815EA4700FB42C304AFE4FD /* Pods.release.xcconfig */, 81 | ); 82 | name = Pods; 83 | sourceTree = ""; 84 | }; 85 | FED61F401B1979A700D3AED9 = { 86 | isa = PBXGroup; 87 | children = ( 88 | FED61F4B1B1979A700D3AED9 /* DemoSKTaskManager */, 89 | FED61F651B1979A700D3AED9 /* DemoSKTaskManagerTests */, 90 | FED61F4A1B1979A700D3AED9 /* Products */, 91 | B7180E3D1D7D4F2D83B1E07D /* Pods */, 92 | 52198B82C7E0DFBFCD4BF1E0 /* Frameworks */, 93 | ); 94 | sourceTree = ""; 95 | }; 96 | FED61F4A1B1979A700D3AED9 /* Products */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | FED61F491B1979A700D3AED9 /* DemoSKTaskManager.app */, 100 | FED61F621B1979A700D3AED9 /* DemoSKTaskManagerTests.xctest */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | FED61F4B1B1979A700D3AED9 /* DemoSKTaskManager */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | FED61F501B1979A700D3AED9 /* AppDelegate.h */, 109 | FED61F511B1979A700D3AED9 /* AppDelegate.m */, 110 | FED61F531B1979A700D3AED9 /* ViewController.h */, 111 | FED61F541B1979A700D3AED9 /* ViewController.m */, 112 | FED61F561B1979A700D3AED9 /* Main.storyboard */, 113 | FED61F591B1979A700D3AED9 /* Images.xcassets */, 114 | FED61F5B1B1979A700D3AED9 /* LaunchScreen.xib */, 115 | FED61F4C1B1979A700D3AED9 /* Supporting Files */, 116 | ); 117 | path = DemoSKTaskManager; 118 | sourceTree = ""; 119 | }; 120 | FED61F4C1B1979A700D3AED9 /* Supporting Files */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | FED61F4D1B1979A700D3AED9 /* Info.plist */, 124 | FED61F4E1B1979A700D3AED9 /* main.m */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | FED61F651B1979A700D3AED9 /* DemoSKTaskManagerTests */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | FED61F681B1979A700D3AED9 /* DemoSKTaskManagerTests.m */, 133 | FED61F661B1979A700D3AED9 /* Supporting Files */, 134 | ); 135 | path = DemoSKTaskManagerTests; 136 | sourceTree = ""; 137 | }; 138 | FED61F661B1979A700D3AED9 /* Supporting Files */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | FED61F671B1979A700D3AED9 /* Info.plist */, 142 | ); 143 | name = "Supporting Files"; 144 | sourceTree = ""; 145 | }; 146 | /* End PBXGroup section */ 147 | 148 | /* Begin PBXNativeTarget section */ 149 | FED61F481B1979A700D3AED9 /* DemoSKTaskManager */ = { 150 | isa = PBXNativeTarget; 151 | buildConfigurationList = FED61F6C1B1979A700D3AED9 /* Build configuration list for PBXNativeTarget "DemoSKTaskManager" */; 152 | buildPhases = ( 153 | 60C0106D22D2915235CE053A /* Check Pods Manifest.lock */, 154 | FED61F451B1979A700D3AED9 /* Sources */, 155 | FED61F461B1979A700D3AED9 /* Frameworks */, 156 | FED61F471B1979A700D3AED9 /* Resources */, 157 | BDBF77D7242847E570DAC66C /* Copy Pods Resources */, 158 | ); 159 | buildRules = ( 160 | ); 161 | dependencies = ( 162 | ); 163 | name = DemoSKTaskManager; 164 | productName = DemoSKTaskManager; 165 | productReference = FED61F491B1979A700D3AED9 /* DemoSKTaskManager.app */; 166 | productType = "com.apple.product-type.application"; 167 | }; 168 | FED61F611B1979A700D3AED9 /* DemoSKTaskManagerTests */ = { 169 | isa = PBXNativeTarget; 170 | buildConfigurationList = FED61F6F1B1979A700D3AED9 /* Build configuration list for PBXNativeTarget "DemoSKTaskManagerTests" */; 171 | buildPhases = ( 172 | FED61F5E1B1979A700D3AED9 /* Sources */, 173 | FED61F5F1B1979A700D3AED9 /* Frameworks */, 174 | FED61F601B1979A700D3AED9 /* Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | FED61F641B1979A700D3AED9 /* PBXTargetDependency */, 180 | ); 181 | name = DemoSKTaskManagerTests; 182 | productName = DemoSKTaskManagerTests; 183 | productReference = FED61F621B1979A700D3AED9 /* DemoSKTaskManagerTests.xctest */; 184 | productType = "com.apple.product-type.bundle.unit-test"; 185 | }; 186 | /* End PBXNativeTarget section */ 187 | 188 | /* Begin PBXProject section */ 189 | FED61F411B1979A700D3AED9 /* Project object */ = { 190 | isa = PBXProject; 191 | attributes = { 192 | LastUpgradeCheck = 0620; 193 | ORGANIZATIONNAME = Sunil; 194 | TargetAttributes = { 195 | FED61F481B1979A700D3AED9 = { 196 | CreatedOnToolsVersion = 6.2; 197 | }; 198 | FED61F611B1979A700D3AED9 = { 199 | CreatedOnToolsVersion = 6.2; 200 | TestTargetID = FED61F481B1979A700D3AED9; 201 | }; 202 | }; 203 | }; 204 | buildConfigurationList = FED61F441B1979A700D3AED9 /* Build configuration list for PBXProject "DemoSKTaskManager" */; 205 | compatibilityVersion = "Xcode 3.2"; 206 | developmentRegion = English; 207 | hasScannedForEncodings = 0; 208 | knownRegions = ( 209 | en, 210 | Base, 211 | ); 212 | mainGroup = FED61F401B1979A700D3AED9; 213 | productRefGroup = FED61F4A1B1979A700D3AED9 /* Products */; 214 | projectDirPath = ""; 215 | projectRoot = ""; 216 | targets = ( 217 | FED61F481B1979A700D3AED9 /* DemoSKTaskManager */, 218 | FED61F611B1979A700D3AED9 /* DemoSKTaskManagerTests */, 219 | ); 220 | }; 221 | /* End PBXProject section */ 222 | 223 | /* Begin PBXResourcesBuildPhase section */ 224 | FED61F471B1979A700D3AED9 /* Resources */ = { 225 | isa = PBXResourcesBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | FED61F581B1979A700D3AED9 /* Main.storyboard in Resources */, 229 | FED61F5D1B1979A700D3AED9 /* LaunchScreen.xib in Resources */, 230 | FED61F5A1B1979A700D3AED9 /* Images.xcassets in Resources */, 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | }; 234 | FED61F601B1979A700D3AED9 /* Resources */ = { 235 | isa = PBXResourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | }; 241 | /* End PBXResourcesBuildPhase section */ 242 | 243 | /* Begin PBXShellScriptBuildPhase section */ 244 | 60C0106D22D2915235CE053A /* Check Pods Manifest.lock */ = { 245 | isa = PBXShellScriptBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | ); 249 | inputPaths = ( 250 | ); 251 | name = "Check Pods Manifest.lock"; 252 | outputPaths = ( 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | shellPath = /bin/sh; 256 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 257 | showEnvVarsInLog = 0; 258 | }; 259 | BDBF77D7242847E570DAC66C /* Copy Pods Resources */ = { 260 | isa = PBXShellScriptBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | inputPaths = ( 265 | ); 266 | name = "Copy Pods Resources"; 267 | outputPaths = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | shellPath = /bin/sh; 271 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; 272 | showEnvVarsInLog = 0; 273 | }; 274 | /* End PBXShellScriptBuildPhase section */ 275 | 276 | /* Begin PBXSourcesBuildPhase section */ 277 | FED61F451B1979A700D3AED9 /* Sources */ = { 278 | isa = PBXSourcesBuildPhase; 279 | buildActionMask = 2147483647; 280 | files = ( 281 | FED61F551B1979A700D3AED9 /* ViewController.m in Sources */, 282 | FED61F521B1979A700D3AED9 /* AppDelegate.m in Sources */, 283 | FED61F4F1B1979A700D3AED9 /* main.m in Sources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | FED61F5E1B1979A700D3AED9 /* Sources */ = { 288 | isa = PBXSourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | FED61F691B1979A700D3AED9 /* DemoSKTaskManagerTests.m in Sources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | /* End PBXSourcesBuildPhase section */ 296 | 297 | /* Begin PBXTargetDependency section */ 298 | FED61F641B1979A700D3AED9 /* PBXTargetDependency */ = { 299 | isa = PBXTargetDependency; 300 | target = FED61F481B1979A700D3AED9 /* DemoSKTaskManager */; 301 | targetProxy = FED61F631B1979A700D3AED9 /* PBXContainerItemProxy */; 302 | }; 303 | /* End PBXTargetDependency section */ 304 | 305 | /* Begin PBXVariantGroup section */ 306 | FED61F561B1979A700D3AED9 /* Main.storyboard */ = { 307 | isa = PBXVariantGroup; 308 | children = ( 309 | FED61F571B1979A700D3AED9 /* Base */, 310 | ); 311 | name = Main.storyboard; 312 | sourceTree = ""; 313 | }; 314 | FED61F5B1B1979A700D3AED9 /* LaunchScreen.xib */ = { 315 | isa = PBXVariantGroup; 316 | children = ( 317 | FED61F5C1B1979A700D3AED9 /* Base */, 318 | ); 319 | name = LaunchScreen.xib; 320 | sourceTree = ""; 321 | }; 322 | /* End PBXVariantGroup section */ 323 | 324 | /* Begin XCBuildConfiguration section */ 325 | FED61F6A1B1979A700D3AED9 /* Debug */ = { 326 | isa = XCBuildConfiguration; 327 | buildSettings = { 328 | ALWAYS_SEARCH_USER_PATHS = NO; 329 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 330 | CLANG_CXX_LIBRARY = "libc++"; 331 | CLANG_ENABLE_MODULES = YES; 332 | CLANG_ENABLE_OBJC_ARC = YES; 333 | CLANG_WARN_BOOL_CONVERSION = YES; 334 | CLANG_WARN_CONSTANT_CONVERSION = YES; 335 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 336 | CLANG_WARN_EMPTY_BODY = YES; 337 | CLANG_WARN_ENUM_CONVERSION = YES; 338 | CLANG_WARN_INT_CONVERSION = YES; 339 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 340 | CLANG_WARN_UNREACHABLE_CODE = YES; 341 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 342 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 343 | COPY_PHASE_STRIP = NO; 344 | ENABLE_STRICT_OBJC_MSGSEND = YES; 345 | GCC_C_LANGUAGE_STANDARD = gnu99; 346 | GCC_DYNAMIC_NO_PIC = NO; 347 | GCC_OPTIMIZATION_LEVEL = 0; 348 | GCC_PREPROCESSOR_DEFINITIONS = ( 349 | "DEBUG=1", 350 | "$(inherited)", 351 | ); 352 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 353 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 354 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 355 | GCC_WARN_UNDECLARED_SELECTOR = YES; 356 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 357 | GCC_WARN_UNUSED_FUNCTION = YES; 358 | GCC_WARN_UNUSED_VARIABLE = YES; 359 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 360 | MTL_ENABLE_DEBUG_INFO = YES; 361 | ONLY_ACTIVE_ARCH = YES; 362 | SDKROOT = iphoneos; 363 | }; 364 | name = Debug; 365 | }; 366 | FED61F6B1B1979A700D3AED9 /* Release */ = { 367 | isa = XCBuildConfiguration; 368 | buildSettings = { 369 | ALWAYS_SEARCH_USER_PATHS = NO; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BOOL_CONVERSION = YES; 375 | CLANG_WARN_CONSTANT_CONVERSION = YES; 376 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 377 | CLANG_WARN_EMPTY_BODY = YES; 378 | CLANG_WARN_ENUM_CONVERSION = YES; 379 | CLANG_WARN_INT_CONVERSION = YES; 380 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 381 | CLANG_WARN_UNREACHABLE_CODE = YES; 382 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 383 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 384 | COPY_PHASE_STRIP = NO; 385 | ENABLE_NS_ASSERTIONS = NO; 386 | ENABLE_STRICT_OBJC_MSGSEND = YES; 387 | GCC_C_LANGUAGE_STANDARD = gnu99; 388 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 389 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 390 | GCC_WARN_UNDECLARED_SELECTOR = YES; 391 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 392 | GCC_WARN_UNUSED_FUNCTION = YES; 393 | GCC_WARN_UNUSED_VARIABLE = YES; 394 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 395 | MTL_ENABLE_DEBUG_INFO = NO; 396 | SDKROOT = iphoneos; 397 | VALIDATE_PRODUCT = YES; 398 | }; 399 | name = Release; 400 | }; 401 | FED61F6D1B1979A700D3AED9 /* Debug */ = { 402 | isa = XCBuildConfiguration; 403 | baseConfigurationReference = D6711BC51C4D2DFEC7765101 /* Pods.debug.xcconfig */; 404 | buildSettings = { 405 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 406 | INFOPLIST_FILE = DemoSKTaskManager/Info.plist; 407 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 408 | PRODUCT_NAME = "$(TARGET_NAME)"; 409 | }; 410 | name = Debug; 411 | }; 412 | FED61F6E1B1979A700D3AED9 /* Release */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = 4815EA4700FB42C304AFE4FD /* Pods.release.xcconfig */; 415 | buildSettings = { 416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 417 | INFOPLIST_FILE = DemoSKTaskManager/Info.plist; 418 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | }; 421 | name = Release; 422 | }; 423 | FED61F701B1979A700D3AED9 /* Debug */ = { 424 | isa = XCBuildConfiguration; 425 | buildSettings = { 426 | BUNDLE_LOADER = "$(TEST_HOST)"; 427 | FRAMEWORK_SEARCH_PATHS = ( 428 | "$(SDKROOT)/Developer/Library/Frameworks", 429 | "$(inherited)", 430 | ); 431 | GCC_PREPROCESSOR_DEFINITIONS = ( 432 | "DEBUG=1", 433 | "$(inherited)", 434 | ); 435 | INFOPLIST_FILE = DemoSKTaskManagerTests/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 437 | PRODUCT_NAME = "$(TARGET_NAME)"; 438 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DemoSKTaskManager.app/DemoSKTaskManager"; 439 | }; 440 | name = Debug; 441 | }; 442 | FED61F711B1979A700D3AED9 /* Release */ = { 443 | isa = XCBuildConfiguration; 444 | buildSettings = { 445 | BUNDLE_LOADER = "$(TEST_HOST)"; 446 | FRAMEWORK_SEARCH_PATHS = ( 447 | "$(SDKROOT)/Developer/Library/Frameworks", 448 | "$(inherited)", 449 | ); 450 | INFOPLIST_FILE = DemoSKTaskManagerTests/Info.plist; 451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DemoSKTaskManager.app/DemoSKTaskManager"; 454 | }; 455 | name = Release; 456 | }; 457 | /* End XCBuildConfiguration section */ 458 | 459 | /* Begin XCConfigurationList section */ 460 | FED61F441B1979A700D3AED9 /* Build configuration list for PBXProject "DemoSKTaskManager" */ = { 461 | isa = XCConfigurationList; 462 | buildConfigurations = ( 463 | FED61F6A1B1979A700D3AED9 /* Debug */, 464 | FED61F6B1B1979A700D3AED9 /* Release */, 465 | ); 466 | defaultConfigurationIsVisible = 0; 467 | defaultConfigurationName = Release; 468 | }; 469 | FED61F6C1B1979A700D3AED9 /* Build configuration list for PBXNativeTarget "DemoSKTaskManager" */ = { 470 | isa = XCConfigurationList; 471 | buildConfigurations = ( 472 | FED61F6D1B1979A700D3AED9 /* Debug */, 473 | FED61F6E1B1979A700D3AED9 /* Release */, 474 | ); 475 | defaultConfigurationIsVisible = 0; 476 | defaultConfigurationName = Release; 477 | }; 478 | FED61F6F1B1979A700D3AED9 /* Build configuration list for PBXNativeTarget "DemoSKTaskManagerTests" */ = { 479 | isa = XCConfigurationList; 480 | buildConfigurations = ( 481 | FED61F701B1979A700D3AED9 /* Debug */, 482 | FED61F711B1979A700D3AED9 /* Release */, 483 | ); 484 | defaultConfigurationIsVisible = 0; 485 | defaultConfigurationName = Release; 486 | }; 487 | /* End XCConfigurationList section */ 488 | }; 489 | rootObject = FED61F411B1979A700D3AED9 /* Project object */; 490 | } 491 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DemoSKTaskManager 4 | // 5 | // Created by Sunil on 5/30/15. 6 | // Copyright (c) 2015 Sunil. 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 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // DemoSKTaskManager 4 | // 5 | // Created by Sunil on 5/30/15. 6 | // Copyright (c) 2015 Sunil. 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 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager/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 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager/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 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager/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 | } -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.test.$(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 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DemoSKTaskManager 4 | // 5 | // Created by Sunil on 5/30/15. 6 | // Copyright (c) 2015 Sunil. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManager/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // DemoSKTaskManager 4 | // 5 | // Created by Sunil on 5/30/15. 6 | // Copyright (c) 2015 Sunil. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import 11 | @interface ViewController (){ 12 | 13 | } 14 | @property(nonatomic,strong) NSMutableArray *arrTasks; 15 | 16 | @end 17 | 18 | @implementation ViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | // Do any additional setup after loading the view, typically from a nib. 23 | 24 | 25 | NSMutableArray *arrURLs=[NSMutableArray new]; 26 | [arrURLs addObject:@"http://cdn.koimoi.com/wp-content/new-galleries/2012/02/Priyanka-Chopra-Wallpaper-4.jpg"]; 27 | [arrURLs addObject:@"http://bollywoodnews.rosegalaxy.com/wp-content/uploads/2013/05/Priyanka-Chopra-photoshoot-2013-15.jpg"]; 28 | [arrURLs addObject:@"http://i.huffpost.com/gen/1452721/thumbs/o-PRIYANKA-CHOPRA-900.jpg"]; 29 | [arrURLs addObject:@"http://freepressjournal.in/wp-content/uploads/2014/03/priyanka.jpg"]; 30 | [arrURLs addObject:@"http://wallpapers.filmibeat.com/ph-1024x768/2014/09/priyanka-chopra_141145173400.jpg"]; 31 | 32 | _arrTasks=[NSMutableArray new]; 33 | for (int i=0; i 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 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManagerTests/DemoSKTaskManagerTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // DemoSKTaskManagerTests.m 3 | // DemoSKTaskManagerTests 4 | // 5 | // Created by Sunil on 5/30/15. 6 | // Copyright (c) 2015 Sunil. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface DemoSKTaskManagerTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation DemoSKTaskManagerTests 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 | -------------------------------------------------------------------------------- /DemoSKTaskManager/DemoSKTaskManagerTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.test.$(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 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | 3 | platform :ios, '6.0' 4 | pod 'SKTaskManager' -------------------------------------------------------------------------------- /DemoSKTaskManager/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SKTaskManager (1.2) 3 | 4 | DEPENDENCIES: 5 | - SKTaskManager 6 | 7 | SPEC CHECKSUMS: 8 | SKTaskManager: a874a9e412d0262a79da6938cdb10a4a241702f2 9 | 10 | COCOAPODS: 0.37.2 11 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Headers/Private/SKTaskManager/SKTask.h: -------------------------------------------------------------------------------- 1 | ../../../SKTaskManager/SKTaskManager/SKTask.h -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Headers/Private/SKTaskManager/SKTaskManager.h: -------------------------------------------------------------------------------- 1 | ../../../SKTaskManager/SKTaskManager/SKTaskManager.h -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Headers/Public/SKTaskManager/SKTask.h: -------------------------------------------------------------------------------- 1 | ../../../SKTaskManager/SKTaskManager/SKTask.h -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Headers/Public/SKTaskManager/SKTaskManager.h: -------------------------------------------------------------------------------- 1 | ../../../SKTaskManager/SKTaskManager/SKTaskManager.h -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SKTaskManager (1.2) 3 | 4 | DEPENDENCIES: 5 | - SKTaskManager 6 | 7 | SPEC CHECKSUMS: 8 | SKTaskManager: a874a9e412d0262a79da6938cdb10a4a241702f2 9 | 10 | COCOAPODS: 0.37.2 11 | -------------------------------------------------------------------------------- /DemoSKTaskManager/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 | 0BB01841FFA074DDD8D5B0CE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96EA984C35EA97C7ED4AD41A /* Foundation.framework */; }; 11 | 5930A113952EB578683D03DB /* Pods-SKTaskManager-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B2F4ED3EC35160C5A182B067 /* Pods-SKTaskManager-dummy.m */; }; 12 | 5E7C271BF26CDEA7EE37DF53 /* SKTask.m in Sources */ = {isa = PBXBuildFile; fileRef = 381F860D7289483576112DAB /* SKTask.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; 13 | 79FFA6F6DFD103B256DB25AF /* Pods-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 77CE4473D06937CBEFD93BC1 /* Pods-dummy.m */; }; 14 | B8C7F171B9FB3410F547E3C7 /* SKTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C1B8389D38813EA0E52D9A3 /* SKTask.h */; }; 15 | CC04CE97B81645190A44122A /* SKTaskManager.m in Sources */ = {isa = PBXBuildFile; fileRef = F7775B30C5811F4D0914E8CC /* SKTaskManager.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; 16 | D33B3C3212AEA5D9A5A49DAB /* SKTaskManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 9F7B08154C0DF02403769958 /* SKTaskManager.h */; }; 17 | F44A546BD5A3FFE32AE7AC9D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96EA984C35EA97C7ED4AD41A /* Foundation.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 5345BCD86737DE1639945E0A /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 21BCFFE857566B4B2395D6B4 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = DDBA3D6C7383298CA4CE4427; 26 | remoteInfo = "Pods-SKTaskManager"; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 01A23D92DCB3022BCB69607C /* Pods-SKTaskManager.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SKTaskManager.xcconfig"; sourceTree = ""; }; 32 | 04184930529CEF30D4E697A1 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.release.xcconfig; sourceTree = ""; }; 33 | 2A472C1AF48C30F7337887DF /* Pods-environment.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-environment.h"; sourceTree = ""; }; 34 | 381F860D7289483576112DAB /* SKTask.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SKTask.m; path = SKTaskManager/SKTask.m; sourceTree = ""; }; 35 | 42F6BD0EAB4B35133CCE60F4 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.debug.xcconfig; sourceTree = ""; }; 36 | 4C7DD2CEA92F2EAB1E11DD9B /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 37 | 5C1B8389D38813EA0E52D9A3 /* SKTask.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SKTask.h; path = SKTaskManager/SKTask.h; sourceTree = ""; }; 38 | 66AFDE0FF28A1D8C66EC3D6C /* Pods-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-acknowledgements.markdown"; sourceTree = ""; }; 39 | 77CE4473D06937CBEFD93BC1 /* Pods-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-dummy.m"; sourceTree = ""; }; 40 | 795DAEC8086C6B11C6A9ADA7 /* Pods-SKTaskManager-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SKTaskManager-prefix.pch"; sourceTree = ""; }; 41 | 96EA984C35EA97C7ED4AD41A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 42 | 9F7B08154C0DF02403769958 /* SKTaskManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SKTaskManager.h; path = SKTaskManager/SKTaskManager.h; sourceTree = ""; }; 43 | A12E5EDEE226157EA1A9F966 /* libPods-SKTaskManager.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SKTaskManager.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | B0DA5ED4405D4036AC88DFC8 /* Pods-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-acknowledgements.plist"; sourceTree = ""; }; 45 | B2F4ED3EC35160C5A182B067 /* Pods-SKTaskManager-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SKTaskManager-dummy.m"; sourceTree = ""; }; 46 | BD84EB1F71F37B84AA4EF670 /* Pods-SKTaskManager-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SKTaskManager-Private.xcconfig"; sourceTree = ""; }; 47 | E3687E27DE2B6CE2B393198A /* Pods-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-resources.sh"; sourceTree = ""; }; 48 | E567BEBA118F2AFC62FD8D10 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | F7775B30C5811F4D0914E8CC /* SKTaskManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = SKTaskManager.m; path = SKTaskManager/SKTaskManager.m; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 8DEDC48067F47F065A6F585A /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | F44A546BD5A3FFE32AE7AC9D /* Foundation.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | BECE8F3857FD48A2313FF412 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 0BB01841FFA074DDD8D5B0CE /* Foundation.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 0AD97C0E6E1F0F59ED4622B1 /* Support Files */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 01A23D92DCB3022BCB69607C /* Pods-SKTaskManager.xcconfig */, 76 | BD84EB1F71F37B84AA4EF670 /* Pods-SKTaskManager-Private.xcconfig */, 77 | B2F4ED3EC35160C5A182B067 /* Pods-SKTaskManager-dummy.m */, 78 | 795DAEC8086C6B11C6A9ADA7 /* Pods-SKTaskManager-prefix.pch */, 79 | ); 80 | name = "Support Files"; 81 | path = "../Target Support Files/Pods-SKTaskManager"; 82 | sourceTree = ""; 83 | }; 84 | 3542C1FF8EFD86640B59A2CB /* Targets Support Files */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | A0E9761D28C4D6CCF6BA457C /* Pods */, 88 | ); 89 | name = "Targets Support Files"; 90 | sourceTree = ""; 91 | }; 92 | 379A4AD1EFBDDC81BC1422B6 /* Pods */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 3ED0459972883A7E552B1169 /* SKTaskManager */, 96 | ); 97 | name = Pods; 98 | sourceTree = ""; 99 | }; 100 | 3B3E11CC3B5E77CB39A07D40 = { 101 | isa = PBXGroup; 102 | children = ( 103 | 4C7DD2CEA92F2EAB1E11DD9B /* Podfile */, 104 | E0E0898D4F4964587CD9F89C /* Frameworks */, 105 | 379A4AD1EFBDDC81BC1422B6 /* Pods */, 106 | 66BE4EDD8E2A913F3E05BF63 /* Products */, 107 | 3542C1FF8EFD86640B59A2CB /* Targets Support Files */, 108 | ); 109 | sourceTree = ""; 110 | }; 111 | 3ED0459972883A7E552B1169 /* SKTaskManager */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 5C1B8389D38813EA0E52D9A3 /* SKTask.h */, 115 | 381F860D7289483576112DAB /* SKTask.m */, 116 | 9F7B08154C0DF02403769958 /* SKTaskManager.h */, 117 | F7775B30C5811F4D0914E8CC /* SKTaskManager.m */, 118 | 0AD97C0E6E1F0F59ED4622B1 /* Support Files */, 119 | ); 120 | path = SKTaskManager; 121 | sourceTree = ""; 122 | }; 123 | 66BE4EDD8E2A913F3E05BF63 /* Products */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | E567BEBA118F2AFC62FD8D10 /* libPods.a */, 127 | A12E5EDEE226157EA1A9F966 /* libPods-SKTaskManager.a */, 128 | ); 129 | name = Products; 130 | sourceTree = ""; 131 | }; 132 | 901F1B7F9D31811EB033ACFB /* iOS */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 96EA984C35EA97C7ED4AD41A /* Foundation.framework */, 136 | ); 137 | name = iOS; 138 | sourceTree = ""; 139 | }; 140 | A0E9761D28C4D6CCF6BA457C /* Pods */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 66AFDE0FF28A1D8C66EC3D6C /* Pods-acknowledgements.markdown */, 144 | B0DA5ED4405D4036AC88DFC8 /* Pods-acknowledgements.plist */, 145 | 77CE4473D06937CBEFD93BC1 /* Pods-dummy.m */, 146 | 2A472C1AF48C30F7337887DF /* Pods-environment.h */, 147 | E3687E27DE2B6CE2B393198A /* Pods-resources.sh */, 148 | 42F6BD0EAB4B35133CCE60F4 /* Pods.debug.xcconfig */, 149 | 04184930529CEF30D4E697A1 /* Pods.release.xcconfig */, 150 | ); 151 | name = Pods; 152 | path = "Target Support Files/Pods"; 153 | sourceTree = ""; 154 | }; 155 | E0E0898D4F4964587CD9F89C /* Frameworks */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 901F1B7F9D31811EB033ACFB /* iOS */, 159 | ); 160 | name = Frameworks; 161 | sourceTree = ""; 162 | }; 163 | /* End PBXGroup section */ 164 | 165 | /* Begin PBXHeadersBuildPhase section */ 166 | 2A2F1EC44D1C44459527B028 /* Headers */ = { 167 | isa = PBXHeadersBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | B8C7F171B9FB3410F547E3C7 /* SKTask.h in Headers */, 171 | D33B3C3212AEA5D9A5A49DAB /* SKTaskManager.h in Headers */, 172 | ); 173 | runOnlyForDeploymentPostprocessing = 0; 174 | }; 175 | /* End PBXHeadersBuildPhase section */ 176 | 177 | /* Begin PBXNativeTarget section */ 178 | 95F9A6EDC86AB8FD7ECF8DE0 /* Pods */ = { 179 | isa = PBXNativeTarget; 180 | buildConfigurationList = 8872EF41EC124EFDDF122B70 /* Build configuration list for PBXNativeTarget "Pods" */; 181 | buildPhases = ( 182 | F15D944DAC6DF215FD10DB3E /* Sources */, 183 | 8DEDC48067F47F065A6F585A /* Frameworks */, 184 | ); 185 | buildRules = ( 186 | ); 187 | dependencies = ( 188 | B12154782113401BE1678A03 /* PBXTargetDependency */, 189 | ); 190 | name = Pods; 191 | productName = Pods; 192 | productReference = E567BEBA118F2AFC62FD8D10 /* libPods.a */; 193 | productType = "com.apple.product-type.library.static"; 194 | }; 195 | DDBA3D6C7383298CA4CE4427 /* Pods-SKTaskManager */ = { 196 | isa = PBXNativeTarget; 197 | buildConfigurationList = 42F9F33B3BF2FD3E413C75CB /* Build configuration list for PBXNativeTarget "Pods-SKTaskManager" */; 198 | buildPhases = ( 199 | CF5D7A16FA85FC3B11C1C786 /* Sources */, 200 | BECE8F3857FD48A2313FF412 /* Frameworks */, 201 | 2A2F1EC44D1C44459527B028 /* Headers */, 202 | ); 203 | buildRules = ( 204 | ); 205 | dependencies = ( 206 | ); 207 | name = "Pods-SKTaskManager"; 208 | productName = "Pods-SKTaskManager"; 209 | productReference = A12E5EDEE226157EA1A9F966 /* libPods-SKTaskManager.a */; 210 | productType = "com.apple.product-type.library.static"; 211 | }; 212 | /* End PBXNativeTarget section */ 213 | 214 | /* Begin PBXProject section */ 215 | 21BCFFE857566B4B2395D6B4 /* Project object */ = { 216 | isa = PBXProject; 217 | attributes = { 218 | LastUpgradeCheck = 0640; 219 | }; 220 | buildConfigurationList = 7CCFF7F5444CD16D85510E8F /* Build configuration list for PBXProject "Pods" */; 221 | compatibilityVersion = "Xcode 3.2"; 222 | developmentRegion = English; 223 | hasScannedForEncodings = 0; 224 | knownRegions = ( 225 | en, 226 | ); 227 | mainGroup = 3B3E11CC3B5E77CB39A07D40; 228 | productRefGroup = 66BE4EDD8E2A913F3E05BF63 /* Products */; 229 | projectDirPath = ""; 230 | projectRoot = ""; 231 | targets = ( 232 | 95F9A6EDC86AB8FD7ECF8DE0 /* Pods */, 233 | DDBA3D6C7383298CA4CE4427 /* Pods-SKTaskManager */, 234 | ); 235 | }; 236 | /* End PBXProject section */ 237 | 238 | /* Begin PBXSourcesBuildPhase section */ 239 | CF5D7A16FA85FC3B11C1C786 /* Sources */ = { 240 | isa = PBXSourcesBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | 5930A113952EB578683D03DB /* Pods-SKTaskManager-dummy.m in Sources */, 244 | 5E7C271BF26CDEA7EE37DF53 /* SKTask.m in Sources */, 245 | CC04CE97B81645190A44122A /* SKTaskManager.m in Sources */, 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | F15D944DAC6DF215FD10DB3E /* Sources */ = { 250 | isa = PBXSourcesBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | 79FFA6F6DFD103B256DB25AF /* Pods-dummy.m in Sources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | /* End PBXSourcesBuildPhase section */ 258 | 259 | /* Begin PBXTargetDependency section */ 260 | B12154782113401BE1678A03 /* PBXTargetDependency */ = { 261 | isa = PBXTargetDependency; 262 | name = "Pods-SKTaskManager"; 263 | target = DDBA3D6C7383298CA4CE4427 /* Pods-SKTaskManager */; 264 | targetProxy = 5345BCD86737DE1639945E0A /* PBXContainerItemProxy */; 265 | }; 266 | /* End PBXTargetDependency section */ 267 | 268 | /* Begin XCBuildConfiguration section */ 269 | 06D7B5CD761A8A05FC2B9E0C /* Debug */ = { 270 | isa = XCBuildConfiguration; 271 | baseConfigurationReference = 42F6BD0EAB4B35133CCE60F4 /* Pods.debug.xcconfig */; 272 | buildSettings = { 273 | ENABLE_STRICT_OBJC_MSGSEND = YES; 274 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 275 | MTL_ENABLE_DEBUG_INFO = YES; 276 | OTHER_LDFLAGS = ""; 277 | OTHER_LIBTOOLFLAGS = ""; 278 | PODS_ROOT = "$(SRCROOT)"; 279 | PRODUCT_NAME = "$(TARGET_NAME)"; 280 | SDKROOT = iphoneos; 281 | SKIP_INSTALL = YES; 282 | }; 283 | name = Debug; 284 | }; 285 | 142B6B8F1AEEE0B93AAE0182 /* Release */ = { 286 | isa = XCBuildConfiguration; 287 | buildSettings = { 288 | ALWAYS_SEARCH_USER_PATHS = NO; 289 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 290 | CLANG_CXX_LIBRARY = "libc++"; 291 | CLANG_ENABLE_MODULES = YES; 292 | CLANG_ENABLE_OBJC_ARC = YES; 293 | CLANG_WARN_BOOL_CONVERSION = YES; 294 | CLANG_WARN_CONSTANT_CONVERSION = YES; 295 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 296 | CLANG_WARN_EMPTY_BODY = YES; 297 | CLANG_WARN_ENUM_CONVERSION = YES; 298 | CLANG_WARN_INT_CONVERSION = YES; 299 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 300 | CLANG_WARN_UNREACHABLE_CODE = YES; 301 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 302 | COPY_PHASE_STRIP = YES; 303 | ENABLE_NS_ASSERTIONS = NO; 304 | GCC_C_LANGUAGE_STANDARD = gnu99; 305 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 307 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 308 | GCC_WARN_UNDECLARED_SELECTOR = YES; 309 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 310 | GCC_WARN_UNUSED_FUNCTION = YES; 311 | GCC_WARN_UNUSED_VARIABLE = YES; 312 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 313 | STRIP_INSTALLED_PRODUCT = NO; 314 | SYMROOT = "${SRCROOT}/../build"; 315 | VALIDATE_PRODUCT = YES; 316 | }; 317 | name = Release; 318 | }; 319 | 81932EAF574CE32D4B8ACD83 /* Release */ = { 320 | isa = XCBuildConfiguration; 321 | baseConfigurationReference = BD84EB1F71F37B84AA4EF670 /* Pods-SKTaskManager-Private.xcconfig */; 322 | buildSettings = { 323 | ENABLE_STRICT_OBJC_MSGSEND = YES; 324 | GCC_PREFIX_HEADER = "Target Support Files/Pods-SKTaskManager/Pods-SKTaskManager-prefix.pch"; 325 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 326 | MTL_ENABLE_DEBUG_INFO = NO; 327 | OTHER_LDFLAGS = ""; 328 | OTHER_LIBTOOLFLAGS = ""; 329 | PRODUCT_NAME = "$(TARGET_NAME)"; 330 | SDKROOT = iphoneos; 331 | SKIP_INSTALL = YES; 332 | }; 333 | name = Release; 334 | }; 335 | ADF7691CF7EF732F3B9FDE9B /* Release */ = { 336 | isa = XCBuildConfiguration; 337 | baseConfigurationReference = 04184930529CEF30D4E697A1 /* Pods.release.xcconfig */; 338 | buildSettings = { 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 341 | MTL_ENABLE_DEBUG_INFO = NO; 342 | OTHER_LDFLAGS = ""; 343 | OTHER_LIBTOOLFLAGS = ""; 344 | PODS_ROOT = "$(SRCROOT)"; 345 | PRODUCT_NAME = "$(TARGET_NAME)"; 346 | SDKROOT = iphoneos; 347 | SKIP_INSTALL = YES; 348 | }; 349 | name = Release; 350 | }; 351 | C2A9F1BA5B6A6A9C43F1CFF9 /* Debug */ = { 352 | isa = XCBuildConfiguration; 353 | buildSettings = { 354 | ALWAYS_SEARCH_USER_PATHS = NO; 355 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 356 | CLANG_CXX_LIBRARY = "libc++"; 357 | CLANG_ENABLE_MODULES = YES; 358 | CLANG_ENABLE_OBJC_ARC = YES; 359 | CLANG_WARN_BOOL_CONVERSION = YES; 360 | CLANG_WARN_CONSTANT_CONVERSION = YES; 361 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 362 | CLANG_WARN_EMPTY_BODY = YES; 363 | CLANG_WARN_ENUM_CONVERSION = YES; 364 | CLANG_WARN_INT_CONVERSION = YES; 365 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 366 | CLANG_WARN_UNREACHABLE_CODE = YES; 367 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 368 | COPY_PHASE_STRIP = NO; 369 | GCC_C_LANGUAGE_STANDARD = gnu99; 370 | GCC_DYNAMIC_NO_PIC = NO; 371 | GCC_OPTIMIZATION_LEVEL = 0; 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 377 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 378 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 379 | GCC_WARN_UNDECLARED_SELECTOR = YES; 380 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 381 | GCC_WARN_UNUSED_FUNCTION = YES; 382 | GCC_WARN_UNUSED_VARIABLE = YES; 383 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 384 | ONLY_ACTIVE_ARCH = YES; 385 | STRIP_INSTALLED_PRODUCT = NO; 386 | SYMROOT = "${SRCROOT}/../build"; 387 | }; 388 | name = Debug; 389 | }; 390 | F7097C0BBDDE4D909FF6CDF9 /* Debug */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = BD84EB1F71F37B84AA4EF670 /* Pods-SKTaskManager-Private.xcconfig */; 393 | buildSettings = { 394 | ENABLE_STRICT_OBJC_MSGSEND = YES; 395 | GCC_PREFIX_HEADER = "Target Support Files/Pods-SKTaskManager/Pods-SKTaskManager-prefix.pch"; 396 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 397 | MTL_ENABLE_DEBUG_INFO = YES; 398 | OTHER_LDFLAGS = ""; 399 | OTHER_LIBTOOLFLAGS = ""; 400 | PRODUCT_NAME = "$(TARGET_NAME)"; 401 | SDKROOT = iphoneos; 402 | SKIP_INSTALL = YES; 403 | }; 404 | name = Debug; 405 | }; 406 | /* End XCBuildConfiguration section */ 407 | 408 | /* Begin XCConfigurationList section */ 409 | 42F9F33B3BF2FD3E413C75CB /* Build configuration list for PBXNativeTarget "Pods-SKTaskManager" */ = { 410 | isa = XCConfigurationList; 411 | buildConfigurations = ( 412 | F7097C0BBDDE4D909FF6CDF9 /* Debug */, 413 | 81932EAF574CE32D4B8ACD83 /* Release */, 414 | ); 415 | defaultConfigurationIsVisible = 0; 416 | defaultConfigurationName = Release; 417 | }; 418 | 7CCFF7F5444CD16D85510E8F /* Build configuration list for PBXProject "Pods" */ = { 419 | isa = XCConfigurationList; 420 | buildConfigurations = ( 421 | C2A9F1BA5B6A6A9C43F1CFF9 /* Debug */, 422 | 142B6B8F1AEEE0B93AAE0182 /* Release */, 423 | ); 424 | defaultConfigurationIsVisible = 0; 425 | defaultConfigurationName = Release; 426 | }; 427 | 8872EF41EC124EFDDF122B70 /* Build configuration list for PBXNativeTarget "Pods" */ = { 428 | isa = XCConfigurationList; 429 | buildConfigurations = ( 430 | 06D7B5CD761A8A05FC2B9E0C /* Debug */, 431 | ADF7691CF7EF732F3B9FDE9B /* Release */, 432 | ); 433 | defaultConfigurationIsVisible = 0; 434 | defaultConfigurationName = Release; 435 | }; 436 | /* End XCConfigurationList section */ 437 | }; 438 | rootObject = 21BCFFE857566B4B2395D6B4 /* Project object */; 439 | } 440 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/SKTaskManager/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 SunilSpaceo 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/SKTaskManager/README.md: -------------------------------------------------------------------------------- 1 | # SKTaskManager 2 | 3 | [![CI Status](http://img.shields.io/travis/SunilSpaceo/SKTaskManager.svg?style=flat)](https://travis-ci.org/SunilSpaceo/SKTaskManager) 4 | [![Version](https://img.shields.io/cocoapods/v/SKTaskManager.svg?style=flat)](http://cocoapods.org/pods/SKTaskManager) 5 | [![License](https://img.shields.io/cocoapods/l/SKTaskManager.svg?style=flat)](http://cocoapods.org/pods/SKTaskManager) 6 | [![Platform](https://img.shields.io/cocoapods/p/SKTaskManager.svg?style=flat)](http://cocoapods.org/pods/SKTaskManager) 7 | 8 | ## Usage 9 | 10 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 11 | 12 | ## Requirements 13 | 14 | ## Installation 15 | 16 | SKTaskManager is available through [CocoaPods](http://cocoapods.org). To install 17 | it, simply add the following line to your Podfile: 18 | 19 | ```ruby 20 | pod "SKTaskManager" 21 | ``` 22 | 23 | ## Author 24 | 25 | SunilSpaceo, sunil@spaceotechnologies.com 26 | 27 | ## License 28 | 29 | SKTaskManager is available under the MIT license. See the LICENSE file for more info. 30 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/SKTaskManager/SKTaskManager/SKTask.h: -------------------------------------------------------------------------------- 1 | // 2 | // SKTask.h 3 | // StorageDemo 4 | // 5 | // Created by Sunil on 5/18/15. 6 | // Copyright (c) 2015 SpaceO. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef void(^BlockTaskCompletion)(id result); 12 | typedef void(^BlockTask)(id result, BlockTaskCompletion completion); 13 | 14 | @interface SKTask : NSObject{ 15 | 16 | 17 | } 18 | @property(copy) BlockTask blockTask; 19 | +(SKTask*)taskWithBlock:(BlockTask)blockTask; 20 | @end 21 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/SKTaskManager/SKTaskManager/SKTask.m: -------------------------------------------------------------------------------- 1 | // 2 | // SKTask.m 3 | // StorageDemo 4 | // 5 | // Created by Sunil on 5/18/15. 6 | // Copyright (c) 2015 SpaceO. All rights reserved. 7 | // 8 | 9 | #import "SKTask.h" 10 | 11 | @implementation SKTask 12 | 13 | //---create task with its execution block and set completion block 14 | +(SKTask*)taskWithBlock:(BlockTask)blockTask{ 15 | 16 | SKTask *task=[[SKTask alloc] init]; 17 | task.blockTask=blockTask; 18 | return task; 19 | } 20 | @end 21 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/SKTaskManager/SKTaskManager/SKTaskManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // SKTask.h 3 | // StorageDemo 4 | // 5 | // Created by Sunil on 5/18/15. 6 | // Copyright (c) 2015 SpaceO. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SKTask.h" 11 | 12 | @interface SKTaskManager : NSObject 13 | 14 | +(void)sequenceOperations:(NSMutableArray*)arrOperation completion:(void(^)(void))completion; 15 | +(void)parallerOperations:(NSMutableArray*)arrOperation completion:(void(^)(void))completion; 16 | @end 17 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/SKTaskManager/SKTaskManager/SKTaskManager.m: -------------------------------------------------------------------------------- 1 | // 2 | // SKTask.m 3 | // StorageDemo 4 | // 5 | // Created by Sunil on 5/18/15. 6 | // Copyright (c) 2015 SpaceO. All rights reserved. 7 | // 8 | 9 | #import "SKTaskManager.h" 10 | @implementation SKTaskManager 11 | 12 | +(void)sequenceOperations:(NSMutableArray*)arrOperation completion:(void(^)(void))completion{ 13 | 14 | if (arrOperation.count) { 15 | SKTask *task=(SKTask*)[arrOperation firstObject]; 16 | if ([task isKindOfClass:[SKTask class]]) { 17 | 18 | task.blockTask(nil,^(id BlockTaskCompletion){ 19 | //this block get called when task completed 20 | [arrOperation removeObjectAtIndex:0]; 21 | [SKTaskManager sequenceOperations:arrOperation completion:completion]; 22 | 23 | }); 24 | } 25 | }else{ 26 | if (completion) { 27 | completion(); 28 | } 29 | } 30 | } 31 | +(void)parallerOperations:(NSMutableArray*)arrOperation completion:(void(^)(void))completion{ 32 | 33 | NSMutableArray *arrTaskRunning=[arrOperation mutableCopy]; 34 | if (arrOperation.count) { 35 | for (int i=0; i 2 | @interface PodsDummy_Pods_SKTaskManager : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SKTaskManager 5 | @end 6 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods-SKTaskManager/Pods-SKTaskManager-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-environment.h" 6 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods-SKTaskManager/Pods-SKTaskManager.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suniliosdev/SKTaskManager/5528c28752d733cb426ede2f74cb583fa0799f7c/DemoSKTaskManager/Pods/Target Support Files/Pods-SKTaskManager/Pods-SKTaskManager.xcconfig -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SKTaskManager 5 | 6 | Copyright (c) 2015 SunilSpaceo 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods/Pods-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 | Copyright (c) 2015 SunilSpaceo <sunil@spaceotechnologies.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | SKTaskManager 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods/Pods-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods : NSObject 3 | @end 4 | @implementation PodsDummy_Pods 5 | @end 6 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods/Pods-environment.h: -------------------------------------------------------------------------------- 1 | 2 | // To check if a library is compiled with CocoaPods you 3 | // can use the `COCOAPODS` macro definition which is 4 | // defined in the xcconfigs so it is available in 5 | // headers also when they are imported in the client 6 | // project. 7 | 8 | 9 | // SKTaskManager 10 | #define COCOAPODS_POD_AVAILABLE_SKTaskManager 11 | #define COCOAPODS_VERSION_MAJOR_SKTaskManager 1 12 | #define COCOAPODS_VERSION_MINOR_SKTaskManager 2 13 | #define COCOAPODS_VERSION_PATCH_SKTaskManager 0 14 | 15 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods/Pods-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_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 | realpath() { 12 | DIRECTORY=$(cd "${1%/*}" && pwd) 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | if [[ "${ACTION}" == "install" ]]; then 63 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 64 | fi 65 | rm -f "$RESOURCES_TO_COPY" 66 | 67 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 68 | then 69 | case "${TARGETED_DEVICE_FAMILY}" in 70 | 1,2) 71 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 72 | ;; 73 | 1) 74 | TARGET_DEVICE_ARGS="--target-device iphone" 75 | ;; 76 | 2) 77 | TARGET_DEVICE_ARGS="--target-device ipad" 78 | ;; 79 | *) 80 | TARGET_DEVICE_ARGS="--target-device mac" 81 | ;; 82 | esac 83 | 84 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 85 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 86 | while read line; do 87 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 88 | XCASSET_FILES+=("$line") 89 | fi 90 | done <<<"$OTHER_XCASSETS" 91 | 92 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 93 | fi 94 | -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods/Pods.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/SKTaskManager" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/SKTaskManager" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-SKTaskManager" 5 | OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /DemoSKTaskManager/Pods/Target Support Files/Pods/Pods.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/SKTaskManager" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/SKTaskManager" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-SKTaskManager" 5 | OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 SunilSpaceo 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SKTaskManager 2 | 3 | [![CI Status](http://img.shields.io/travis/SunilSpaceo/SKTaskManager.svg?style=flat)](https://travis-ci.org/SunilSpaceo/SKTaskManager) 4 | [![Version](https://img.shields.io/cocoapods/v/SKTaskManager.svg?style=flat)](http://cocoapods.org/pods/SKTaskManager) 5 | [![License](https://img.shields.io/cocoapods/l/SKTaskManager.svg?style=flat)](http://cocoapods.org/pods/SKTaskManager) 6 | [![Platform](https://img.shields.io/cocoapods/p/SKTaskManager.svg?style=flat)](http://cocoapods.org/pods/SKTaskManager) 7 | 8 | ## Usage 9 | 10 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 11 | 12 | ## Requirements 13 | 14 | ## Installation 15 | 16 | SKTaskManager is available through [CocoaPods](http://cocoapods.org). To install 17 | it, simply add the following line to your Podfile: 18 | 19 | ```ruby 20 | pod "SKTaskManager" 21 | ``` 22 | 23 | ## Author 24 | 25 | SunilSpaceo, sunil@spaceotechnologies.com 26 | 27 | ## License 28 | 29 | SKTaskManager is available under the MIT license. See the LICENSE file for more info. 30 | -------------------------------------------------------------------------------- /SKTaskManager.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint SKTaskManager.podspec' to ensure this is a 3 | # valid spec and remove all comments before submitting the spec. 4 | # 5 | # Any lines starting with a # are optional, but encouraged 6 | # 7 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 8 | # 9 | 10 | Pod::Spec.new do |s| 11 | s.name = "SKTaskManager" 12 | s.version = "1.2" 13 | s.summary = "Now its easy to manage asynchronous task whether its is sequential or parallel." 14 | s.homepage = "https://github.com/SunilSpaceo/SKTaskManager" 15 | s.license = 'MIT' 16 | s.author = { "SunilSpaceo" => "sunil@spaceotechnologies.com" } 17 | s.source = { :git => "https://github.com/SunilSpaceo/SKTaskManager.git", :tag => '1.2' } 18 | s.platform = :ios, '5.0' 19 | s.requires_arc = true 20 | s.source_files = 'SKTaskManager/*' 21 | end 22 | -------------------------------------------------------------------------------- /SKTaskManager/SKTask.h: -------------------------------------------------------------------------------- 1 | // 2 | // SKTask.h 3 | // StorageDemo 4 | // 5 | // Created by Sunil on 5/18/15. 6 | // Copyright (c) 2015 SpaceO. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef void(^BlockTaskCompletion)(id result); 12 | typedef void(^BlockTask)(id result, BlockTaskCompletion completion); 13 | 14 | @interface SKTask : NSObject{ 15 | 16 | 17 | } 18 | @property(copy) BlockTask blockTask; 19 | +(SKTask*)taskWithBlock:(BlockTask)blockTask; 20 | @end 21 | -------------------------------------------------------------------------------- /SKTaskManager/SKTask.m: -------------------------------------------------------------------------------- 1 | // 2 | // SKTask.m 3 | // StorageDemo 4 | // 5 | // Created by Sunil on 5/18/15. 6 | // Copyright (c) 2015 SpaceO. All rights reserved. 7 | // 8 | 9 | #import "SKTask.h" 10 | 11 | @implementation SKTask 12 | 13 | //---create task with its execution block and set completion block 14 | +(SKTask*)taskWithBlock:(BlockTask)blockTask{ 15 | 16 | SKTask *task=[[SKTask alloc] init]; 17 | task.blockTask=blockTask; 18 | return task; 19 | } 20 | @end 21 | -------------------------------------------------------------------------------- /SKTaskManager/SKTaskManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // SKTask.h 3 | // StorageDemo 4 | // 5 | // Created by Sunil on 5/18/15. 6 | // Copyright (c) 2015 SpaceO. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SKTask.h" 11 | 12 | @interface SKTaskManager : NSObject 13 | 14 | +(void)sequenceOperations:(NSMutableArray*)arrOperation completion:(void(^)(void))completion; 15 | +(void)parallerOperations:(NSMutableArray*)arrOperation completion:(void(^)(void))completion; 16 | @end 17 | -------------------------------------------------------------------------------- /SKTaskManager/SKTaskManager.m: -------------------------------------------------------------------------------- 1 | // 2 | // SKTask.m 3 | // StorageDemo 4 | // 5 | // Created by Sunil on 5/18/15. 6 | // Copyright (c) 2015 SpaceO. All rights reserved. 7 | // 8 | 9 | #import "SKTaskManager.h" 10 | @implementation SKTaskManager 11 | 12 | +(void)sequenceOperations:(NSMutableArray*)arrOperation completion:(void(^)(void))completion{ 13 | 14 | if (arrOperation.count) { 15 | SKTask *task=(SKTask*)[arrOperation firstObject]; 16 | if ([task isKindOfClass:[SKTask class]]) { 17 | 18 | task.blockTask(nil,^(id BlockTaskCompletion){ 19 | //this block get called when task completed 20 | [arrOperation removeObjectAtIndex:0]; 21 | [SKTaskManager sequenceOperations:arrOperation completion:completion]; 22 | 23 | }); 24 | } 25 | }else{ 26 | if (completion) { 27 | completion(); 28 | } 29 | } 30 | } 31 | +(void)parallerOperations:(NSMutableArray*)arrOperation completion:(void(^)(void))completion{ 32 | 33 | NSMutableArray *arrTaskRunning=[arrOperation mutableCopy]; 34 | if (arrOperation.count) { 35 | for (int i=0; i