├── .gitignore ├── .travis.yml ├── Example ├── Juggernaut.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Juggernaut-Example.xcscheme ├── Juggernaut.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Juggernaut │ ├── ApplicationLayer │ │ └── AppDelegate.swift │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── BusinessLogicLayer │ │ ├── Network.swift │ │ └── NetworkImp.swift │ ├── Info.plist │ ├── Model │ │ ├── Item.swift │ │ └── Response.swift │ ├── PresentationLayer │ │ ├── Controller │ │ │ └── ItemsViewController.swift │ │ ├── Storyboard │ │ │ └── Base.lproj │ │ │ │ └── Main.storyboard │ │ └── View │ │ │ └── ItemCell.swift │ └── Resources │ │ └── Images.xcassets │ │ ├── AppIcon.appiconset │ │ ├── Apple_Watch_App_Store_1024.png │ │ ├── Apple_Watch_CompanionSettings_Notification_Conter_29@2x.png │ │ ├── Apple_Watch_CompanionSettings_Notification_Conter_29@3x.png │ │ ├── Apple_Watch_Home_Screen_40@2x.png │ │ ├── Apple_Watch_Home_Screen_44@2x.png │ │ ├── Apple_Watch_Home_Screen_50@2x.png │ │ ├── Apple_Watch_Notification_Conter_24@2x.png │ │ ├── Apple_Watch_Notification_Conter_27_5@2x.png │ │ ├── Apple_Watch_Short_Look_108@2x.png │ │ ├── Apple_Watch_Short_Look_86@2x.png │ │ ├── Apple_Watch_Short_Look_98@2x.png │ │ ├── Contents.json │ │ ├── iOS_App_Store_1024.png │ │ ├── iPad_App_76.png │ │ ├── iPad_App_76@2x.png │ │ ├── iPad_Notification_20.png │ │ ├── iPad_Notification_20@2x.png │ │ ├── iPad_Pro_App_83_5@2x.png │ │ ├── iPad_Settings_29.png │ │ ├── iPad_Settings_29@2x.png │ │ ├── iPad_Spotlight_40.png │ │ ├── iPad_Spotlight_40@2x.png │ │ ├── iPhone_App_60@2x.png │ │ ├── iPhone_App_60@3x.png │ │ ├── iPhone_Notification_20@2x.png │ │ ├── iPhone_Notification_20@3x.png │ │ ├── iPhone_Settings_29@2x.png │ │ ├── iPhone_Settings_29@3x.png │ │ ├── iPhone_Spotlight_40@2x.png │ │ └── iPhone_Spotlight_40@3x.png │ │ ├── Contents.json │ │ ├── DOCX.imageset │ │ ├── Contents.json │ │ ├── DOCX.png │ │ ├── DOCX@2x.png │ │ └── DOCX@3x.png │ │ ├── MP3.imageset │ │ ├── Contents.json │ │ ├── MP3.png │ │ ├── MP3@2x.png │ │ └── MP3@3x.png │ │ ├── MP4.imageset │ │ ├── Contents.json │ │ ├── MP4.png │ │ ├── MP4@2x.png │ │ └── MP4@3x.png │ │ └── PNG.imageset │ │ ├── Contents.json │ │ ├── PNG.png │ │ ├── PNG@2x.png │ │ └── PNG@3x.png ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── Juggernaut.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Juggernaut │ │ ├── Juggernaut-Info.plist │ │ ├── Juggernaut-dummy.m │ │ ├── Juggernaut-prefix.pch │ │ ├── Juggernaut-umbrella.h │ │ ├── Juggernaut.modulemap │ │ └── Juggernaut.xcconfig │ │ ├── Pods-Juggernaut_Example │ │ ├── Pods-Juggernaut_Example-Info.plist │ │ ├── Pods-Juggernaut_Example-acknowledgements.markdown │ │ ├── Pods-Juggernaut_Example-acknowledgements.plist │ │ ├── Pods-Juggernaut_Example-dummy.m │ │ ├── Pods-Juggernaut_Example-frameworks.sh │ │ ├── Pods-Juggernaut_Example-umbrella.h │ │ ├── Pods-Juggernaut_Example.debug.xcconfig │ │ ├── Pods-Juggernaut_Example.modulemap │ │ └── Pods-Juggernaut_Example.release.xcconfig │ │ └── Pods-Juggernaut_Tests │ │ ├── Pods-Juggernaut_Tests-Info.plist │ │ ├── Pods-Juggernaut_Tests-acknowledgements.markdown │ │ ├── Pods-Juggernaut_Tests-acknowledgements.plist │ │ ├── Pods-Juggernaut_Tests-dummy.m │ │ ├── Pods-Juggernaut_Tests-umbrella.h │ │ ├── Pods-Juggernaut_Tests.debug.xcconfig │ │ ├── Pods-Juggernaut_Tests.modulemap │ │ └── Pods-Juggernaut_Tests.release.xcconfig └── Tests │ ├── FileManagerTests.swift │ └── Info.plist ├── Juggernaut.podspec ├── Juggernaut ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── Extensions.swift │ ├── Juggernaut.swift │ ├── JuggernautDelegate.swift │ └── JuggernautItem.swift ├── LICENSE ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode10.2 6 | language: swift 7 | podfile: Example/Podfile 8 | before_install: 9 | - gem install cocoapods 10 | - pod install --project-directory=Example 11 | script: 12 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/Juggernaut.xcworkspace -scheme Juggernaut-Example -sdk iphonesimulator12.2 ONLY_ACTIVE_ARCH=NO | xcpretty 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /Example/Juggernaut.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 579E5FE5220C757E009A4F9D /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579E5FE4220C757E009A4F9D /* Item.swift */; }; 11 | 579E5FE7220C762C009A4F9D /* Response.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579E5FE6220C762C009A4F9D /* Response.swift */; }; 12 | 579E5FE9220C7696009A4F9D /* Network.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579E5FE8220C7696009A4F9D /* Network.swift */; }; 13 | 579E5FEB220C769F009A4F9D /* NetworkImp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579E5FEA220C769F009A4F9D /* NetworkImp.swift */; }; 14 | 579E5FF0220C8132009A4F9D /* ItemCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579E5FEF220C8132009A4F9D /* ItemCell.swift */; }; 15 | 579E5FF2220CDF9A009A4F9D /* FileManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579E5FF1220CDF9A009A4F9D /* FileManagerTests.swift */; }; 16 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 17 | 607FACD81AFB9204008FA782 /* ItemsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ItemsViewController.swift */; }; 18 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 19 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 20 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 21 | C36285779FAD06FF7D5AF4A7 /* Pods_Juggernaut_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1E732BBC2948B49A812AC760 /* Pods_Juggernaut_Tests.framework */; }; 22 | DA497858049136684B1DE310 /* Pods_Juggernaut_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 111C365B74E973798790277A /* Pods_Juggernaut_Example.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 31 | remoteInfo = Juggernaut; 32 | }; 33 | /* End PBXContainerItemProxy section */ 34 | 35 | /* Begin PBXFileReference section */ 36 | 04858514DBEE2FFF40187A67 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 37 | 111C365B74E973798790277A /* Pods_Juggernaut_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Juggernaut_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 1E732BBC2948B49A812AC760 /* Pods_Juggernaut_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Juggernaut_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 3284F000934DCB2A38B65638 /* Juggernaut.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Juggernaut.podspec; path = ../Juggernaut.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 40 | 5393F8A0C0756416BE202F2F /* Pods-Juggernaut_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Juggernaut_Tests.release.xcconfig"; path = "Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests.release.xcconfig"; sourceTree = ""; }; 41 | 579E5FE4220C757E009A4F9D /* Item.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Item.swift; sourceTree = ""; }; 42 | 579E5FE6220C762C009A4F9D /* Response.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Response.swift; sourceTree = ""; }; 43 | 579E5FE8220C7696009A4F9D /* Network.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Network.swift; sourceTree = ""; }; 44 | 579E5FEA220C769F009A4F9D /* NetworkImp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkImp.swift; sourceTree = ""; }; 45 | 579E5FEF220C8132009A4F9D /* ItemCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemCell.swift; sourceTree = ""; }; 46 | 579E5FF1220CDF9A009A4F9D /* FileManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileManagerTests.swift; sourceTree = ""; }; 47 | 607FACD01AFB9204008FA782 /* Juggernaut_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Juggernaut_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 50 | 607FACD71AFB9204008FA782 /* ItemsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemsViewController.swift; sourceTree = ""; }; 51 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 52 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 53 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 54 | 607FACE51AFB9204008FA782 /* Juggernaut_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Juggernaut_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 6D180D397525B89510705F4E /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 57 | 6E724A08059BA90B72555AE0 /* Pods-Juggernaut_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Juggernaut_Example.release.xcconfig"; path = "Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example.release.xcconfig"; sourceTree = ""; }; 58 | 804E9C71D3A2F2F353234E81 /* Pods-Juggernaut_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Juggernaut_Tests.debug.xcconfig"; path = "Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests.debug.xcconfig"; sourceTree = ""; }; 59 | D80524B3F9F0164EA5091EEA /* Pods-Juggernaut_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Juggernaut_Example.debug.xcconfig"; path = "Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example.debug.xcconfig"; sourceTree = ""; }; 60 | /* End PBXFileReference section */ 61 | 62 | /* Begin PBXFrameworksBuildPhase section */ 63 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | DA497858049136684B1DE310 /* Pods_Juggernaut_Example.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | C36285779FAD06FF7D5AF4A7 /* Pods_Juggernaut_Tests.framework in Frameworks */, 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | /* End PBXFrameworksBuildPhase section */ 80 | 81 | /* Begin PBXGroup section */ 82 | 579E5FDD220C7487009A4F9D /* Model */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 579E5FE4220C757E009A4F9D /* Item.swift */, 86 | 579E5FE6220C762C009A4F9D /* Response.swift */, 87 | ); 88 | path = Model; 89 | sourceTree = ""; 90 | }; 91 | 579E5FDF220C74BE009A4F9D /* Resources */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 95 | ); 96 | path = Resources; 97 | sourceTree = ""; 98 | }; 99 | 579E5FE1220C7502009A4F9D /* BusinessLogicLayer */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 579E5FE8220C7696009A4F9D /* Network.swift */, 103 | 579E5FEA220C769F009A4F9D /* NetworkImp.swift */, 104 | ); 105 | path = BusinessLogicLayer; 106 | sourceTree = ""; 107 | }; 108 | 579E5FE2220C750C009A4F9D /* PresentationLayer */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 579E5FEE220C8114009A4F9D /* Storyboard */, 112 | 579E5FED220C80E3009A4F9D /* Controller */, 113 | 579E5FEC220C80DD009A4F9D /* View */, 114 | ); 115 | path = PresentationLayer; 116 | sourceTree = ""; 117 | }; 118 | 579E5FE3220C7526009A4F9D /* ApplicationLayer */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 122 | ); 123 | path = ApplicationLayer; 124 | sourceTree = ""; 125 | }; 126 | 579E5FEC220C80DD009A4F9D /* View */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 579E5FEF220C8132009A4F9D /* ItemCell.swift */, 130 | ); 131 | path = View; 132 | sourceTree = ""; 133 | }; 134 | 579E5FED220C80E3009A4F9D /* Controller */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 607FACD71AFB9204008FA782 /* ItemsViewController.swift */, 138 | ); 139 | path = Controller; 140 | sourceTree = ""; 141 | }; 142 | 579E5FEE220C8114009A4F9D /* Storyboard */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 146 | ); 147 | path = Storyboard; 148 | sourceTree = ""; 149 | }; 150 | 5E7CE541D162CD73E582C7E7 /* Pods */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | D80524B3F9F0164EA5091EEA /* Pods-Juggernaut_Example.debug.xcconfig */, 154 | 6E724A08059BA90B72555AE0 /* Pods-Juggernaut_Example.release.xcconfig */, 155 | 804E9C71D3A2F2F353234E81 /* Pods-Juggernaut_Tests.debug.xcconfig */, 156 | 5393F8A0C0756416BE202F2F /* Pods-Juggernaut_Tests.release.xcconfig */, 157 | ); 158 | path = Pods; 159 | sourceTree = ""; 160 | }; 161 | 607FACC71AFB9204008FA782 = { 162 | isa = PBXGroup; 163 | children = ( 164 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 165 | 607FACD21AFB9204008FA782 /* Example for Juggernaut */, 166 | 607FACE81AFB9204008FA782 /* Tests */, 167 | 607FACD11AFB9204008FA782 /* Products */, 168 | 5E7CE541D162CD73E582C7E7 /* Pods */, 169 | 6892F1726C40926575BEE72A /* Frameworks */, 170 | ); 171 | sourceTree = ""; 172 | }; 173 | 607FACD11AFB9204008FA782 /* Products */ = { 174 | isa = PBXGroup; 175 | children = ( 176 | 607FACD01AFB9204008FA782 /* Juggernaut_Example.app */, 177 | 607FACE51AFB9204008FA782 /* Juggernaut_Tests.xctest */, 178 | ); 179 | name = Products; 180 | sourceTree = ""; 181 | }; 182 | 607FACD21AFB9204008FA782 /* Example for Juggernaut */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | 579E5FE3220C7526009A4F9D /* ApplicationLayer */, 186 | 579E5FE2220C750C009A4F9D /* PresentationLayer */, 187 | 579E5FE1220C7502009A4F9D /* BusinessLogicLayer */, 188 | 579E5FDF220C74BE009A4F9D /* Resources */, 189 | 579E5FDD220C7487009A4F9D /* Model */, 190 | 607FACD31AFB9204008FA782 /* Supporting Files */, 191 | ); 192 | name = "Example for Juggernaut"; 193 | path = Juggernaut; 194 | sourceTree = ""; 195 | }; 196 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 200 | 607FACD41AFB9204008FA782 /* Info.plist */, 201 | ); 202 | name = "Supporting Files"; 203 | sourceTree = ""; 204 | }; 205 | 607FACE81AFB9204008FA782 /* Tests */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 607FACE91AFB9204008FA782 /* Supporting Files */, 209 | 579E5FF1220CDF9A009A4F9D /* FileManagerTests.swift */, 210 | ); 211 | path = Tests; 212 | sourceTree = ""; 213 | }; 214 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 215 | isa = PBXGroup; 216 | children = ( 217 | 607FACEA1AFB9204008FA782 /* Info.plist */, 218 | ); 219 | name = "Supporting Files"; 220 | sourceTree = ""; 221 | }; 222 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 223 | isa = PBXGroup; 224 | children = ( 225 | 3284F000934DCB2A38B65638 /* Juggernaut.podspec */, 226 | 6D180D397525B89510705F4E /* README.md */, 227 | 04858514DBEE2FFF40187A67 /* LICENSE */, 228 | ); 229 | name = "Podspec Metadata"; 230 | sourceTree = ""; 231 | }; 232 | 6892F1726C40926575BEE72A /* Frameworks */ = { 233 | isa = PBXGroup; 234 | children = ( 235 | 111C365B74E973798790277A /* Pods_Juggernaut_Example.framework */, 236 | 1E732BBC2948B49A812AC760 /* Pods_Juggernaut_Tests.framework */, 237 | ); 238 | name = Frameworks; 239 | sourceTree = ""; 240 | }; 241 | /* End PBXGroup section */ 242 | 243 | /* Begin PBXNativeTarget section */ 244 | 607FACCF1AFB9204008FA782 /* Juggernaut_Example */ = { 245 | isa = PBXNativeTarget; 246 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Juggernaut_Example" */; 247 | buildPhases = ( 248 | 3D5F5765F55C6D6853F2BC16 /* [CP] Check Pods Manifest.lock */, 249 | 607FACCC1AFB9204008FA782 /* Sources */, 250 | 607FACCD1AFB9204008FA782 /* Frameworks */, 251 | 607FACCE1AFB9204008FA782 /* Resources */, 252 | 0B6B2BF658BF1C8DF5DED12E /* [CP] Embed Pods Frameworks */, 253 | ); 254 | buildRules = ( 255 | ); 256 | dependencies = ( 257 | ); 258 | name = Juggernaut_Example; 259 | productName = Juggernaut; 260 | productReference = 607FACD01AFB9204008FA782 /* Juggernaut_Example.app */; 261 | productType = "com.apple.product-type.application"; 262 | }; 263 | 607FACE41AFB9204008FA782 /* Juggernaut_Tests */ = { 264 | isa = PBXNativeTarget; 265 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Juggernaut_Tests" */; 266 | buildPhases = ( 267 | FC18D8C0A58416A45D0C7B5B /* [CP] Check Pods Manifest.lock */, 268 | 607FACE11AFB9204008FA782 /* Sources */, 269 | 607FACE21AFB9204008FA782 /* Frameworks */, 270 | 607FACE31AFB9204008FA782 /* Resources */, 271 | ); 272 | buildRules = ( 273 | ); 274 | dependencies = ( 275 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 276 | ); 277 | name = Juggernaut_Tests; 278 | productName = Tests; 279 | productReference = 607FACE51AFB9204008FA782 /* Juggernaut_Tests.xctest */; 280 | productType = "com.apple.product-type.bundle.unit-test"; 281 | }; 282 | /* End PBXNativeTarget section */ 283 | 284 | /* Begin PBXProject section */ 285 | 607FACC81AFB9204008FA782 /* Project object */ = { 286 | isa = PBXProject; 287 | attributes = { 288 | LastSwiftUpdateCheck = 0830; 289 | LastUpgradeCheck = 1020; 290 | ORGANIZATIONNAME = CocoaPods; 291 | TargetAttributes = { 292 | 607FACCF1AFB9204008FA782 = { 293 | CreatedOnToolsVersion = 6.3.1; 294 | DevelopmentTeam = MTVD7A69KL; 295 | LastSwiftMigration = 1020; 296 | SystemCapabilities = { 297 | com.apple.BackgroundModes = { 298 | enabled = 1; 299 | }; 300 | }; 301 | }; 302 | 607FACE41AFB9204008FA782 = { 303 | CreatedOnToolsVersion = 6.3.1; 304 | DevelopmentTeam = MTVD7A69KL; 305 | LastSwiftMigration = 1020; 306 | TestTargetID = 607FACCF1AFB9204008FA782; 307 | }; 308 | }; 309 | }; 310 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Juggernaut" */; 311 | compatibilityVersion = "Xcode 3.2"; 312 | developmentRegion = en; 313 | hasScannedForEncodings = 0; 314 | knownRegions = ( 315 | en, 316 | Base, 317 | ); 318 | mainGroup = 607FACC71AFB9204008FA782; 319 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 320 | projectDirPath = ""; 321 | projectRoot = ""; 322 | targets = ( 323 | 607FACCF1AFB9204008FA782 /* Juggernaut_Example */, 324 | 607FACE41AFB9204008FA782 /* Juggernaut_Tests */, 325 | ); 326 | }; 327 | /* End PBXProject section */ 328 | 329 | /* Begin PBXResourcesBuildPhase section */ 330 | 607FACCE1AFB9204008FA782 /* Resources */ = { 331 | isa = PBXResourcesBuildPhase; 332 | buildActionMask = 2147483647; 333 | files = ( 334 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 335 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 336 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | }; 340 | 607FACE31AFB9204008FA782 /* Resources */ = { 341 | isa = PBXResourcesBuildPhase; 342 | buildActionMask = 2147483647; 343 | files = ( 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | /* End PBXResourcesBuildPhase section */ 348 | 349 | /* Begin PBXShellScriptBuildPhase section */ 350 | 0B6B2BF658BF1C8DF5DED12E /* [CP] Embed Pods Frameworks */ = { 351 | isa = PBXShellScriptBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | ); 355 | inputFileListPaths = ( 356 | ); 357 | inputPaths = ( 358 | "${PODS_ROOT}/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-frameworks.sh", 359 | "${BUILT_PRODUCTS_DIR}/Juggernaut/Juggernaut.framework", 360 | ); 361 | name = "[CP] Embed Pods Frameworks"; 362 | outputFileListPaths = ( 363 | ); 364 | outputPaths = ( 365 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Juggernaut.framework", 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | shellPath = /bin/sh; 369 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-frameworks.sh\"\n"; 370 | showEnvVarsInLog = 0; 371 | }; 372 | 3D5F5765F55C6D6853F2BC16 /* [CP] Check Pods Manifest.lock */ = { 373 | isa = PBXShellScriptBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | ); 377 | inputFileListPaths = ( 378 | ); 379 | inputPaths = ( 380 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 381 | "${PODS_ROOT}/Manifest.lock", 382 | ); 383 | name = "[CP] Check Pods Manifest.lock"; 384 | outputFileListPaths = ( 385 | ); 386 | outputPaths = ( 387 | "$(DERIVED_FILE_DIR)/Pods-Juggernaut_Example-checkManifestLockResult.txt", 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | shellPath = /bin/sh; 391 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 392 | showEnvVarsInLog = 0; 393 | }; 394 | FC18D8C0A58416A45D0C7B5B /* [CP] Check Pods Manifest.lock */ = { 395 | isa = PBXShellScriptBuildPhase; 396 | buildActionMask = 2147483647; 397 | files = ( 398 | ); 399 | inputFileListPaths = ( 400 | ); 401 | inputPaths = ( 402 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 403 | "${PODS_ROOT}/Manifest.lock", 404 | ); 405 | name = "[CP] Check Pods Manifest.lock"; 406 | outputFileListPaths = ( 407 | ); 408 | outputPaths = ( 409 | "$(DERIVED_FILE_DIR)/Pods-Juggernaut_Tests-checkManifestLockResult.txt", 410 | ); 411 | runOnlyForDeploymentPostprocessing = 0; 412 | shellPath = /bin/sh; 413 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 414 | showEnvVarsInLog = 0; 415 | }; 416 | /* End PBXShellScriptBuildPhase section */ 417 | 418 | /* Begin PBXSourcesBuildPhase section */ 419 | 607FACCC1AFB9204008FA782 /* Sources */ = { 420 | isa = PBXSourcesBuildPhase; 421 | buildActionMask = 2147483647; 422 | files = ( 423 | 579E5FE9220C7696009A4F9D /* Network.swift in Sources */, 424 | 607FACD81AFB9204008FA782 /* ItemsViewController.swift in Sources */, 425 | 579E5FE5220C757E009A4F9D /* Item.swift in Sources */, 426 | 579E5FEB220C769F009A4F9D /* NetworkImp.swift in Sources */, 427 | 579E5FF0220C8132009A4F9D /* ItemCell.swift in Sources */, 428 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 429 | 579E5FE7220C762C009A4F9D /* Response.swift in Sources */, 430 | ); 431 | runOnlyForDeploymentPostprocessing = 0; 432 | }; 433 | 607FACE11AFB9204008FA782 /* Sources */ = { 434 | isa = PBXSourcesBuildPhase; 435 | buildActionMask = 2147483647; 436 | files = ( 437 | 579E5FF2220CDF9A009A4F9D /* FileManagerTests.swift in Sources */, 438 | ); 439 | runOnlyForDeploymentPostprocessing = 0; 440 | }; 441 | /* End PBXSourcesBuildPhase section */ 442 | 443 | /* Begin PBXTargetDependency section */ 444 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 445 | isa = PBXTargetDependency; 446 | target = 607FACCF1AFB9204008FA782 /* Juggernaut_Example */; 447 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 448 | }; 449 | /* End PBXTargetDependency section */ 450 | 451 | /* Begin PBXVariantGroup section */ 452 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 453 | isa = PBXVariantGroup; 454 | children = ( 455 | 607FACDA1AFB9204008FA782 /* Base */, 456 | ); 457 | name = Main.storyboard; 458 | sourceTree = ""; 459 | }; 460 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 461 | isa = PBXVariantGroup; 462 | children = ( 463 | 607FACDF1AFB9204008FA782 /* Base */, 464 | ); 465 | name = LaunchScreen.xib; 466 | sourceTree = ""; 467 | }; 468 | /* End PBXVariantGroup section */ 469 | 470 | /* Begin XCBuildConfiguration section */ 471 | 607FACED1AFB9204008FA782 /* Debug */ = { 472 | isa = XCBuildConfiguration; 473 | buildSettings = { 474 | ALWAYS_SEARCH_USER_PATHS = NO; 475 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 476 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 477 | CLANG_CXX_LIBRARY = "libc++"; 478 | CLANG_ENABLE_MODULES = YES; 479 | CLANG_ENABLE_OBJC_ARC = YES; 480 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 481 | CLANG_WARN_BOOL_CONVERSION = YES; 482 | CLANG_WARN_COMMA = YES; 483 | CLANG_WARN_CONSTANT_CONVERSION = YES; 484 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 485 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 486 | CLANG_WARN_EMPTY_BODY = YES; 487 | CLANG_WARN_ENUM_CONVERSION = YES; 488 | CLANG_WARN_INFINITE_RECURSION = YES; 489 | CLANG_WARN_INT_CONVERSION = YES; 490 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 491 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 492 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 493 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 494 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 495 | CLANG_WARN_STRICT_PROTOTYPES = YES; 496 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 497 | CLANG_WARN_UNREACHABLE_CODE = YES; 498 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 499 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 500 | COPY_PHASE_STRIP = NO; 501 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 502 | ENABLE_STRICT_OBJC_MSGSEND = YES; 503 | ENABLE_TESTABILITY = YES; 504 | GCC_C_LANGUAGE_STANDARD = gnu99; 505 | GCC_DYNAMIC_NO_PIC = NO; 506 | GCC_NO_COMMON_BLOCKS = YES; 507 | GCC_OPTIMIZATION_LEVEL = 0; 508 | GCC_PREPROCESSOR_DEFINITIONS = ( 509 | "DEBUG=1", 510 | "$(inherited)", 511 | ); 512 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 513 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 514 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 515 | GCC_WARN_UNDECLARED_SELECTOR = YES; 516 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 517 | GCC_WARN_UNUSED_FUNCTION = YES; 518 | GCC_WARN_UNUSED_VARIABLE = YES; 519 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 520 | MTL_ENABLE_DEBUG_INFO = YES; 521 | ONLY_ACTIVE_ARCH = YES; 522 | SDKROOT = iphoneos; 523 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 524 | SWIFT_VERSION = 5.0; 525 | }; 526 | name = Debug; 527 | }; 528 | 607FACEE1AFB9204008FA782 /* Release */ = { 529 | isa = XCBuildConfiguration; 530 | buildSettings = { 531 | ALWAYS_SEARCH_USER_PATHS = NO; 532 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 533 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 534 | CLANG_CXX_LIBRARY = "libc++"; 535 | CLANG_ENABLE_MODULES = YES; 536 | CLANG_ENABLE_OBJC_ARC = YES; 537 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 538 | CLANG_WARN_BOOL_CONVERSION = YES; 539 | CLANG_WARN_COMMA = YES; 540 | CLANG_WARN_CONSTANT_CONVERSION = YES; 541 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 542 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 543 | CLANG_WARN_EMPTY_BODY = YES; 544 | CLANG_WARN_ENUM_CONVERSION = YES; 545 | CLANG_WARN_INFINITE_RECURSION = YES; 546 | CLANG_WARN_INT_CONVERSION = YES; 547 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 548 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 549 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 550 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 551 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 552 | CLANG_WARN_STRICT_PROTOTYPES = YES; 553 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 554 | CLANG_WARN_UNREACHABLE_CODE = YES; 555 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 556 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 557 | COPY_PHASE_STRIP = NO; 558 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 559 | ENABLE_NS_ASSERTIONS = NO; 560 | ENABLE_STRICT_OBJC_MSGSEND = YES; 561 | GCC_C_LANGUAGE_STANDARD = gnu99; 562 | GCC_NO_COMMON_BLOCKS = YES; 563 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 564 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 565 | GCC_WARN_UNDECLARED_SELECTOR = YES; 566 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 567 | GCC_WARN_UNUSED_FUNCTION = YES; 568 | GCC_WARN_UNUSED_VARIABLE = YES; 569 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 570 | MTL_ENABLE_DEBUG_INFO = NO; 571 | SDKROOT = iphoneos; 572 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 573 | SWIFT_VERSION = 5.0; 574 | VALIDATE_PRODUCT = YES; 575 | }; 576 | name = Release; 577 | }; 578 | 607FACF01AFB9204008FA782 /* Debug */ = { 579 | isa = XCBuildConfiguration; 580 | baseConfigurationReference = D80524B3F9F0164EA5091EEA /* Pods-Juggernaut_Example.debug.xcconfig */; 581 | buildSettings = { 582 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 583 | DEVELOPMENT_TEAM = MTVD7A69KL; 584 | INFOPLIST_FILE = Juggernaut/Info.plist; 585 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 586 | LD_RUNPATH_SEARCH_PATHS = "$(inherited)"; 587 | MODULE_NAME = ExampleApp; 588 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 589 | PRODUCT_NAME = "$(TARGET_NAME)"; 590 | SWIFT_VERSION = 5.0; 591 | }; 592 | name = Debug; 593 | }; 594 | 607FACF11AFB9204008FA782 /* Release */ = { 595 | isa = XCBuildConfiguration; 596 | baseConfigurationReference = 6E724A08059BA90B72555AE0 /* Pods-Juggernaut_Example.release.xcconfig */; 597 | buildSettings = { 598 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 599 | DEVELOPMENT_TEAM = MTVD7A69KL; 600 | INFOPLIST_FILE = Juggernaut/Info.plist; 601 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 602 | LD_RUNPATH_SEARCH_PATHS = "$(inherited)"; 603 | MODULE_NAME = ExampleApp; 604 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 605 | PRODUCT_NAME = "$(TARGET_NAME)"; 606 | SWIFT_VERSION = 5.0; 607 | }; 608 | name = Release; 609 | }; 610 | 607FACF31AFB9204008FA782 /* Debug */ = { 611 | isa = XCBuildConfiguration; 612 | baseConfigurationReference = 804E9C71D3A2F2F353234E81 /* Pods-Juggernaut_Tests.debug.xcconfig */; 613 | buildSettings = { 614 | CLANG_ENABLE_MODULES = YES; 615 | DEVELOPMENT_TEAM = MTVD7A69KL; 616 | FRAMEWORK_SEARCH_PATHS = ( 617 | "$(SDKROOT)/Developer/Library/Frameworks", 618 | "$(inherited)", 619 | ); 620 | GCC_PREPROCESSOR_DEFINITIONS = ( 621 | "DEBUG=1", 622 | "$(inherited)", 623 | ); 624 | INFOPLIST_FILE = Tests/Info.plist; 625 | LD_RUNPATH_SEARCH_PATHS = "$(inherited)"; 626 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 627 | PRODUCT_NAME = "$(TARGET_NAME)"; 628 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 629 | SWIFT_VERSION = 5.0; 630 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Juggernaut_Example.app/Juggernaut_Example"; 631 | }; 632 | name = Debug; 633 | }; 634 | 607FACF41AFB9204008FA782 /* Release */ = { 635 | isa = XCBuildConfiguration; 636 | baseConfigurationReference = 5393F8A0C0756416BE202F2F /* Pods-Juggernaut_Tests.release.xcconfig */; 637 | buildSettings = { 638 | CLANG_ENABLE_MODULES = YES; 639 | DEVELOPMENT_TEAM = MTVD7A69KL; 640 | FRAMEWORK_SEARCH_PATHS = ( 641 | "$(SDKROOT)/Developer/Library/Frameworks", 642 | "$(inherited)", 643 | ); 644 | INFOPLIST_FILE = Tests/Info.plist; 645 | LD_RUNPATH_SEARCH_PATHS = "$(inherited)"; 646 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 647 | PRODUCT_NAME = "$(TARGET_NAME)"; 648 | SWIFT_VERSION = 5.0; 649 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Juggernaut_Example.app/Juggernaut_Example"; 650 | }; 651 | name = Release; 652 | }; 653 | /* End XCBuildConfiguration section */ 654 | 655 | /* Begin XCConfigurationList section */ 656 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Juggernaut" */ = { 657 | isa = XCConfigurationList; 658 | buildConfigurations = ( 659 | 607FACED1AFB9204008FA782 /* Debug */, 660 | 607FACEE1AFB9204008FA782 /* Release */, 661 | ); 662 | defaultConfigurationIsVisible = 0; 663 | defaultConfigurationName = Release; 664 | }; 665 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Juggernaut_Example" */ = { 666 | isa = XCConfigurationList; 667 | buildConfigurations = ( 668 | 607FACF01AFB9204008FA782 /* Debug */, 669 | 607FACF11AFB9204008FA782 /* Release */, 670 | ); 671 | defaultConfigurationIsVisible = 0; 672 | defaultConfigurationName = Release; 673 | }; 674 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Juggernaut_Tests" */ = { 675 | isa = XCConfigurationList; 676 | buildConfigurations = ( 677 | 607FACF31AFB9204008FA782 /* Debug */, 678 | 607FACF41AFB9204008FA782 /* Release */, 679 | ); 680 | defaultConfigurationIsVisible = 0; 681 | defaultConfigurationName = Release; 682 | }; 683 | /* End XCConfigurationList section */ 684 | }; 685 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 686 | } 687 | -------------------------------------------------------------------------------- /Example/Juggernaut.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Juggernaut.xcodeproj/xcshareddata/xcschemes/Juggernaut-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 79 | 81 | 87 | 88 | 89 | 90 | 91 | 92 | 98 | 100 | 106 | 107 | 108 | 109 | 111 | 112 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /Example/Juggernaut.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Juggernaut.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Juggernaut/ApplicationLayer/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Juggernaut 4 | // 5 | 6 | import UIKit 7 | import Juggernaut 8 | 9 | @UIApplicationMain 10 | class AppDelegate: UIResponder, UIApplicationDelegate { 11 | 12 | var window: UIWindow? 13 | var backgroundSessionCompletionHandler : (() -> Void)? 14 | var juggernaut: Juggernaut! 15 | 16 | static var shared: AppDelegate { 17 | return UIApplication.shared.delegate as! AppDelegate 18 | } 19 | 20 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 21 | 22 | window = UIWindow.init(frame: UIScreen.main.bounds) 23 | window?.rootViewController = rootViewController 24 | window?.makeKeyAndVisible() 25 | setupJuggernaut() 26 | // Override point for customization after application launch. 27 | return true 28 | } 29 | 30 | private var rootViewController: UIViewController { 31 | let storyboard = UIStoryboard.init(name: "Main", bundle: nil) 32 | return storyboard.instantiateInitialViewController()! 33 | } 34 | 35 | func applicationWillResignActive(_ application: UIApplication) { 36 | // 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. 37 | // 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. 38 | } 39 | 40 | func applicationDidEnterBackground(_ application: UIApplication) { 41 | // 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. 42 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 43 | } 44 | 45 | func applicationWillEnterForeground(_ application: UIApplication) { 46 | // 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. 47 | } 48 | 49 | func applicationDidBecomeActive(_ application: UIApplication) { 50 | // 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. 51 | } 52 | 53 | func applicationWillTerminate(_ application: UIApplication) { 54 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 55 | } 56 | 57 | func application(_ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) { 58 | backgroundSessionCompletionHandler = completionHandler 59 | } 60 | 61 | fileprivate func setupJuggernaut() { 62 | 63 | let sessionIdentifer: String = "com.instatfootball.basketballscout.BackgroundSession" 64 | 65 | juggernaut = Juggernaut(session: sessionIdentifer, completion: backgroundSessionCompletionHandler) 66 | } 67 | } 68 | 69 | -------------------------------------------------------------------------------- /Example/Juggernaut/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/Juggernaut/BusinessLogicLayer/Network.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Network.swift 3 | // Juggernaut_Example 4 | // 5 | 6 | import Foundation 7 | 8 | protocol Network { 9 | func requestObject(_ url: URL, completion: @escaping ([Item]) -> ()) 10 | } 11 | -------------------------------------------------------------------------------- /Example/Juggernaut/BusinessLogicLayer/NetworkImp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NetworkImp.swift 3 | // Juggernaut_Example 4 | // 5 | 6 | import Foundation 7 | 8 | class NetworkImp: Network { 9 | 10 | func requestObject(_ url: URL, completion: @escaping ([Item]) -> ()) { 11 | 12 | let sessionConfig = URLSessionConfiguration.default 13 | let session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil) 14 | 15 | let task = session.dataTask(with: url) { (data, response, error) in 16 | let decoder = JSONDecoder() 17 | guard let jsonData = data else { return } 18 | let result = try! decoder.decode(Response.self, from: jsonData) 19 | let items = result.data 20 | completion(items) 21 | } 22 | task.resume() 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Example/Juggernaut/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 2.2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIBackgroundModes 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/Juggernaut/Model/Item.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Item.swift 3 | // Juggernaut_Example 4 | // 5 | 6 | import Foundation 7 | 8 | struct Item: Codable { 9 | 10 | let url: String 11 | let name: String 12 | let type: String 13 | } 14 | -------------------------------------------------------------------------------- /Example/Juggernaut/Model/Response.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ResponseItem.swift 3 | // Juggernaut_Example 4 | // 5 | // Created by workmachine on 07/02/2019. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct Response: Codable { 12 | let data: [Item] 13 | } 14 | -------------------------------------------------------------------------------- /Example/Juggernaut/PresentationLayer/Controller/ItemsViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Juggernaut 4 | // 5 | 6 | import UIKit 7 | import Juggernaut 8 | 9 | class ItemsViewController: UIViewController { 10 | 11 | // MARK: - IBOutlets 12 | 13 | @IBOutlet weak var indicator: UIView! 14 | @IBOutlet weak var tableView: UITableView! 15 | 16 | // MARK: - Properties 17 | 18 | var network: Network! 19 | var items: [Item] = [] 20 | var fileManager: FileManager! 21 | var juggernaut: Juggernaut! 22 | 23 | // MARK: - Life cycle 24 | 25 | override func viewDidLoad() { 26 | super.viewDidLoad() 27 | 28 | juggernaut = AppDelegate.shared.juggernaut 29 | juggernaut.delegate = self 30 | 31 | title = "Juggernaut" 32 | fileManager = FileManager.default 33 | setupTableView() 34 | network = NetworkImp() 35 | guard let url = URL(string: "https://gist.githubusercontent.com/tularovbeslan/96657a7b5f8f9d0fb34c6832e99e330f/raw/accecf19049728102a2d7c0e8c3fc6fde1f499c6/JSON%2520for%2520downloader") else { return } 36 | loadItems(url) 37 | } 38 | 39 | // MARK: - Helpers 40 | 41 | fileprivate func setupTableView() { 42 | 43 | tableView.delegate = self 44 | tableView.dataSource = self 45 | tableView.tableFooterView = UIView(frame: .zero) 46 | tableView.separatorStyle = .none 47 | } 48 | 49 | fileprivate func loadItems(_ url: URL) { 50 | 51 | indicator.isHidden = false 52 | network.requestObject(url) { [weak self] (items) in 53 | 54 | guard let `self` = self else { return } 55 | self.items = items 56 | DispatchQueue.main.async { 57 | 58 | self.indicator.isHidden = true 59 | self.tableView.reloadData() 60 | } 61 | } 62 | } 63 | 64 | fileprivate func refresh(_ item: JuggernautItem, atIndexPath indexPath: IndexPath) { 65 | 66 | guard let cell = self.tableView.cellForRow(at: indexPath) as? ItemCell else { return } 67 | cell.updateCellForRowAtIndexPath(indexPath, item: item) 68 | } 69 | } 70 | 71 | // MARK: - UITableViewDataSource 72 | 73 | extension ItemsViewController: UITableViewDataSource { 74 | 75 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 76 | return items.count 77 | } 78 | 79 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 80 | 81 | let cell = tableView.dequeueReusableCell(withIdentifier: String(describing: ItemCell.self), for: indexPath) as! ItemCell 82 | let item = items[indexPath.row] 83 | cell.setup(item) 84 | return cell 85 | } 86 | } 87 | 88 | // MARK: - UITableViewDelegate 89 | 90 | extension ItemsViewController: UITableViewDelegate { 91 | 92 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 93 | return UITableView.automaticDimension 94 | } 95 | 96 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 97 | 98 | tableView.deselectRow(at: indexPath, animated: true) 99 | let item = items[indexPath.row] 100 | guard let url = URL(string: item.url) else { return } 101 | let name = fileManager.uniqueName(url) 102 | let path = fileManager.documentDirectory() + "/My Files" 103 | if juggernaut.items.contains(where: { $0.url == url.absoluteString }) { 104 | guard let index = juggernaut.items.firstIndex(where: { $0.path == path }) else { return } 105 | juggernaut.cancelTaskAtIndex(index) 106 | } else { 107 | juggernaut.addDownloadTask(name, fileURL: url, path: path, indexPath: indexPath, objects: nil) 108 | } 109 | } 110 | } 111 | 112 | // MARK: - JuggernautDelegate 113 | 114 | extension ItemsViewController: JuggernautDelegate { 115 | 116 | func juggernaut(_ juggernaut: Juggernaut, didStart item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) { 117 | NotificationCenter.default.post(name: NSNotification.Name.JuggernautDidStart, object: item) 118 | } 119 | 120 | func juggernaut(_ juggernaut: Juggernaut, didPopulatedInterruptedTasks items: [JuggernautItem], objects: [Any]?) { 121 | 122 | DispatchQueue.main.async { 123 | self.tableView.reloadData() 124 | } 125 | } 126 | 127 | func juggernaut(_ juggernaut: Juggernaut, didUpdateProgress item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) { 128 | 129 | DispatchQueue.main.async { 130 | 131 | self.refresh(item, atIndexPath: indexPath) 132 | NotificationCenter.default.post(name: NSNotification.Name.JuggernautDidUpdateProgress, object: item) 133 | } 134 | } 135 | 136 | func juggernaut(_ juggernaut: Juggernaut, didPaused item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) { 137 | 138 | DispatchQueue.main.async { 139 | 140 | self.refresh(item, atIndexPath: indexPath) 141 | NotificationCenter.default.post(name: NSNotification.Name.JuggernautDidPaused, object: item) 142 | } 143 | } 144 | 145 | func juggernaut(_ juggernaut: Juggernaut, didResume item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) { 146 | 147 | DispatchQueue.main.async { 148 | 149 | self.refresh(item, atIndexPath: indexPath) 150 | NotificationCenter.default.post(name: NSNotification.Name.JuggernautDidResume, object: item) 151 | } 152 | } 153 | 154 | func juggernaut(_ juggernaut: Juggernaut, didFinish item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) { 155 | 156 | let docDirectoryPath = fileManager.documentDirectory() + item.name 157 | NotificationCenter.default.post(name: NSNotification.Name.JuggernautDidFinish, object: docDirectoryPath) 158 | } 159 | 160 | func juggernaut(_ juggernaut: Juggernaut, didFail item: JuggernautItem, forItemAt indexPath: IndexPath, with error: NSError, objects: [Any]?) { 161 | 162 | print("didFail error \(error.localizedDescription)") 163 | } 164 | } 165 | -------------------------------------------------------------------------------- /Example/Juggernaut/PresentationLayer/Storyboard/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 50 | 56 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | -------------------------------------------------------------------------------- /Example/Juggernaut/PresentationLayer/View/ItemCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ItemCell.swift 3 | // Juggernaut_Example 4 | // 5 | 6 | import UIKit 7 | import Juggernaut 8 | 9 | class ItemCell: UITableViewCell { 10 | 11 | @IBOutlet weak var fileTypeImageView: UIImageView! 12 | @IBOutlet weak var name: UILabel! 13 | @IBOutlet weak var speed: UILabel! 14 | @IBOutlet weak var size: UILabel! 15 | @IBOutlet weak var percentage: UILabel! 16 | @IBOutlet weak var time: UILabel! 17 | @IBOutlet weak var progress: UIProgressView! 18 | 19 | func setup(_ item: Item) { 20 | 21 | name.text = item.name 22 | setupType(item.type) 23 | } 24 | 25 | func updateCellForRowAtIndexPath(_ indexPath : IndexPath, item: JuggernautItem) { 26 | 27 | updateProgress(item) 28 | updateLeftTime(item) 29 | updateSize(item) 30 | updateSpeed(item) 31 | updatePercentage(item) 32 | } 33 | 34 | fileprivate func setupType(_ type: String) { 35 | fileTypeImageView.image = UIImage(named: type) 36 | } 37 | 38 | fileprivate func updateProgress(_ item: JuggernautItem) { 39 | self.progress.progress = item.progress 40 | } 41 | 42 | fileprivate func updateLeftTime(_ item: JuggernautItem) { 43 | 44 | var timeLeft: String = "" 45 | 46 | guard let left = item.timeLeft else { return } 47 | 48 | if left.hours > 0 { 49 | timeLeft = "\(left.hours) Hours " 50 | } 51 | if left.minutes > 0 { 52 | timeLeft = timeLeft + "\(left.minutes) Min " 53 | } 54 | if left.seconds > 0 { 55 | timeLeft = timeLeft + "\(left.seconds) sec" 56 | } 57 | 58 | time.text = timeLeft 59 | } 60 | 61 | fileprivate func updateSize(_ item: JuggernautItem) { 62 | 63 | guard let downloadedSize = item.downloadedFile?.size else { return } 64 | guard let fullSize = item.file?.size else { return } 65 | guard let fullUnit = item.file?.unit else { return } 66 | 67 | let loaded = String(format: "%.2f", downloadedSize) 68 | let full = String(format: "%.2f", fullSize) 69 | size.text = "Size: \(loaded)/ \(full) \(fullUnit)" 70 | } 71 | 72 | fileprivate func updateSpeed(_ item: JuggernautItem) { 73 | 74 | guard let speedSize = item.speed?.speed else { return } 75 | guard let speedUnit = item.speed?.unit else { return } 76 | let duration = String(format: "%.2f", speedSize) 77 | speed.text = "Speed: \(duration) \(speedUnit)/s" 78 | } 79 | 80 | fileprivate func updatePercentage(_ item: JuggernautItem) { 81 | percentage.text = String(format: "%.f %%", item.progress * 100) 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_App_Store_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_App_Store_1024.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_CompanionSettings_Notification_Conter_29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_CompanionSettings_Notification_Conter_29@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_CompanionSettings_Notification_Conter_29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_CompanionSettings_Notification_Conter_29@3x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Home_Screen_40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Home_Screen_40@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Home_Screen_44@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Home_Screen_44@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Home_Screen_50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Home_Screen_50@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Notification_Conter_24@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Notification_Conter_24@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Notification_Conter_27_5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Notification_Conter_27_5@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Short_Look_108@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Short_Look_108@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Short_Look_86@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Short_Look_86@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Short_Look_98@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Apple_Watch_Short_Look_98@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "iPhone_Notification_20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "iPhone_Notification_20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "iPhone_Settings_29@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "iPhone_Settings_29@3x.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "iPhone_Spotlight_40@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "iPhone_Spotlight_40@3x.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "iPhone_App_60@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "iPhone_App_60@3x.png", 49 | "scale" : "3x" 50 | }, 51 | { 52 | "size" : "20x20", 53 | "idiom" : "ipad", 54 | "filename" : "iPad_Notification_20.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "iPad_Notification_20@2x.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "29x29", 65 | "idiom" : "ipad", 66 | "filename" : "iPad_Settings_29.png", 67 | "scale" : "1x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "iPad_Settings_29@2x.png", 73 | "scale" : "2x" 74 | }, 75 | { 76 | "size" : "40x40", 77 | "idiom" : "ipad", 78 | "filename" : "iPad_Spotlight_40.png", 79 | "scale" : "1x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "iPad_Spotlight_40@2x.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "76x76", 89 | "idiom" : "ipad", 90 | "filename" : "iPad_App_76.png", 91 | "scale" : "1x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "iPad_App_76@2x.png", 97 | "scale" : "2x" 98 | }, 99 | { 100 | "size" : "83.5x83.5", 101 | "idiom" : "ipad", 102 | "filename" : "iPad_Pro_App_83_5@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "1024x1024", 107 | "idiom" : "ios-marketing", 108 | "filename" : "iOS_App_Store_1024.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "24x24", 113 | "idiom" : "watch", 114 | "filename" : "Apple_Watch_Notification_Conter_24@2x.png", 115 | "scale" : "2x", 116 | "role" : "notificationCenter", 117 | "subtype" : "38mm" 118 | }, 119 | { 120 | "size" : "27.5x27.5", 121 | "idiom" : "watch", 122 | "filename" : "Apple_Watch_Notification_Conter_27_5@2x.png", 123 | "scale" : "2x", 124 | "role" : "notificationCenter", 125 | "subtype" : "42mm" 126 | }, 127 | { 128 | "size" : "29x29", 129 | "idiom" : "watch", 130 | "filename" : "Apple_Watch_CompanionSettings_Notification_Conter_29@2x.png", 131 | "role" : "companionSettings", 132 | "scale" : "2x" 133 | }, 134 | { 135 | "size" : "29x29", 136 | "idiom" : "watch", 137 | "filename" : "Apple_Watch_CompanionSettings_Notification_Conter_29@3x.png", 138 | "role" : "companionSettings", 139 | "scale" : "3x" 140 | }, 141 | { 142 | "size" : "40x40", 143 | "idiom" : "watch", 144 | "filename" : "Apple_Watch_Home_Screen_40@2x.png", 145 | "scale" : "2x", 146 | "role" : "appLauncher", 147 | "subtype" : "38mm" 148 | }, 149 | { 150 | "size" : "44x44", 151 | "idiom" : "watch", 152 | "filename" : "Apple_Watch_Home_Screen_44@2x.png", 153 | "scale" : "2x", 154 | "role" : "appLauncher", 155 | "subtype" : "40mm" 156 | }, 157 | { 158 | "size" : "50x50", 159 | "idiom" : "watch", 160 | "filename" : "Apple_Watch_Home_Screen_50@2x.png", 161 | "scale" : "2x", 162 | "role" : "appLauncher", 163 | "subtype" : "44mm" 164 | }, 165 | { 166 | "size" : "86x86", 167 | "idiom" : "watch", 168 | "filename" : "Apple_Watch_Short_Look_86@2x.png", 169 | "scale" : "2x", 170 | "role" : "quickLook", 171 | "subtype" : "38mm" 172 | }, 173 | { 174 | "size" : "98x98", 175 | "idiom" : "watch", 176 | "filename" : "Apple_Watch_Short_Look_98@2x.png", 177 | "scale" : "2x", 178 | "role" : "quickLook", 179 | "subtype" : "42mm" 180 | }, 181 | { 182 | "size" : "108x108", 183 | "idiom" : "watch", 184 | "filename" : "Apple_Watch_Short_Look_108@2x.png", 185 | "scale" : "2x", 186 | "role" : "quickLook", 187 | "subtype" : "44mm" 188 | }, 189 | { 190 | "size" : "1024x1024", 191 | "idiom" : "watch-marketing", 192 | "filename" : "Apple_Watch_App_Store_1024.png", 193 | "scale" : "1x" 194 | } 195 | ], 196 | "info" : { 197 | "version" : 1, 198 | "author" : "xcode" 199 | } 200 | } -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iOS_App_Store_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iOS_App_Store_1024.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_App_76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_App_76.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_App_76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_App_76@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Notification_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Notification_20.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Notification_20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Notification_20@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Pro_App_83_5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Pro_App_83_5@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Settings_29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Settings_29.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Settings_29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Settings_29@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Spotlight_40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Spotlight_40.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Spotlight_40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPad_Spotlight_40@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_App_60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_App_60@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_App_60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_App_60@3x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Notification_20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Notification_20@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Notification_20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Notification_20@3x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Settings_29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Settings_29@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Settings_29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Settings_29@3x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Spotlight_40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Spotlight_40@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Spotlight_40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/AppIcon.appiconset/iPhone_Spotlight_40@3x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/DOCX.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "DOCX.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "DOCX@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "DOCX@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/DOCX.imageset/DOCX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/DOCX.imageset/DOCX.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/DOCX.imageset/DOCX@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/DOCX.imageset/DOCX@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/DOCX.imageset/DOCX@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/DOCX.imageset/DOCX@3x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/MP3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "MP3.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "MP3@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "MP3@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/MP3.imageset/MP3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/MP3.imageset/MP3.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/MP3.imageset/MP3@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/MP3.imageset/MP3@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/MP3.imageset/MP3@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/MP3.imageset/MP3@3x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/MP4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "MP4.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "MP4@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "MP4@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/MP4.imageset/MP4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/MP4.imageset/MP4.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/MP4.imageset/MP4@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/MP4.imageset/MP4@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/MP4.imageset/MP4@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/MP4.imageset/MP4@3x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/PNG.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "PNG.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "PNG@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "PNG@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/PNG.imageset/PNG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/PNG.imageset/PNG.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/PNG.imageset/PNG@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/PNG.imageset/PNG@2x.png -------------------------------------------------------------------------------- /Example/Juggernaut/Resources/Images.xcassets/PNG.imageset/PNG@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Example/Juggernaut/Resources/Images.xcassets/PNG.imageset/PNG@3x.png -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'Juggernaut_Example' do 4 | pod 'Juggernaut', :path => '../' 5 | 6 | target 'Juggernaut_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Juggernaut (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - Juggernaut (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | Juggernaut: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | Juggernaut: 8cfc2128a35bc0c5126e72c1e8c0e0f4abbcc9a3 13 | 14 | PODFILE CHECKSUM: ddb776638d3dba9d62f2e3fdae6421b7cec01024 15 | 16 | COCOAPODS: 1.6.0.beta.2 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/Juggernaut.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Juggernaut", 3 | "version": "0.1.0", 4 | "summary": "A short description of Juggernaut.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/tularovbeslan@gmail.com/Juggernaut", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "tularovbeslan@gmail.com": "tularovbeslan@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/tularovbeslan@gmail.com/Juggernaut.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "Juggernaut/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Juggernaut (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - Juggernaut (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | Juggernaut: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | Juggernaut: 8cfc2128a35bc0c5126e72c1e8c0e0f4abbcc9a3 13 | 14 | PODFILE CHECKSUM: ddb776638d3dba9d62f2e3fdae6421b7cec01024 15 | 16 | COCOAPODS: 1.6.0.beta.2 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3C3B28BB01E0FCC2876980DCB7BB6491 /* Juggernaut-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7FD0BCA57D977D399C098DBDBA754A61 /* Juggernaut-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 455D015D6A6CA9E4CA3D68CBA92AD708 /* Pods-Juggernaut_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 84B00C6CCD3E2C6458BFEC4FAEBB3B7B /* Pods-Juggernaut_Example-dummy.m */; }; 12 | 4C08714589B03D16833FD38179BA3300 /* Pods-Juggernaut_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0B2E25688EF05059577FB41E2FE00BF4 /* Pods-Juggernaut_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 577D60DB221CE12C00ED9642 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 577D60D7221CE12C00ED9642 /* Extensions.swift */; }; 14 | 577D60DC221CE12C00ED9642 /* JuggernautItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 577D60D8221CE12C00ED9642 /* JuggernautItem.swift */; }; 15 | 577D60DD221CE12C00ED9642 /* Juggernaut.swift in Sources */ = {isa = PBXBuildFile; fileRef = 577D60D9221CE12C00ED9642 /* Juggernaut.swift */; }; 16 | 577D60DE221CE12C00ED9642 /* JuggernautDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 577D60DA221CE12C00ED9642 /* JuggernautDelegate.swift */; }; 17 | 7769C5E850A1C6AD4E7DBBA37712F293 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */; }; 18 | 79B240F60AAC25104D0F28A4EFC35AA1 /* Pods-Juggernaut_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = EE15B8A181D220CCCB5E8339ECFAEB6F /* Pods-Juggernaut_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | 87F89B889A439F4FF6FE4302CC15C620 /* Juggernaut-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 66629D9FF2455F3E06EB21E313FB5F05 /* Juggernaut-dummy.m */; }; 20 | 885AF8CB2588CA48584FB50B970C754E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */; }; 21 | DF2895A5066F15E14BAF7D58930FBC87 /* Pods-Juggernaut_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B20CD44ECF06B1F62C9DF92A59D586D6 /* Pods-Juggernaut_Tests-dummy.m */; }; 22 | E6B651BD4E4E2D12225628AA0120BB47 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 261DD4404A85D6B2FBE275C10B582AC3 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = D162CA6DC9FA81E0215D8C0EDA88AABC; 31 | remoteInfo = "Pods-Juggernaut_Example"; 32 | }; 33 | 7A7A744642592C8B56B8C98A7069F620 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 33C8E7B8AA35DC16007908753D89BFF4; 38 | remoteInfo = Juggernaut; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 01BCAB8804AA69480591D4D560570267 /* Pods-Juggernaut_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Juggernaut_Tests-acknowledgements.markdown"; sourceTree = ""; }; 44 | 0B2E25688EF05059577FB41E2FE00BF4 /* Pods-Juggernaut_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Juggernaut_Tests-umbrella.h"; sourceTree = ""; }; 45 | 0BBB13CBCF9C11ACFD9E5BF1C04CA656 /* Pods-Juggernaut_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Juggernaut_Example-Info.plist"; sourceTree = ""; }; 46 | 0C7D27AC4F4F710E8FDD243FCEA75C25 /* Juggernaut-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Juggernaut-prefix.pch"; sourceTree = ""; }; 47 | 1B048350013F99993F3D91414595688C /* Pods-Juggernaut_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Juggernaut_Tests-acknowledgements.plist"; sourceTree = ""; }; 48 | 2DD025EFA216BDBA68FD90E4299B598F /* Juggernaut.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Juggernaut.xcconfig; sourceTree = ""; }; 49 | 3C532D11D33C3AF0526772D29176A965 /* Pods-Juggernaut_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Juggernaut_Example.modulemap"; sourceTree = ""; }; 50 | 503A1D046C007C267EC16261FCA40EF6 /* Pods-Juggernaut_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Juggernaut_Example-acknowledgements.plist"; sourceTree = ""; }; 51 | 503C368E496EDD09642347C3829020C6 /* Pods-Juggernaut_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Juggernaut_Example.debug.xcconfig"; sourceTree = ""; }; 52 | 53C4DF179CF72405A29A440BC7A99BD0 /* Juggernaut.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Juggernaut.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 577D60D7221CE12C00ED9642 /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = ""; }; 54 | 577D60D8221CE12C00ED9642 /* JuggernautItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JuggernautItem.swift; sourceTree = ""; }; 55 | 577D60D9221CE12C00ED9642 /* Juggernaut.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Juggernaut.swift; sourceTree = ""; }; 56 | 577D60DA221CE12C00ED9642 /* JuggernautDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JuggernautDelegate.swift; sourceTree = ""; }; 57 | 66629D9FF2455F3E06EB21E313FB5F05 /* Juggernaut-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Juggernaut-dummy.m"; sourceTree = ""; }; 58 | 727338656CFBC15B9B393A53F500F474 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 59 | 737DD89EF5316E514BB7A3C5E1D21B82 /* Pods-Juggernaut_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Juggernaut_Example-acknowledgements.markdown"; sourceTree = ""; }; 60 | 79884D8AEF38E8B9EEBC80E83AE8AE8A /* Pods-Juggernaut_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Juggernaut_Tests.release.xcconfig"; sourceTree = ""; }; 61 | 7D4FAD2A952CDC9D201A785F1F39BB2A /* Juggernaut.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Juggernaut.modulemap; sourceTree = ""; }; 62 | 7FD0BCA57D977D399C098DBDBA754A61 /* Juggernaut-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Juggernaut-umbrella.h"; sourceTree = ""; }; 63 | 83632F10D703B815E31BBBD74EA67DF7 /* Pods-Juggernaut_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Juggernaut_Example-frameworks.sh"; sourceTree = ""; }; 64 | 84B00C6CCD3E2C6458BFEC4FAEBB3B7B /* Pods-Juggernaut_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Juggernaut_Example-dummy.m"; sourceTree = ""; }; 65 | 97CA20D15F40137404162C710702507C /* Pods_Juggernaut_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Juggernaut_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 97EA628258789C3A50DA882AC7464EF4 /* Juggernaut-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Juggernaut-Info.plist"; sourceTree = ""; }; 67 | AD33E7C8D9CED4F68E01DD4651CFA509 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 68 | B20B23E9EF853B8F7C5EA04B54DE913F /* Pods-Juggernaut_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Juggernaut_Tests.modulemap"; sourceTree = ""; }; 69 | B20CD44ECF06B1F62C9DF92A59D586D6 /* Pods-Juggernaut_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Juggernaut_Tests-dummy.m"; sourceTree = ""; }; 70 | B36AB396275697EEE1A5B13BA8A38FE3 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 71 | D2AAC7F434952AF1EB947388CD8F01B8 /* Juggernaut.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = Juggernaut.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 72 | D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 73 | D929E9BA5EFB642FA1EFFAB5F34CA5DB /* Pods-Juggernaut_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Juggernaut_Tests.debug.xcconfig"; sourceTree = ""; }; 74 | E0DF97DF5EAE767944AB0A09AA2D8F5C /* Pods-Juggernaut_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Juggernaut_Tests-Info.plist"; sourceTree = ""; }; 75 | E15071AD68A2A82AB21782D9F7F33DB8 /* Pods_Juggernaut_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Juggernaut_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 76 | EE15B8A181D220CCCB5E8339ECFAEB6F /* Pods-Juggernaut_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Juggernaut_Example-umbrella.h"; sourceTree = ""; }; 77 | F4165131A2E77250EEA1D63EFE19CFFA /* Pods-Juggernaut_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Juggernaut_Example.release.xcconfig"; sourceTree = ""; }; 78 | /* End PBXFileReference section */ 79 | 80 | /* Begin PBXFrameworksBuildPhase section */ 81 | 20219C75C0E2FE95B90337D3EFC4AFB4 /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | 885AF8CB2588CA48584FB50B970C754E /* Foundation.framework in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 77FF175340A8FA329396EFD4B6FBB85C /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | 7769C5E850A1C6AD4E7DBBA37712F293 /* Foundation.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 89C9822F25A95FC73D0A299E53F70508 /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | E6B651BD4E4E2D12225628AA0120BB47 /* Foundation.framework in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXFrameworksBuildPhase section */ 106 | 107 | /* Begin PBXGroup section */ 108 | 027DE7E7C691D64C82915FA0B219C418 /* Pods-Juggernaut_Example */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 3C532D11D33C3AF0526772D29176A965 /* Pods-Juggernaut_Example.modulemap */, 112 | 737DD89EF5316E514BB7A3C5E1D21B82 /* Pods-Juggernaut_Example-acknowledgements.markdown */, 113 | 503A1D046C007C267EC16261FCA40EF6 /* Pods-Juggernaut_Example-acknowledgements.plist */, 114 | 84B00C6CCD3E2C6458BFEC4FAEBB3B7B /* Pods-Juggernaut_Example-dummy.m */, 115 | 83632F10D703B815E31BBBD74EA67DF7 /* Pods-Juggernaut_Example-frameworks.sh */, 116 | 0BBB13CBCF9C11ACFD9E5BF1C04CA656 /* Pods-Juggernaut_Example-Info.plist */, 117 | EE15B8A181D220CCCB5E8339ECFAEB6F /* Pods-Juggernaut_Example-umbrella.h */, 118 | 503C368E496EDD09642347C3829020C6 /* Pods-Juggernaut_Example.debug.xcconfig */, 119 | F4165131A2E77250EEA1D63EFE19CFFA /* Pods-Juggernaut_Example.release.xcconfig */, 120 | ); 121 | name = "Pods-Juggernaut_Example"; 122 | path = "Target Support Files/Pods-Juggernaut_Example"; 123 | sourceTree = ""; 124 | }; 125 | 0FC30D8CE3B3809AC332A01B3588569F /* Pod */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | D2AAC7F434952AF1EB947388CD8F01B8 /* Juggernaut.podspec */, 129 | AD33E7C8D9CED4F68E01DD4651CFA509 /* LICENSE */, 130 | 727338656CFBC15B9B393A53F500F474 /* README.md */, 131 | ); 132 | name = Pod; 133 | sourceTree = ""; 134 | }; 135 | 27D7E8BAB6BD264BEF1B4A91877FD6BA /* Juggernaut */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 579E5FD0220B8558009A4F9D /* Classes */, 139 | 0FC30D8CE3B3809AC332A01B3588569F /* Pod */, 140 | 7FBFA2A22573C9611E2334DBCBB69EF8 /* Support Files */, 141 | ); 142 | name = Juggernaut; 143 | path = ../..; 144 | sourceTree = ""; 145 | }; 146 | 44D5347904CF754D6785B84253F2574A /* iOS */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */, 150 | ); 151 | name = iOS; 152 | sourceTree = ""; 153 | }; 154 | 579E5FD0220B8558009A4F9D /* Classes */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 577D60D7221CE12C00ED9642 /* Extensions.swift */, 158 | 577D60D9221CE12C00ED9642 /* Juggernaut.swift */, 159 | 577D60DA221CE12C00ED9642 /* JuggernautDelegate.swift */, 160 | 577D60D8221CE12C00ED9642 /* JuggernautItem.swift */, 161 | ); 162 | name = Classes; 163 | path = Juggernaut/Classes; 164 | sourceTree = ""; 165 | }; 166 | 74B2DB215BD53DBF1CC0B02F8AD25CCF /* Targets Support Files */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 027DE7E7C691D64C82915FA0B219C418 /* Pods-Juggernaut_Example */, 170 | A3737DF26E099BAF5D12AC9F719A8E26 /* Pods-Juggernaut_Tests */, 171 | ); 172 | name = "Targets Support Files"; 173 | sourceTree = ""; 174 | }; 175 | 7DB346D0F39D3F0E887471402A8071AB = { 176 | isa = PBXGroup; 177 | children = ( 178 | B36AB396275697EEE1A5B13BA8A38FE3 /* Podfile */, 179 | 872775232EF6EF1DA52457CB64879CF4 /* Development Pods */, 180 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 181 | 85B4980AEC12F2AE91623FEC817384D9 /* Products */, 182 | 74B2DB215BD53DBF1CC0B02F8AD25CCF /* Targets Support Files */, 183 | ); 184 | sourceTree = ""; 185 | }; 186 | 7FBFA2A22573C9611E2334DBCBB69EF8 /* Support Files */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 7D4FAD2A952CDC9D201A785F1F39BB2A /* Juggernaut.modulemap */, 190 | 2DD025EFA216BDBA68FD90E4299B598F /* Juggernaut.xcconfig */, 191 | 66629D9FF2455F3E06EB21E313FB5F05 /* Juggernaut-dummy.m */, 192 | 97EA628258789C3A50DA882AC7464EF4 /* Juggernaut-Info.plist */, 193 | 0C7D27AC4F4F710E8FDD243FCEA75C25 /* Juggernaut-prefix.pch */, 194 | 7FD0BCA57D977D399C098DBDBA754A61 /* Juggernaut-umbrella.h */, 195 | ); 196 | name = "Support Files"; 197 | path = "Example/Pods/Target Support Files/Juggernaut"; 198 | sourceTree = ""; 199 | }; 200 | 85B4980AEC12F2AE91623FEC817384D9 /* Products */ = { 201 | isa = PBXGroup; 202 | children = ( 203 | 53C4DF179CF72405A29A440BC7A99BD0 /* Juggernaut.framework */, 204 | E15071AD68A2A82AB21782D9F7F33DB8 /* Pods_Juggernaut_Example.framework */, 205 | 97CA20D15F40137404162C710702507C /* Pods_Juggernaut_Tests.framework */, 206 | ); 207 | name = Products; 208 | sourceTree = ""; 209 | }; 210 | 872775232EF6EF1DA52457CB64879CF4 /* Development Pods */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 27D7E8BAB6BD264BEF1B4A91877FD6BA /* Juggernaut */, 214 | ); 215 | name = "Development Pods"; 216 | sourceTree = ""; 217 | }; 218 | A3737DF26E099BAF5D12AC9F719A8E26 /* Pods-Juggernaut_Tests */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | B20B23E9EF853B8F7C5EA04B54DE913F /* Pods-Juggernaut_Tests.modulemap */, 222 | 01BCAB8804AA69480591D4D560570267 /* Pods-Juggernaut_Tests-acknowledgements.markdown */, 223 | 1B048350013F99993F3D91414595688C /* Pods-Juggernaut_Tests-acknowledgements.plist */, 224 | B20CD44ECF06B1F62C9DF92A59D586D6 /* Pods-Juggernaut_Tests-dummy.m */, 225 | E0DF97DF5EAE767944AB0A09AA2D8F5C /* Pods-Juggernaut_Tests-Info.plist */, 226 | 0B2E25688EF05059577FB41E2FE00BF4 /* Pods-Juggernaut_Tests-umbrella.h */, 227 | D929E9BA5EFB642FA1EFFAB5F34CA5DB /* Pods-Juggernaut_Tests.debug.xcconfig */, 228 | 79884D8AEF38E8B9EEBC80E83AE8AE8A /* Pods-Juggernaut_Tests.release.xcconfig */, 229 | ); 230 | name = "Pods-Juggernaut_Tests"; 231 | path = "Target Support Files/Pods-Juggernaut_Tests"; 232 | sourceTree = ""; 233 | }; 234 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 235 | isa = PBXGroup; 236 | children = ( 237 | 44D5347904CF754D6785B84253F2574A /* iOS */, 238 | ); 239 | name = Frameworks; 240 | sourceTree = ""; 241 | }; 242 | /* End PBXGroup section */ 243 | 244 | /* Begin PBXHeadersBuildPhase section */ 245 | 3EEC92B56D2199DC2A9D8812FDA4456B /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 79B240F60AAC25104D0F28A4EFC35AA1 /* Pods-Juggernaut_Example-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | 747BC0D1F9D376C300D10D5C168FA0A5 /* Headers */ = { 254 | isa = PBXHeadersBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 4C08714589B03D16833FD38179BA3300 /* Pods-Juggernaut_Tests-umbrella.h in Headers */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | D90520B27B6C102CDFF8FB329D7E81E0 /* Headers */ = { 262 | isa = PBXHeadersBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | 3C3B28BB01E0FCC2876980DCB7BB6491 /* Juggernaut-umbrella.h in Headers */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | /* End PBXHeadersBuildPhase section */ 270 | 271 | /* Begin PBXNativeTarget section */ 272 | 33C8E7B8AA35DC16007908753D89BFF4 /* Juggernaut */ = { 273 | isa = PBXNativeTarget; 274 | buildConfigurationList = EB4E541109B5255D403B5F86FC7B06D0 /* Build configuration list for PBXNativeTarget "Juggernaut" */; 275 | buildPhases = ( 276 | D90520B27B6C102CDFF8FB329D7E81E0 /* Headers */, 277 | 0BEA89AB1F9E11049DE59383CB7A7660 /* Sources */, 278 | 77FF175340A8FA329396EFD4B6FBB85C /* Frameworks */, 279 | 371264C11389270ABB2231FA6ECE4791 /* Resources */, 280 | ); 281 | buildRules = ( 282 | ); 283 | dependencies = ( 284 | ); 285 | name = Juggernaut; 286 | productName = Juggernaut; 287 | productReference = 53C4DF179CF72405A29A440BC7A99BD0 /* Juggernaut.framework */; 288 | productType = "com.apple.product-type.framework"; 289 | }; 290 | D162CA6DC9FA81E0215D8C0EDA88AABC /* Pods-Juggernaut_Example */ = { 291 | isa = PBXNativeTarget; 292 | buildConfigurationList = C2A2B44C0CA189C283F31B093ED5F67B /* Build configuration list for PBXNativeTarget "Pods-Juggernaut_Example" */; 293 | buildPhases = ( 294 | 3EEC92B56D2199DC2A9D8812FDA4456B /* Headers */, 295 | E45437C0A05AA3060FF39D2A731CA29C /* Sources */, 296 | 89C9822F25A95FC73D0A299E53F70508 /* Frameworks */, 297 | E93EB102BCF4F92135EEDECC8DAD5164 /* Resources */, 298 | ); 299 | buildRules = ( 300 | ); 301 | dependencies = ( 302 | 711D55F7F95A59902D03D8376D051EDB /* PBXTargetDependency */, 303 | ); 304 | name = "Pods-Juggernaut_Example"; 305 | productName = "Pods-Juggernaut_Example"; 306 | productReference = E15071AD68A2A82AB21782D9F7F33DB8 /* Pods_Juggernaut_Example.framework */; 307 | productType = "com.apple.product-type.framework"; 308 | }; 309 | D86FF8D777DDDDC53ABEB7653AADDE0B /* Pods-Juggernaut_Tests */ = { 310 | isa = PBXNativeTarget; 311 | buildConfigurationList = A692FE83A19B81B8484882C2C7866986 /* Build configuration list for PBXNativeTarget "Pods-Juggernaut_Tests" */; 312 | buildPhases = ( 313 | 747BC0D1F9D376C300D10D5C168FA0A5 /* Headers */, 314 | 2D17F9D2F0429E747B6C4E6500243C4B /* Sources */, 315 | 20219C75C0E2FE95B90337D3EFC4AFB4 /* Frameworks */, 316 | BF8DD65E0B9340BEDE2E9515C7671E84 /* Resources */, 317 | ); 318 | buildRules = ( 319 | ); 320 | dependencies = ( 321 | B006A836287D27E4B64F5490D6AAC23D /* PBXTargetDependency */, 322 | ); 323 | name = "Pods-Juggernaut_Tests"; 324 | productName = "Pods-Juggernaut_Tests"; 325 | productReference = 97CA20D15F40137404162C710702507C /* Pods_Juggernaut_Tests.framework */; 326 | productType = "com.apple.product-type.framework"; 327 | }; 328 | /* End PBXNativeTarget section */ 329 | 330 | /* Begin PBXProject section */ 331 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 332 | isa = PBXProject; 333 | attributes = { 334 | LastSwiftUpdateCheck = 0930; 335 | LastUpgradeCheck = 1020; 336 | TargetAttributes = { 337 | 33C8E7B8AA35DC16007908753D89BFF4 = { 338 | DevelopmentTeam = MTVD7A69KL; 339 | LastSwiftMigration = 1020; 340 | ProvisioningStyle = Automatic; 341 | }; 342 | }; 343 | }; 344 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 345 | compatibilityVersion = "Xcode 3.2"; 346 | developmentRegion = en; 347 | hasScannedForEncodings = 0; 348 | knownRegions = ( 349 | en, 350 | Base, 351 | ); 352 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 353 | productRefGroup = 85B4980AEC12F2AE91623FEC817384D9 /* Products */; 354 | projectDirPath = ""; 355 | projectRoot = ""; 356 | targets = ( 357 | 33C8E7B8AA35DC16007908753D89BFF4 /* Juggernaut */, 358 | D162CA6DC9FA81E0215D8C0EDA88AABC /* Pods-Juggernaut_Example */, 359 | D86FF8D777DDDDC53ABEB7653AADDE0B /* Pods-Juggernaut_Tests */, 360 | ); 361 | }; 362 | /* End PBXProject section */ 363 | 364 | /* Begin PBXResourcesBuildPhase section */ 365 | 371264C11389270ABB2231FA6ECE4791 /* Resources */ = { 366 | isa = PBXResourcesBuildPhase; 367 | buildActionMask = 2147483647; 368 | files = ( 369 | ); 370 | runOnlyForDeploymentPostprocessing = 0; 371 | }; 372 | BF8DD65E0B9340BEDE2E9515C7671E84 /* Resources */ = { 373 | isa = PBXResourcesBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | ); 377 | runOnlyForDeploymentPostprocessing = 0; 378 | }; 379 | E93EB102BCF4F92135EEDECC8DAD5164 /* Resources */ = { 380 | isa = PBXResourcesBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | ); 384 | runOnlyForDeploymentPostprocessing = 0; 385 | }; 386 | /* End PBXResourcesBuildPhase section */ 387 | 388 | /* Begin PBXSourcesBuildPhase section */ 389 | 0BEA89AB1F9E11049DE59383CB7A7660 /* Sources */ = { 390 | isa = PBXSourcesBuildPhase; 391 | buildActionMask = 2147483647; 392 | files = ( 393 | 87F89B889A439F4FF6FE4302CC15C620 /* Juggernaut-dummy.m in Sources */, 394 | 577D60DB221CE12C00ED9642 /* Extensions.swift in Sources */, 395 | 577D60DE221CE12C00ED9642 /* JuggernautDelegate.swift in Sources */, 396 | 577D60DC221CE12C00ED9642 /* JuggernautItem.swift in Sources */, 397 | 577D60DD221CE12C00ED9642 /* Juggernaut.swift in Sources */, 398 | ); 399 | runOnlyForDeploymentPostprocessing = 0; 400 | }; 401 | 2D17F9D2F0429E747B6C4E6500243C4B /* Sources */ = { 402 | isa = PBXSourcesBuildPhase; 403 | buildActionMask = 2147483647; 404 | files = ( 405 | DF2895A5066F15E14BAF7D58930FBC87 /* Pods-Juggernaut_Tests-dummy.m in Sources */, 406 | ); 407 | runOnlyForDeploymentPostprocessing = 0; 408 | }; 409 | E45437C0A05AA3060FF39D2A731CA29C /* Sources */ = { 410 | isa = PBXSourcesBuildPhase; 411 | buildActionMask = 2147483647; 412 | files = ( 413 | 455D015D6A6CA9E4CA3D68CBA92AD708 /* Pods-Juggernaut_Example-dummy.m in Sources */, 414 | ); 415 | runOnlyForDeploymentPostprocessing = 0; 416 | }; 417 | /* End PBXSourcesBuildPhase section */ 418 | 419 | /* Begin PBXTargetDependency section */ 420 | 711D55F7F95A59902D03D8376D051EDB /* PBXTargetDependency */ = { 421 | isa = PBXTargetDependency; 422 | name = Juggernaut; 423 | target = 33C8E7B8AA35DC16007908753D89BFF4 /* Juggernaut */; 424 | targetProxy = 7A7A744642592C8B56B8C98A7069F620 /* PBXContainerItemProxy */; 425 | }; 426 | B006A836287D27E4B64F5490D6AAC23D /* PBXTargetDependency */ = { 427 | isa = PBXTargetDependency; 428 | name = "Pods-Juggernaut_Example"; 429 | target = D162CA6DC9FA81E0215D8C0EDA88AABC /* Pods-Juggernaut_Example */; 430 | targetProxy = 261DD4404A85D6B2FBE275C10B582AC3 /* PBXContainerItemProxy */; 431 | }; 432 | /* End PBXTargetDependency section */ 433 | 434 | /* Begin XCBuildConfiguration section */ 435 | 3B3DA33CE3BF01D01F504BE066AE40C0 /* Release */ = { 436 | isa = XCBuildConfiguration; 437 | baseConfigurationReference = 79884D8AEF38E8B9EEBC80E83AE8AE8A /* Pods-Juggernaut_Tests.release.xcconfig */; 438 | buildSettings = { 439 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 440 | CODE_SIGN_IDENTITY = ""; 441 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 442 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 443 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 444 | CURRENT_PROJECT_VERSION = 1; 445 | DEFINES_MODULE = YES; 446 | DYLIB_COMPATIBILITY_VERSION = 1; 447 | DYLIB_CURRENT_VERSION = 1; 448 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 449 | INFOPLIST_FILE = "Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests-Info.plist"; 450 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 451 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 453 | MACH_O_TYPE = staticlib; 454 | MODULEMAP_FILE = "Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests.modulemap"; 455 | OTHER_LDFLAGS = ""; 456 | OTHER_LIBTOOLFLAGS = ""; 457 | PODS_ROOT = "$(SRCROOT)"; 458 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 459 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 460 | SDKROOT = iphoneos; 461 | SKIP_INSTALL = YES; 462 | SWIFT_VERSION = 5; 463 | TARGETED_DEVICE_FAMILY = "1,2"; 464 | VALIDATE_PRODUCT = YES; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | VERSION_INFO_PREFIX = ""; 467 | }; 468 | name = Release; 469 | }; 470 | 5153DC2E9BB4F6D6F85AF7C0A4A2A27F /* Debug */ = { 471 | isa = XCBuildConfiguration; 472 | buildSettings = { 473 | ALWAYS_SEARCH_USER_PATHS = NO; 474 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 475 | CLANG_ANALYZER_NONNULL = YES; 476 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 477 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 478 | CLANG_CXX_LIBRARY = "libc++"; 479 | CLANG_ENABLE_MODULES = YES; 480 | CLANG_ENABLE_OBJC_ARC = YES; 481 | CLANG_ENABLE_OBJC_WEAK = YES; 482 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 483 | CLANG_WARN_BOOL_CONVERSION = YES; 484 | CLANG_WARN_COMMA = YES; 485 | CLANG_WARN_CONSTANT_CONVERSION = YES; 486 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 487 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 488 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 489 | CLANG_WARN_EMPTY_BODY = YES; 490 | CLANG_WARN_ENUM_CONVERSION = YES; 491 | CLANG_WARN_INFINITE_RECURSION = YES; 492 | CLANG_WARN_INT_CONVERSION = YES; 493 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 494 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 495 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 496 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 497 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 498 | CLANG_WARN_STRICT_PROTOTYPES = YES; 499 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 500 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 501 | CLANG_WARN_UNREACHABLE_CODE = YES; 502 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 503 | COPY_PHASE_STRIP = NO; 504 | DEBUG_INFORMATION_FORMAT = dwarf; 505 | ENABLE_STRICT_OBJC_MSGSEND = YES; 506 | ENABLE_TESTABILITY = YES; 507 | GCC_C_LANGUAGE_STANDARD = gnu11; 508 | GCC_DYNAMIC_NO_PIC = NO; 509 | GCC_NO_COMMON_BLOCKS = YES; 510 | GCC_OPTIMIZATION_LEVEL = 0; 511 | GCC_PREPROCESSOR_DEFINITIONS = ( 512 | "POD_CONFIGURATION_DEBUG=1", 513 | "DEBUG=1", 514 | "$(inherited)", 515 | ); 516 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 517 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 518 | GCC_WARN_UNDECLARED_SELECTOR = YES; 519 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 520 | GCC_WARN_UNUSED_FUNCTION = YES; 521 | GCC_WARN_UNUSED_VARIABLE = YES; 522 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 523 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 524 | MTL_FAST_MATH = YES; 525 | ONLY_ACTIVE_ARCH = YES; 526 | PRODUCT_NAME = "$(TARGET_NAME)"; 527 | STRIP_INSTALLED_PRODUCT = NO; 528 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 529 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 530 | SWIFT_VERSION = 4.2; 531 | SYMROOT = "${SRCROOT}/../build"; 532 | }; 533 | name = Debug; 534 | }; 535 | 55A31DC582F6595ABD7BB7C2505DFBE6 /* Debug */ = { 536 | isa = XCBuildConfiguration; 537 | baseConfigurationReference = D929E9BA5EFB642FA1EFFAB5F34CA5DB /* Pods-Juggernaut_Tests.debug.xcconfig */; 538 | buildSettings = { 539 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 540 | CODE_SIGN_IDENTITY = ""; 541 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 542 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 543 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 544 | CURRENT_PROJECT_VERSION = 1; 545 | DEFINES_MODULE = YES; 546 | DYLIB_COMPATIBILITY_VERSION = 1; 547 | DYLIB_CURRENT_VERSION = 1; 548 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 549 | INFOPLIST_FILE = "Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests-Info.plist"; 550 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 551 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 552 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 553 | MACH_O_TYPE = staticlib; 554 | MODULEMAP_FILE = "Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests.modulemap"; 555 | OTHER_LDFLAGS = ""; 556 | OTHER_LIBTOOLFLAGS = ""; 557 | PODS_ROOT = "$(SRCROOT)"; 558 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 559 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 560 | SDKROOT = iphoneos; 561 | SKIP_INSTALL = YES; 562 | SWIFT_VERSION = 5; 563 | TARGETED_DEVICE_FAMILY = "1,2"; 564 | VERSIONING_SYSTEM = "apple-generic"; 565 | VERSION_INFO_PREFIX = ""; 566 | }; 567 | name = Debug; 568 | }; 569 | 6A949A208667F02694AF29D5DCC8D4BF /* Release */ = { 570 | isa = XCBuildConfiguration; 571 | buildSettings = { 572 | ALWAYS_SEARCH_USER_PATHS = NO; 573 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 574 | CLANG_ANALYZER_NONNULL = YES; 575 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 576 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 577 | CLANG_CXX_LIBRARY = "libc++"; 578 | CLANG_ENABLE_MODULES = YES; 579 | CLANG_ENABLE_OBJC_ARC = YES; 580 | CLANG_ENABLE_OBJC_WEAK = YES; 581 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 582 | CLANG_WARN_BOOL_CONVERSION = YES; 583 | CLANG_WARN_COMMA = YES; 584 | CLANG_WARN_CONSTANT_CONVERSION = YES; 585 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 586 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 587 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 588 | CLANG_WARN_EMPTY_BODY = YES; 589 | CLANG_WARN_ENUM_CONVERSION = YES; 590 | CLANG_WARN_INFINITE_RECURSION = YES; 591 | CLANG_WARN_INT_CONVERSION = YES; 592 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 593 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 594 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 595 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 596 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 597 | CLANG_WARN_STRICT_PROTOTYPES = YES; 598 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 599 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 600 | CLANG_WARN_UNREACHABLE_CODE = YES; 601 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 602 | COPY_PHASE_STRIP = NO; 603 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 604 | ENABLE_NS_ASSERTIONS = NO; 605 | ENABLE_STRICT_OBJC_MSGSEND = YES; 606 | GCC_C_LANGUAGE_STANDARD = gnu11; 607 | GCC_NO_COMMON_BLOCKS = YES; 608 | GCC_PREPROCESSOR_DEFINITIONS = ( 609 | "POD_CONFIGURATION_RELEASE=1", 610 | "$(inherited)", 611 | ); 612 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 613 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 614 | GCC_WARN_UNDECLARED_SELECTOR = YES; 615 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 616 | GCC_WARN_UNUSED_FUNCTION = YES; 617 | GCC_WARN_UNUSED_VARIABLE = YES; 618 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 619 | MTL_ENABLE_DEBUG_INFO = NO; 620 | MTL_FAST_MATH = YES; 621 | PRODUCT_NAME = "$(TARGET_NAME)"; 622 | STRIP_INSTALLED_PRODUCT = NO; 623 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 624 | SWIFT_VERSION = 4.2; 625 | SYMROOT = "${SRCROOT}/../build"; 626 | }; 627 | name = Release; 628 | }; 629 | 797BB535121AA93CB1FCD114C4181656 /* Release */ = { 630 | isa = XCBuildConfiguration; 631 | baseConfigurationReference = 2DD025EFA216BDBA68FD90E4299B598F /* Juggernaut.xcconfig */; 632 | buildSettings = { 633 | CLANG_ENABLE_MODULES = YES; 634 | CODE_SIGN_IDENTITY = "iPhone Developer"; 635 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 636 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 637 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 638 | CODE_SIGN_STYLE = Automatic; 639 | CURRENT_PROJECT_VERSION = 1; 640 | DEFINES_MODULE = YES; 641 | DEVELOPMENT_TEAM = MTVD7A69KL; 642 | DYLIB_COMPATIBILITY_VERSION = 1; 643 | DYLIB_CURRENT_VERSION = 1; 644 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 645 | GCC_PREFIX_HEADER = "Target Support Files/Juggernaut/Juggernaut-prefix.pch"; 646 | INFOPLIST_FILE = "Target Support Files/Juggernaut/Juggernaut-Info.plist"; 647 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 648 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 649 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 650 | MODULEMAP_FILE = "Target Support Files/Juggernaut/Juggernaut.modulemap"; 651 | PRODUCT_MODULE_NAME = Juggernaut; 652 | PRODUCT_NAME = Juggernaut; 653 | PROVISIONING_PROFILE_SPECIFIER = ""; 654 | SDKROOT = iphoneos; 655 | SKIP_INSTALL = YES; 656 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 657 | SWIFT_VERSION = 5.0; 658 | TARGETED_DEVICE_FAMILY = "1,2"; 659 | VALIDATE_PRODUCT = YES; 660 | VERSIONING_SYSTEM = "apple-generic"; 661 | VERSION_INFO_PREFIX = ""; 662 | }; 663 | name = Release; 664 | }; 665 | 80C920DB63D94D649808F8C801163C3C /* Debug */ = { 666 | isa = XCBuildConfiguration; 667 | baseConfigurationReference = 2DD025EFA216BDBA68FD90E4299B598F /* Juggernaut.xcconfig */; 668 | buildSettings = { 669 | CLANG_ENABLE_MODULES = YES; 670 | CODE_SIGN_IDENTITY = "iPhone Developer"; 671 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 672 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 673 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 674 | CODE_SIGN_STYLE = Automatic; 675 | CURRENT_PROJECT_VERSION = 1; 676 | DEFINES_MODULE = YES; 677 | DEVELOPMENT_TEAM = MTVD7A69KL; 678 | DYLIB_COMPATIBILITY_VERSION = 1; 679 | DYLIB_CURRENT_VERSION = 1; 680 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 681 | GCC_PREFIX_HEADER = "Target Support Files/Juggernaut/Juggernaut-prefix.pch"; 682 | INFOPLIST_FILE = "Target Support Files/Juggernaut/Juggernaut-Info.plist"; 683 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 684 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 685 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 686 | MODULEMAP_FILE = "Target Support Files/Juggernaut/Juggernaut.modulemap"; 687 | PRODUCT_MODULE_NAME = Juggernaut; 688 | PRODUCT_NAME = Juggernaut; 689 | PROVISIONING_PROFILE_SPECIFIER = ""; 690 | SDKROOT = iphoneos; 691 | SKIP_INSTALL = YES; 692 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 693 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 694 | SWIFT_VERSION = 5.0; 695 | TARGETED_DEVICE_FAMILY = "1,2"; 696 | VERSIONING_SYSTEM = "apple-generic"; 697 | VERSION_INFO_PREFIX = ""; 698 | }; 699 | name = Debug; 700 | }; 701 | A5A9AD4186354150353664BE3C8F6FEB /* Release */ = { 702 | isa = XCBuildConfiguration; 703 | baseConfigurationReference = F4165131A2E77250EEA1D63EFE19CFFA /* Pods-Juggernaut_Example.release.xcconfig */; 704 | buildSettings = { 705 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 706 | CODE_SIGN_IDENTITY = ""; 707 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 708 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 709 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 710 | CURRENT_PROJECT_VERSION = 1; 711 | DEFINES_MODULE = YES; 712 | DYLIB_COMPATIBILITY_VERSION = 1; 713 | DYLIB_CURRENT_VERSION = 1; 714 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 715 | INFOPLIST_FILE = "Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-Info.plist"; 716 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 717 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 718 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 719 | MACH_O_TYPE = staticlib; 720 | MODULEMAP_FILE = "Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example.modulemap"; 721 | OTHER_LDFLAGS = ""; 722 | OTHER_LIBTOOLFLAGS = ""; 723 | PODS_ROOT = "$(SRCROOT)"; 724 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 725 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 726 | SDKROOT = iphoneos; 727 | SKIP_INSTALL = YES; 728 | SWIFT_VERSION = 5; 729 | TARGETED_DEVICE_FAMILY = "1,2"; 730 | VALIDATE_PRODUCT = YES; 731 | VERSIONING_SYSTEM = "apple-generic"; 732 | VERSION_INFO_PREFIX = ""; 733 | }; 734 | name = Release; 735 | }; 736 | F7CD8DF1BC6EC9DDD993A70578A69BB1 /* Debug */ = { 737 | isa = XCBuildConfiguration; 738 | baseConfigurationReference = 503C368E496EDD09642347C3829020C6 /* Pods-Juggernaut_Example.debug.xcconfig */; 739 | buildSettings = { 740 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 741 | CODE_SIGN_IDENTITY = ""; 742 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 743 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 744 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 745 | CURRENT_PROJECT_VERSION = 1; 746 | DEFINES_MODULE = YES; 747 | DYLIB_COMPATIBILITY_VERSION = 1; 748 | DYLIB_CURRENT_VERSION = 1; 749 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 750 | INFOPLIST_FILE = "Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-Info.plist"; 751 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 752 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 753 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 754 | MACH_O_TYPE = staticlib; 755 | MODULEMAP_FILE = "Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example.modulemap"; 756 | OTHER_LDFLAGS = ""; 757 | OTHER_LIBTOOLFLAGS = ""; 758 | PODS_ROOT = "$(SRCROOT)"; 759 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 760 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 761 | SDKROOT = iphoneos; 762 | SKIP_INSTALL = YES; 763 | SWIFT_VERSION = 5; 764 | TARGETED_DEVICE_FAMILY = "1,2"; 765 | VERSIONING_SYSTEM = "apple-generic"; 766 | VERSION_INFO_PREFIX = ""; 767 | }; 768 | name = Debug; 769 | }; 770 | /* End XCBuildConfiguration section */ 771 | 772 | /* Begin XCConfigurationList section */ 773 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 774 | isa = XCConfigurationList; 775 | buildConfigurations = ( 776 | 5153DC2E9BB4F6D6F85AF7C0A4A2A27F /* Debug */, 777 | 6A949A208667F02694AF29D5DCC8D4BF /* Release */, 778 | ); 779 | defaultConfigurationIsVisible = 0; 780 | defaultConfigurationName = Release; 781 | }; 782 | A692FE83A19B81B8484882C2C7866986 /* Build configuration list for PBXNativeTarget "Pods-Juggernaut_Tests" */ = { 783 | isa = XCConfigurationList; 784 | buildConfigurations = ( 785 | 55A31DC582F6595ABD7BB7C2505DFBE6 /* Debug */, 786 | 3B3DA33CE3BF01D01F504BE066AE40C0 /* Release */, 787 | ); 788 | defaultConfigurationIsVisible = 0; 789 | defaultConfigurationName = Release; 790 | }; 791 | C2A2B44C0CA189C283F31B093ED5F67B /* Build configuration list for PBXNativeTarget "Pods-Juggernaut_Example" */ = { 792 | isa = XCConfigurationList; 793 | buildConfigurations = ( 794 | F7CD8DF1BC6EC9DDD993A70578A69BB1 /* Debug */, 795 | A5A9AD4186354150353664BE3C8F6FEB /* Release */, 796 | ); 797 | defaultConfigurationIsVisible = 0; 798 | defaultConfigurationName = Release; 799 | }; 800 | EB4E541109B5255D403B5F86FC7B06D0 /* Build configuration list for PBXNativeTarget "Juggernaut" */ = { 801 | isa = XCConfigurationList; 802 | buildConfigurations = ( 803 | 80C920DB63D94D649808F8C801163C3C /* Debug */, 804 | 797BB535121AA93CB1FCD114C4181656 /* Release */, 805 | ); 806 | defaultConfigurationIsVisible = 0; 807 | defaultConfigurationName = Release; 808 | }; 809 | /* End XCConfigurationList section */ 810 | }; 811 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 812 | } 813 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Juggernaut/Juggernaut-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Juggernaut/Juggernaut-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Juggernaut : NSObject 3 | @end 4 | @implementation PodsDummy_Juggernaut 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Juggernaut/Juggernaut-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Juggernaut/Juggernaut-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double JuggernautVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char JuggernautVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Juggernaut/Juggernaut.modulemap: -------------------------------------------------------------------------------- 1 | framework module Juggernaut { 2 | umbrella header "Juggernaut-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Juggernaut/Juggernaut.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## Juggernaut 5 | 6 | Copyright (c) 2019 tularovbeslan@gmail.com 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 - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 tularovbeslan@gmail.com <tularovbeslan@gmail.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 | License 38 | MIT 39 | Title 40 | Juggernaut 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Juggernaut_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Juggernaut_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Signs a framework with the provided identity 113 | code_sign_if_enabled() { 114 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 115 | # Use the current code_sign_identity 116 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 117 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 118 | 119 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 120 | code_sign_cmd="$code_sign_cmd &" 121 | fi 122 | echo "$code_sign_cmd" 123 | eval "$code_sign_cmd" 124 | fi 125 | } 126 | 127 | # Strip invalid architectures 128 | strip_invalid_archs() { 129 | binary="$1" 130 | # Get architectures for current target binary 131 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 132 | # Intersect them with the architectures we are building for 133 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 134 | # If there are no archs supported by this binary then warn the user 135 | if [[ -z "$intersected_archs" ]]; then 136 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 137 | STRIP_BINARY_RETVAL=0 138 | return 139 | fi 140 | stripped="" 141 | for arch in $binary_archs; do 142 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 143 | # Strip non-valid architectures in-place 144 | lipo -remove "$arch" -output "$binary" "$binary" 145 | stripped="$stripped $arch" 146 | fi 147 | done 148 | if [[ "$stripped" ]]; then 149 | echo "Stripped $binary of architectures:$stripped" 150 | fi 151 | STRIP_BINARY_RETVAL=1 152 | } 153 | 154 | 155 | if [[ "$CONFIGURATION" == "Debug" ]]; then 156 | install_framework "${BUILT_PRODUCTS_DIR}/Juggernaut/Juggernaut.framework" 157 | fi 158 | if [[ "$CONFIGURATION" == "Release" ]]; then 159 | install_framework "${BUILT_PRODUCTS_DIR}/Juggernaut/Juggernaut.framework" 160 | fi 161 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 162 | wait 163 | fi 164 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_Juggernaut_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_Juggernaut_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut/Juggernaut.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "Juggernaut" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Juggernaut_Example { 2 | umbrella header "Pods-Juggernaut_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Example/Pods-Juggernaut_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut/Juggernaut.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "Juggernaut" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Juggernaut_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Juggernaut_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_Juggernaut_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_Juggernaut_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut/Juggernaut.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -framework "Juggernaut" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Juggernaut_Tests { 2 | umbrella header "Pods-Juggernaut_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Juggernaut_Tests/Pods-Juggernaut_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Juggernaut/Juggernaut.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -framework "Juggernaut" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Tests/FileManagerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FileManagerTests.swift 3 | // Juggernaut_Tests 4 | // 5 | 6 | import XCTest 7 | import Foundation 8 | 9 | class FileManagerTests: XCTestCase { 10 | 11 | private var sut: FileManager! 12 | private var kilobytes: Float64 { return 1024 } 13 | 14 | override func setUp() { 15 | sut = FileManager.default 16 | } 17 | 18 | override func tearDown() { 19 | sut = nil 20 | } 21 | 22 | func testReturnTotalSizeWhenGivenTotalBytesExpectedToWrite() { 23 | 24 | let size = sut.size(Int64(kilobytes * 5)) 25 | XCTAssertEqual(size, 5, "Total size must be equal to 5") 26 | } 27 | 28 | func testReturnUnitForTotalSizeWhenGivenTotalBytesExpectedToWrite() { 29 | 30 | let unit = sut.unit(Int64(kilobytes * 5)) 31 | XCTAssertEqual(unit, "KB", "Unit must be equal to KB") 32 | } 33 | 34 | func testUniqueNameIsUnique() { 35 | 36 | guard let url = URL(string: "https://www.test.com/4p/file.mp4?dl=1") else { 37 | XCTAssertTrue(true, "URL is wrong") 38 | return 39 | } 40 | let name = sut.uniqueName(url) 41 | XCTAssertEqual(name, "file3.mp4", "Name must be unique") 42 | } 43 | 44 | func testIsReturnFolderIsDocuments() { 45 | 46 | guard let folder = sut.documentDirectory().components(separatedBy: "/").last else { 47 | XCTAssertTrue(true, "Something with Documents folder went wrong!") 48 | return 49 | } 50 | XCTAssertEqual(folder, "Documents", "Folder must be Documents") 51 | } 52 | 53 | func testIsReturnFolderIsCaches() { 54 | 55 | guard let folder = sut.cachesDirectory().components(separatedBy: "/").last else { 56 | XCTAssertTrue(true, "Something with Caches folder went wrong!") 57 | return 58 | } 59 | XCTAssertEqual(folder, "Caches", "Folder must be Caches") 60 | } 61 | } 62 | 63 | extension FileManager { 64 | 65 | private var kilobytes: Float64 { return 1024 } 66 | private var megabytes: Float64 { return pow(kilobytes, 2) } 67 | private var gigabytes: Float64 { return pow(kilobytes, 3) } 68 | 69 | public func documentDirectory() -> String { 70 | 71 | let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true) 72 | guard let path = paths.first else { return "" } 73 | return path 74 | } 75 | 76 | public func cachesDirectory() -> String { 77 | 78 | let paths = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true) 79 | guard let path = paths.first else { return "" } 80 | return path 81 | } 82 | 83 | public func uniqueName(_ url: URL) -> String { 84 | 85 | var number: Int = 0 86 | var isUnique: Bool = false 87 | let ext = url.pathExtension 88 | let fullPath = url.deletingPathExtension() 89 | let name = fullPath.lastPathComponent 90 | var newName = name 91 | 92 | repeat { 93 | 94 | var path: String 95 | 96 | if ext.count > 0 { 97 | path = "\(documentDirectory())/\(newName).\(ext)" 98 | } else { 99 | path = "\(documentDirectory())/\(newName)" 100 | } 101 | 102 | let isAlreadyExists: Bool = FileManager.default.fileExists(atPath: path) 103 | 104 | if isAlreadyExists { 105 | 106 | number += 1 107 | newName = "\(name)(\(number))" 108 | } else { 109 | isUnique = true 110 | if ext.count > 0 { 111 | newName = "\(newName).\(ext)" 112 | } 113 | } 114 | 115 | } while isUnique == false 116 | 117 | return newName 118 | } 119 | 120 | public func freeDiskspace() -> NSNumber? { 121 | let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true) 122 | let systemAttributes: AnyObject? 123 | do { 124 | systemAttributes = try FileManager.default.attributesOfFileSystem(forPath: paths.last!) as AnyObject? 125 | let freeSize = systemAttributes?[FileAttributeKey.systemFreeSize] as? NSNumber 126 | return freeSize 127 | } catch let error as NSError { 128 | debugPrint("Error Obtaining System Memory Info: Domain = \(error.domain), Code = \(error.code)") 129 | return nil 130 | } 131 | } 132 | 133 | public func size(_ length : Int64) -> Float { 134 | let data = Float64(length) 135 | if data >= gigabytes { 136 | return Float(data / gigabytes) 137 | } else if data >= megabytes { 138 | return Float(data / megabytes) 139 | } else if data >= kilobytes { 140 | return Float(data / kilobytes) 141 | } else { 142 | return Float(data) 143 | } 144 | } 145 | 146 | public func unit(_ length : Int64) -> String { 147 | let data = Float64(length) 148 | if data >= gigabytes { 149 | return Unit.GB.rawValue 150 | } else if data >= megabytes { 151 | return Unit.MB.rawValue 152 | } else if data >= kilobytes { 153 | return Unit.KB.rawValue 154 | } else { 155 | return Unit.Bytes.rawValue 156 | } 157 | } 158 | 159 | enum Unit: String { 160 | 161 | case GB 162 | case MB 163 | case KB 164 | case Bytes 165 | } 166 | } 167 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Juggernaut.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = 'Juggernaut' 4 | s.version = '2.2.0' 5 | s.summary = 'Download manager - Juggernaut' 6 | 7 | s.description = <<-DESC 8 | Download large files even in background, download multiple files, resume interrupted downloads. 9 | DESC 10 | 11 | s.homepage = 'https://github.com/tularovbeslan/Juggernaut' 12 | s.license = { :type => 'MIT', :file => 'LICENSE' } 13 | s.author = { 'tularovbeslan@gmail.com' => 'tularovbeslan@gmail.com' } 14 | s.source = { :git => 'https://github.com/tularovbeslan/Juggernaut.git', :tag => s.version.to_s } 15 | s.social_media_url = 'https://twitter.com/JiromTomson' 16 | s.swift_version = '5' 17 | s.ios.deployment_target = '10.0' 18 | 19 | s.source_files = 'Juggernaut/Classes/**/*' 20 | s.frameworks = 'UIKit' 21 | end 22 | -------------------------------------------------------------------------------- /Juggernaut/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Juggernaut/Assets/.gitkeep -------------------------------------------------------------------------------- /Juggernaut/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tularovbeslan/Juggernaut/fead9a4b7a551efbfdcb0cac483fa04ef010fc6e/Juggernaut/Classes/.gitkeep -------------------------------------------------------------------------------- /Juggernaut/Classes/Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FileManagerExtension.swift 3 | // Juggernaut 4 | // 5 | 6 | import Foundation 7 | 8 | extension FileManager { 9 | 10 | private var kilobytes: Float64 { return 1024 } 11 | private var megabytes: Float64 { return pow(kilobytes, 2) } 12 | private var gigabytes: Float64 { return pow(kilobytes, 3) } 13 | 14 | public func documentDirectory() -> String { 15 | 16 | let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true) 17 | guard let path = paths.first else { return "" } 18 | return path 19 | } 20 | 21 | public func cachesDirectory() -> String { 22 | 23 | let paths = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true) 24 | guard let path = paths.first else { return "" } 25 | return path 26 | } 27 | 28 | public func customDirectory(_ named: String) -> String { 29 | 30 | let path = documentDirectory() + "/" + named + "/" 31 | do { 32 | try FileManager.default.createDirectory(atPath: path, withIntermediateDirectories: false, attributes: nil) 33 | } catch let error as NSError { 34 | print(error.localizedDescription); 35 | } 36 | return path 37 | } 38 | 39 | public func uniqueName(_ url: URL) -> String { 40 | 41 | let uuid = NSUUID().uuidString 42 | var number: Int = 0 43 | var isUnique: Bool = false 44 | let ext = url.pathExtension 45 | let fullPath = url.deletingPathExtension() 46 | let name = fullPath.lastPathComponent 47 | var newName = uuid + "|" + name 48 | 49 | repeat { 50 | 51 | var path: String 52 | 53 | if ext.count > 0 { 54 | path = "\(newName).\(ext)" 55 | } else { 56 | path = "\(newName)" 57 | } 58 | 59 | let isAlreadyExists: Bool = FileManager.default.fileExists(atPath: path) 60 | 61 | if isAlreadyExists { 62 | 63 | number += 1 64 | newName = "\(name)(\(number))" 65 | } else { 66 | isUnique = true 67 | if ext.count > 0 { 68 | newName = "\(newName).\(ext)" 69 | } 70 | } 71 | 72 | } while isUnique == false 73 | 74 | return newName 75 | } 76 | 77 | public func freeDiskspace() -> NSNumber? { 78 | let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true) 79 | let systemAttributes: AnyObject? 80 | do { 81 | systemAttributes = try FileManager.default.attributesOfFileSystem(forPath: paths.last!) as AnyObject? 82 | let freeSize = systemAttributes?[FileAttributeKey.systemFreeSize] as? NSNumber 83 | return freeSize 84 | } catch let error as NSError { 85 | debugPrint("Error Obtaining System Memory Info: Domain = \(error.domain), Code = \(error.code)") 86 | return nil 87 | } 88 | } 89 | 90 | public func size(_ length : Int64) -> Float { 91 | let data = Float64(length) 92 | if data >= gigabytes { 93 | return Float(data / gigabytes) 94 | } else if data >= megabytes { 95 | return Float(data / megabytes) 96 | } else if data >= kilobytes { 97 | return Float(data / kilobytes) 98 | } else { 99 | return Float(data) 100 | } 101 | } 102 | 103 | public func unit(_ length : Int64) -> String { 104 | let data = Float64(length) 105 | if data >= gigabytes { 106 | return Unit.GB.rawValue 107 | } else if data >= megabytes { 108 | return Unit.MB.rawValue 109 | } else if data >= kilobytes { 110 | return Unit.KB.rawValue 111 | } else { 112 | return Unit.Bytes.rawValue 113 | } 114 | } 115 | 116 | enum Unit: String { 117 | 118 | case GB 119 | case MB 120 | case KB 121 | case Bytes 122 | } 123 | } 124 | 125 | extension NSNotification.Name { 126 | 127 | public static let JuggernautDidStart = NSNotification.Name("JuggernautDidStart") 128 | public static let JuggernautDidPaused = NSNotification.Name("JuggernautDidPaused") 129 | public static let JuggernautDidResume = NSNotification.Name("JuggernautDidResume") 130 | public static let JuggernautDidRetry = NSNotification.Name("JuggernautDidRetry") 131 | public static let JuggernautDidCancel = NSNotification.Name("JuggernautDidCancel") 132 | public static let JuggernautDidFinish = NSNotification.Name("JuggernautDidFinish") 133 | public static let JuggernautDidFail = NSNotification.Name("JuggernautDidFail") 134 | public static let JuggernautDidUpdateProgress = NSNotification.Name("JuggernautDidUpdateProgress") 135 | public static let JuggernautDidFinishedDownloading = NSNotification.Name("JuggernautDidFinishedDownloading") 136 | } 137 | -------------------------------------------------------------------------------- /Juggernaut/Classes/Juggernaut.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Juggernaut.swift 3 | // Juggernaut 4 | // 5 | 6 | import Foundation 7 | import UIKit 8 | 9 | public class Juggernaut: NSObject, JuggernautDelegate { 10 | 11 | fileprivate var session: URLSession! 12 | 13 | fileprivate var fileManager: FileManager! 14 | 15 | fileprivate var backgroundSessionCompletionHandler: (() -> ())? 16 | 17 | fileprivate let nameIndex = 0 18 | 19 | fileprivate let urlIndex = 1 20 | 21 | fileprivate let destinationIndex = 2 22 | 23 | public weak var delegate: JuggernautDelegate? 24 | 25 | open var items: [JuggernautItem] = [] 26 | 27 | public convenience init(session sessionIdentifer: String, 28 | delegate: JuggernautDelegate? = nil, 29 | sessionConfiguration: URLSessionConfiguration? = nil, 30 | completion: (() -> Void)? = nil) { 31 | 32 | self.init() 33 | self.delegate = delegate 34 | self.session = backgroundSession(identifier: sessionIdentifer, configuration: sessionConfiguration) 35 | self.populateOtherTasks() 36 | self.backgroundSessionCompletionHandler = completion 37 | self.fileManager = FileManager.default 38 | } 39 | 40 | public class func defaultSessionConfiguration(identifier: String) -> URLSessionConfiguration { 41 | return URLSessionConfiguration.background(withIdentifier: identifier) 42 | } 43 | 44 | fileprivate func backgroundSession(identifier: String, configuration: URLSessionConfiguration? = nil) -> URLSession { 45 | 46 | let sessionConfiguration = configuration ?? Juggernaut.defaultSessionConfiguration(identifier: identifier) 47 | let session = URLSession(configuration: sessionConfiguration, delegate: self, delegateQueue: nil) 48 | return session 49 | } 50 | 51 | fileprivate func downloadTasks() -> [URLSessionDownloadTask] { 52 | 53 | var tasks: [URLSessionDownloadTask] = [] 54 | let semaphore : DispatchSemaphore = DispatchSemaphore(value: 0) 55 | session.getTasksWithCompletionHandler { (_, _, downloadTasks) -> Void in 56 | 57 | tasks = downloadTasks 58 | semaphore.signal() 59 | } 60 | 61 | let _ = semaphore.wait(timeout: DispatchTime.distantFuture) 62 | return tasks 63 | } 64 | 65 | fileprivate func populateOtherTasks() { 66 | 67 | let tasks = self.downloadTasks() 68 | 69 | for task in tasks { 70 | 71 | let taskComponents: [String] = task.taskDescription!.components(separatedBy: ",") 72 | let name = taskComponents[nameIndex] 73 | let url = taskComponents[urlIndex] 74 | let path = taskComponents[destinationIndex] 75 | 76 | let item = JuggernautItem.init(name: name, url: url, path: path) 77 | item.task = task 78 | item.initialTime = Date() 79 | 80 | if task.state == .running { 81 | 82 | item.status = JuggernautItemStatus.downloading.description() 83 | items.append(item) 84 | } else if(task.state == .suspended) { 85 | 86 | item.status = JuggernautItemStatus.paused.description() 87 | items.append(item) 88 | } else { 89 | item.status = JuggernautItemStatus.failed.description() 90 | } 91 | } 92 | } 93 | 94 | fileprivate func isValidResumeData(_ resumeData: Data?) -> Bool { 95 | 96 | guard let data = resumeData, data.count > 0 else { return false } 97 | 98 | do { 99 | var resume : AnyObject! 100 | resume = try PropertyListSerialization.propertyList(from: data, options: PropertyListSerialization.MutabilityOptions(), format: nil) as AnyObject 101 | var localFilePath = (resume?["NSURLSessionResumeInfoLocalPath"] as? String) 102 | 103 | guard let localPath = localFilePath, localPath.count < 1 else { 104 | localFilePath = (NSTemporaryDirectory() as String) + (resume["NSURLSessionResumeInfoTempFileName"] as! String) 105 | return false 106 | } 107 | 108 | let fileManager : FileManager! = FileManager.default 109 | return fileManager.fileExists(atPath: localFilePath! as String) 110 | } catch let error as NSError { 111 | debugPrint("resume data is nil: \(error)") 112 | return false 113 | } 114 | } 115 | } 116 | 117 | extension Juggernaut: URLSessionDownloadDelegate { 118 | 119 | public func urlSession(_ session: URLSession, 120 | downloadTask: URLSessionDownloadTask, 121 | didWriteData bytesWritten: Int64, 122 | totalBytesWritten: Int64, 123 | totalBytesExpectedToWrite: Int64) { 124 | 125 | for item in self.items { 126 | 127 | if downloadTask.isEqual(item.task) { 128 | 129 | DispatchQueue.main.async(execute: { () -> Void in 130 | 131 | let receivedBytesCount = Double(downloadTask.countOfBytesReceived) 132 | let totalBytesCount = Double(downloadTask.countOfBytesExpectedToReceive) 133 | let progress = Float(receivedBytesCount / totalBytesCount) 134 | 135 | let initialTime = item.initialTime ?? Date() 136 | let timeInterval = initialTime.timeIntervalSinceNow 137 | let downloadTime = TimeInterval(-1 * timeInterval) 138 | 139 | let speed = Float(totalBytesWritten) / Float(downloadTime) 140 | 141 | let remainingContentLength = totalBytesExpectedToWrite - totalBytesWritten 142 | 143 | let remainingTime = remainingContentLength / Int64(speed) 144 | let hours = Int(remainingTime) / 3600 145 | let minutes = (Int(remainingTime) - hours * 3600) / 60 146 | let seconds = Int(remainingTime) - hours * 3600 - minutes * 60 147 | 148 | let totalSize = self.fileManager.size(totalBytesExpectedToWrite) 149 | let totalSizeUnit = self.fileManager.unit(totalBytesExpectedToWrite) 150 | 151 | let downloadedSize = self.fileManager.size(totalBytesWritten) 152 | let downloadedSizeUnit = self.fileManager.unit(totalBytesWritten) 153 | 154 | let size = self.fileManager.size(Int64(speed)) 155 | let unit = self.fileManager.unit(Int64(speed)) 156 | 157 | item.timeLeft = (hours, minutes, seconds) 158 | item.file = (totalSize, totalSizeUnit as String) 159 | item.downloadedFile = (downloadedSize, downloadedSizeUnit as String) 160 | item.speed = (size, unit as String) 161 | item.progress = progress 162 | 163 | if self.items.contains(item), let objectIndex = self.items.firstIndex(of: item) { 164 | self.items[objectIndex] = item 165 | } 166 | 167 | if item.indexPath != nil { 168 | self.delegate?.juggernaut?(self, didUpdateProgress: item, forItemAt: item.indexPath, objects: item.objects) 169 | } 170 | }) 171 | break 172 | } 173 | } 174 | } 175 | 176 | public func urlSession(_ session: URLSession, 177 | downloadTask: URLSessionDownloadTask, 178 | didFinishDownloadingTo location: URL) { 179 | 180 | for item in items { 181 | 182 | if downloadTask.isEqual(item.task) { 183 | 184 | guard let name = item.name else { return } 185 | let path = item.path == "" ? fileManager.documentDirectory() : item.path 186 | let destinationPath = path.appending(name) 187 | 188 | if fileManager.fileExists(atPath: path) { 189 | 190 | let fileURL = URL(fileURLWithPath: destinationPath as String) 191 | do { 192 | try fileManager.moveItem(at: location, to: fileURL) 193 | } catch let error as NSError { 194 | 195 | DispatchQueue.main.async(execute: { () -> Void in 196 | if item.indexPath != nil { 197 | self.delegate?.juggernaut?(self, didFail: item, forItemAt: item.indexPath, with: error, objects: item.objects) 198 | } 199 | }) 200 | } 201 | } else { 202 | 203 | if let _ = self.delegate?.juggernaut?(self, notExist: location, forItem: item, at: item.indexPath, objects: item.objects) { 204 | if item.indexPath != nil { 205 | self.delegate?.juggernaut?(self, notExist: location, forItem: item, at: item.indexPath, objects: item.objects) 206 | } 207 | } else { 208 | 209 | let error = NSError(domain: "FolderDoesNotExist", code: 404, userInfo: [NSLocalizedDescriptionKey : "Destination folder does not exists"]) 210 | if item.indexPath != nil { 211 | self.delegate?.juggernaut?(self, didFail: item, forItemAt: item.indexPath, with: error, objects: item.objects) 212 | } 213 | } 214 | } 215 | 216 | break 217 | } 218 | } 219 | } 220 | 221 | public func urlSession(_ session: URLSession, 222 | task: URLSessionTask, 223 | didCompleteWithError error: Error?) { 224 | 225 | DispatchQueue.main.async { 226 | 227 | let err = error as NSError? 228 | 229 | if (err?.userInfo[NSURLErrorBackgroundTaskCancelledReasonKey] as? NSNumber)?.intValue == NSURLErrorCancelledReasonUserForceQuitApplication || (err?.userInfo[NSURLErrorBackgroundTaskCancelledReasonKey] as? NSNumber)?.intValue == NSURLErrorCancelledReasonBackgroundUpdatesDisabled { 230 | 231 | let task = task as! URLSessionDownloadTask 232 | let taskComponents: [String] = task.taskDescription!.components(separatedBy: ",") 233 | let name = taskComponents[self.nameIndex] 234 | let url = taskComponents[self.urlIndex] 235 | let path = taskComponents[self.destinationIndex] 236 | 237 | let item = JuggernautItem.init(name: name, url: url, path: path) 238 | item.status = JuggernautItemStatus.failed.description() 239 | item.task = task 240 | 241 | let resumeData = err?.userInfo[NSURLSessionDownloadTaskResumeData] as? Data 242 | 243 | var newTask = task 244 | if self.isValidResumeData(resumeData) == true { 245 | newTask = self.session.downloadTask(withResumeData: resumeData!) 246 | } else { 247 | newTask = self.session.downloadTask(with: URL(string: url as String)!) 248 | } 249 | 250 | newTask.taskDescription = task.taskDescription 251 | item.task = newTask 252 | 253 | self.items.append(item) 254 | 255 | self.delegate?.juggernaut?(self, didPopulatedInterruptedTasks: self.items) 256 | } else { 257 | 258 | for(index, item) in self.items.enumerated() { 259 | 260 | if task.isEqual(item.task) { 261 | 262 | if err?.code == NSURLErrorCancelled || err == nil { 263 | 264 | self.items.remove(at: index) 265 | 266 | if err == nil { 267 | if item.indexPath != nil { 268 | self.delegate?.juggernaut?(self, didFinish: item, forItemAt: item.indexPath, objects: item.objects) 269 | } 270 | } else { 271 | if item.indexPath != nil { 272 | self.delegate?.juggernaut?(self, didCancel: item, forItemAt: item.indexPath, objects: item.objects) 273 | } 274 | } 275 | } else { 276 | 277 | let resumeData = err?.userInfo[NSURLSessionDownloadTaskResumeData] as? Data 278 | var newTask = task 279 | 280 | if self.isValidResumeData(resumeData) == true { 281 | newTask = self.session.downloadTask(withResumeData: resumeData!) 282 | } else { 283 | newTask = self.session.downloadTask(with: URL(string: item.url)!) 284 | } 285 | 286 | newTask.taskDescription = task.taskDescription 287 | item.status = JuggernautItemStatus.failed.description() 288 | item.task = newTask as? URLSessionDownloadTask 289 | 290 | self.items[index] = item 291 | 292 | if let error = err { 293 | if item.indexPath != nil { 294 | self.delegate?.juggernaut?(self, didFail: item, forItemAt: item.indexPath, with: error, objects: item.objects) 295 | } 296 | } else { 297 | 298 | let error: NSError = NSError(domain: "JuggernautDownloadManagerDomain", code: 1000, userInfo: [NSLocalizedDescriptionKey : "Unknown error occurred"]) 299 | if item.indexPath != nil { 300 | self.delegate?.juggernaut?(self, didFail: item, forItemAt: item.indexPath, with: error, objects: item.objects) 301 | } 302 | } 303 | } 304 | break; 305 | } 306 | } 307 | } 308 | } 309 | } 310 | 311 | public func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) { 312 | 313 | if let backgroundCompletion = self.backgroundSessionCompletionHandler { 314 | DispatchQueue.main.async(execute: { 315 | backgroundCompletion() 316 | }) 317 | } 318 | } 319 | } 320 | 321 | extension Juggernaut { 322 | 323 | public func addDownloadTask(_ name: String, request: URLRequest, path: String, indexPath: IndexPath, objects: [Any]? = nil) { 324 | 325 | let url = request.url!.absoluteString 326 | 327 | let task = session.downloadTask(with: request) 328 | task.taskDescription = [name, url, path].joined(separator: ",") 329 | task.resume() 330 | 331 | let item = JuggernautItem.init(name: name, url: url, path: path) 332 | item.indexPath = indexPath 333 | item.initialTime = Date() 334 | item.status = JuggernautItemStatus.downloading.description() 335 | item.task = task 336 | item.objects = objects 337 | items.append(item) 338 | 339 | if item.indexPath != nil { 340 | delegate?.juggernaut?(self, didStart: item, forItemAt: item.indexPath, objects: item.objects) 341 | } 342 | } 343 | 344 | public func addDownloadTask(_ name: String, fileURL url: URL, path: String, indexPath: IndexPath, objects: [Any]? = nil) { 345 | 346 | let request = URLRequest(url: url) 347 | addDownloadTask(name, request: request, path: path, indexPath: indexPath, objects: objects) 348 | } 349 | 350 | public func addDownloadTask(_ name: String, url: URL, indexPath: IndexPath, objects: [Any]? = nil) { 351 | addDownloadTask(name, fileURL: url, path: "", indexPath: indexPath, objects: objects) 352 | } 353 | 354 | public func addDownloadTask(_ name: String, request: URLRequest, indexPath: IndexPath, objects: [Any]? = nil) { 355 | addDownloadTask(name, request: request, path: "", indexPath: indexPath, objects: objects) 356 | } 357 | 358 | public func pauseDownloadTaskAtIndex(_ index: Int) { 359 | 360 | let item = items[index] 361 | 362 | guard item.status != JuggernautItemStatus.paused.description() else { return } 363 | 364 | let task = item.task 365 | task!.suspend() 366 | item.status = JuggernautItemStatus.paused.description() 367 | item.initialTime = Date() 368 | items[index] = item 369 | 370 | if item.indexPath != nil { 371 | delegate?.juggernaut?(self, didPaused: item, forItemAt: item.indexPath, objects: item.objects) 372 | } 373 | } 374 | 375 | public func resumeDownloadTaskAtIndex(_ index: Int) { 376 | 377 | let item = items[index] 378 | 379 | guard item.status != JuggernautItemStatus.downloading.description() else { return } 380 | 381 | let task = item.task 382 | task!.resume() 383 | item.status = JuggernautItemStatus.downloading.description() 384 | items[index] = item 385 | 386 | if item.indexPath != nil { 387 | delegate?.juggernaut?(self, didResume: item, forItemAt: item.indexPath, objects: item.objects) 388 | } 389 | } 390 | 391 | public func retryDownloadTaskAtIndex(_ index: Int) { 392 | 393 | let item = items[index] 394 | guard item.status != JuggernautItemStatus.downloading.description() else { return } 395 | let task = item.task 396 | task!.resume() 397 | item.status = JuggernautItemStatus.downloading.description() 398 | item.initialTime = Date() 399 | item.task = task 400 | items[index] = item 401 | } 402 | 403 | public func cancelTaskAtIndex(_ index: Int) { 404 | 405 | let info = items[index] 406 | let task = info.task 407 | task!.cancel() 408 | } 409 | } 410 | -------------------------------------------------------------------------------- /Juggernaut/Classes/JuggernautDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JuggernautDelegate.swift 3 | // Juggernaut 4 | // 5 | 6 | import Foundation 7 | 8 | @objc public protocol JuggernautDelegate: class { 9 | 10 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didStart item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) 11 | 12 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didPaused item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) 13 | 14 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didResume item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) 15 | 16 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didRetry item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) 17 | 18 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didCancel item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) 19 | 20 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didFinish item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) 21 | 22 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didFail item: JuggernautItem, forItemAt indexPath: IndexPath, with error: NSError, objects: [Any]?) 23 | 24 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didUpdateProgress item: JuggernautItem, forItemAt indexPath: IndexPath, objects: [Any]?) 25 | 26 | @objc optional func juggernaut(_ juggernaut: Juggernaut, didPopulatedInterruptedTasks items: [JuggernautItem]) 27 | 28 | @objc optional func juggernaut(_ juggernaut: Juggernaut, notExist path: URL, forItem: JuggernautItem, at indexPath: IndexPath, objects: [Any]?) 29 | } 30 | -------------------------------------------------------------------------------- /Juggernaut/Classes/JuggernautItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JuggernautItem.swift 3 | // Juggernaut 4 | // 5 | 6 | import Foundation 7 | 8 | public enum JuggernautItemStatus: Int { 9 | 10 | case unknown 11 | case gettingInfo 12 | case downloading 13 | case paused 14 | case failed 15 | 16 | public func description() -> String { 17 | switch self { 18 | case .gettingInfo: 19 | return "GettingInfo" 20 | case .downloading: 21 | return "Downloading" 22 | case .paused: 23 | return "Paused" 24 | case .failed: 25 | return "Failed" 26 | default: 27 | return "Unknown" 28 | } 29 | } 30 | } 31 | 32 | open class JuggernautItem: NSObject { 33 | 34 | open var task: URLSessionDownloadTask? 35 | 36 | open var initialTime: Date? 37 | 38 | open var timeLeft: (hours: Int, minutes: Int, seconds: Int)? 39 | 40 | open var progress: Float = Float() 41 | 42 | open var speed: (speed: Float, unit: String)? 43 | 44 | open var name: String! 45 | 46 | open var url: String! 47 | 48 | open var indexPath: IndexPath! 49 | 50 | open var status: String = JuggernautItemStatus.gettingInfo.description() 51 | 52 | open var file: (size: Float, unit: String)? 53 | 54 | open var downloadedFile: (size: Float, unit: String)? 55 | 56 | open var objects: [Any]? 57 | 58 | fileprivate(set) open var path: String = String() 59 | 60 | fileprivate convenience init(name: String, url: String) { 61 | 62 | self.init() 63 | self.name = name 64 | self.url = url 65 | } 66 | 67 | convenience init(name: String, url: String, path: String) { 68 | 69 | self.init(name: name, url: url) 70 | self.path = path 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 tularovbeslan@gmail.com 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 | ![jug](https://user-images.githubusercontent.com/4906243/52402027-3f99fb00-2ad4-11e9-9d9f-2ce05ca557d8.png) 2 | 3 | [![Twitter](https://img.shields.io/badge/twitter-@JiromTomson-blue.svg?style=flat 4 | )](https://twitter.com/JiromTomson) 5 | [![CI Status](https://travis-ci.org/tularovbeslan/Juggernaut.svg?branch=master)](https://travis-ci.org/tularovbeslan/Juggernaut) 6 | [![Version](https://img.shields.io/cocoapods/v/Juggernaut.svg?style=flat)](https://cocoapods.org/pods/Juggernaut) 7 | ![iOS 10.0+](https://img.shields.io/badge/iOS-10.0%2B-red.svg) 8 | ![Swift 5](https://img.shields.io/badge/Swift-5-orange.svg) 9 | [![License](https://img.shields.io/cocoapods/l/Juggernaut.svg?style=flat)](https://cocoapods.org/pods/Juggernaut) 10 | [![Platform](https://img.shields.io/cocoapods/p/Juggernaut.svg?style=flat)](https://cocoapods.org/pods/Juggernaut) 11 | 12 | # Features 13 | 14 | Download manager 15 | 16 | + Running in the background 17 | + Loading multiple files 18 | + You can cancel, pause, resume, reload 19 | 20 | # Example 21 | 22 | ![giff](https://user-images.githubusercontent.com/4906243/52477904-a262c380-2bb4-11e9-936f-a854f8572d05.gif) 23 | 24 | # UML Class Diagram 25 | 26 | * General scheme 27 | 28 | Снимок экрана 2019-03-15 в 3 39 46 29 | 30 | * Delegates 31 | 32 | Снимок экрана 2019-03-15 в 3 37 20 33 | 34 | * Entity 35 | 36 | 2019-02-07 2 11 16 37 | 38 | * Model 39 | 40 | 2019-02-07 2 11 31 41 | 42 | 43 | 44 | # Installation 45 | 46 | Juggernaut is available through [CocoaPods](https://cocoapods.org). To install 47 | it, simply add the following line to your Podfile: 48 | 49 | ```ruby 50 | pod 'Juggernaut' 51 | ``` 52 | 53 | # Author 54 | 55 | Beslan Tularov | [@JiromTomson](https://twitter.com/JiromTomson) 56 | 57 | ## License 58 | 59 | ``` 60 | MIT License 61 | 62 | Copyright (c) 2018 Beslan Tularov 63 | 64 | Permission is hereby granted, free of charge, to any person obtaining a copy 65 | of this software and associated documentation files (the "Software"), to deal 66 | in the Software without restriction, including without limitation the rights 67 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 68 | copies of the Software, and to permit persons to whom the Software is 69 | furnished to do so, subject to the following conditions: 70 | 71 | The above copyright notice and this permission notice shall be included in all 72 | copies or substantial portions of the Software. 73 | 74 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 75 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 76 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 77 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 78 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 79 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 80 | SOFTWARE. 81 | ``` 82 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------