├── .gitignore ├── .travis.yml ├── Example ├── Pageable.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Pageable-Example.xcscheme ├── Pageable.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Pageable │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── LoadingCell.xib │ ├── Common │ │ ├── UITableView+extention.swift │ │ ├── UIView+extention.swift │ │ └── WebService.swift │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── InformationCell.swift │ ├── InformationCell.xib │ ├── LoadingCell.swift │ ├── User │ │ ├── UserModel.swift │ │ ├── UserService.swift │ │ └── UserView.swift │ └── en.lproj │ │ └── LaunchScreen.strings ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── Pageable.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pageable │ │ ├── Pageable-Info.plist │ │ ├── Pageable-dummy.m │ │ ├── Pageable-prefix.pch │ │ ├── Pageable-umbrella.h │ │ ├── Pageable.modulemap │ │ └── Pageable.xcconfig │ │ ├── Pods-Pageable_Example │ │ ├── Pods-Pageable_Example-Info.plist │ │ ├── Pods-Pageable_Example-acknowledgements.markdown │ │ ├── Pods-Pageable_Example-acknowledgements.plist │ │ ├── Pods-Pageable_Example-dummy.m │ │ ├── Pods-Pageable_Example-frameworks.sh │ │ ├── Pods-Pageable_Example-umbrella.h │ │ ├── Pods-Pageable_Example.debug.xcconfig │ │ ├── Pods-Pageable_Example.modulemap │ │ └── Pods-Pageable_Example.release.xcconfig │ │ └── Pods-Pageable_Tests │ │ ├── Pods-Pageable_Tests-Info.plist │ │ ├── Pods-Pageable_Tests-acknowledgements.markdown │ │ ├── Pods-Pageable_Tests-acknowledgements.plist │ │ ├── Pods-Pageable_Tests-dummy.m │ │ ├── Pods-Pageable_Tests-umbrella.h │ │ ├── Pods-Pageable_Tests.debug.xcconfig │ │ ├── Pods-Pageable_Tests.modulemap │ │ └── Pods-Pageable_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── Pageable.podspec ├── Pageable ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── NewPageLoad.swift │ ├── PageInfo.swift │ ├── PageInteractor.swift │ └── PageableService.swift ├── README.md ├── _Pods.xcodeproj └── demo.gif /.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: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/Pageable.xcworkspace -scheme Pageable-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Pageable.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1A9240F034CDC9E821DC2EB8 /* Pods_Pageable_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 78A66B14D1D655F5518FA9AE /* Pods_Pageable_Example.framework */; }; 11 | 2F7ED6B228A7B233740628E8 /* Pods_Pageable_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C92530EBE06F0631202D5FB /* Pods_Pageable_Tests.framework */; }; 12 | 3A7756462248937E00D7D318 /* InformationCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3A7756452248937E00D7D318 /* InformationCell.xib */; }; 13 | 3A88CC0622212D69000B4F30 /* InformationCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A88CC0422212D69000B4F30 /* InformationCell.swift */; }; 14 | 3A88CC0722212D69000B4F30 /* LoadingCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A88CC0522212D69000B4F30 /* LoadingCell.swift */; }; 15 | 3A88CC1222212D8E000B4F30 /* UserView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A88CC0922212D8D000B4F30 /* UserView.swift */; }; 16 | 3A88CC1322212D8E000B4F30 /* UserService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A88CC0A22212D8D000B4F30 /* UserService.swift */; }; 17 | 3A88CC1422212D8E000B4F30 /* UserModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A88CC0B22212D8D000B4F30 /* UserModel.swift */; }; 18 | 3A88CC1822212D8E000B4F30 /* WebService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A88CC1122212D8E000B4F30 /* WebService.swift */; }; 19 | 3A88CC242223BE04000B4F30 /* LoadingCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3A88CC222223BE03000B4F30 /* LoadingCell.xib */; }; 20 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 21 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 22 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 23 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 24 | EA43DFA8233D283D0013D888 /* UIView+extention.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA43DFA7233D283D0013D888 /* UIView+extention.swift */; }; 25 | EA43DFAA233D28C20013D888 /* UITableView+extention.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA43DFA9233D28C20013D888 /* UITableView+extention.swift */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 34 | remoteInfo = Pageable; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 0A43F4A14DBCBA3B1DFD487D /* Pods-Pageable_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Pageable_Example.debug.xcconfig"; path = "Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example.debug.xcconfig"; sourceTree = ""; }; 40 | 0C92530EBE06F0631202D5FB /* Pods_Pageable_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Pageable_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 21D3FC8F59597FA48A945E04 /* Pageable.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Pageable.podspec; path = ../Pageable.podspec; sourceTree = ""; }; 42 | 3A7756452248937E00D7D318 /* InformationCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = InformationCell.xib; sourceTree = ""; }; 43 | 3A88CC0422212D69000B4F30 /* InformationCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InformationCell.swift; sourceTree = ""; }; 44 | 3A88CC0522212D69000B4F30 /* LoadingCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LoadingCell.swift; sourceTree = ""; }; 45 | 3A88CC0922212D8D000B4F30 /* UserView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserView.swift; sourceTree = ""; }; 46 | 3A88CC0A22212D8D000B4F30 /* UserService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserService.swift; sourceTree = ""; }; 47 | 3A88CC0B22212D8D000B4F30 /* UserModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserModel.swift; sourceTree = ""; }; 48 | 3A88CC1122212D8E000B4F30 /* WebService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebService.swift; sourceTree = ""; }; 49 | 3A88CC232223BE03000B4F30 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LoadingCell.xib; sourceTree = ""; }; 50 | 3F464D83CA2FDCEF16591EBC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 51 | 607FACD01AFB9204008FA782 /* Pageable_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Pageable_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 54 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 55 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 56 | 607FACE51AFB9204008FA782 /* Pageable_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Pageable_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 59 | 664A5BA124DA16D1BFA2A085 /* Pods-Pageable_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Pageable_Tests.release.xcconfig"; path = "Target Support Files/Pods-Pageable_Tests/Pods-Pageable_Tests.release.xcconfig"; sourceTree = ""; }; 60 | 78A66B14D1D655F5518FA9AE /* Pods_Pageable_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Pageable_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 8E94E8A6E9D2EC240AFCB8EC /* Pods-Pageable_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Pageable_Tests.debug.xcconfig"; path = "Target Support Files/Pods-Pageable_Tests/Pods-Pageable_Tests.debug.xcconfig"; sourceTree = ""; }; 62 | 9163B16E6803D5F252D5790D /* Pods-Pageable_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Pageable_Example.release.xcconfig"; path = "Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example.release.xcconfig"; sourceTree = ""; }; 63 | 9749AF9F9493B5C6893756FF /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 64 | EA43DFA7233D283D0013D888 /* UIView+extention.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+extention.swift"; sourceTree = ""; }; 65 | EA43DFA9233D28C20013D888 /* UITableView+extention.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITableView+extention.swift"; sourceTree = ""; }; 66 | /* End PBXFileReference section */ 67 | 68 | /* Begin PBXFrameworksBuildPhase section */ 69 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | 1A9240F034CDC9E821DC2EB8 /* Pods_Pageable_Example.framework in Frameworks */, 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 2F7ED6B228A7B233740628E8 /* Pods_Pageable_Tests.framework in Frameworks */, 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | /* End PBXFrameworksBuildPhase section */ 86 | 87 | /* Begin PBXGroup section */ 88 | 09FBD22FE472B3F58EF31BEA /* Pods */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 0A43F4A14DBCBA3B1DFD487D /* Pods-Pageable_Example.debug.xcconfig */, 92 | 9163B16E6803D5F252D5790D /* Pods-Pageable_Example.release.xcconfig */, 93 | 8E94E8A6E9D2EC240AFCB8EC /* Pods-Pageable_Tests.debug.xcconfig */, 94 | 664A5BA124DA16D1BFA2A085 /* Pods-Pageable_Tests.release.xcconfig */, 95 | ); 96 | path = Pods; 97 | sourceTree = ""; 98 | }; 99 | 3A88CC0822212D8D000B4F30 /* User */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 3A88CC0922212D8D000B4F30 /* UserView.swift */, 103 | 3A88CC0A22212D8D000B4F30 /* UserService.swift */, 104 | 3A88CC0B22212D8D000B4F30 /* UserModel.swift */, 105 | ); 106 | path = User; 107 | sourceTree = ""; 108 | }; 109 | 3A88CC1022212D8E000B4F30 /* Common */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | EA43DFA7233D283D0013D888 /* UIView+extention.swift */, 113 | 3A88CC1122212D8E000B4F30 /* WebService.swift */, 114 | EA43DFA9233D28C20013D888 /* UITableView+extention.swift */, 115 | ); 116 | path = Common; 117 | sourceTree = ""; 118 | }; 119 | 607FACC71AFB9204008FA782 = { 120 | isa = PBXGroup; 121 | children = ( 122 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 123 | 607FACD21AFB9204008FA782 /* Example for Pageable */, 124 | 607FACE81AFB9204008FA782 /* Tests */, 125 | 607FACD11AFB9204008FA782 /* Products */, 126 | 09FBD22FE472B3F58EF31BEA /* Pods */, 127 | 6494D89367D31BA61316901D /* Frameworks */, 128 | ); 129 | sourceTree = ""; 130 | }; 131 | 607FACD11AFB9204008FA782 /* Products */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 607FACD01AFB9204008FA782 /* Pageable_Example.app */, 135 | 607FACE51AFB9204008FA782 /* Pageable_Tests.xctest */, 136 | ); 137 | name = Products; 138 | sourceTree = ""; 139 | }; 140 | 607FACD21AFB9204008FA782 /* Example for Pageable */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 3A88CC1022212D8E000B4F30 /* Common */, 144 | 3A88CC0822212D8D000B4F30 /* User */, 145 | 3A88CC0422212D69000B4F30 /* InformationCell.swift */, 146 | 3A7756452248937E00D7D318 /* InformationCell.xib */, 147 | 3A88CC0522212D69000B4F30 /* LoadingCell.swift */, 148 | 3A88CC222223BE03000B4F30 /* LoadingCell.xib */, 149 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 150 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 151 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 152 | 607FACD31AFB9204008FA782 /* Supporting Files */, 153 | ); 154 | name = "Example for Pageable"; 155 | path = Pageable; 156 | sourceTree = ""; 157 | }; 158 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 607FACD41AFB9204008FA782 /* Info.plist */, 162 | ); 163 | name = "Supporting Files"; 164 | sourceTree = ""; 165 | }; 166 | 607FACE81AFB9204008FA782 /* Tests */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 170 | 607FACE91AFB9204008FA782 /* Supporting Files */, 171 | ); 172 | path = Tests; 173 | sourceTree = ""; 174 | }; 175 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 607FACEA1AFB9204008FA782 /* Info.plist */, 179 | ); 180 | name = "Supporting Files"; 181 | sourceTree = ""; 182 | }; 183 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | 21D3FC8F59597FA48A945E04 /* Pageable.podspec */, 187 | 9749AF9F9493B5C6893756FF /* README.md */, 188 | 3F464D83CA2FDCEF16591EBC /* LICENSE */, 189 | ); 190 | name = "Podspec Metadata"; 191 | sourceTree = ""; 192 | }; 193 | 6494D89367D31BA61316901D /* Frameworks */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | 78A66B14D1D655F5518FA9AE /* Pods_Pageable_Example.framework */, 197 | 0C92530EBE06F0631202D5FB /* Pods_Pageable_Tests.framework */, 198 | ); 199 | name = Frameworks; 200 | sourceTree = ""; 201 | }; 202 | /* End PBXGroup section */ 203 | 204 | /* Begin PBXNativeTarget section */ 205 | 607FACCF1AFB9204008FA782 /* Pageable_Example */ = { 206 | isa = PBXNativeTarget; 207 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Pageable_Example" */; 208 | buildPhases = ( 209 | DB29302A7339404A8EDD0DBB /* [CP] Check Pods Manifest.lock */, 210 | 607FACCC1AFB9204008FA782 /* Sources */, 211 | 607FACCD1AFB9204008FA782 /* Frameworks */, 212 | 607FACCE1AFB9204008FA782 /* Resources */, 213 | 2439EAA64F513B11DFF12E1B /* [CP] Embed Pods Frameworks */, 214 | ); 215 | buildRules = ( 216 | ); 217 | dependencies = ( 218 | ); 219 | name = Pageable_Example; 220 | productName = Pageable; 221 | productReference = 607FACD01AFB9204008FA782 /* Pageable_Example.app */; 222 | productType = "com.apple.product-type.application"; 223 | }; 224 | 607FACE41AFB9204008FA782 /* Pageable_Tests */ = { 225 | isa = PBXNativeTarget; 226 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Pageable_Tests" */; 227 | buildPhases = ( 228 | B37FEF2FAFB859BE13D4B6DC /* [CP] Check Pods Manifest.lock */, 229 | 607FACE11AFB9204008FA782 /* Sources */, 230 | 607FACE21AFB9204008FA782 /* Frameworks */, 231 | 607FACE31AFB9204008FA782 /* Resources */, 232 | ); 233 | buildRules = ( 234 | ); 235 | dependencies = ( 236 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 237 | ); 238 | name = Pageable_Tests; 239 | productName = Tests; 240 | productReference = 607FACE51AFB9204008FA782 /* Pageable_Tests.xctest */; 241 | productType = "com.apple.product-type.bundle.unit-test"; 242 | }; 243 | /* End PBXNativeTarget section */ 244 | 245 | /* Begin PBXProject section */ 246 | 607FACC81AFB9204008FA782 /* Project object */ = { 247 | isa = PBXProject; 248 | attributes = { 249 | LastSwiftUpdateCheck = 0830; 250 | LastUpgradeCheck = 1100; 251 | ORGANIZATIONNAME = CocoaPods; 252 | TargetAttributes = { 253 | 607FACCF1AFB9204008FA782 = { 254 | CreatedOnToolsVersion = 6.3.1; 255 | DevelopmentTeam = 8F3G46ZPZ8; 256 | LastSwiftMigration = 1100; 257 | }; 258 | 607FACE41AFB9204008FA782 = { 259 | CreatedOnToolsVersion = 6.3.1; 260 | DevelopmentTeam = 8F3G46ZPZ8; 261 | LastSwiftMigration = 1100; 262 | TestTargetID = 607FACCF1AFB9204008FA782; 263 | }; 264 | }; 265 | }; 266 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Pageable" */; 267 | compatibilityVersion = "Xcode 3.2"; 268 | developmentRegion = en; 269 | hasScannedForEncodings = 0; 270 | knownRegions = ( 271 | en, 272 | Base, 273 | ); 274 | mainGroup = 607FACC71AFB9204008FA782; 275 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 276 | projectDirPath = ""; 277 | projectRoot = ""; 278 | targets = ( 279 | 607FACCF1AFB9204008FA782 /* Pageable_Example */, 280 | 607FACE41AFB9204008FA782 /* Pageable_Tests */, 281 | ); 282 | }; 283 | /* End PBXProject section */ 284 | 285 | /* Begin PBXResourcesBuildPhase section */ 286 | 607FACCE1AFB9204008FA782 /* Resources */ = { 287 | isa = PBXResourcesBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 291 | 3A88CC242223BE04000B4F30 /* LoadingCell.xib in Resources */, 292 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 293 | 3A7756462248937E00D7D318 /* InformationCell.xib in Resources */, 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | }; 297 | 607FACE31AFB9204008FA782 /* Resources */ = { 298 | isa = PBXResourcesBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | }; 304 | /* End PBXResourcesBuildPhase section */ 305 | 306 | /* Begin PBXShellScriptBuildPhase section */ 307 | 2439EAA64F513B11DFF12E1B /* [CP] Embed Pods Frameworks */ = { 308 | isa = PBXShellScriptBuildPhase; 309 | buildActionMask = 2147483647; 310 | files = ( 311 | ); 312 | inputFileListPaths = ( 313 | ); 314 | inputPaths = ( 315 | "${PODS_ROOT}/Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example-frameworks.sh", 316 | "${BUILT_PRODUCTS_DIR}/Pageable/Pageable.framework", 317 | ); 318 | name = "[CP] Embed Pods Frameworks"; 319 | outputFileListPaths = ( 320 | ); 321 | outputPaths = ( 322 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Pageable.framework", 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | shellPath = /bin/sh; 326 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example-frameworks.sh\"\n"; 327 | showEnvVarsInLog = 0; 328 | }; 329 | B37FEF2FAFB859BE13D4B6DC /* [CP] Check Pods Manifest.lock */ = { 330 | isa = PBXShellScriptBuildPhase; 331 | buildActionMask = 2147483647; 332 | files = ( 333 | ); 334 | inputFileListPaths = ( 335 | ); 336 | inputPaths = ( 337 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 338 | "${PODS_ROOT}/Manifest.lock", 339 | ); 340 | name = "[CP] Check Pods Manifest.lock"; 341 | outputFileListPaths = ( 342 | ); 343 | outputPaths = ( 344 | "$(DERIVED_FILE_DIR)/Pods-Pageable_Tests-checkManifestLockResult.txt", 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | shellPath = /bin/sh; 348 | 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"; 349 | showEnvVarsInLog = 0; 350 | }; 351 | DB29302A7339404A8EDD0DBB /* [CP] Check Pods Manifest.lock */ = { 352 | isa = PBXShellScriptBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | ); 356 | inputFileListPaths = ( 357 | ); 358 | inputPaths = ( 359 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 360 | "${PODS_ROOT}/Manifest.lock", 361 | ); 362 | name = "[CP] Check Pods Manifest.lock"; 363 | outputFileListPaths = ( 364 | ); 365 | outputPaths = ( 366 | "$(DERIVED_FILE_DIR)/Pods-Pageable_Example-checkManifestLockResult.txt", 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | shellPath = /bin/sh; 370 | 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"; 371 | showEnvVarsInLog = 0; 372 | }; 373 | /* End PBXShellScriptBuildPhase section */ 374 | 375 | /* Begin PBXSourcesBuildPhase section */ 376 | 607FACCC1AFB9204008FA782 /* Sources */ = { 377 | isa = PBXSourcesBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | 3A88CC1322212D8E000B4F30 /* UserService.swift in Sources */, 381 | 3A88CC0722212D69000B4F30 /* LoadingCell.swift in Sources */, 382 | 3A88CC1422212D8E000B4F30 /* UserModel.swift in Sources */, 383 | EA43DFA8233D283D0013D888 /* UIView+extention.swift in Sources */, 384 | 3A88CC1222212D8E000B4F30 /* UserView.swift in Sources */, 385 | 3A88CC0622212D69000B4F30 /* InformationCell.swift in Sources */, 386 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 387 | EA43DFAA233D28C20013D888 /* UITableView+extention.swift in Sources */, 388 | 3A88CC1822212D8E000B4F30 /* WebService.swift in Sources */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | 607FACE11AFB9204008FA782 /* Sources */ = { 393 | isa = PBXSourcesBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 397 | ); 398 | runOnlyForDeploymentPostprocessing = 0; 399 | }; 400 | /* End PBXSourcesBuildPhase section */ 401 | 402 | /* Begin PBXTargetDependency section */ 403 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 404 | isa = PBXTargetDependency; 405 | target = 607FACCF1AFB9204008FA782 /* Pageable_Example */; 406 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 407 | }; 408 | /* End PBXTargetDependency section */ 409 | 410 | /* Begin PBXVariantGroup section */ 411 | 3A88CC222223BE03000B4F30 /* LoadingCell.xib */ = { 412 | isa = PBXVariantGroup; 413 | children = ( 414 | 3A88CC232223BE03000B4F30 /* Base */, 415 | ); 416 | name = LoadingCell.xib; 417 | sourceTree = ""; 418 | }; 419 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 420 | isa = PBXVariantGroup; 421 | children = ( 422 | 607FACDF1AFB9204008FA782 /* Base */, 423 | ); 424 | name = LaunchScreen.xib; 425 | sourceTree = ""; 426 | }; 427 | /* End PBXVariantGroup section */ 428 | 429 | /* Begin XCBuildConfiguration section */ 430 | 607FACED1AFB9204008FA782 /* Debug */ = { 431 | isa = XCBuildConfiguration; 432 | buildSettings = { 433 | ALWAYS_SEARCH_USER_PATHS = NO; 434 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 435 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 436 | CLANG_CXX_LIBRARY = "libc++"; 437 | CLANG_ENABLE_MODULES = YES; 438 | CLANG_ENABLE_OBJC_ARC = YES; 439 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 440 | CLANG_WARN_BOOL_CONVERSION = YES; 441 | CLANG_WARN_COMMA = YES; 442 | CLANG_WARN_CONSTANT_CONVERSION = YES; 443 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 444 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 445 | CLANG_WARN_EMPTY_BODY = YES; 446 | CLANG_WARN_ENUM_CONVERSION = YES; 447 | CLANG_WARN_INFINITE_RECURSION = YES; 448 | CLANG_WARN_INT_CONVERSION = YES; 449 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 450 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 451 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 452 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 453 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 454 | CLANG_WARN_STRICT_PROTOTYPES = YES; 455 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 456 | CLANG_WARN_UNREACHABLE_CODE = YES; 457 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 458 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 459 | COPY_PHASE_STRIP = NO; 460 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 461 | ENABLE_STRICT_OBJC_MSGSEND = YES; 462 | ENABLE_TESTABILITY = YES; 463 | GCC_C_LANGUAGE_STANDARD = gnu99; 464 | GCC_DYNAMIC_NO_PIC = NO; 465 | GCC_NO_COMMON_BLOCKS = YES; 466 | GCC_OPTIMIZATION_LEVEL = 0; 467 | GCC_PREPROCESSOR_DEFINITIONS = ( 468 | "DEBUG=1", 469 | "$(inherited)", 470 | ); 471 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 472 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 473 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 474 | GCC_WARN_UNDECLARED_SELECTOR = YES; 475 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 476 | GCC_WARN_UNUSED_FUNCTION = YES; 477 | GCC_WARN_UNUSED_VARIABLE = YES; 478 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 479 | MTL_ENABLE_DEBUG_INFO = YES; 480 | ONLY_ACTIVE_ARCH = YES; 481 | SDKROOT = iphoneos; 482 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 483 | SWIFT_VERSION = 5.0; 484 | }; 485 | name = Debug; 486 | }; 487 | 607FACEE1AFB9204008FA782 /* Release */ = { 488 | isa = XCBuildConfiguration; 489 | buildSettings = { 490 | ALWAYS_SEARCH_USER_PATHS = NO; 491 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 492 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 493 | CLANG_CXX_LIBRARY = "libc++"; 494 | CLANG_ENABLE_MODULES = YES; 495 | CLANG_ENABLE_OBJC_ARC = YES; 496 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 497 | CLANG_WARN_BOOL_CONVERSION = YES; 498 | CLANG_WARN_COMMA = YES; 499 | CLANG_WARN_CONSTANT_CONVERSION = YES; 500 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 501 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 502 | CLANG_WARN_EMPTY_BODY = YES; 503 | CLANG_WARN_ENUM_CONVERSION = YES; 504 | CLANG_WARN_INFINITE_RECURSION = YES; 505 | CLANG_WARN_INT_CONVERSION = YES; 506 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 507 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 508 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 509 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 510 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 511 | CLANG_WARN_STRICT_PROTOTYPES = YES; 512 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 513 | CLANG_WARN_UNREACHABLE_CODE = YES; 514 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 515 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 516 | COPY_PHASE_STRIP = NO; 517 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 518 | ENABLE_NS_ASSERTIONS = NO; 519 | ENABLE_STRICT_OBJC_MSGSEND = YES; 520 | GCC_C_LANGUAGE_STANDARD = gnu99; 521 | GCC_NO_COMMON_BLOCKS = YES; 522 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 523 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 524 | GCC_WARN_UNDECLARED_SELECTOR = YES; 525 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 526 | GCC_WARN_UNUSED_FUNCTION = YES; 527 | GCC_WARN_UNUSED_VARIABLE = YES; 528 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 529 | MTL_ENABLE_DEBUG_INFO = NO; 530 | SDKROOT = iphoneos; 531 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 532 | SWIFT_VERSION = 5.0; 533 | VALIDATE_PRODUCT = YES; 534 | }; 535 | name = Release; 536 | }; 537 | 607FACF01AFB9204008FA782 /* Debug */ = { 538 | isa = XCBuildConfiguration; 539 | baseConfigurationReference = 0A43F4A14DBCBA3B1DFD487D /* Pods-Pageable_Example.debug.xcconfig */; 540 | buildSettings = { 541 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 542 | DEVELOPMENT_TEAM = 8F3G46ZPZ8; 543 | INFOPLIST_FILE = Pageable/Info.plist; 544 | IPHONEOS_DEPLOYMENT_TARGET = 11.1; 545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 546 | MODULE_NAME = ExampleApp; 547 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 550 | SWIFT_VERSION = 5.0; 551 | }; 552 | name = Debug; 553 | }; 554 | 607FACF11AFB9204008FA782 /* Release */ = { 555 | isa = XCBuildConfiguration; 556 | baseConfigurationReference = 9163B16E6803D5F252D5790D /* Pods-Pageable_Example.release.xcconfig */; 557 | buildSettings = { 558 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 559 | DEVELOPMENT_TEAM = 8F3G46ZPZ8; 560 | INFOPLIST_FILE = Pageable/Info.plist; 561 | IPHONEOS_DEPLOYMENT_TARGET = 11.1; 562 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 563 | MODULE_NAME = ExampleApp; 564 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 565 | PRODUCT_NAME = "$(TARGET_NAME)"; 566 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 567 | SWIFT_VERSION = 5.0; 568 | }; 569 | name = Release; 570 | }; 571 | 607FACF31AFB9204008FA782 /* Debug */ = { 572 | isa = XCBuildConfiguration; 573 | baseConfigurationReference = 8E94E8A6E9D2EC240AFCB8EC /* Pods-Pageable_Tests.debug.xcconfig */; 574 | buildSettings = { 575 | DEVELOPMENT_TEAM = 8F3G46ZPZ8; 576 | FRAMEWORK_SEARCH_PATHS = ( 577 | "$(SDKROOT)/Developer/Library/Frameworks", 578 | "$(inherited)", 579 | ); 580 | GCC_PREPROCESSOR_DEFINITIONS = ( 581 | "DEBUG=1", 582 | "$(inherited)", 583 | ); 584 | INFOPLIST_FILE = Tests/Info.plist; 585 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 586 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 587 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 588 | PRODUCT_NAME = "$(TARGET_NAME)"; 589 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 590 | SWIFT_VERSION = 5.0; 591 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Pageable_Example.app/Pageable_Example"; 592 | }; 593 | name = Debug; 594 | }; 595 | 607FACF41AFB9204008FA782 /* Release */ = { 596 | isa = XCBuildConfiguration; 597 | baseConfigurationReference = 664A5BA124DA16D1BFA2A085 /* Pods-Pageable_Tests.release.xcconfig */; 598 | buildSettings = { 599 | DEVELOPMENT_TEAM = 8F3G46ZPZ8; 600 | FRAMEWORK_SEARCH_PATHS = ( 601 | "$(SDKROOT)/Developer/Library/Frameworks", 602 | "$(inherited)", 603 | ); 604 | INFOPLIST_FILE = Tests/Info.plist; 605 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 606 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 607 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 608 | PRODUCT_NAME = "$(TARGET_NAME)"; 609 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 610 | SWIFT_VERSION = 5.0; 611 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Pageable_Example.app/Pageable_Example"; 612 | }; 613 | name = Release; 614 | }; 615 | /* End XCBuildConfiguration section */ 616 | 617 | /* Begin XCConfigurationList section */ 618 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Pageable" */ = { 619 | isa = XCConfigurationList; 620 | buildConfigurations = ( 621 | 607FACED1AFB9204008FA782 /* Debug */, 622 | 607FACEE1AFB9204008FA782 /* Release */, 623 | ); 624 | defaultConfigurationIsVisible = 0; 625 | defaultConfigurationName = Release; 626 | }; 627 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Pageable_Example" */ = { 628 | isa = XCConfigurationList; 629 | buildConfigurations = ( 630 | 607FACF01AFB9204008FA782 /* Debug */, 631 | 607FACF11AFB9204008FA782 /* Release */, 632 | ); 633 | defaultConfigurationIsVisible = 0; 634 | defaultConfigurationName = Release; 635 | }; 636 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Pageable_Tests" */ = { 637 | isa = XCConfigurationList; 638 | buildConfigurations = ( 639 | 607FACF31AFB9204008FA782 /* Debug */, 640 | 607FACF41AFB9204008FA782 /* Release */, 641 | ); 642 | defaultConfigurationIsVisible = 0; 643 | defaultConfigurationName = Release; 644 | }; 645 | /* End XCConfigurationList section */ 646 | }; 647 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 648 | } 649 | -------------------------------------------------------------------------------- /Example/Pageable.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pageable.xcodeproj/xcshareddata/xcschemes/Pageable-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 76 | 78 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Example/Pageable.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Pageable.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Pageable/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Pageable 4 | // 5 | // Created by mrigankgupta on 02/23/2019. 6 | // Copyright (c) 2019 mrigankgupta. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Pageable 11 | 12 | private let firstReqIndex = 1 13 | 14 | @UIApplicationMain 15 | class AppDelegate: UIResponder, UIApplicationDelegate { 16 | var window: UIWindow? 17 | let service = UserService() 18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 19 | window = UIWindow(frame: UIScreen.main.bounds) 20 | guard let window = window else { 21 | return false 22 | } 23 | // SETUP:0 initialise the PageInteractor object 24 | let pageInteractor: PageInteractor = PageInteractor(firstPage: firstReqIndex, service: service, keyPath: \UserModel.id) 25 | let viewController = UserView(pageInteractor: pageInteractor) 26 | window.rootViewController = viewController 27 | window.makeKeyAndVisible() 28 | return true 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Example/Pageable/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/Pageable/Base.lproj/LoadingCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Example/Pageable/Common/UITableView+extention.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITableView+extention.swift 3 | // Pageable_Example 4 | // 5 | // Created by Mrigank Gupta on 26/09/19. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | extension UITableView { 13 | // Reusable identifier should be unique across the app.There should be a convention to 14 | // give identifer names as there are chances for collision if app has 15 | // lots of cells and views. We can use compiler help here by using Class name as reusable identifier and nib names. 16 | // As we can only create cell class with unique names, it will help in giving unique reusable identifier name also. 17 | func dequeueReusableCell (for indexPath: IndexPath) -> T { 18 | guard let cell = dequeueReusableCell(withIdentifier: T.reusableIdetifier(), for: indexPath) as? T else { 19 | fatalError("Can't not cast Cell with reusable identfier\(T.reusableIdetifier())") 20 | } 21 | return cell 22 | } 23 | 24 | func dequeueReusableHeaderFooterView () -> T { 25 | guard let cell = dequeueReusableHeaderFooterView(withIdentifier:T.reusableIdetifier()) as? T else { 26 | fatalError("Can't not cast View with reusable identfier\(T.reusableIdetifier())") 27 | } 28 | return cell 29 | } 30 | 31 | func registerNib(forCell: T.Type) { 32 | register(UINib(nibName: T.nibName(), bundle: nil), forCellReuseIdentifier: T.reusableIdetifier()) 33 | } 34 | 35 | func registerNib(forforHeaderFooterView: T.Type) { 36 | register(UINib(nibName: T.nibName(), bundle: nil), forHeaderFooterViewReuseIdentifier: T.reusableIdetifier()) 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/Pageable/Common/UIView+extention.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+extention.swift 3 | // Pageable_Example 4 | // 5 | // Created by Mrigank Gupta on 26/09/19. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIView { 12 | static func nibName() -> String { 13 | return String(describing: self) 14 | } 15 | 16 | static func reusableIdetifier() -> String { 17 | return String(describing: self) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Example/Pageable/Common/WebService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WebService.swift 3 | // MGPicsque 4 | // 5 | // Created by Gupta, Mrigank on 27/11/18. 6 | // Copyright © 2018 Gupta, Mrigank. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import Pageable 11 | 12 | fileprivate let baseURL = "reqres.in" 13 | 14 | struct Resourse { 15 | let url: URL 16 | let parse: (Data) -> T? 17 | } 18 | #if swift(>=5.0) 19 | #else 20 | public enum Result { 21 | case success(Success), failure(Failure) 22 | } 23 | #endif 24 | 25 | enum AppError: Error { 26 | case invalidURL 27 | case parsingError 28 | case clientError 29 | case badResponse 30 | } 31 | 32 | class WebService { 33 | var session = URLSession(configuration: URLSession.shared.configuration) 34 | 35 | private var parameters: [String : String] = [:] 36 | 37 | final func getMe(res: Resourse, completion: @escaping (Result) -> Void) { 38 | session.dataTask(with: res.url) { (data, response, err) in 39 | guard err == nil else { 40 | print("client error") 41 | return completion(.failure(.clientError)) 42 | } 43 | guard let httpRes = response as? HTTPURLResponse, 200..<300 ~= httpRes.statusCode, 44 | let data = data, data.count > 0 else { 45 | print("bad response") 46 | return completion(.failure(.badResponse)) 47 | } 48 | guard let parsed = res.parse(data) else { 49 | return completion(.failure(.parsingError)) 50 | } 51 | completion(.success(parsed)) 52 | 53 | }.resume() 54 | } 55 | 56 | static func getURL(baseURL: String, path: String, params: [String : String], 57 | argsDict: [String : String]?) -> URL? { 58 | var queryItems = [URLQueryItem]() 59 | if let argsDict = argsDict { 60 | for (key,value) in argsDict { 61 | queryItems.append(URLQueryItem(name: key, value: value)) 62 | } 63 | } 64 | for (key,value) in params { 65 | queryItems.append(URLQueryItem(name: key, value: value)) 66 | } 67 | var components = URLComponents() 68 | components.scheme = "https" 69 | components.host = baseURL 70 | components.path = path 71 | components.queryItems = queryItems 72 | return components.url 73 | } 74 | 75 | final func prepareResource(page: Int, 76 | pageSize: Int, 77 | pathForREST: String, 78 | argsDict: [String : String]? = nil) throws -> Resourse { 79 | parameters["page"] = String(page) 80 | parameters["pageSize"] = String(pageSize) 81 | 82 | guard let completeURL = WebService.getURL(baseURL: baseURL, path: pathForREST, 83 | params: parameters, argsDict: argsDict) else { throw AppError.invalidURL } 84 | let downloadable = Resourse(url: completeURL) { (raw) -> T? in 85 | do { 86 | let parsedDict = try JSONDecoder().decode(T.self, from: raw) 87 | return parsedDict 88 | } catch DecodingError.typeMismatch(let key, let context) { 89 | print(key, context) 90 | } catch let err { 91 | print(err) 92 | } 93 | return nil 94 | } 95 | return downloadable 96 | } 97 | 98 | func cancelAll() { 99 | session.invalidateAndCancel() 100 | session = URLSession(configuration: URLSession.shared.configuration) 101 | } 102 | } 103 | 104 | struct PagedResponse: Decodable { 105 | let types: T 106 | let page: Int 107 | let pageSize: Int 108 | let totalPageCount: Int 109 | public enum CodingKeys: String, CodingKey { 110 | case types = "data" 111 | case page 112 | case pageSize = "per_page" 113 | case totalPageCount = "total_pages" 114 | } 115 | } 116 | 117 | -------------------------------------------------------------------------------- /Example/Pageable/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/Pageable/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSAllowsArbitraryLoads 28 | 29 | 30 | UILaunchStoryboardName 31 | LaunchScreen 32 | UIRequiredDeviceCapabilities 33 | 34 | armv7 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Example/Pageable/InformationCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ManufacturerCell.swift 3 | // ShowMyRide 4 | // 5 | // Created by Gupta, Mrigank on 15/08/18. 6 | // Copyright © 2018 Gupta, Mrigank. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | 13 | class InformationCell: UITableViewCell { 14 | @IBOutlet private weak var user: UILabel! 15 | @IBOutlet private weak var background: UIView! 16 | 17 | func configureCell(with source: (CellDataSource & CellStyling), for indexPath: IndexPath) { 18 | user.text = source.titleText 19 | background.backgroundColor = source.background(index: indexPath.row) 20 | } 21 | } 22 | 23 | protocol CellDataSource { 24 | var titleText: String { get } 25 | } 26 | 27 | protocol CellStyling { 28 | func background(index: Int) -> UIColor 29 | } 30 | 31 | extension UserModel: CellStyling, CellDataSource { 32 | func background(index: Int) -> UIColor { 33 | if index % 2 == 0 { 34 | return UIColor.brown 35 | } 36 | return UIColor.white 37 | } 38 | 39 | var titleText: String { 40 | return firstName + " " + lastName 41 | } 42 | 43 | } 44 | 45 | -------------------------------------------------------------------------------- /Example/Pageable/InformationCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /Example/Pageable/LoadingCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LoadingCell.swift 3 | // ShowMyRide 4 | // 5 | // Created by Gupta, Mrigank on 15/08/18. 6 | // Copyright © 2018 Gupta, Mrigank. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class LoadingCell: UITableViewCell { 12 | @IBOutlet weak var activityIndicator: UIActivityIndicatorView! 13 | } 14 | -------------------------------------------------------------------------------- /Example/Pageable/User/UserModel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Gupta, Mrigank on 05/08/18. 3 | // Copyright © 2018 Gupta, Mrigank. All rights reserved. 4 | // 5 | 6 | import Foundation 7 | 8 | typealias JsonDict = [String : String] 9 | 10 | struct UserModel: Decodable { 11 | let id: Int 12 | let firstName: String 13 | let lastName: String 14 | 15 | public enum CodingKeys: String, CodingKey { 16 | case id 17 | case firstName = "first_name" 18 | case lastName = "last_name" 19 | } 20 | } 21 | 22 | struct UserList: Decodable { 23 | 24 | typealias ArrayType = UserModel 25 | typealias KeyType = String 26 | 27 | private(set) var array = [UserModel]() 28 | private(set) var dict = JsonDict() 29 | 30 | struct UserKey: CodingKey { 31 | var stringValue: String 32 | init?(stringValue: String) { 33 | self.stringValue = stringValue 34 | } 35 | var intValue: Int? 36 | init?(intValue: Int) { return nil } 37 | } 38 | } 39 | 40 | extension UserList { 41 | 42 | public init(from decoder: Decoder) throws { 43 | let container = try decoder.container(keyedBy: UserKey.self) 44 | var list = [UserModel]() 45 | var dict = JsonDict() 46 | for key in container.allKeys { 47 | let value = try container.decode(UserModel.self, forKey: key) 48 | list.append(UserModel(id: value.id, firstName: value.firstName, lastName: value.lastName)) 49 | let idKey = String(value.id) 50 | dict[idKey] = idKey 51 | } 52 | self.init(array: list, dict: dict) 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /Example/Pageable/User/UserService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Gupta, Mrigank on 28/08/18. 3 | // Copyright © 2018 Gupta, Mrigank. All rights reserved. 4 | // 5 | 6 | import Foundation 7 | import Pageable 8 | 9 | final class UserService: WebService {} 10 | 11 | // SETUP:3 implement PageableService protocol 12 | extension UserService: PageableService { 13 | func loadPage(_ page: Int, completion: @escaping (PageInfo?) -> Void) { 14 | guard let resource: Resourse> = try? prepareResource(page: page, pageSize: 3, pathForREST: "/api/users") else { 15 | completion(nil) 16 | return 17 | } 18 | // Construction of PageInfo to be utilised by Pageable 19 | var info: PageInfo? 20 | super.getMe(res: resource) { (res) in 21 | switch res { 22 | case let .success(result): 23 | // Provide PageInfo Object from the response or nil in case no response 24 | info = PageInfo(types: result.types, 25 | page: result.page, 26 | totalPageCount: result.totalPageCount) 27 | case let .failure(err): 28 | print(err) 29 | } 30 | // Returning PageInfo Object from callback to PageInteractor 31 | completion(info) 32 | } 33 | } 34 | 35 | func cancelAllRequests() { 36 | cancelAll() 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/Pageable/User/UserView.swift: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // Created by Gupta, Mrigank on 04/08/18. 4 | // Copyright © 2018 Gupta, Mrigank. All rights reserved. 5 | // 6 | 7 | import UIKit 8 | import Pageable 9 | 10 | class UserView: UIViewController { 11 | 12 | private var pgInteractor: PageInteractor 13 | private lazy var tableView = UITableView() 14 | 15 | init(pageInteractor: PageInteractor) { 16 | self.pgInteractor = pageInteractor 17 | super.init(nibName: nil, bundle: nil) 18 | } 19 | 20 | required init?(coder aDecoder: NSCoder) { 21 | fatalError("init(coder:) has not been implemented") 22 | } 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | setupTableView() 27 | setupPageInteractor() 28 | } 29 | 30 | private func setupTableView() { 31 | tableView.frame = view.bounds 32 | view.addSubview(tableView) 33 | tableView.dataSource = self 34 | tableView.delegate = self 35 | tableView.registerNib(forCell: InformationCell.self) 36 | tableView.registerNib(forCell: LoadingCell.self) 37 | tableView.estimatedRowHeight = 80 38 | #if swift(>=4.2) 39 | tableView.rowHeight = UITableView.automaticDimension 40 | #else 41 | tableView.rowHeight = UITableViewAutomaticDimension 42 | #endif 43 | tableView.tableFooterView = UIView(frame: .zero) 44 | tableView.setupRefreshControl(self, selector:#selector(self.refreshPage)) 45 | } 46 | // SETUP:1 Setup PageInteractor 47 | private func setupPageInteractor() { 48 | pgInteractor.pageDelegate = self.tableView 49 | pgInteractor.refreshPage() 50 | } 51 | } 52 | 53 | extension UserView: UITableViewDelegate, UITableViewDataSource { 54 | // SETUP:2 Populate cells from PageInteractor 55 | func numberOfSections(in tableView: UITableView) -> Int { return 1 } 56 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 57 | return pgInteractor.visibleRow() 58 | } 59 | 60 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 61 | if indexPath.row >= pgInteractor.count() { 62 | let loadingCell: LoadingCell = tableView.dequeueReusableCell(for: indexPath) 63 | loadingCell.activityIndicator.startAnimating() 64 | return loadingCell 65 | } else { 66 | let infoCell: InformationCell = tableView.dequeueReusableCell(for: indexPath) 67 | let user = pgInteractor.item(for: indexPath.row) 68 | infoCell.configureCell(with: user, for: indexPath) 69 | return infoCell 70 | } 71 | } 72 | 73 | func tableView(_ tableView: UITableView, 74 | willDisplay cell: UITableViewCell, 75 | forRowAt indexPath: IndexPath) { 76 | pgInteractor.shouldPrefetch(index: indexPath.row) 77 | } 78 | } 79 | 80 | extension UserView { 81 | // SETUP:4 refresh page to load 82 | @objc 83 | func refreshPage() { 84 | pgInteractor.refreshPage() 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /Example/Pageable/en.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = " Copyright (c) 2015 CocoaPods. All rights reserved."; ObjectID = "8ie-xW-0ye"; */ 3 | "8ie-xW-0ye.text" = " Copyright (c) 2015 CocoaPods. All rights reserved."; 4 | 5 | /* Class = "UILabel"; text = "Pageable"; ObjectID = "kId-c2-rCX"; */ 6 | "kId-c2-rCX.text" = "Pageable"; 7 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'Pageable_Example' do 4 | pod 'Pageable', :path => '../' 5 | 6 | target 'Pageable_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Pageable (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - Pageable (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | Pageable: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | Pageable: c7ece233701f13447b7889c7bffb7359fff6a957 13 | 14 | PODFILE CHECKSUM: 201e0c1e472870f80b88c4e456762ae5b96a6340 15 | 16 | COCOAPODS: 1.6.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/Pageable.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Pageable", 3 | "version": "0.1.0", 4 | "summary": "A short description of Pageable.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/mrigankgupta/Pageable", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "mrigankgupta": "mrigankgupta@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/mrigankgupta/Pageable.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "Pageable/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Pageable (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - Pageable (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | Pageable: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | Pageable: c7ece233701f13447b7889c7bffb7359fff6a957 13 | 14 | PODFILE CHECKSUM: 201e0c1e472870f80b88c4e456762ae5b96a6340 15 | 16 | COCOAPODS: 1.6.0 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 | 0300C4783AB50B2D49A5058FB413F57D /* Pods-Pageable_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 172A28C81211505296BB94B01D4EBF95 /* Pods-Pageable_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 3A88CC1D22213393000B4F30 /* PageInteractor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A88CC1A22213392000B4F30 /* PageInteractor.swift */; }; 12 | 3A88CC1F22213393000B4F30 /* NewPageLoad.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A88CC1C22213392000B4F30 /* NewPageLoad.swift */; }; 13 | 40A8B56691BAE99EFE85964F9D4BD717 /* Pods-Pageable_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F930C435EC5A485E791A9639FE59246C /* Pods-Pageable_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 5EF35B6F07CD1FC9C38153AA7A318BA8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB4607EFCA7C5F75397649E792E2AFCB /* Foundation.framework */; }; 15 | 8B1F3CFA19AC594053587F8F0B05D56D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB4607EFCA7C5F75397649E792E2AFCB /* Foundation.framework */; }; 16 | 9902779C042677289AF2424ECB7EA93C /* Pageable-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = FD58E46541726943DCD250E4EC132284 /* Pageable-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 9C658C770984EF3ACF9449E5E3C3215B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB4607EFCA7C5F75397649E792E2AFCB /* Foundation.framework */; }; 18 | E0F0EF96EBF1A2D372DB4BFE62E354AF /* Pods-Pageable_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 76AF0A5C0CBC4F2D51A306419FD4FBA3 /* Pods-Pageable_Example-dummy.m */; }; 19 | E907D672434B8DCA60CC5E6BEF3A75C0 /* Pods-Pageable_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AECFDE282DBBF7BAC64EBCC4D7BB6725 /* Pods-Pageable_Tests-dummy.m */; }; 20 | EA08BDD5233331E3005A6F77 /* PageInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA08BDD4233331E3005A6F77 /* PageInfo.swift */; }; 21 | EA08BDD72333320B005A6F77 /* PageableService.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA08BDD62333320B005A6F77 /* PageableService.swift */; }; 22 | F0F85DF5CC672E03B3269E1FDC714F22 /* Pageable-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A410911EC70A843815DD3A3FDCBAD2CC /* Pageable-dummy.m */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 69FC29EEE5F61E06E00AA794C6787AC1 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 242366B9F5BC5661E178EB61D33AFD3C; 31 | remoteInfo = Pageable; 32 | }; 33 | 782428DCCC4B9DF3791272BF7F1D2E66 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 4D1B2E7889EEADC92B628F37404014CC; 38 | remoteInfo = "Pods-Pageable_Example"; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 0B45E8FB7A0C96F11593F36081790F9C /* Pods-Pageable_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Pageable_Example-Info.plist"; sourceTree = ""; }; 44 | 120CEFEAC5555E4C36931964D1DFA451 /* Pageable.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pageable.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 172A28C81211505296BB94B01D4EBF95 /* Pods-Pageable_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Pageable_Tests-umbrella.h"; sourceTree = ""; }; 46 | 29BBFB6E6E21A8FB05C270D8FCF4A63C /* Pageable-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pageable-Info.plist"; sourceTree = ""; }; 47 | 302C2C8A1EC095BCE026018789206CB5 /* Pods_Pageable_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Pageable_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 39939F85EB918362D25E144FB76E109B /* Pods-Pageable_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Pageable_Tests.modulemap"; sourceTree = ""; }; 49 | 39FA391C3D4DB4DB51A39540F45C1D35 /* Pageable.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Pageable.modulemap; sourceTree = ""; }; 50 | 3A88CC1A22213392000B4F30 /* PageInteractor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PageInteractor.swift; sourceTree = ""; }; 51 | 3A88CC1C22213392000B4F30 /* NewPageLoad.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NewPageLoad.swift; sourceTree = ""; }; 52 | 4211274E31833658C72D9E5C8148BB0D /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 53 | 57F263647A32EF2B4CC129EC51D4C991 /* Pageable.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = Pageable.podspec; sourceTree = ""; tabWidth = 2; }; 54 | 67C2BCB84457204F02BBF5F5FE11B42A /* Pods-Pageable_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Pageable_Tests-acknowledgements.markdown"; sourceTree = ""; }; 55 | 76AF0A5C0CBC4F2D51A306419FD4FBA3 /* Pods-Pageable_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Pageable_Example-dummy.m"; sourceTree = ""; }; 56 | 7E96327298D48DA6B3144915BFEDAB8E /* Pods-Pageable_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Pageable_Tests-acknowledgements.plist"; sourceTree = ""; }; 57 | 922FA9C718BFA3783F5A1AF5D6E12CD8 /* Pods-Pageable_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Pageable_Example-frameworks.sh"; sourceTree = ""; }; 58 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 59 | 9D9B55AE918EBFD74A823DEC7A7F9D2D /* Pageable.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pageable.xcconfig; sourceTree = ""; }; 60 | A4020C0D095944BCB870D6CEE624C718 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 61 | A410911EC70A843815DD3A3FDCBAD2CC /* Pageable-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pageable-dummy.m"; sourceTree = ""; }; 62 | A8055FCE9B0DEB5B7ECDEBCDD61B33FA /* Pods-Pageable_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Pageable_Tests.release.xcconfig"; sourceTree = ""; }; 63 | AECFDE282DBBF7BAC64EBCC4D7BB6725 /* Pods-Pageable_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Pageable_Tests-dummy.m"; sourceTree = ""; }; 64 | B68BFCB865BFBA2269EC88640061AFB0 /* Pods-Pageable_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Pageable_Example-acknowledgements.markdown"; sourceTree = ""; }; 65 | C4F390A7CA409E4081EAB804F1FC7ABF /* Pageable-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pageable-prefix.pch"; sourceTree = ""; }; 66 | C8B1E137A42013F7C810FACEBD3C5BDF /* Pods-Pageable_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Pageable_Tests-Info.plist"; sourceTree = ""; }; 67 | CB4607EFCA7C5F75397649E792E2AFCB /* 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; }; 68 | D64FD53EE81F8EF4628002469BAC1D72 /* Pods-Pageable_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Pageable_Tests.debug.xcconfig"; sourceTree = ""; }; 69 | D6F4CC8C05337986F2DC79217EBC6E00 /* Pods_Pageable_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Pageable_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 70 | DB0E2E1D91884AB1298D81DD89FAF96F /* Pods-Pageable_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Pageable_Example.debug.xcconfig"; sourceTree = ""; }; 71 | E881AA961D7DE3C2F2CF69F393234B06 /* Pods-Pageable_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Pageable_Example.modulemap"; sourceTree = ""; }; 72 | EA08BDD4233331E3005A6F77 /* PageInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageInfo.swift; sourceTree = ""; }; 73 | EA08BDD62333320B005A6F77 /* PageableService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageableService.swift; sourceTree = ""; }; 74 | F84C83CE5B9652F0A49DEF518EDF4381 /* Pods-Pageable_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Pageable_Example.release.xcconfig"; sourceTree = ""; }; 75 | F930C435EC5A485E791A9639FE59246C /* Pods-Pageable_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Pageable_Example-umbrella.h"; sourceTree = ""; }; 76 | FB4C72BB59BC3408E15070348EFD9DB3 /* Pods-Pageable_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Pageable_Example-acknowledgements.plist"; sourceTree = ""; }; 77 | FD58E46541726943DCD250E4EC132284 /* Pageable-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pageable-umbrella.h"; sourceTree = ""; }; 78 | /* End PBXFileReference section */ 79 | 80 | /* Begin PBXFrameworksBuildPhase section */ 81 | 079B0124AF24E57AB3B24958F784F783 /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | 9C658C770984EF3ACF9449E5E3C3215B /* Foundation.framework in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 76AA1DE18128CB788A2DAABBBF4B6ED5 /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | 5EF35B6F07CD1FC9C38153AA7A318BA8 /* Foundation.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 8E15463E58E8BA966A67A0FB4FF318E1 /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | 8B1F3CFA19AC594053587F8F0B05D56D /* Foundation.framework in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXFrameworksBuildPhase section */ 106 | 107 | /* Begin PBXGroup section */ 108 | 3A88CC1922213392000B4F30 /* Classes */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 3A88CC1A22213392000B4F30 /* PageInteractor.swift */, 112 | 3A88CC1C22213392000B4F30 /* NewPageLoad.swift */, 113 | EA08BDD4233331E3005A6F77 /* PageInfo.swift */, 114 | EA08BDD62333320B005A6F77 /* PageableService.swift */, 115 | ); 116 | name = Classes; 117 | path = Pageable/Classes; 118 | sourceTree = ""; 119 | }; 120 | 756957B92A66D003637FDEF5A2940DC9 /* Pods-Pageable_Example */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | E881AA961D7DE3C2F2CF69F393234B06 /* Pods-Pageable_Example.modulemap */, 124 | B68BFCB865BFBA2269EC88640061AFB0 /* Pods-Pageable_Example-acknowledgements.markdown */, 125 | FB4C72BB59BC3408E15070348EFD9DB3 /* Pods-Pageable_Example-acknowledgements.plist */, 126 | 76AF0A5C0CBC4F2D51A306419FD4FBA3 /* Pods-Pageable_Example-dummy.m */, 127 | 922FA9C718BFA3783F5A1AF5D6E12CD8 /* Pods-Pageable_Example-frameworks.sh */, 128 | 0B45E8FB7A0C96F11593F36081790F9C /* Pods-Pageable_Example-Info.plist */, 129 | F930C435EC5A485E791A9639FE59246C /* Pods-Pageable_Example-umbrella.h */, 130 | DB0E2E1D91884AB1298D81DD89FAF96F /* Pods-Pageable_Example.debug.xcconfig */, 131 | F84C83CE5B9652F0A49DEF518EDF4381 /* Pods-Pageable_Example.release.xcconfig */, 132 | ); 133 | name = "Pods-Pageable_Example"; 134 | path = "Target Support Files/Pods-Pageable_Example"; 135 | sourceTree = ""; 136 | }; 137 | 759E8F6A10F5F0D470EBA4318B1523C8 /* Pods-Pageable_Tests */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 39939F85EB918362D25E144FB76E109B /* Pods-Pageable_Tests.modulemap */, 141 | 67C2BCB84457204F02BBF5F5FE11B42A /* Pods-Pageable_Tests-acknowledgements.markdown */, 142 | 7E96327298D48DA6B3144915BFEDAB8E /* Pods-Pageable_Tests-acknowledgements.plist */, 143 | AECFDE282DBBF7BAC64EBCC4D7BB6725 /* Pods-Pageable_Tests-dummy.m */, 144 | C8B1E137A42013F7C810FACEBD3C5BDF /* Pods-Pageable_Tests-Info.plist */, 145 | 172A28C81211505296BB94B01D4EBF95 /* Pods-Pageable_Tests-umbrella.h */, 146 | D64FD53EE81F8EF4628002469BAC1D72 /* Pods-Pageable_Tests.debug.xcconfig */, 147 | A8055FCE9B0DEB5B7ECDEBCDD61B33FA /* Pods-Pageable_Tests.release.xcconfig */, 148 | ); 149 | name = "Pods-Pageable_Tests"; 150 | path = "Target Support Files/Pods-Pageable_Tests"; 151 | sourceTree = ""; 152 | }; 153 | 782D3AD34EB610518B2FF9A344891B18 /* Targets Support Files */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 756957B92A66D003637FDEF5A2940DC9 /* Pods-Pageable_Example */, 157 | 759E8F6A10F5F0D470EBA4318B1523C8 /* Pods-Pageable_Tests */, 158 | ); 159 | name = "Targets Support Files"; 160 | sourceTree = ""; 161 | }; 162 | 961C44680B628D66905F780C53277B39 /* Products */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | 120CEFEAC5555E4C36931964D1DFA451 /* Pageable.framework */, 166 | D6F4CC8C05337986F2DC79217EBC6E00 /* Pods_Pageable_Example.framework */, 167 | 302C2C8A1EC095BCE026018789206CB5 /* Pods_Pageable_Tests.framework */, 168 | ); 169 | name = Products; 170 | sourceTree = ""; 171 | }; 172 | 98D0FA89DB475A7FC1C9517B1A0781DF /* Pageable */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | F0DEAD5CA587D106ACE6BED922F13B79 /* Pod */, 176 | EF1BA922A36EB6E4E1744F7C86E984E7 /* Support Files */, 177 | ); 178 | name = Pageable; 179 | path = ../..; 180 | sourceTree = ""; 181 | }; 182 | 9B055D0CFEA43187E72B03DED11F5662 /* iOS */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | CB4607EFCA7C5F75397649E792E2AFCB /* Foundation.framework */, 186 | ); 187 | name = iOS; 188 | sourceTree = ""; 189 | }; 190 | CF1408CF629C7361332E53B88F7BD30C = { 191 | isa = PBXGroup; 192 | children = ( 193 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 194 | ED8B1207C37CB85CCC930C0751510A4C /* Development Pods */, 195 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 196 | 961C44680B628D66905F780C53277B39 /* Products */, 197 | 782D3AD34EB610518B2FF9A344891B18 /* Targets Support Files */, 198 | ); 199 | sourceTree = ""; 200 | }; 201 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | 9B055D0CFEA43187E72B03DED11F5662 /* iOS */, 205 | ); 206 | name = Frameworks; 207 | sourceTree = ""; 208 | }; 209 | ED8B1207C37CB85CCC930C0751510A4C /* Development Pods */ = { 210 | isa = PBXGroup; 211 | children = ( 212 | 98D0FA89DB475A7FC1C9517B1A0781DF /* Pageable */, 213 | ); 214 | name = "Development Pods"; 215 | sourceTree = ""; 216 | }; 217 | EF1BA922A36EB6E4E1744F7C86E984E7 /* Support Files */ = { 218 | isa = PBXGroup; 219 | children = ( 220 | 39FA391C3D4DB4DB51A39540F45C1D35 /* Pageable.modulemap */, 221 | 9D9B55AE918EBFD74A823DEC7A7F9D2D /* Pageable.xcconfig */, 222 | A410911EC70A843815DD3A3FDCBAD2CC /* Pageable-dummy.m */, 223 | 29BBFB6E6E21A8FB05C270D8FCF4A63C /* Pageable-Info.plist */, 224 | C4F390A7CA409E4081EAB804F1FC7ABF /* Pageable-prefix.pch */, 225 | FD58E46541726943DCD250E4EC132284 /* Pageable-umbrella.h */, 226 | ); 227 | name = "Support Files"; 228 | path = "Example/Pods/Target Support Files/Pageable"; 229 | sourceTree = ""; 230 | }; 231 | F0DEAD5CA587D106ACE6BED922F13B79 /* Pod */ = { 232 | isa = PBXGroup; 233 | children = ( 234 | 3A88CC1922213392000B4F30 /* Classes */, 235 | 4211274E31833658C72D9E5C8148BB0D /* LICENSE */, 236 | 57F263647A32EF2B4CC129EC51D4C991 /* Pageable.podspec */, 237 | A4020C0D095944BCB870D6CEE624C718 /* README.md */, 238 | ); 239 | name = Pod; 240 | sourceTree = ""; 241 | }; 242 | /* End PBXGroup section */ 243 | 244 | /* Begin PBXHeadersBuildPhase section */ 245 | 093EB37382BAC3C56FF17BB7A2CA1767 /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 0300C4783AB50B2D49A5058FB413F57D /* Pods-Pageable_Tests-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | 6848C95AD7922F85726AA280E141B033 /* Headers */ = { 254 | isa = PBXHeadersBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 40A8B56691BAE99EFE85964F9D4BD717 /* Pods-Pageable_Example-umbrella.h in Headers */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | F4D451B67779F3A7C5BC0F4397CE5BDB /* Headers */ = { 262 | isa = PBXHeadersBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | 9902779C042677289AF2424ECB7EA93C /* Pageable-umbrella.h in Headers */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | /* End PBXHeadersBuildPhase section */ 270 | 271 | /* Begin PBXNativeTarget section */ 272 | 242366B9F5BC5661E178EB61D33AFD3C /* Pageable */ = { 273 | isa = PBXNativeTarget; 274 | buildConfigurationList = 317F92536FB5621473DD8FC1B02C1D59 /* Build configuration list for PBXNativeTarget "Pageable" */; 275 | buildPhases = ( 276 | F4D451B67779F3A7C5BC0F4397CE5BDB /* Headers */, 277 | E93F38748C973BBB19B3EE532FB33931 /* Sources */, 278 | 079B0124AF24E57AB3B24958F784F783 /* Frameworks */, 279 | CCFE54676126CDF2E06B59459A9E9FF5 /* Resources */, 280 | ); 281 | buildRules = ( 282 | ); 283 | dependencies = ( 284 | ); 285 | name = Pageable; 286 | productName = Pageable; 287 | productReference = 120CEFEAC5555E4C36931964D1DFA451 /* Pageable.framework */; 288 | productType = "com.apple.product-type.framework"; 289 | }; 290 | 4D1B2E7889EEADC92B628F37404014CC /* Pods-Pageable_Example */ = { 291 | isa = PBXNativeTarget; 292 | buildConfigurationList = FFFDC49A1C01DD9D9BCA631FF99B6AEC /* Build configuration list for PBXNativeTarget "Pods-Pageable_Example" */; 293 | buildPhases = ( 294 | 6848C95AD7922F85726AA280E141B033 /* Headers */, 295 | 6586BA1CD2DE025A8C800AC72D15738D /* Sources */, 296 | 8E15463E58E8BA966A67A0FB4FF318E1 /* Frameworks */, 297 | 9BE26005418E4881D153B4A502692868 /* Resources */, 298 | ); 299 | buildRules = ( 300 | ); 301 | dependencies = ( 302 | 34BD86433B28085506D619B38733A613 /* PBXTargetDependency */, 303 | ); 304 | name = "Pods-Pageable_Example"; 305 | productName = "Pods-Pageable_Example"; 306 | productReference = D6F4CC8C05337986F2DC79217EBC6E00 /* Pods_Pageable_Example.framework */; 307 | productType = "com.apple.product-type.framework"; 308 | }; 309 | B71E4DEA0BFED9AA13DCB889B715D5C6 /* Pods-Pageable_Tests */ = { 310 | isa = PBXNativeTarget; 311 | buildConfigurationList = 91CA1A54DE12B4DA6A849307A0BCA97B /* Build configuration list for PBXNativeTarget "Pods-Pageable_Tests" */; 312 | buildPhases = ( 313 | 093EB37382BAC3C56FF17BB7A2CA1767 /* Headers */, 314 | F7D44736717496C4E91B17FD141635CE /* Sources */, 315 | 76AA1DE18128CB788A2DAABBBF4B6ED5 /* Frameworks */, 316 | BD20C4E45A5BBFDEA2044373E88F24B9 /* Resources */, 317 | ); 318 | buildRules = ( 319 | ); 320 | dependencies = ( 321 | 768644BA12DA02899FD7C2CDC1BEA7D3 /* PBXTargetDependency */, 322 | ); 323 | name = "Pods-Pageable_Tests"; 324 | productName = "Pods-Pageable_Tests"; 325 | productReference = 302C2C8A1EC095BCE026018789206CB5 /* Pods_Pageable_Tests.framework */; 326 | productType = "com.apple.product-type.framework"; 327 | }; 328 | /* End PBXNativeTarget section */ 329 | 330 | /* Begin PBXProject section */ 331 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 332 | isa = PBXProject; 333 | attributes = { 334 | LastSwiftUpdateCheck = 0930; 335 | LastUpgradeCheck = 1100; 336 | TargetAttributes = { 337 | 242366B9F5BC5661E178EB61D33AFD3C = { 338 | LastSwiftMigration = 1100; 339 | }; 340 | }; 341 | }; 342 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 343 | compatibilityVersion = "Xcode 3.2"; 344 | developmentRegion = en; 345 | hasScannedForEncodings = 0; 346 | knownRegions = ( 347 | en, 348 | Base, 349 | ); 350 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 351 | productRefGroup = 961C44680B628D66905F780C53277B39 /* Products */; 352 | projectDirPath = ""; 353 | projectRoot = ""; 354 | targets = ( 355 | 242366B9F5BC5661E178EB61D33AFD3C /* Pageable */, 356 | 4D1B2E7889EEADC92B628F37404014CC /* Pods-Pageable_Example */, 357 | B71E4DEA0BFED9AA13DCB889B715D5C6 /* Pods-Pageable_Tests */, 358 | ); 359 | }; 360 | /* End PBXProject section */ 361 | 362 | /* Begin PBXResourcesBuildPhase section */ 363 | 9BE26005418E4881D153B4A502692868 /* Resources */ = { 364 | isa = PBXResourcesBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | BD20C4E45A5BBFDEA2044373E88F24B9 /* Resources */ = { 371 | isa = PBXResourcesBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | CCFE54676126CDF2E06B59459A9E9FF5 /* Resources */ = { 378 | isa = PBXResourcesBuildPhase; 379 | buildActionMask = 2147483647; 380 | files = ( 381 | ); 382 | runOnlyForDeploymentPostprocessing = 0; 383 | }; 384 | /* End PBXResourcesBuildPhase section */ 385 | 386 | /* Begin PBXSourcesBuildPhase section */ 387 | 6586BA1CD2DE025A8C800AC72D15738D /* Sources */ = { 388 | isa = PBXSourcesBuildPhase; 389 | buildActionMask = 2147483647; 390 | files = ( 391 | E0F0EF96EBF1A2D372DB4BFE62E354AF /* Pods-Pageable_Example-dummy.m in Sources */, 392 | ); 393 | runOnlyForDeploymentPostprocessing = 0; 394 | }; 395 | E93F38748C973BBB19B3EE532FB33931 /* Sources */ = { 396 | isa = PBXSourcesBuildPhase; 397 | buildActionMask = 2147483647; 398 | files = ( 399 | EA08BDD72333320B005A6F77 /* PageableService.swift in Sources */, 400 | 3A88CC1F22213393000B4F30 /* NewPageLoad.swift in Sources */, 401 | F0F85DF5CC672E03B3269E1FDC714F22 /* Pageable-dummy.m in Sources */, 402 | EA08BDD5233331E3005A6F77 /* PageInfo.swift in Sources */, 403 | 3A88CC1D22213393000B4F30 /* PageInteractor.swift in Sources */, 404 | ); 405 | runOnlyForDeploymentPostprocessing = 0; 406 | }; 407 | F7D44736717496C4E91B17FD141635CE /* Sources */ = { 408 | isa = PBXSourcesBuildPhase; 409 | buildActionMask = 2147483647; 410 | files = ( 411 | E907D672434B8DCA60CC5E6BEF3A75C0 /* Pods-Pageable_Tests-dummy.m in Sources */, 412 | ); 413 | runOnlyForDeploymentPostprocessing = 0; 414 | }; 415 | /* End PBXSourcesBuildPhase section */ 416 | 417 | /* Begin PBXTargetDependency section */ 418 | 34BD86433B28085506D619B38733A613 /* PBXTargetDependency */ = { 419 | isa = PBXTargetDependency; 420 | name = Pageable; 421 | target = 242366B9F5BC5661E178EB61D33AFD3C /* Pageable */; 422 | targetProxy = 69FC29EEE5F61E06E00AA794C6787AC1 /* PBXContainerItemProxy */; 423 | }; 424 | 768644BA12DA02899FD7C2CDC1BEA7D3 /* PBXTargetDependency */ = { 425 | isa = PBXTargetDependency; 426 | name = "Pods-Pageable_Example"; 427 | target = 4D1B2E7889EEADC92B628F37404014CC /* Pods-Pageable_Example */; 428 | targetProxy = 782428DCCC4B9DF3791272BF7F1D2E66 /* PBXContainerItemProxy */; 429 | }; 430 | /* End PBXTargetDependency section */ 431 | 432 | /* Begin XCBuildConfiguration section */ 433 | 18CC33A47A422A4C7E54247963DC4B49 /* Release */ = { 434 | isa = XCBuildConfiguration; 435 | baseConfigurationReference = A8055FCE9B0DEB5B7ECDEBCDD61B33FA /* Pods-Pageable_Tests.release.xcconfig */; 436 | buildSettings = { 437 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 438 | CODE_SIGN_IDENTITY = ""; 439 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 440 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 441 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 442 | CURRENT_PROJECT_VERSION = 1; 443 | DEFINES_MODULE = YES; 444 | DYLIB_COMPATIBILITY_VERSION = 1; 445 | DYLIB_CURRENT_VERSION = 1; 446 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 447 | INFOPLIST_FILE = "Target Support Files/Pods-Pageable_Tests/Pods-Pageable_Tests-Info.plist"; 448 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 449 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 451 | MACH_O_TYPE = staticlib; 452 | MODULEMAP_FILE = "Target Support Files/Pods-Pageable_Tests/Pods-Pageable_Tests.modulemap"; 453 | OTHER_LDFLAGS = ""; 454 | OTHER_LIBTOOLFLAGS = ""; 455 | PODS_ROOT = "$(SRCROOT)"; 456 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 457 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 458 | SDKROOT = iphoneos; 459 | SKIP_INSTALL = YES; 460 | TARGETED_DEVICE_FAMILY = "1,2"; 461 | VALIDATE_PRODUCT = YES; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | VERSION_INFO_PREFIX = ""; 464 | }; 465 | name = Release; 466 | }; 467 | 3AA6B5C5F7E95943238384A9ADDCEDBE /* Debug */ = { 468 | isa = XCBuildConfiguration; 469 | baseConfigurationReference = D64FD53EE81F8EF4628002469BAC1D72 /* Pods-Pageable_Tests.debug.xcconfig */; 470 | buildSettings = { 471 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 472 | CODE_SIGN_IDENTITY = ""; 473 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 474 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 475 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 476 | CURRENT_PROJECT_VERSION = 1; 477 | DEFINES_MODULE = YES; 478 | DYLIB_COMPATIBILITY_VERSION = 1; 479 | DYLIB_CURRENT_VERSION = 1; 480 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 481 | INFOPLIST_FILE = "Target Support Files/Pods-Pageable_Tests/Pods-Pageable_Tests-Info.plist"; 482 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 483 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 484 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 485 | MACH_O_TYPE = staticlib; 486 | MODULEMAP_FILE = "Target Support Files/Pods-Pageable_Tests/Pods-Pageable_Tests.modulemap"; 487 | OTHER_LDFLAGS = ""; 488 | OTHER_LIBTOOLFLAGS = ""; 489 | PODS_ROOT = "$(SRCROOT)"; 490 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 491 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 492 | SDKROOT = iphoneos; 493 | SKIP_INSTALL = YES; 494 | TARGETED_DEVICE_FAMILY = "1,2"; 495 | VERSIONING_SYSTEM = "apple-generic"; 496 | VERSION_INFO_PREFIX = ""; 497 | }; 498 | name = Debug; 499 | }; 500 | 6EE92D219ED8C57445178FE5A496C62C /* Debug */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 9D9B55AE918EBFD74A823DEC7A7F9D2D /* Pageable.xcconfig */; 503 | buildSettings = { 504 | CLANG_ENABLE_MODULES = YES; 505 | CODE_SIGN_IDENTITY = ""; 506 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 507 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 508 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 509 | CURRENT_PROJECT_VERSION = 1; 510 | DEFINES_MODULE = YES; 511 | DYLIB_COMPATIBILITY_VERSION = 1; 512 | DYLIB_CURRENT_VERSION = 1; 513 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 514 | GCC_PREFIX_HEADER = "Target Support Files/Pageable/Pageable-prefix.pch"; 515 | INFOPLIST_FILE = "Target Support Files/Pageable/Pageable-Info.plist"; 516 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 517 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 518 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 519 | MODULEMAP_FILE = "Target Support Files/Pageable/Pageable.modulemap"; 520 | PRODUCT_MODULE_NAME = Pageable; 521 | PRODUCT_NAME = Pageable; 522 | SDKROOT = iphoneos; 523 | SKIP_INSTALL = YES; 524 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 525 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 526 | SWIFT_VERSION = 5.0; 527 | TARGETED_DEVICE_FAMILY = "1,2"; 528 | VERSIONING_SYSTEM = "apple-generic"; 529 | VERSION_INFO_PREFIX = ""; 530 | }; 531 | name = Debug; 532 | }; 533 | A2C1D66C9D912260E23ED32B0D665F5F /* Release */ = { 534 | isa = XCBuildConfiguration; 535 | baseConfigurationReference = F84C83CE5B9652F0A49DEF518EDF4381 /* Pods-Pageable_Example.release.xcconfig */; 536 | buildSettings = { 537 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 538 | CODE_SIGN_IDENTITY = ""; 539 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 540 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 541 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 542 | CURRENT_PROJECT_VERSION = 1; 543 | DEFINES_MODULE = YES; 544 | DYLIB_COMPATIBILITY_VERSION = 1; 545 | DYLIB_CURRENT_VERSION = 1; 546 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 547 | INFOPLIST_FILE = "Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example-Info.plist"; 548 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 549 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 550 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 551 | MACH_O_TYPE = staticlib; 552 | MODULEMAP_FILE = "Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example.modulemap"; 553 | OTHER_LDFLAGS = ""; 554 | OTHER_LIBTOOLFLAGS = ""; 555 | PODS_ROOT = "$(SRCROOT)"; 556 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 557 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 558 | SDKROOT = iphoneos; 559 | SKIP_INSTALL = YES; 560 | TARGETED_DEVICE_FAMILY = "1,2"; 561 | VALIDATE_PRODUCT = YES; 562 | VERSIONING_SYSTEM = "apple-generic"; 563 | VERSION_INFO_PREFIX = ""; 564 | }; 565 | name = Release; 566 | }; 567 | AB4D69770D8ACE3A05E80BB3502666F6 /* Debug */ = { 568 | isa = XCBuildConfiguration; 569 | buildSettings = { 570 | ALWAYS_SEARCH_USER_PATHS = NO; 571 | CLANG_ANALYZER_NONNULL = YES; 572 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 573 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 574 | CLANG_CXX_LIBRARY = "libc++"; 575 | CLANG_ENABLE_MODULES = YES; 576 | CLANG_ENABLE_OBJC_ARC = YES; 577 | CLANG_ENABLE_OBJC_WEAK = YES; 578 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 579 | CLANG_WARN_BOOL_CONVERSION = YES; 580 | CLANG_WARN_COMMA = YES; 581 | CLANG_WARN_CONSTANT_CONVERSION = YES; 582 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 583 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 584 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 585 | CLANG_WARN_EMPTY_BODY = YES; 586 | CLANG_WARN_ENUM_CONVERSION = YES; 587 | CLANG_WARN_INFINITE_RECURSION = YES; 588 | CLANG_WARN_INT_CONVERSION = YES; 589 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 590 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 591 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 592 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 593 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 594 | CLANG_WARN_STRICT_PROTOTYPES = YES; 595 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 596 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 597 | CLANG_WARN_UNREACHABLE_CODE = YES; 598 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 599 | COPY_PHASE_STRIP = NO; 600 | DEBUG_INFORMATION_FORMAT = dwarf; 601 | ENABLE_STRICT_OBJC_MSGSEND = YES; 602 | ENABLE_TESTABILITY = YES; 603 | GCC_C_LANGUAGE_STANDARD = gnu11; 604 | GCC_DYNAMIC_NO_PIC = NO; 605 | GCC_NO_COMMON_BLOCKS = YES; 606 | GCC_OPTIMIZATION_LEVEL = 0; 607 | GCC_PREPROCESSOR_DEFINITIONS = ( 608 | "POD_CONFIGURATION_DEBUG=1", 609 | "DEBUG=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 = 9.3; 619 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 620 | MTL_FAST_MATH = YES; 621 | ONLY_ACTIVE_ARCH = YES; 622 | PRODUCT_NAME = "$(TARGET_NAME)"; 623 | STRIP_INSTALLED_PRODUCT = NO; 624 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 625 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 626 | SWIFT_VERSION = 4.2; 627 | SYMROOT = "${SRCROOT}/../build"; 628 | }; 629 | name = Debug; 630 | }; 631 | BDCF562D0414949051DC9683742DAAF5 /* Release */ = { 632 | isa = XCBuildConfiguration; 633 | baseConfigurationReference = 9D9B55AE918EBFD74A823DEC7A7F9D2D /* Pageable.xcconfig */; 634 | buildSettings = { 635 | CLANG_ENABLE_MODULES = YES; 636 | CODE_SIGN_IDENTITY = ""; 637 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 638 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 639 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 640 | CURRENT_PROJECT_VERSION = 1; 641 | DEFINES_MODULE = YES; 642 | DYLIB_COMPATIBILITY_VERSION = 1; 643 | DYLIB_CURRENT_VERSION = 1; 644 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 645 | GCC_PREFIX_HEADER = "Target Support Files/Pageable/Pageable-prefix.pch"; 646 | INFOPLIST_FILE = "Target Support Files/Pageable/Pageable-Info.plist"; 647 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 648 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 649 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 650 | MODULEMAP_FILE = "Target Support Files/Pageable/Pageable.modulemap"; 651 | PRODUCT_MODULE_NAME = Pageable; 652 | PRODUCT_NAME = Pageable; 653 | SDKROOT = iphoneos; 654 | SKIP_INSTALL = YES; 655 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 656 | SWIFT_VERSION = 5.0; 657 | TARGETED_DEVICE_FAMILY = "1,2"; 658 | VALIDATE_PRODUCT = YES; 659 | VERSIONING_SYSTEM = "apple-generic"; 660 | VERSION_INFO_PREFIX = ""; 661 | }; 662 | name = Release; 663 | }; 664 | E62E3141C9BF0D8B6056E18087528C6D /* Debug */ = { 665 | isa = XCBuildConfiguration; 666 | baseConfigurationReference = DB0E2E1D91884AB1298D81DD89FAF96F /* Pods-Pageable_Example.debug.xcconfig */; 667 | buildSettings = { 668 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 669 | CODE_SIGN_IDENTITY = ""; 670 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 671 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 672 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 673 | CURRENT_PROJECT_VERSION = 1; 674 | DEFINES_MODULE = YES; 675 | DYLIB_COMPATIBILITY_VERSION = 1; 676 | DYLIB_CURRENT_VERSION = 1; 677 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 678 | INFOPLIST_FILE = "Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example-Info.plist"; 679 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 680 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 681 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 682 | MACH_O_TYPE = staticlib; 683 | MODULEMAP_FILE = "Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example.modulemap"; 684 | OTHER_LDFLAGS = ""; 685 | OTHER_LIBTOOLFLAGS = ""; 686 | PODS_ROOT = "$(SRCROOT)"; 687 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 688 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 689 | SDKROOT = iphoneos; 690 | SKIP_INSTALL = YES; 691 | TARGETED_DEVICE_FAMILY = "1,2"; 692 | VERSIONING_SYSTEM = "apple-generic"; 693 | VERSION_INFO_PREFIX = ""; 694 | }; 695 | name = Debug; 696 | }; 697 | F232B5ECA11A71BFA199A229B323F454 /* Release */ = { 698 | isa = XCBuildConfiguration; 699 | buildSettings = { 700 | ALWAYS_SEARCH_USER_PATHS = NO; 701 | CLANG_ANALYZER_NONNULL = YES; 702 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 703 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 704 | CLANG_CXX_LIBRARY = "libc++"; 705 | CLANG_ENABLE_MODULES = YES; 706 | CLANG_ENABLE_OBJC_ARC = YES; 707 | CLANG_ENABLE_OBJC_WEAK = YES; 708 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 709 | CLANG_WARN_BOOL_CONVERSION = YES; 710 | CLANG_WARN_COMMA = YES; 711 | CLANG_WARN_CONSTANT_CONVERSION = YES; 712 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 713 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 714 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 715 | CLANG_WARN_EMPTY_BODY = YES; 716 | CLANG_WARN_ENUM_CONVERSION = YES; 717 | CLANG_WARN_INFINITE_RECURSION = YES; 718 | CLANG_WARN_INT_CONVERSION = YES; 719 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 720 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 721 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 722 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 723 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 724 | CLANG_WARN_STRICT_PROTOTYPES = YES; 725 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 726 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 727 | CLANG_WARN_UNREACHABLE_CODE = YES; 728 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 729 | COPY_PHASE_STRIP = NO; 730 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 731 | ENABLE_NS_ASSERTIONS = NO; 732 | ENABLE_STRICT_OBJC_MSGSEND = YES; 733 | GCC_C_LANGUAGE_STANDARD = gnu11; 734 | GCC_NO_COMMON_BLOCKS = YES; 735 | GCC_PREPROCESSOR_DEFINITIONS = ( 736 | "POD_CONFIGURATION_RELEASE=1", 737 | "$(inherited)", 738 | ); 739 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 740 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 741 | GCC_WARN_UNDECLARED_SELECTOR = YES; 742 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 743 | GCC_WARN_UNUSED_FUNCTION = YES; 744 | GCC_WARN_UNUSED_VARIABLE = YES; 745 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 746 | MTL_ENABLE_DEBUG_INFO = NO; 747 | MTL_FAST_MATH = YES; 748 | PRODUCT_NAME = "$(TARGET_NAME)"; 749 | STRIP_INSTALLED_PRODUCT = NO; 750 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 751 | SWIFT_VERSION = 4.2; 752 | SYMROOT = "${SRCROOT}/../build"; 753 | }; 754 | name = Release; 755 | }; 756 | /* End XCBuildConfiguration section */ 757 | 758 | /* Begin XCConfigurationList section */ 759 | 317F92536FB5621473DD8FC1B02C1D59 /* Build configuration list for PBXNativeTarget "Pageable" */ = { 760 | isa = XCConfigurationList; 761 | buildConfigurations = ( 762 | 6EE92D219ED8C57445178FE5A496C62C /* Debug */, 763 | BDCF562D0414949051DC9683742DAAF5 /* Release */, 764 | ); 765 | defaultConfigurationIsVisible = 0; 766 | defaultConfigurationName = Release; 767 | }; 768 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 769 | isa = XCConfigurationList; 770 | buildConfigurations = ( 771 | AB4D69770D8ACE3A05E80BB3502666F6 /* Debug */, 772 | F232B5ECA11A71BFA199A229B323F454 /* Release */, 773 | ); 774 | defaultConfigurationIsVisible = 0; 775 | defaultConfigurationName = Release; 776 | }; 777 | 91CA1A54DE12B4DA6A849307A0BCA97B /* Build configuration list for PBXNativeTarget "Pods-Pageable_Tests" */ = { 778 | isa = XCConfigurationList; 779 | buildConfigurations = ( 780 | 3AA6B5C5F7E95943238384A9ADDCEDBE /* Debug */, 781 | 18CC33A47A422A4C7E54247963DC4B49 /* Release */, 782 | ); 783 | defaultConfigurationIsVisible = 0; 784 | defaultConfigurationName = Release; 785 | }; 786 | FFFDC49A1C01DD9D9BCA631FF99B6AEC /* Build configuration list for PBXNativeTarget "Pods-Pageable_Example" */ = { 787 | isa = XCConfigurationList; 788 | buildConfigurations = ( 789 | E62E3141C9BF0D8B6056E18087528C6D /* Debug */, 790 | A2C1D66C9D912260E23ED32B0D665F5F /* Release */, 791 | ); 792 | defaultConfigurationIsVisible = 0; 793 | defaultConfigurationName = Release; 794 | }; 795 | /* End XCConfigurationList section */ 796 | }; 797 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 798 | } 799 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pageable/Pageable-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pageable/Pageable-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pageable : NSObject 3 | @end 4 | @implementation PodsDummy_Pageable 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pageable/Pageable-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/Pageable/Pageable-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 PageableVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char PageableVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pageable/Pageable.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pageable { 2 | umbrella header "Pageable-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pageable/Pageable.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Pageable 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-Pageable_Example/Pods-Pageable_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## Pageable 5 | 6 | Copyright (c) 2019 mrigankgupta 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-Pageable_Example/Pods-Pageable_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 mrigankgupta <mrigankgupta@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 | Pageable 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-Pageable_Example/Pods-Pageable_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Pageable_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Pageable_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Example/Pods-Pageable_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}/Pageable/Pageable.framework" 157 | fi 158 | if [[ "$CONFIGURATION" == "Release" ]]; then 159 | install_framework "${BUILT_PRODUCTS_DIR}/Pageable/Pageable.framework" 160 | fi 161 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 162 | wait 163 | fi 164 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Example/Pods-Pageable_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_Pageable_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_Pageable_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Pageable" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Pageable/Pageable.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "Pageable" 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-Pageable_Example/Pods-Pageable_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Pageable_Example { 2 | umbrella header "Pods-Pageable_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Example/Pods-Pageable_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Pageable" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Pageable/Pageable.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "Pageable" 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-Pageable_Tests/Pods-Pageable_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Tests/Pods-Pageable_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-Pageable_Tests/Pods-Pageable_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-Pageable_Tests/Pods-Pageable_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Pageable_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Pageable_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Tests/Pods-Pageable_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_Pageable_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_Pageable_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Tests/Pods-Pageable_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Pageable" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Pageable/Pageable.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -framework "Pageable" 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-Pageable_Tests/Pods-Pageable_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Pageable_Tests { 2 | umbrella header "Pods-Pageable_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Pageable_Tests/Pods-Pageable_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Pageable" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Pageable/Pageable.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -framework "Pageable" 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/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Pageable 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 mrigankgupta 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 | -------------------------------------------------------------------------------- /Pageable.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint Pageable.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'Pageable' 11 | s.version = '1.0.1' 12 | s.summary = 'Infinite scrolling(Pagination) done right' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | A lot of the time, when we’re making calls to REST API, there’ll be a lot of results to return. For that reason, we paginate the results to make sure responses are easier to handle. and most of the times, this will be required for differnt REST API's with in the app. 22 | Pageable provide support for incorprating pagination in easy way. With pageable, pagination logic gets seperate from Tableview or CollectionView controllers. 23 | DESC 24 | 25 | s.homepage = 'https://github.com/mrigankgupta/Pageable' 26 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 27 | s.license = { :type => 'MIT', :file => 'LICENSE' } 28 | s.author = { 'mrigankgupta' => 'mrigankgupta@gmail.com' } 29 | s.source = { :git => 'https://github.com/mrigankgupta/Pageable.git', :tag => s.version.to_s } 30 | # s.social_media_url = 'https://twitter.com/@mrigankgupta' 31 | 32 | s.ios.deployment_target = '11.0' 33 | #s.swift_version = '5.0' 34 | s.source_files = 'Pageable/Classes/**/*' 35 | 36 | # s.resource_bundles = { 37 | # 'Pageable' => ['Pageable/Assets/*.png'] 38 | # } 39 | 40 | # s.public_header_files = 'Pod/Classes/**/*.h' 41 | # s.frameworks = 'UIKit', 'Foundation' 42 | 43 | end 44 | -------------------------------------------------------------------------------- /Pageable/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrigankgupta/Pageable/73d614ec74d5e13c5473fdf291b56fae9c6e0ebf/Pageable/Assets/.gitkeep -------------------------------------------------------------------------------- /Pageable/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrigankgupta/Pageable/73d614ec74d5e13c5473fdf291b56fae9c6e0ebf/Pageable/Classes/.gitkeep -------------------------------------------------------------------------------- /Pageable/Classes/NewPageLoad.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PageController.swift 3 | // 4 | // Created by Gupta, Mrigank on 28/08/18. 5 | // Copyright © 2018 Gupta, Mrigank. All rights reserved. 6 | // 7 | 8 | import UIKit 9 | 10 | public protocol NewPageLoad: class { 11 | func insertAndUpdateRows(new: [IndexPath]) 12 | func reloadAll(_ reload: Bool) 13 | func setupRefreshControl(_ target: Any?, selector: Selector) 14 | } 15 | 16 | extension UITableView: NewPageLoad { 17 | 18 | public func insertAndUpdateRows(new: [IndexPath]) { 19 | self.performBatchUpdates({ 20 | self.insertRows(at: new, with: .none) 21 | }, completion: nil) 22 | 23 | if let visible = self.indexPathsForVisibleRows { 24 | let intersection = Set(new).intersection(Set(visible)) 25 | if intersection.count > 0 { 26 | self.reloadRows(at: Array(intersection), with: .none) 27 | } 28 | } 29 | } 30 | 31 | public func reloadAll(_ reload: Bool) { 32 | if reload { 33 | self.reloadData() 34 | } 35 | refreshControl?.endRefreshing() 36 | } 37 | 38 | public func setupRefreshControl(_ target: Any?, selector: Selector) { 39 | let refreshControl = UIRefreshControl() 40 | refreshControl.addTarget(target, action: selector, for: .valueChanged) 41 | refreshControl.beginRefreshing() 42 | self.refreshControl = refreshControl 43 | } 44 | 45 | } 46 | 47 | extension UICollectionView: NewPageLoad { 48 | 49 | public func insertAndUpdateRows(new: [IndexPath]) { 50 | self.performBatchUpdates({ 51 | self.insertItems(at: new) 52 | }, completion: nil) 53 | let intersection = Set(new).intersection(Set(self.indexPathsForVisibleItems)) 54 | if intersection.count > 0 { 55 | self.reloadItems(at: Array(intersection)) 56 | } 57 | } 58 | 59 | public func reloadAll(_ reload: Bool) { 60 | if reload { 61 | self.reloadData() 62 | } 63 | refreshControl?.endRefreshing() 64 | } 65 | 66 | public func setupRefreshControl(_ target: Any?, selector: Selector) { 67 | let refreshControl = UIRefreshControl() 68 | refreshControl.addTarget(target, action: selector, for: .valueChanged) 69 | refreshControl.beginRefreshing() 70 | self.refreshControl = refreshControl 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /Pageable/Classes/PageInfo.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PageInfo.swift 3 | // Pageable 4 | // 5 | // Created by Mrigank Gupta on 19/09/19. 6 | // 7 | 8 | import Foundation 9 | 10 | public struct PageInfo { 11 | var types: [T] 12 | var page: Int 13 | var totalPageCount: Int 14 | 15 | public init(types: [T], page: Int, totalPageCount: Int) { 16 | self.types = types 17 | self.page = page 18 | self.totalPageCount = totalPageCount 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Pageable/Classes/PageInteractor.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PageInteractor.swift 3 | // 4 | // Created by Gupta, Mrigank on 19/08/18. 5 | // Copyright © 2018 Gupta, Mrigank. All rights reserved. 6 | // 7 | 8 | import Foundation 9 | 10 | public class PageInteractor { 11 | 12 | public weak var pageDelegate: NewPageLoad? 13 | 14 | public private(set) var array: [Element] = [] 15 | public private(set) var dict: [KeyType : Any] = [:] 16 | public private(set) var isLoading = false 17 | 18 | public weak var service: PageableService? 19 | private var currentPage: Int 20 | private let firstPage: Int 21 | private let keyPath: KeyPath? 22 | private var showLoadingCell = false 23 | /** Initialiser 24 | - Parameter firstPage: Indicates the starting index of pagination for REST point, default == 0 25 | - Parameter service: Provide PageableService protocol instance, can be set later also 26 | - Parameter keyPath: In case if duplicate entries has to be filter out, It requires keypath of 27 | unique items in model data. 28 | 29 | # Example 30 | If server has added new entry in previous page displayed in pagination, 31 | it results in repeat of last item in fetched new page. 32 | 33 | Displayed __1__ On Server 34 | ____________ ____2_____ 35 | | __1__ | | __3__ | 1 36 | | __2__ | | __4__ | 2 37 | | __3__ | +__10__ == | __4__ | 10 38 | |____4_____| |____5_____| 3 39 | __5__ __6__ 40 | __6__ __7__ 41 | __7__ __8__ new fetch 42 | __8__ __9__ 43 | */ 44 | 45 | public init(firstPage: Int = 0, service: PageableService? = nil, keyPath: KeyPath? = nil) { 46 | self.firstPage = firstPage 47 | self.currentPage = firstPage 48 | self.service = service 49 | self.keyPath = keyPath 50 | } 51 | 52 | public func visibleRow() -> Int { 53 | return showLoadingCell ? count() + 1 : count() 54 | } 55 | 56 | public func refreshPage() { 57 | array.removeAll() 58 | dict.removeAll() 59 | isLoading = true 60 | currentPage = firstPage 61 | service?.cancelAllRequests() 62 | service?.loadPage(firstPage) { (info) in 63 | self.returnedResponse(info) 64 | } 65 | } 66 | 67 | public func loadNextPage() { 68 | if !isLoading { 69 | isLoading = true 70 | service?.loadPage(currentPage + 1) { (info) in 71 | self.returnedResponse(info) 72 | } 73 | } 74 | } 75 | 76 | public func shouldPrefetch(index: Int) { 77 | if showLoadingCell && index == count() - 1 { 78 | loadNextPage() 79 | } 80 | } 81 | 82 | /// Get item for index 83 | /// - Parameter index: index of item to be return 84 | /// - Return: item of 'Element' type 85 | public func item(for index: Int) -> Element { 86 | return array[index] 87 | } 88 | 89 | /// Total item for display 90 | public func count() -> Int { 91 | return array.count 92 | } 93 | 94 | #if swift(>=4.2) 95 | func getUniqueItemsIndexPath(addedRange: Range) -> [IndexPath] { 96 | let truncate = showLoadingCell ? addedRange : addedRange.dropLast() 97 | return truncate.map({IndexPath(row: $0, section: 0)}) 98 | } 99 | #else 100 | func getUniqueItemsIndexPath(addedRange: Range) -> [IndexPath] { 101 | let truncate = showLoadingCell ? addedRange : addedRange.lowerBound..?) { 117 | if let currentResponse = info { 118 | let lastPageNumber = currentPage 119 | updateLoading(number: currentResponse.page, totalPageCount: currentResponse.totalPageCount) 120 | print(currentResponse.page) 121 | if currentResponse.page == firstPage { 122 | addAll(items: currentResponse.types, keypath: self.keyPath) 123 | DispatchQueue.main.async { 124 | self.pageDelegate?.reloadAll(true) 125 | } 126 | } else if currentResponse.page == lastPageNumber + 1 { 127 | let numberOfItems = addUniqueFrom(items: currentResponse.types, 128 | keypath: self.keyPath) 129 | let newIndexPaths = getUniqueItemsIndexPath(addedRange: numberOfItems) 130 | DispatchQueue.main.async { 131 | self.pageDelegate?.insertAndUpdateRows(new: newIndexPaths) 132 | } 133 | }else{ 134 | print("Ignore result as requests landed in non-sequential order") 135 | } 136 | }else { 137 | isLoading = false 138 | DispatchQueue.main.async { 139 | self.pageDelegate?.reloadAll(false) 140 | } 141 | } 142 | } 143 | /** 144 | Server can add/remove items dynamically so it might be a case that 145 | an item which appears in previous request can come again due to 146 | certain element below got removed. This could result as duplicate items 147 | appearing in the list. To mitigate it, we would be creating a parallel dictionary 148 | which can be checked for duplicate items 149 | 150 | - Parameter items: items to be added 151 | - Parameter keypath: In case if duplicate entries has to be filter out, 152 | It requires keypath of unique items in model data. 153 | */ 154 | 155 | open func addUniqueFrom(items: [Element], keypath: KeyPath?) -> Range { 156 | let startIndex = count() 157 | if let keypath = keypath { 158 | for new in items { 159 | let key = new[keyPath: keypath] 160 | if dict[key] == nil { 161 | dict[key] = key 162 | array.append(new) 163 | } 164 | } 165 | } 166 | return startIndex..?) { 174 | array = items 175 | guard let keypath = keypath else { 176 | return 177 | } 178 | for new in items { 179 | let key = new[keyPath: keypath] 180 | dict[key] = key 181 | } 182 | } 183 | } 184 | -------------------------------------------------------------------------------- /Pageable/Classes/PageableService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PageableService.swift 3 | // Pageable 4 | // 5 | // Created by Mrigank Gupta on 19/09/19. 6 | // 7 | 8 | import Foundation 9 | 10 | public protocol PageableService: class { 11 | func loadPage(_ page: Int, completion: @escaping (PageInfo?) -> Void) 12 | func cancelAllRequests() 13 | } 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pageable 2 | 3 | [![CI Status](https://img.shields.io/travis/mrigankgupta/Pageable.svg?style=flat)](https://travis-ci.org/mrigankgupta/Pageable) 4 | [![Version](https://img.shields.io/cocoapods/v/Pageable.svg?style=flat)](https://cocoapods.org/pods/Pageable) 5 | [![License](https://img.shields.io/cocoapods/l/Pageable.svg?style=flat)](https://cocoapods.org/pods/Pageable) 6 | [![Platform](https://img.shields.io/cocoapods/p/Pageable.svg?style=flat)](https://cocoapods.org/pods/Pageable) 7 | 8 | 9 | ![Infinite Scrolling Demo](./demo.gif) 10 | 11 | ## Purpose 12 | "[Pagination](https://en.wikipedia.org/wiki/Pagination), also known as paging, is the process of dividing a document into discrete pages, either electronic pages or printed pages." 13 | 14 | It is most common technique to manage large data set at server/client side to distribute in chunks called as pages. In todays time, Social media client apps improvised this by inventing "Infinite scroll". 15 | 16 | Infinite scrolling allows users to load content continuously, eliminating the need for user's explicit actions. App loads some initial data and then load the rest of the data when the user reaches the bottom of the visible content. This data is divided in pages. 17 | 18 | 19 | ## Basic Usage 20 | 21 | So how do you use this library? Well, it's pretty easy. Just follow these steps.. 22 | # Step 0 23 | Create a simple PageInteractor object. PageInteractor operates on two generics types. 24 | 25 | First generic is type of `Model` which TableView/CollectionView is listing. 26 | 27 | Second generic is a type of unique items in model data for identifing duplicate entries to be filter out. 28 | By default, the type can be given as `Any`, if filtering is not required or `Model` doesn't have any unique identifiable object. 29 | 30 | ```swift 31 | let pageInteractor: PageInteractor = PageInteractor() 32 | ``` 33 | 34 | # Step 1 35 | Now instance of pageInteractor to be setup in ViewDidLoad() to get first page data. 36 | ```swift 37 | func setupPageInteractor() { 38 | // Require to provide instance of TableView/CollectionView 39 | pageInteractor.pageDelegate = self.tableView 40 | // NetworkManager is implementing PageableService protocol 41 | pageInteractor.service = networkManager 42 | pageInteractor.refreshPage() 43 | } 44 | 45 | override func viewDidLoad() { 46 | super.viewDidLoad() 47 | setupPageInteractor() 48 | } 49 | ``` 50 | # Step 2 51 | TableView will ask for items count from PageInteractor. 52 | ```swift 53 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 54 | return pageInteractor.visibleRow() 55 | } 56 | 57 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 58 | // Fetch a cell of the appropriate type. 59 | if indexPath.row >= pageInteractor.count() { 60 | let loadingCell = tableView.dequeueReusableCell(withIdentifier: "loadingCell", for: indexPath) 61 | return loadingCell 62 | } else { 63 | let cell = tableView.dequeueReusableCell(withIdentifier: "cellTypeIdentifier", for: indexPath) 64 | let cellData = pageInteractor.item(for: indexPath.row) 65 | // Configure the cell’s contents. 66 | cell.textLabel!.text = cellData.name 67 | return cell 68 | } 69 | } 70 | 71 | func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { 72 | pageInteractor.shouldPrefetch(index: indexPath.row) 73 | } 74 | ``` 75 | # Step 3 76 | Now most importent step is to provide data to PageInteractor. That is done by implementing `PagableService` protocol. It has got two methods in it. 77 | ```swift 78 | protocol PagableService: class { 79 | func loadPage(_ page: Int, completion: @escaping (PageInfo?) -> Void) 80 | func cancelAllRequests() 81 | } 82 | ``` 83 | When PageInteractor's refresh method gets called either by end of TableView load or pulling UIRefreshControl, it tracks page number and ask for next page load by calling 84 | `loadPage(_ page: Int, completion: @escaping (PageInfo?) -> Void)` 85 | Where `page` indicates the next page to load. Once page gets loaded, `PageInfo` struct needs to be return. 86 | ```swift 87 | struct PageInfo { 88 | var types: [T] // list of item returned from request 89 | var page: Int // current page 90 | var totalPageCount: Int // total page 91 | } 92 | ``` 93 | how it can be done, is shown below. 94 | ```swift 95 | extension NetworkManager: PagableService { 96 | func loadPage(_ page: Int, completion: @escaping (PageInfo?) -> Void) { 97 | var info: PageInfo? 98 | getNextPage(page: page) { (response) in 99 | // paginated response will have page number as well as total page 100 | switch response { 101 | case let .success(result): 102 | // Provide PageInfo Object from the response or nil in case no response 103 | info = PageInfo(types: result.types, 104 | page: result.page, 105 | totalPageCount: result.totalPageCount) 106 | case let .failure(err): 107 | print(err) 108 | } 109 | // Returning PageInfo Object from callback to PageInteractor 110 | completion(info) 111 | } 112 | } 113 | 114 | func cancelAllRequests() { 115 | cancelAll() 116 | } 117 | } 118 | ``` 119 | 120 | ## Advance Usage 121 | Pageable provide additional features like 122 | 1. Configurable start page index to be fetched from server 123 | 2. Filtering out duplicate items while loading addition items in the list. 124 | 125 | ``` 126 | If server has added new entry in previous page displayed in pagination, 127 | it results in repeat of last item in fetched new page. 128 | 129 | Displayed __1__ On Server 130 | ____________ ____2_____ 131 | | __1__ | | __3__ | 1 132 | | __2__ | | __4__ | 2 133 | | __3__ | +__10__ == | __4__ | 10 134 | |____4_____| |____5_____| 3 135 | __5__ __6__ 136 | __6__ __7__ 137 | __7__ __8__ new fetch 138 | __8__ __9__ 139 | ``` 140 | In case if duplicate entries has to be filter out, It requires keypath of unique items in model data. It can be setup in initializer or later. 141 | 142 | ```swift 143 | let pageInteractor: PageInteractor = PageInteractor(firstPage: 1, service: networkManager, keyPath: \UserModel.id) 144 | ``` 145 | 146 | ## Example 147 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 148 | 149 | ## Requirements 150 | 151 | ## Installation 152 | 153 | Pageable is available through [CocoaPods](https://cocoapods.org). To install 154 | it, simply add the following line to your Podfile: 155 | 156 | ```ruby 157 | pod 'Pageable' 158 | ``` 159 | 160 | ## Author 161 | 162 | mrigankgupta, mrigankgupta@gmail.com 163 | 164 | ## License 165 | 166 | Pageable is available under the MIT license. See the LICENSE file for more info. 167 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrigankgupta/Pageable/73d614ec74d5e13c5473fdf291b56fae9c6e0ebf/demo.gif --------------------------------------------------------------------------------