├── .gitignore ├── .travis.yml ├── Example ├── PluggableApplicationDelegate.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── PluggableApplicationDelegate-Example.xcscheme ├── PluggableApplicationDelegate.xcworkspace │ └── contents.xcworkspacedata ├── PluggableApplicationDelegate │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── LoggerApplicationService.swift │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── PluggableApplicationDelegate.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── PluggableApplicationDelegate.xcscheme │ └── Target Support Files │ │ ├── PluggableApplicationDelegate │ │ ├── Info.plist │ │ ├── PluggableApplicationDelegate-dummy.m │ │ ├── PluggableApplicationDelegate-prefix.pch │ │ ├── PluggableApplicationDelegate-umbrella.h │ │ ├── PluggableApplicationDelegate.modulemap │ │ └── PluggableApplicationDelegate.xcconfig │ │ ├── Pods-PluggableApplicationDelegate_Example │ │ ├── Info.plist │ │ ├── Pods-PluggableApplicationDelegate_Example-acknowledgements.markdown │ │ ├── Pods-PluggableApplicationDelegate_Example-acknowledgements.plist │ │ ├── Pods-PluggableApplicationDelegate_Example-dummy.m │ │ ├── Pods-PluggableApplicationDelegate_Example-frameworks.sh │ │ ├── Pods-PluggableApplicationDelegate_Example-resources.sh │ │ ├── Pods-PluggableApplicationDelegate_Example-umbrella.h │ │ ├── Pods-PluggableApplicationDelegate_Example.debug.xcconfig │ │ ├── Pods-PluggableApplicationDelegate_Example.modulemap │ │ └── Pods-PluggableApplicationDelegate_Example.release.xcconfig │ │ └── Pods-PluggableApplicationDelegate_Tests │ │ ├── Info.plist │ │ ├── Pods-PluggableApplicationDelegate_Tests-acknowledgements.markdown │ │ ├── Pods-PluggableApplicationDelegate_Tests-acknowledgements.plist │ │ ├── Pods-PluggableApplicationDelegate_Tests-dummy.m │ │ ├── Pods-PluggableApplicationDelegate_Tests-frameworks.sh │ │ ├── Pods-PluggableApplicationDelegate_Tests-resources.sh │ │ ├── Pods-PluggableApplicationDelegate_Tests-umbrella.h │ │ ├── Pods-PluggableApplicationDelegate_Tests.debug.xcconfig │ │ ├── Pods-PluggableApplicationDelegate_Tests.modulemap │ │ └── Pods-PluggableApplicationDelegate_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── PluggableApplicationDelegate.podspec ├── PluggableApplicationDelegate ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── ApplicationServicesManager.swift ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/PluggableApplicationDelegate.xcworkspace -scheme PluggableApplicationDelegate-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1837D1BC1E620CAD007B3A99 /* LoggerApplicationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1837D1BB1E620CAD007B3A99 /* LoggerApplicationService.swift */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | 75AC88EE210F1E63D93B8884 /* Pods_PluggableApplicationDelegate_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B64AB4D62E5F7AE04B2995F /* Pods_PluggableApplicationDelegate_Tests.framework */; }; 18 | B58B09780DA830FCB86EC206 /* Pods_PluggableApplicationDelegate_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B6CECF7EAD6D5A936AF6141B /* Pods_PluggableApplicationDelegate_Example.framework */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 27 | remoteInfo = PluggableApplicationDelegate; 28 | }; 29 | /* End PBXContainerItemProxy section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1837D1BB1E620CAD007B3A99 /* LoggerApplicationService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LoggerApplicationService.swift; sourceTree = ""; }; 33 | 2D6C3D35BF2386A555E97E61 /* Pods-PluggableApplicationDelegate_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluggableApplicationDelegate_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests.release.xcconfig"; sourceTree = ""; }; 34 | 3452B0F8F97CEB00ACD499B9 /* Pods-PluggableApplicationDelegate_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluggableApplicationDelegate_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example.debug.xcconfig"; sourceTree = ""; }; 35 | 3B64AB4D62E5F7AE04B2995F /* Pods_PluggableApplicationDelegate_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PluggableApplicationDelegate_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 3C07D992004BA73F2E4B91D9 /* Pods-PluggableApplicationDelegate_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluggableApplicationDelegate_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example.release.xcconfig"; sourceTree = ""; }; 37 | 58106CACA3FB0C55BD04D374 /* PluggableApplicationDelegate.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = PluggableApplicationDelegate.podspec; path = ../PluggableApplicationDelegate.podspec; sourceTree = ""; }; 38 | 5884CAC61F8C394486D201FB /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 39 | 607FACD01AFB9204008FA782 /* PluggableApplicationDelegate_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PluggableApplicationDelegate_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 41 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 42 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 43 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 44 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 45 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 46 | 607FACE51AFB9204008FA782 /* PluggableApplicationDelegate_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PluggableApplicationDelegate_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 49 | 8D80C59340E099C607D20364 /* Pods-PluggableApplicationDelegate_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluggableApplicationDelegate_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests.debug.xcconfig"; sourceTree = ""; }; 50 | B6CECF7EAD6D5A936AF6141B /* Pods_PluggableApplicationDelegate_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PluggableApplicationDelegate_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | E80DF0E13AD8B6534161C748 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 52 | /* End PBXFileReference section */ 53 | 54 | /* Begin PBXFrameworksBuildPhase section */ 55 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | B58B09780DA830FCB86EC206 /* Pods_PluggableApplicationDelegate_Example.framework in Frameworks */, 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | 75AC88EE210F1E63D93B8884 /* Pods_PluggableApplicationDelegate_Tests.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 1837D1BA1E620C81007B3A99 /* Sample Services */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 1837D1BB1E620CAD007B3A99 /* LoggerApplicationService.swift */, 78 | ); 79 | name = "Sample Services"; 80 | sourceTree = ""; 81 | }; 82 | 43E05A061D839EB359901D2C /* Pods */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 3452B0F8F97CEB00ACD499B9 /* Pods-PluggableApplicationDelegate_Example.debug.xcconfig */, 86 | 3C07D992004BA73F2E4B91D9 /* Pods-PluggableApplicationDelegate_Example.release.xcconfig */, 87 | 8D80C59340E099C607D20364 /* Pods-PluggableApplicationDelegate_Tests.debug.xcconfig */, 88 | 2D6C3D35BF2386A555E97E61 /* Pods-PluggableApplicationDelegate_Tests.release.xcconfig */, 89 | ); 90 | name = Pods; 91 | sourceTree = ""; 92 | }; 93 | 607FACC71AFB9204008FA782 = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 97 | 607FACD21AFB9204008FA782 /* Example for PluggableApplicationDelegate */, 98 | 607FACE81AFB9204008FA782 /* Tests */, 99 | 607FACD11AFB9204008FA782 /* Products */, 100 | 43E05A061D839EB359901D2C /* Pods */, 101 | 93C087DF92C92B01890215E1 /* Frameworks */, 102 | ); 103 | sourceTree = ""; 104 | }; 105 | 607FACD11AFB9204008FA782 /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 607FACD01AFB9204008FA782 /* PluggableApplicationDelegate_Example.app */, 109 | 607FACE51AFB9204008FA782 /* PluggableApplicationDelegate_Tests.xctest */, 110 | ); 111 | name = Products; 112 | sourceTree = ""; 113 | }; 114 | 607FACD21AFB9204008FA782 /* Example for PluggableApplicationDelegate */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 1837D1BA1E620C81007B3A99 /* Sample Services */, 118 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 119 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 120 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 121 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 122 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 123 | 607FACD31AFB9204008FA782 /* Supporting Files */, 124 | ); 125 | name = "Example for PluggableApplicationDelegate"; 126 | path = PluggableApplicationDelegate; 127 | sourceTree = ""; 128 | }; 129 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 607FACD41AFB9204008FA782 /* Info.plist */, 133 | ); 134 | name = "Supporting Files"; 135 | sourceTree = ""; 136 | }; 137 | 607FACE81AFB9204008FA782 /* Tests */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 141 | 607FACE91AFB9204008FA782 /* Supporting Files */, 142 | ); 143 | path = Tests; 144 | sourceTree = ""; 145 | }; 146 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 607FACEA1AFB9204008FA782 /* Info.plist */, 150 | ); 151 | name = "Supporting Files"; 152 | sourceTree = ""; 153 | }; 154 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 58106CACA3FB0C55BD04D374 /* PluggableApplicationDelegate.podspec */, 158 | E80DF0E13AD8B6534161C748 /* README.md */, 159 | 5884CAC61F8C394486D201FB /* LICENSE */, 160 | ); 161 | name = "Podspec Metadata"; 162 | sourceTree = ""; 163 | }; 164 | 93C087DF92C92B01890215E1 /* Frameworks */ = { 165 | isa = PBXGroup; 166 | children = ( 167 | B6CECF7EAD6D5A936AF6141B /* Pods_PluggableApplicationDelegate_Example.framework */, 168 | 3B64AB4D62E5F7AE04B2995F /* Pods_PluggableApplicationDelegate_Tests.framework */, 169 | ); 170 | name = Frameworks; 171 | sourceTree = ""; 172 | }; 173 | /* End PBXGroup section */ 174 | 175 | /* Begin PBXNativeTarget section */ 176 | 607FACCF1AFB9204008FA782 /* PluggableApplicationDelegate_Example */ = { 177 | isa = PBXNativeTarget; 178 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PluggableApplicationDelegate_Example" */; 179 | buildPhases = ( 180 | 8761E5684C2960E81CC14F19 /* [CP] Check Pods Manifest.lock */, 181 | 607FACCC1AFB9204008FA782 /* Sources */, 182 | 607FACCD1AFB9204008FA782 /* Frameworks */, 183 | 607FACCE1AFB9204008FA782 /* Resources */, 184 | 14D1E04863E2E2DAEA9A5F9B /* [CP] Embed Pods Frameworks */, 185 | F3C70AC67D28B5C76B71FC3C /* [CP] Copy Pods Resources */, 186 | ); 187 | buildRules = ( 188 | ); 189 | dependencies = ( 190 | ); 191 | name = PluggableApplicationDelegate_Example; 192 | productName = PluggableApplicationDelegate; 193 | productReference = 607FACD01AFB9204008FA782 /* PluggableApplicationDelegate_Example.app */; 194 | productType = "com.apple.product-type.application"; 195 | }; 196 | 607FACE41AFB9204008FA782 /* PluggableApplicationDelegate_Tests */ = { 197 | isa = PBXNativeTarget; 198 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PluggableApplicationDelegate_Tests" */; 199 | buildPhases = ( 200 | 3EBBA250205BCFE3A51C66BD /* [CP] Check Pods Manifest.lock */, 201 | 607FACE11AFB9204008FA782 /* Sources */, 202 | 607FACE21AFB9204008FA782 /* Frameworks */, 203 | 607FACE31AFB9204008FA782 /* Resources */, 204 | 598A52D05B1A82E18138846E /* [CP] Embed Pods Frameworks */, 205 | 528C03B45EF601FE871E869C /* [CP] Copy Pods Resources */, 206 | ); 207 | buildRules = ( 208 | ); 209 | dependencies = ( 210 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 211 | ); 212 | name = PluggableApplicationDelegate_Tests; 213 | productName = Tests; 214 | productReference = 607FACE51AFB9204008FA782 /* PluggableApplicationDelegate_Tests.xctest */; 215 | productType = "com.apple.product-type.bundle.unit-test"; 216 | }; 217 | /* End PBXNativeTarget section */ 218 | 219 | /* Begin PBXProject section */ 220 | 607FACC81AFB9204008FA782 /* Project object */ = { 221 | isa = PBXProject; 222 | attributes = { 223 | LastSwiftUpdateCheck = 0720; 224 | LastUpgradeCheck = 0820; 225 | ORGANIZATIONNAME = CocoaPods; 226 | TargetAttributes = { 227 | 607FACCF1AFB9204008FA782 = { 228 | CreatedOnToolsVersion = 6.3.1; 229 | LastSwiftMigration = 0820; 230 | }; 231 | 607FACE41AFB9204008FA782 = { 232 | CreatedOnToolsVersion = 6.3.1; 233 | LastSwiftMigration = 0820; 234 | TestTargetID = 607FACCF1AFB9204008FA782; 235 | }; 236 | }; 237 | }; 238 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "PluggableApplicationDelegate" */; 239 | compatibilityVersion = "Xcode 3.2"; 240 | developmentRegion = English; 241 | hasScannedForEncodings = 0; 242 | knownRegions = ( 243 | en, 244 | Base, 245 | ); 246 | mainGroup = 607FACC71AFB9204008FA782; 247 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 248 | projectDirPath = ""; 249 | projectRoot = ""; 250 | targets = ( 251 | 607FACCF1AFB9204008FA782 /* PluggableApplicationDelegate_Example */, 252 | 607FACE41AFB9204008FA782 /* PluggableApplicationDelegate_Tests */, 253 | ); 254 | }; 255 | /* End PBXProject section */ 256 | 257 | /* Begin PBXResourcesBuildPhase section */ 258 | 607FACCE1AFB9204008FA782 /* Resources */ = { 259 | isa = PBXResourcesBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 263 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 264 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | 607FACE31AFB9204008FA782 /* Resources */ = { 269 | isa = PBXResourcesBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | /* End PBXResourcesBuildPhase section */ 276 | 277 | /* Begin PBXShellScriptBuildPhase section */ 278 | 14D1E04863E2E2DAEA9A5F9B /* [CP] Embed Pods Frameworks */ = { 279 | isa = PBXShellScriptBuildPhase; 280 | buildActionMask = 2147483647; 281 | files = ( 282 | ); 283 | inputPaths = ( 284 | ); 285 | name = "[CP] Embed Pods Frameworks"; 286 | outputPaths = ( 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | shellPath = /bin/sh; 290 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example-frameworks.sh\"\n"; 291 | showEnvVarsInLog = 0; 292 | }; 293 | 3EBBA250205BCFE3A51C66BD /* [CP] Check Pods Manifest.lock */ = { 294 | isa = PBXShellScriptBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | ); 298 | inputPaths = ( 299 | ); 300 | name = "[CP] Check Pods Manifest.lock"; 301 | outputPaths = ( 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | shellPath = /bin/sh; 305 | shellScript = "diff \"${PODS_ROOT}/../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"; 306 | showEnvVarsInLog = 0; 307 | }; 308 | 528C03B45EF601FE871E869C /* [CP] Copy Pods Resources */ = { 309 | isa = PBXShellScriptBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | ); 313 | inputPaths = ( 314 | ); 315 | name = "[CP] Copy Pods Resources"; 316 | outputPaths = ( 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | shellPath = /bin/sh; 320 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests-resources.sh\"\n"; 321 | showEnvVarsInLog = 0; 322 | }; 323 | 598A52D05B1A82E18138846E /* [CP] Embed Pods Frameworks */ = { 324 | isa = PBXShellScriptBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | ); 328 | inputPaths = ( 329 | ); 330 | name = "[CP] Embed Pods Frameworks"; 331 | outputPaths = ( 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | shellPath = /bin/sh; 335 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests-frameworks.sh\"\n"; 336 | showEnvVarsInLog = 0; 337 | }; 338 | 8761E5684C2960E81CC14F19 /* [CP] Check Pods Manifest.lock */ = { 339 | isa = PBXShellScriptBuildPhase; 340 | buildActionMask = 2147483647; 341 | files = ( 342 | ); 343 | inputPaths = ( 344 | ); 345 | name = "[CP] Check Pods Manifest.lock"; 346 | outputPaths = ( 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | shellPath = /bin/sh; 350 | shellScript = "diff \"${PODS_ROOT}/../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"; 351 | showEnvVarsInLog = 0; 352 | }; 353 | F3C70AC67D28B5C76B71FC3C /* [CP] Copy Pods Resources */ = { 354 | isa = PBXShellScriptBuildPhase; 355 | buildActionMask = 2147483647; 356 | files = ( 357 | ); 358 | inputPaths = ( 359 | ); 360 | name = "[CP] Copy Pods Resources"; 361 | outputPaths = ( 362 | ); 363 | runOnlyForDeploymentPostprocessing = 0; 364 | shellPath = /bin/sh; 365 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example-resources.sh\"\n"; 366 | showEnvVarsInLog = 0; 367 | }; 368 | /* End PBXShellScriptBuildPhase section */ 369 | 370 | /* Begin PBXSourcesBuildPhase section */ 371 | 607FACCC1AFB9204008FA782 /* Sources */ = { 372 | isa = PBXSourcesBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | 1837D1BC1E620CAD007B3A99 /* LoggerApplicationService.swift in Sources */, 376 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 377 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 378 | ); 379 | runOnlyForDeploymentPostprocessing = 0; 380 | }; 381 | 607FACE11AFB9204008FA782 /* Sources */ = { 382 | isa = PBXSourcesBuildPhase; 383 | buildActionMask = 2147483647; 384 | files = ( 385 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 386 | ); 387 | runOnlyForDeploymentPostprocessing = 0; 388 | }; 389 | /* End PBXSourcesBuildPhase section */ 390 | 391 | /* Begin PBXTargetDependency section */ 392 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 393 | isa = PBXTargetDependency; 394 | target = 607FACCF1AFB9204008FA782 /* PluggableApplicationDelegate_Example */; 395 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 396 | }; 397 | /* End PBXTargetDependency section */ 398 | 399 | /* Begin PBXVariantGroup section */ 400 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 401 | isa = PBXVariantGroup; 402 | children = ( 403 | 607FACDA1AFB9204008FA782 /* Base */, 404 | ); 405 | name = Main.storyboard; 406 | sourceTree = ""; 407 | }; 408 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 409 | isa = PBXVariantGroup; 410 | children = ( 411 | 607FACDF1AFB9204008FA782 /* Base */, 412 | ); 413 | name = LaunchScreen.xib; 414 | sourceTree = ""; 415 | }; 416 | /* End PBXVariantGroup section */ 417 | 418 | /* Begin XCBuildConfiguration section */ 419 | 607FACED1AFB9204008FA782 /* Debug */ = { 420 | isa = XCBuildConfiguration; 421 | buildSettings = { 422 | ALWAYS_SEARCH_USER_PATHS = NO; 423 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 424 | CLANG_CXX_LIBRARY = "libc++"; 425 | CLANG_ENABLE_MODULES = YES; 426 | CLANG_ENABLE_OBJC_ARC = YES; 427 | CLANG_WARN_BOOL_CONVERSION = YES; 428 | CLANG_WARN_CONSTANT_CONVERSION = YES; 429 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 430 | CLANG_WARN_EMPTY_BODY = YES; 431 | CLANG_WARN_ENUM_CONVERSION = YES; 432 | CLANG_WARN_INFINITE_RECURSION = YES; 433 | CLANG_WARN_INT_CONVERSION = YES; 434 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 435 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 436 | CLANG_WARN_UNREACHABLE_CODE = YES; 437 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 438 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 439 | COPY_PHASE_STRIP = NO; 440 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 441 | ENABLE_STRICT_OBJC_MSGSEND = YES; 442 | ENABLE_TESTABILITY = YES; 443 | GCC_C_LANGUAGE_STANDARD = gnu99; 444 | GCC_DYNAMIC_NO_PIC = NO; 445 | GCC_NO_COMMON_BLOCKS = YES; 446 | GCC_OPTIMIZATION_LEVEL = 0; 447 | GCC_PREPROCESSOR_DEFINITIONS = ( 448 | "DEBUG=1", 449 | "$(inherited)", 450 | ); 451 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 452 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 453 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 454 | GCC_WARN_UNDECLARED_SELECTOR = YES; 455 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 456 | GCC_WARN_UNUSED_FUNCTION = YES; 457 | GCC_WARN_UNUSED_VARIABLE = YES; 458 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 459 | MTL_ENABLE_DEBUG_INFO = YES; 460 | ONLY_ACTIVE_ARCH = YES; 461 | SDKROOT = iphoneos; 462 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 463 | }; 464 | name = Debug; 465 | }; 466 | 607FACEE1AFB9204008FA782 /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | buildSettings = { 469 | ALWAYS_SEARCH_USER_PATHS = NO; 470 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 471 | CLANG_CXX_LIBRARY = "libc++"; 472 | CLANG_ENABLE_MODULES = YES; 473 | CLANG_ENABLE_OBJC_ARC = YES; 474 | CLANG_WARN_BOOL_CONVERSION = YES; 475 | CLANG_WARN_CONSTANT_CONVERSION = YES; 476 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 477 | CLANG_WARN_EMPTY_BODY = YES; 478 | CLANG_WARN_ENUM_CONVERSION = YES; 479 | CLANG_WARN_INFINITE_RECURSION = YES; 480 | CLANG_WARN_INT_CONVERSION = YES; 481 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 482 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 483 | CLANG_WARN_UNREACHABLE_CODE = YES; 484 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 485 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 486 | COPY_PHASE_STRIP = NO; 487 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 488 | ENABLE_NS_ASSERTIONS = NO; 489 | ENABLE_STRICT_OBJC_MSGSEND = YES; 490 | GCC_C_LANGUAGE_STANDARD = gnu99; 491 | GCC_NO_COMMON_BLOCKS = YES; 492 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 493 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 494 | GCC_WARN_UNDECLARED_SELECTOR = YES; 495 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 496 | GCC_WARN_UNUSED_FUNCTION = YES; 497 | GCC_WARN_UNUSED_VARIABLE = YES; 498 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 499 | MTL_ENABLE_DEBUG_INFO = NO; 500 | SDKROOT = iphoneos; 501 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 502 | VALIDATE_PRODUCT = YES; 503 | }; 504 | name = Release; 505 | }; 506 | 607FACF01AFB9204008FA782 /* Debug */ = { 507 | isa = XCBuildConfiguration; 508 | baseConfigurationReference = 3452B0F8F97CEB00ACD499B9 /* Pods-PluggableApplicationDelegate_Example.debug.xcconfig */; 509 | buildSettings = { 510 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 511 | INFOPLIST_FILE = PluggableApplicationDelegate/Info.plist; 512 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 513 | MODULE_NAME = ExampleApp; 514 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 515 | PRODUCT_NAME = "$(TARGET_NAME)"; 516 | SWIFT_VERSION = 3.0; 517 | }; 518 | name = Debug; 519 | }; 520 | 607FACF11AFB9204008FA782 /* Release */ = { 521 | isa = XCBuildConfiguration; 522 | baseConfigurationReference = 3C07D992004BA73F2E4B91D9 /* Pods-PluggableApplicationDelegate_Example.release.xcconfig */; 523 | buildSettings = { 524 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 525 | INFOPLIST_FILE = PluggableApplicationDelegate/Info.plist; 526 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 527 | MODULE_NAME = ExampleApp; 528 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 529 | PRODUCT_NAME = "$(TARGET_NAME)"; 530 | SWIFT_VERSION = 3.0; 531 | }; 532 | name = Release; 533 | }; 534 | 607FACF31AFB9204008FA782 /* Debug */ = { 535 | isa = XCBuildConfiguration; 536 | baseConfigurationReference = 8D80C59340E099C607D20364 /* Pods-PluggableApplicationDelegate_Tests.debug.xcconfig */; 537 | buildSettings = { 538 | FRAMEWORK_SEARCH_PATHS = ( 539 | "$(SDKROOT)/Developer/Library/Frameworks", 540 | "$(inherited)", 541 | ); 542 | GCC_PREPROCESSOR_DEFINITIONS = ( 543 | "DEBUG=1", 544 | "$(inherited)", 545 | ); 546 | INFOPLIST_FILE = Tests/Info.plist; 547 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 548 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 549 | PRODUCT_NAME = "$(TARGET_NAME)"; 550 | SWIFT_VERSION = 3.0; 551 | }; 552 | name = Debug; 553 | }; 554 | 607FACF41AFB9204008FA782 /* Release */ = { 555 | isa = XCBuildConfiguration; 556 | baseConfigurationReference = 2D6C3D35BF2386A555E97E61 /* Pods-PluggableApplicationDelegate_Tests.release.xcconfig */; 557 | buildSettings = { 558 | FRAMEWORK_SEARCH_PATHS = ( 559 | "$(SDKROOT)/Developer/Library/Frameworks", 560 | "$(inherited)", 561 | ); 562 | INFOPLIST_FILE = Tests/Info.plist; 563 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 564 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 565 | PRODUCT_NAME = "$(TARGET_NAME)"; 566 | SWIFT_VERSION = 3.0; 567 | }; 568 | name = Release; 569 | }; 570 | /* End XCBuildConfiguration section */ 571 | 572 | /* Begin XCConfigurationList section */ 573 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "PluggableApplicationDelegate" */ = { 574 | isa = XCConfigurationList; 575 | buildConfigurations = ( 576 | 607FACED1AFB9204008FA782 /* Debug */, 577 | 607FACEE1AFB9204008FA782 /* Release */, 578 | ); 579 | defaultConfigurationIsVisible = 0; 580 | defaultConfigurationName = Release; 581 | }; 582 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PluggableApplicationDelegate_Example" */ = { 583 | isa = XCConfigurationList; 584 | buildConfigurations = ( 585 | 607FACF01AFB9204008FA782 /* Debug */, 586 | 607FACF11AFB9204008FA782 /* Release */, 587 | ); 588 | defaultConfigurationIsVisible = 0; 589 | defaultConfigurationName = Release; 590 | }; 591 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PluggableApplicationDelegate_Tests" */ = { 592 | isa = XCConfigurationList; 593 | buildConfigurations = ( 594 | 607FACF31AFB9204008FA782 /* Debug */, 595 | 607FACF41AFB9204008FA782 /* Release */, 596 | ); 597 | defaultConfigurationIsVisible = 0; 598 | defaultConfigurationName = Release; 599 | }; 600 | /* End XCConfigurationList section */ 601 | }; 602 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 603 | } 604 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate.xcodeproj/xcshareddata/xcschemes/PluggableApplicationDelegate-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PluggableApplicationDelegate 4 | // 5 | // Created by fmo91 on 02/25/2017. 6 | // Copyright (c) 2017 fmo91. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import PluggableApplicationDelegate 11 | 12 | @UIApplicationMain 13 | class AppDelegate: PluggableApplicationDelegate { 14 | 15 | override var services: [ApplicationService] { 16 | return [ 17 | LoggerApplicationService() 18 | ] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate/LoggerApplicationService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LoggerApplicationService.swift 3 | // PluggableApplicationDelegate 4 | // 5 | // Created by Fernando Ortiz on 2/25/17. 6 | // Copyright © 2017 CocoaPods. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import PluggableApplicationDelegate 11 | 12 | final class LoggerApplicationService: NSObject, ApplicationService { 13 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { 14 | 15 | print("It has started!") 16 | 17 | return true 18 | } 19 | 20 | func applicationDidEnterBackground(_ application: UIApplication) { 21 | print("It has entered background") 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Example/PluggableApplicationDelegate/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PluggableApplicationDelegate 4 | // 5 | // Created by fmo91 on 02/25/2017. 6 | // Copyright (c) 2017 fmo91. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'PluggableApplicationDelegate_Example' do 4 | pod 'PluggableApplicationDelegate', :path => '../' 5 | 6 | target 'PluggableApplicationDelegate_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - PluggableApplicationDelegate (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - PluggableApplicationDelegate (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | PluggableApplicationDelegate: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | PluggableApplicationDelegate: 0182e5182367a3b01ad1d9afbb6a9e87741da429 13 | 14 | PODFILE CHECKSUM: 3ff202d5d31bd2432018d06d2bac807ab4cf6077 15 | 16 | COCOAPODS: 1.2.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/PluggableApplicationDelegate.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PluggableApplicationDelegate", 3 | "version": "0.1.0", 4 | "summary": "A short description of PluggableApplicationDelegate.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/fmo91/PluggableApplicationDelegate", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "fmo91": "ortizfernandomartin@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/fmo91/PluggableApplicationDelegate.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "PluggableApplicationDelegate/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - PluggableApplicationDelegate (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - PluggableApplicationDelegate (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | PluggableApplicationDelegate: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | PluggableApplicationDelegate: 0182e5182367a3b01ad1d9afbb6a9e87741da429 13 | 14 | PODFILE CHECKSUM: 3ff202d5d31bd2432018d06d2bac807ab4cf6077 15 | 16 | COCOAPODS: 1.2.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 | 1837D1B81E620BB8007B3A99 /* ApplicationServicesManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1837D1B51E620BB8007B3A99 /* ApplicationServicesManager.swift */; }; 11 | 3F29780B08B3AE409D9F2E7679EFD0F7 /* Pods-PluggableApplicationDelegate_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0B4EE01C4DE34EC1B8623AE115F11B9C /* Pods-PluggableApplicationDelegate_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 633561BCE0889ADEEBA915B360B8EBAA /* Pods-PluggableApplicationDelegate_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = EE995A70BE6733DAA84578DB2B8D8F11 /* Pods-PluggableApplicationDelegate_Tests-dummy.m */; }; 13 | 7EC964724A7BF1E6B795E042DF53EEDE /* Pods-PluggableApplicationDelegate_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4085CF628DBFE603810315549B7F9C69 /* Pods-PluggableApplicationDelegate_Example-dummy.m */; }; 14 | 807F4F678E8C5714697D4997E48A0C20 /* Pods-PluggableApplicationDelegate_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BDB4741D40534E5C947D4C1BE2239B /* Pods-PluggableApplicationDelegate_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | A1768F089EE92B5B12C62978AF718830 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 16 | B72CF00C7A64A9DC213C5DE80CF73CE1 /* PluggableApplicationDelegate-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9959C485A92FAA2ABB1EB8556D6F3260 /* PluggableApplicationDelegate-dummy.m */; }; 17 | C44B4C214170DFF701BF8DB7C0EAD711 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 18 | F389788196E2AC837C14FAA0AAC9F0B9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 19 | FB4A692B4C70801A98DC44198E4B4F9A /* PluggableApplicationDelegate-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4669D50FDEB2EF08DCCB295E3E0C253B /* PluggableApplicationDelegate-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 88370A9430C04050375F88C072ED9452 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 650D907715EF6AB8D20EC59213D27791; 28 | remoteInfo = PluggableApplicationDelegate; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 0B4EE01C4DE34EC1B8623AE115F11B9C /* Pods-PluggableApplicationDelegate_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-PluggableApplicationDelegate_Example-umbrella.h"; sourceTree = ""; }; 34 | 12BEF6F2DB7F7D62ABBAFD6A5340C446 /* Pods-PluggableApplicationDelegate_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-PluggableApplicationDelegate_Tests-resources.sh"; sourceTree = ""; }; 35 | 13093A1161EC8FC6614344AAA4ABA810 /* Pods-PluggableApplicationDelegate_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PluggableApplicationDelegate_Example.release.xcconfig"; sourceTree = ""; }; 36 | 1837D1B51E620BB8007B3A99 /* ApplicationServicesManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ApplicationServicesManager.swift; sourceTree = ""; }; 37 | 1B5C572631DA86A4ABEBC90ECE731DC5 /* PluggableApplicationDelegate-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "PluggableApplicationDelegate-prefix.pch"; sourceTree = ""; }; 38 | 1E46D38CBFB6EFE3806599EC0A162021 /* Pods-PluggableApplicationDelegate_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-PluggableApplicationDelegate_Tests.modulemap"; sourceTree = ""; }; 39 | 26ED1A87B13D8B2D9CFCCFFFDA0D2259 /* Pods-PluggableApplicationDelegate_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-PluggableApplicationDelegate_Example-acknowledgements.markdown"; sourceTree = ""; }; 40 | 2EB1850B26988AFD0BB9F82BAFED0543 /* Pods-PluggableApplicationDelegate_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-PluggableApplicationDelegate_Example-acknowledgements.plist"; sourceTree = ""; }; 41 | 2EDC10785F49EAD2CE0925DE56959E8D /* Pods-PluggableApplicationDelegate_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-PluggableApplicationDelegate_Example-frameworks.sh"; sourceTree = ""; }; 42 | 3077D06C679E2561BDF86839FFFFFCD3 /* Pods-PluggableApplicationDelegate_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PluggableApplicationDelegate_Tests.debug.xcconfig"; sourceTree = ""; }; 43 | 3F7B79495E9E41833BB78C064BC71EA8 /* Pods-PluggableApplicationDelegate_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-PluggableApplicationDelegate_Tests-frameworks.sh"; sourceTree = ""; }; 44 | 4085CF628DBFE603810315549B7F9C69 /* Pods-PluggableApplicationDelegate_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-PluggableApplicationDelegate_Example-dummy.m"; sourceTree = ""; }; 45 | 4669D50FDEB2EF08DCCB295E3E0C253B /* PluggableApplicationDelegate-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "PluggableApplicationDelegate-umbrella.h"; sourceTree = ""; }; 46 | 4D50259701E44A8EE55F964F4D5FF1E6 /* Pods-PluggableApplicationDelegate_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-PluggableApplicationDelegate_Tests-acknowledgements.markdown"; sourceTree = ""; }; 47 | 61FBFDF0920C7A47A9107C43EB48B2EB /* Pods-PluggableApplicationDelegate_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PluggableApplicationDelegate_Example.debug.xcconfig"; sourceTree = ""; }; 48 | 643137B2581C3A96CD63C655C70DCC8C /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 806A2248F0F618AB518142A0D14EDEB1 /* Pods-PluggableApplicationDelegate_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-PluggableApplicationDelegate_Tests-acknowledgements.plist"; sourceTree = ""; }; 50 | 81345A7DFF0D3F0211818097C1AA933E /* Pods-PluggableApplicationDelegate_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PluggableApplicationDelegate_Tests.release.xcconfig"; sourceTree = ""; }; 51 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 52 | 9959C485A92FAA2ABB1EB8556D6F3260 /* PluggableApplicationDelegate-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "PluggableApplicationDelegate-dummy.m"; sourceTree = ""; }; 53 | 9B20ECD3B2F7BDF01828A393E049DF5D /* PluggableApplicationDelegate.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = PluggableApplicationDelegate.xcconfig; sourceTree = ""; }; 54 | A2730FAC3CBA03EA61E58F55789FCEE6 /* Pods-PluggableApplicationDelegate_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-PluggableApplicationDelegate_Example-resources.sh"; sourceTree = ""; }; 55 | A5BDB4741D40534E5C947D4C1BE2239B /* Pods-PluggableApplicationDelegate_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-PluggableApplicationDelegate_Tests-umbrella.h"; sourceTree = ""; }; 56 | A8FA7C3FE3591427AA8FB43529C53851 /* Pods-PluggableApplicationDelegate_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-PluggableApplicationDelegate_Example.modulemap"; sourceTree = ""; }; 57 | AC6BFF408003ADEA1E6FD7AC0EEECA97 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | AF49A078B5018B2B5C27ED0A0B6A243D /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | B84057662ED35823633B836F62D1B4E7 /* Pods_PluggableApplicationDelegate_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PluggableApplicationDelegate_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | C5FF396E4ED4AAF290A024137CBD9775 /* PluggableApplicationDelegate.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PluggableApplicationDelegate.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | CA66C4C593ADAD95E4463D887CB333E0 /* PluggableApplicationDelegate.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = PluggableApplicationDelegate.modulemap; sourceTree = ""; }; 62 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 63 | EE995A70BE6733DAA84578DB2B8D8F11 /* Pods-PluggableApplicationDelegate_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-PluggableApplicationDelegate_Tests-dummy.m"; sourceTree = ""; }; 64 | FFE912641518C50626D78C6234164428 /* Pods_PluggableApplicationDelegate_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PluggableApplicationDelegate_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | /* End PBXFileReference section */ 66 | 67 | /* Begin PBXFrameworksBuildPhase section */ 68 | 38E35B33A98B7DE2AF41403C0315D879 /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | A1768F089EE92B5B12C62978AF718830 /* Foundation.framework in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | 6719A6EEFD37E072065587058D636FE3 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | F389788196E2AC837C14FAA0AAC9F0B9 /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | 7B8CA52457AE9EB0A45AD392C43AF2C3 /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | C44B4C214170DFF701BF8DB7C0EAD711 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 2839C5E6F3DE1743BCF6185DF9439E63 /* Pods-PluggableApplicationDelegate_Tests */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 643137B2581C3A96CD63C655C70DCC8C /* Info.plist */, 99 | 1E46D38CBFB6EFE3806599EC0A162021 /* Pods-PluggableApplicationDelegate_Tests.modulemap */, 100 | 4D50259701E44A8EE55F964F4D5FF1E6 /* Pods-PluggableApplicationDelegate_Tests-acknowledgements.markdown */, 101 | 806A2248F0F618AB518142A0D14EDEB1 /* Pods-PluggableApplicationDelegate_Tests-acknowledgements.plist */, 102 | EE995A70BE6733DAA84578DB2B8D8F11 /* Pods-PluggableApplicationDelegate_Tests-dummy.m */, 103 | 3F7B79495E9E41833BB78C064BC71EA8 /* Pods-PluggableApplicationDelegate_Tests-frameworks.sh */, 104 | 12BEF6F2DB7F7D62ABBAFD6A5340C446 /* Pods-PluggableApplicationDelegate_Tests-resources.sh */, 105 | A5BDB4741D40534E5C947D4C1BE2239B /* Pods-PluggableApplicationDelegate_Tests-umbrella.h */, 106 | 3077D06C679E2561BDF86839FFFFFCD3 /* Pods-PluggableApplicationDelegate_Tests.debug.xcconfig */, 107 | 81345A7DFF0D3F0211818097C1AA933E /* Pods-PluggableApplicationDelegate_Tests.release.xcconfig */, 108 | ); 109 | name = "Pods-PluggableApplicationDelegate_Tests"; 110 | path = "Target Support Files/Pods-PluggableApplicationDelegate_Tests"; 111 | sourceTree = ""; 112 | }; 113 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 117 | ); 118 | name = iOS; 119 | sourceTree = ""; 120 | }; 121 | 7DB346D0F39D3F0E887471402A8071AB = { 122 | isa = PBXGroup; 123 | children = ( 124 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 125 | A489A51B9FA8E5AACC5685BEF31A654A /* Development Pods */, 126 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 127 | A9EFD048A9A614530B59B8798C1B6BF4 /* Products */, 128 | BF034EEF42092049FF63A21AB1DC31F7 /* Targets Support Files */, 129 | ); 130 | sourceTree = ""; 131 | }; 132 | 8931FBB644E2C9299E2981D918F34341 /* PluggableApplicationDelegate */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | DCB70135DE3F49A97EAC41E4FC54D013 /* PluggableApplicationDelegate */, 136 | AD39C4A16D6F0B230034950837FEC49A /* Support Files */, 137 | ); 138 | name = PluggableApplicationDelegate; 139 | path = ../..; 140 | sourceTree = ""; 141 | }; 142 | 896C3DB920D4D9C54A11957F01382315 /* Classes */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 1837D1B51E620BB8007B3A99 /* ApplicationServicesManager.swift */, 146 | ); 147 | path = Classes; 148 | sourceTree = ""; 149 | }; 150 | A489A51B9FA8E5AACC5685BEF31A654A /* Development Pods */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | 8931FBB644E2C9299E2981D918F34341 /* PluggableApplicationDelegate */, 154 | ); 155 | name = "Development Pods"; 156 | sourceTree = ""; 157 | }; 158 | A9EFD048A9A614530B59B8798C1B6BF4 /* Products */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | C5FF396E4ED4AAF290A024137CBD9775 /* PluggableApplicationDelegate.framework */, 162 | B84057662ED35823633B836F62D1B4E7 /* Pods_PluggableApplicationDelegate_Example.framework */, 163 | FFE912641518C50626D78C6234164428 /* Pods_PluggableApplicationDelegate_Tests.framework */, 164 | ); 165 | name = Products; 166 | sourceTree = ""; 167 | }; 168 | AD39C4A16D6F0B230034950837FEC49A /* Support Files */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | AF49A078B5018B2B5C27ED0A0B6A243D /* Info.plist */, 172 | CA66C4C593ADAD95E4463D887CB333E0 /* PluggableApplicationDelegate.modulemap */, 173 | 9B20ECD3B2F7BDF01828A393E049DF5D /* PluggableApplicationDelegate.xcconfig */, 174 | 9959C485A92FAA2ABB1EB8556D6F3260 /* PluggableApplicationDelegate-dummy.m */, 175 | 1B5C572631DA86A4ABEBC90ECE731DC5 /* PluggableApplicationDelegate-prefix.pch */, 176 | 4669D50FDEB2EF08DCCB295E3E0C253B /* PluggableApplicationDelegate-umbrella.h */, 177 | ); 178 | name = "Support Files"; 179 | path = "Example/Pods/Target Support Files/PluggableApplicationDelegate"; 180 | sourceTree = ""; 181 | }; 182 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 186 | ); 187 | name = Frameworks; 188 | sourceTree = ""; 189 | }; 190 | BF034EEF42092049FF63A21AB1DC31F7 /* Targets Support Files */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | CF6B2179BF968C3B6EAB971779D755C8 /* Pods-PluggableApplicationDelegate_Example */, 194 | 2839C5E6F3DE1743BCF6185DF9439E63 /* Pods-PluggableApplicationDelegate_Tests */, 195 | ); 196 | name = "Targets Support Files"; 197 | sourceTree = ""; 198 | }; 199 | CF6B2179BF968C3B6EAB971779D755C8 /* Pods-PluggableApplicationDelegate_Example */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | AC6BFF408003ADEA1E6FD7AC0EEECA97 /* Info.plist */, 203 | A8FA7C3FE3591427AA8FB43529C53851 /* Pods-PluggableApplicationDelegate_Example.modulemap */, 204 | 26ED1A87B13D8B2D9CFCCFFFDA0D2259 /* Pods-PluggableApplicationDelegate_Example-acknowledgements.markdown */, 205 | 2EB1850B26988AFD0BB9F82BAFED0543 /* Pods-PluggableApplicationDelegate_Example-acknowledgements.plist */, 206 | 4085CF628DBFE603810315549B7F9C69 /* Pods-PluggableApplicationDelegate_Example-dummy.m */, 207 | 2EDC10785F49EAD2CE0925DE56959E8D /* Pods-PluggableApplicationDelegate_Example-frameworks.sh */, 208 | A2730FAC3CBA03EA61E58F55789FCEE6 /* Pods-PluggableApplicationDelegate_Example-resources.sh */, 209 | 0B4EE01C4DE34EC1B8623AE115F11B9C /* Pods-PluggableApplicationDelegate_Example-umbrella.h */, 210 | 61FBFDF0920C7A47A9107C43EB48B2EB /* Pods-PluggableApplicationDelegate_Example.debug.xcconfig */, 211 | 13093A1161EC8FC6614344AAA4ABA810 /* Pods-PluggableApplicationDelegate_Example.release.xcconfig */, 212 | ); 213 | name = "Pods-PluggableApplicationDelegate_Example"; 214 | path = "Target Support Files/Pods-PluggableApplicationDelegate_Example"; 215 | sourceTree = ""; 216 | }; 217 | DCB70135DE3F49A97EAC41E4FC54D013 /* PluggableApplicationDelegate */ = { 218 | isa = PBXGroup; 219 | children = ( 220 | 896C3DB920D4D9C54A11957F01382315 /* Classes */, 221 | ); 222 | path = PluggableApplicationDelegate; 223 | sourceTree = ""; 224 | }; 225 | /* End PBXGroup section */ 226 | 227 | /* Begin PBXHeadersBuildPhase section */ 228 | 013EE7374E8D2D51F63B6836FAEE9A3D /* Headers */ = { 229 | isa = PBXHeadersBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 807F4F678E8C5714697D4997E48A0C20 /* Pods-PluggableApplicationDelegate_Tests-umbrella.h in Headers */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | 62ADC7ECCA2A87D1DF57FFE7F22C5F13 /* Headers */ = { 237 | isa = PBXHeadersBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | FB4A692B4C70801A98DC44198E4B4F9A /* PluggableApplicationDelegate-umbrella.h in Headers */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | 6AD0486798E849F02688D9A507EF771D /* Headers */ = { 245 | isa = PBXHeadersBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 3F29780B08B3AE409D9F2E7679EFD0F7 /* Pods-PluggableApplicationDelegate_Example-umbrella.h in Headers */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | /* End PBXHeadersBuildPhase section */ 253 | 254 | /* Begin PBXNativeTarget section */ 255 | 650D907715EF6AB8D20EC59213D27791 /* PluggableApplicationDelegate */ = { 256 | isa = PBXNativeTarget; 257 | buildConfigurationList = 0137A73C09AA806FD01DD27703033740 /* Build configuration list for PBXNativeTarget "PluggableApplicationDelegate" */; 258 | buildPhases = ( 259 | 0576FD7F55AED5971ECA23EC346DAEEE /* Sources */, 260 | 7B8CA52457AE9EB0A45AD392C43AF2C3 /* Frameworks */, 261 | 62ADC7ECCA2A87D1DF57FFE7F22C5F13 /* Headers */, 262 | ); 263 | buildRules = ( 264 | ); 265 | dependencies = ( 266 | ); 267 | name = PluggableApplicationDelegate; 268 | productName = PluggableApplicationDelegate; 269 | productReference = C5FF396E4ED4AAF290A024137CBD9775 /* PluggableApplicationDelegate.framework */; 270 | productType = "com.apple.product-type.framework"; 271 | }; 272 | A64D5FC66BB5A911FCD1B29FC9373963 /* Pods-PluggableApplicationDelegate_Tests */ = { 273 | isa = PBXNativeTarget; 274 | buildConfigurationList = A9F8B0E330AE8F05B7E50AE824B20D5D /* Build configuration list for PBXNativeTarget "Pods-PluggableApplicationDelegate_Tests" */; 275 | buildPhases = ( 276 | 0CA0B1A28F8181E90735318346F84B0E /* Sources */, 277 | 38E35B33A98B7DE2AF41403C0315D879 /* Frameworks */, 278 | 013EE7374E8D2D51F63B6836FAEE9A3D /* Headers */, 279 | ); 280 | buildRules = ( 281 | ); 282 | dependencies = ( 283 | ); 284 | name = "Pods-PluggableApplicationDelegate_Tests"; 285 | productName = "Pods-PluggableApplicationDelegate_Tests"; 286 | productReference = FFE912641518C50626D78C6234164428 /* Pods_PluggableApplicationDelegate_Tests.framework */; 287 | productType = "com.apple.product-type.framework"; 288 | }; 289 | A6D17AC26DC33DC4D1C5749CBFF4C7CB /* Pods-PluggableApplicationDelegate_Example */ = { 290 | isa = PBXNativeTarget; 291 | buildConfigurationList = 3D450C81E23E296B33590D83DCF7C501 /* Build configuration list for PBXNativeTarget "Pods-PluggableApplicationDelegate_Example" */; 292 | buildPhases = ( 293 | 49F2501119261B8FDA4250287F2E00E2 /* Sources */, 294 | 6719A6EEFD37E072065587058D636FE3 /* Frameworks */, 295 | 6AD0486798E849F02688D9A507EF771D /* Headers */, 296 | ); 297 | buildRules = ( 298 | ); 299 | dependencies = ( 300 | 1A798D6B1BFF9E1B71417DF4AA173DE1 /* PBXTargetDependency */, 301 | ); 302 | name = "Pods-PluggableApplicationDelegate_Example"; 303 | productName = "Pods-PluggableApplicationDelegate_Example"; 304 | productReference = B84057662ED35823633B836F62D1B4E7 /* Pods_PluggableApplicationDelegate_Example.framework */; 305 | productType = "com.apple.product-type.framework"; 306 | }; 307 | /* End PBXNativeTarget section */ 308 | 309 | /* Begin PBXProject section */ 310 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 311 | isa = PBXProject; 312 | attributes = { 313 | LastSwiftUpdateCheck = 0730; 314 | LastUpgradeCheck = 0700; 315 | TargetAttributes = { 316 | 650D907715EF6AB8D20EC59213D27791 = { 317 | LastSwiftMigration = 0820; 318 | }; 319 | }; 320 | }; 321 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 322 | compatibilityVersion = "Xcode 3.2"; 323 | developmentRegion = English; 324 | hasScannedForEncodings = 0; 325 | knownRegions = ( 326 | en, 327 | ); 328 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 329 | productRefGroup = A9EFD048A9A614530B59B8798C1B6BF4 /* Products */; 330 | projectDirPath = ""; 331 | projectRoot = ""; 332 | targets = ( 333 | 650D907715EF6AB8D20EC59213D27791 /* PluggableApplicationDelegate */, 334 | A6D17AC26DC33DC4D1C5749CBFF4C7CB /* Pods-PluggableApplicationDelegate_Example */, 335 | A64D5FC66BB5A911FCD1B29FC9373963 /* Pods-PluggableApplicationDelegate_Tests */, 336 | ); 337 | }; 338 | /* End PBXProject section */ 339 | 340 | /* Begin PBXSourcesBuildPhase section */ 341 | 0576FD7F55AED5971ECA23EC346DAEEE /* Sources */ = { 342 | isa = PBXSourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | 1837D1B81E620BB8007B3A99 /* ApplicationServicesManager.swift in Sources */, 346 | B72CF00C7A64A9DC213C5DE80CF73CE1 /* PluggableApplicationDelegate-dummy.m in Sources */, 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | }; 350 | 0CA0B1A28F8181E90735318346F84B0E /* Sources */ = { 351 | isa = PBXSourcesBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | 633561BCE0889ADEEBA915B360B8EBAA /* Pods-PluggableApplicationDelegate_Tests-dummy.m in Sources */, 355 | ); 356 | runOnlyForDeploymentPostprocessing = 0; 357 | }; 358 | 49F2501119261B8FDA4250287F2E00E2 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 7EC964724A7BF1E6B795E042DF53EEDE /* Pods-PluggableApplicationDelegate_Example-dummy.m in Sources */, 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | }; 366 | /* End PBXSourcesBuildPhase section */ 367 | 368 | /* Begin PBXTargetDependency section */ 369 | 1A798D6B1BFF9E1B71417DF4AA173DE1 /* PBXTargetDependency */ = { 370 | isa = PBXTargetDependency; 371 | name = PluggableApplicationDelegate; 372 | target = 650D907715EF6AB8D20EC59213D27791 /* PluggableApplicationDelegate */; 373 | targetProxy = 88370A9430C04050375F88C072ED9452 /* PBXContainerItemProxy */; 374 | }; 375 | /* End PBXTargetDependency section */ 376 | 377 | /* Begin XCBuildConfiguration section */ 378 | 27663D6038481F4F172BE6DE93AF04ED /* Debug */ = { 379 | isa = XCBuildConfiguration; 380 | baseConfigurationReference = 3077D06C679E2561BDF86839FFFFFCD3 /* Pods-PluggableApplicationDelegate_Tests.debug.xcconfig */; 381 | buildSettings = { 382 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 383 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 384 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 385 | CURRENT_PROJECT_VERSION = 1; 386 | DEBUG_INFORMATION_FORMAT = dwarf; 387 | DEFINES_MODULE = YES; 388 | DYLIB_COMPATIBILITY_VERSION = 1; 389 | DYLIB_CURRENT_VERSION = 1; 390 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 391 | ENABLE_STRICT_OBJC_MSGSEND = YES; 392 | GCC_NO_COMMON_BLOCKS = YES; 393 | INFOPLIST_FILE = "Target Support Files/Pods-PluggableApplicationDelegate_Tests/Info.plist"; 394 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 395 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 396 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 397 | MACH_O_TYPE = staticlib; 398 | MODULEMAP_FILE = "Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests.modulemap"; 399 | MTL_ENABLE_DEBUG_INFO = YES; 400 | OTHER_LDFLAGS = ""; 401 | OTHER_LIBTOOLFLAGS = ""; 402 | PODS_ROOT = "$(SRCROOT)"; 403 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 404 | PRODUCT_NAME = Pods_PluggableApplicationDelegate_Tests; 405 | SDKROOT = iphoneos; 406 | SKIP_INSTALL = YES; 407 | TARGETED_DEVICE_FAMILY = "1,2"; 408 | VERSIONING_SYSTEM = "apple-generic"; 409 | VERSION_INFO_PREFIX = ""; 410 | }; 411 | name = Debug; 412 | }; 413 | 454B0AC0CA0D52B98F5F760233C65335 /* Debug */ = { 414 | isa = XCBuildConfiguration; 415 | baseConfigurationReference = 61FBFDF0920C7A47A9107C43EB48B2EB /* Pods-PluggableApplicationDelegate_Example.debug.xcconfig */; 416 | buildSettings = { 417 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 418 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 419 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 420 | CURRENT_PROJECT_VERSION = 1; 421 | DEBUG_INFORMATION_FORMAT = dwarf; 422 | DEFINES_MODULE = YES; 423 | DYLIB_COMPATIBILITY_VERSION = 1; 424 | DYLIB_CURRENT_VERSION = 1; 425 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 426 | ENABLE_STRICT_OBJC_MSGSEND = YES; 427 | GCC_NO_COMMON_BLOCKS = YES; 428 | INFOPLIST_FILE = "Target Support Files/Pods-PluggableApplicationDelegate_Example/Info.plist"; 429 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 431 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 432 | MACH_O_TYPE = staticlib; 433 | MODULEMAP_FILE = "Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example.modulemap"; 434 | MTL_ENABLE_DEBUG_INFO = YES; 435 | OTHER_LDFLAGS = ""; 436 | OTHER_LIBTOOLFLAGS = ""; 437 | PODS_ROOT = "$(SRCROOT)"; 438 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 439 | PRODUCT_NAME = Pods_PluggableApplicationDelegate_Example; 440 | SDKROOT = iphoneos; 441 | SKIP_INSTALL = YES; 442 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 443 | TARGETED_DEVICE_FAMILY = "1,2"; 444 | VERSIONING_SYSTEM = "apple-generic"; 445 | VERSION_INFO_PREFIX = ""; 446 | }; 447 | name = Debug; 448 | }; 449 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */ = { 450 | isa = XCBuildConfiguration; 451 | buildSettings = { 452 | ALWAYS_SEARCH_USER_PATHS = NO; 453 | CLANG_ANALYZER_NONNULL = YES; 454 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 455 | CLANG_CXX_LIBRARY = "libc++"; 456 | CLANG_ENABLE_MODULES = YES; 457 | CLANG_ENABLE_OBJC_ARC = YES; 458 | CLANG_WARN_BOOL_CONVERSION = YES; 459 | CLANG_WARN_CONSTANT_CONVERSION = YES; 460 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 461 | CLANG_WARN_EMPTY_BODY = YES; 462 | CLANG_WARN_ENUM_CONVERSION = YES; 463 | CLANG_WARN_INT_CONVERSION = YES; 464 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 465 | CLANG_WARN_UNREACHABLE_CODE = YES; 466 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 467 | CODE_SIGNING_REQUIRED = NO; 468 | COPY_PHASE_STRIP = YES; 469 | ENABLE_NS_ASSERTIONS = NO; 470 | GCC_C_LANGUAGE_STANDARD = gnu99; 471 | GCC_PREPROCESSOR_DEFINITIONS = ( 472 | "POD_CONFIGURATION_RELEASE=1", 473 | "$(inherited)", 474 | ); 475 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 476 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 477 | GCC_WARN_UNDECLARED_SELECTOR = YES; 478 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 479 | GCC_WARN_UNUSED_FUNCTION = YES; 480 | GCC_WARN_UNUSED_VARIABLE = YES; 481 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 482 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 483 | STRIP_INSTALLED_PRODUCT = NO; 484 | SYMROOT = "${SRCROOT}/../build"; 485 | VALIDATE_PRODUCT = YES; 486 | }; 487 | name = Release; 488 | }; 489 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */ = { 490 | isa = XCBuildConfiguration; 491 | buildSettings = { 492 | ALWAYS_SEARCH_USER_PATHS = NO; 493 | CLANG_ANALYZER_NONNULL = YES; 494 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 495 | CLANG_CXX_LIBRARY = "libc++"; 496 | CLANG_ENABLE_MODULES = YES; 497 | CLANG_ENABLE_OBJC_ARC = YES; 498 | CLANG_WARN_BOOL_CONVERSION = YES; 499 | CLANG_WARN_CONSTANT_CONVERSION = YES; 500 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 501 | CLANG_WARN_EMPTY_BODY = YES; 502 | CLANG_WARN_ENUM_CONVERSION = YES; 503 | CLANG_WARN_INT_CONVERSION = YES; 504 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 505 | CLANG_WARN_UNREACHABLE_CODE = YES; 506 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 507 | CODE_SIGNING_REQUIRED = NO; 508 | COPY_PHASE_STRIP = NO; 509 | ENABLE_TESTABILITY = YES; 510 | GCC_C_LANGUAGE_STANDARD = gnu99; 511 | GCC_DYNAMIC_NO_PIC = NO; 512 | GCC_OPTIMIZATION_LEVEL = 0; 513 | GCC_PREPROCESSOR_DEFINITIONS = ( 514 | "POD_CONFIGURATION_DEBUG=1", 515 | "DEBUG=1", 516 | "$(inherited)", 517 | ); 518 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 519 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 520 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 521 | GCC_WARN_UNDECLARED_SELECTOR = YES; 522 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 523 | GCC_WARN_UNUSED_FUNCTION = YES; 524 | GCC_WARN_UNUSED_VARIABLE = YES; 525 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 526 | ONLY_ACTIVE_ARCH = YES; 527 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 528 | STRIP_INSTALLED_PRODUCT = NO; 529 | SYMROOT = "${SRCROOT}/../build"; 530 | }; 531 | name = Debug; 532 | }; 533 | A5B967C44236C504939A0BD78564058A /* Debug */ = { 534 | isa = XCBuildConfiguration; 535 | baseConfigurationReference = 9B20ECD3B2F7BDF01828A393E049DF5D /* PluggableApplicationDelegate.xcconfig */; 536 | buildSettings = { 537 | CLANG_ENABLE_MODULES = YES; 538 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 539 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 540 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 541 | CURRENT_PROJECT_VERSION = 1; 542 | DEBUG_INFORMATION_FORMAT = dwarf; 543 | DEFINES_MODULE = YES; 544 | DYLIB_COMPATIBILITY_VERSION = 1; 545 | DYLIB_CURRENT_VERSION = 1; 546 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 547 | ENABLE_STRICT_OBJC_MSGSEND = YES; 548 | GCC_NO_COMMON_BLOCKS = YES; 549 | GCC_PREFIX_HEADER = "Target Support Files/PluggableApplicationDelegate/PluggableApplicationDelegate-prefix.pch"; 550 | INFOPLIST_FILE = "Target Support Files/PluggableApplicationDelegate/Info.plist"; 551 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 552 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 554 | MODULEMAP_FILE = "Target Support Files/PluggableApplicationDelegate/PluggableApplicationDelegate.modulemap"; 555 | MTL_ENABLE_DEBUG_INFO = YES; 556 | PRODUCT_NAME = PluggableApplicationDelegate; 557 | SDKROOT = iphoneos; 558 | SKIP_INSTALL = YES; 559 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 560 | SWIFT_VERSION = 3.0; 561 | TARGETED_DEVICE_FAMILY = "1,2"; 562 | VERSIONING_SYSTEM = "apple-generic"; 563 | VERSION_INFO_PREFIX = ""; 564 | }; 565 | name = Debug; 566 | }; 567 | B58543A060EC75E884B2FD9010DE5A2B /* Release */ = { 568 | isa = XCBuildConfiguration; 569 | baseConfigurationReference = 81345A7DFF0D3F0211818097C1AA933E /* Pods-PluggableApplicationDelegate_Tests.release.xcconfig */; 570 | buildSettings = { 571 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 572 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 573 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 574 | CURRENT_PROJECT_VERSION = 1; 575 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 576 | DEFINES_MODULE = YES; 577 | DYLIB_COMPATIBILITY_VERSION = 1; 578 | DYLIB_CURRENT_VERSION = 1; 579 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 580 | ENABLE_STRICT_OBJC_MSGSEND = YES; 581 | GCC_NO_COMMON_BLOCKS = YES; 582 | INFOPLIST_FILE = "Target Support Files/Pods-PluggableApplicationDelegate_Tests/Info.plist"; 583 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 584 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 585 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 586 | MACH_O_TYPE = staticlib; 587 | MODULEMAP_FILE = "Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests.modulemap"; 588 | MTL_ENABLE_DEBUG_INFO = NO; 589 | OTHER_LDFLAGS = ""; 590 | OTHER_LIBTOOLFLAGS = ""; 591 | PODS_ROOT = "$(SRCROOT)"; 592 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 593 | PRODUCT_NAME = Pods_PluggableApplicationDelegate_Tests; 594 | SDKROOT = iphoneos; 595 | SKIP_INSTALL = YES; 596 | TARGETED_DEVICE_FAMILY = "1,2"; 597 | VERSIONING_SYSTEM = "apple-generic"; 598 | VERSION_INFO_PREFIX = ""; 599 | }; 600 | name = Release; 601 | }; 602 | B832BD19AC8D70E6EEFF26F92BB06CC9 /* Release */ = { 603 | isa = XCBuildConfiguration; 604 | baseConfigurationReference = 13093A1161EC8FC6614344AAA4ABA810 /* Pods-PluggableApplicationDelegate_Example.release.xcconfig */; 605 | buildSettings = { 606 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 607 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 608 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 609 | CURRENT_PROJECT_VERSION = 1; 610 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 611 | DEFINES_MODULE = YES; 612 | DYLIB_COMPATIBILITY_VERSION = 1; 613 | DYLIB_CURRENT_VERSION = 1; 614 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 615 | ENABLE_STRICT_OBJC_MSGSEND = YES; 616 | GCC_NO_COMMON_BLOCKS = YES; 617 | INFOPLIST_FILE = "Target Support Files/Pods-PluggableApplicationDelegate_Example/Info.plist"; 618 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 619 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 620 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 621 | MACH_O_TYPE = staticlib; 622 | MODULEMAP_FILE = "Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example.modulemap"; 623 | MTL_ENABLE_DEBUG_INFO = NO; 624 | OTHER_LDFLAGS = ""; 625 | OTHER_LIBTOOLFLAGS = ""; 626 | PODS_ROOT = "$(SRCROOT)"; 627 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 628 | PRODUCT_NAME = Pods_PluggableApplicationDelegate_Example; 629 | SDKROOT = iphoneos; 630 | SKIP_INSTALL = YES; 631 | TARGETED_DEVICE_FAMILY = "1,2"; 632 | VERSIONING_SYSTEM = "apple-generic"; 633 | VERSION_INFO_PREFIX = ""; 634 | }; 635 | name = Release; 636 | }; 637 | DBE0A7ED7777DAED98F1662CE16C943D /* Release */ = { 638 | isa = XCBuildConfiguration; 639 | baseConfigurationReference = 9B20ECD3B2F7BDF01828A393E049DF5D /* PluggableApplicationDelegate.xcconfig */; 640 | buildSettings = { 641 | CLANG_ENABLE_MODULES = YES; 642 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 643 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 644 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 645 | CURRENT_PROJECT_VERSION = 1; 646 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 647 | DEFINES_MODULE = YES; 648 | DYLIB_COMPATIBILITY_VERSION = 1; 649 | DYLIB_CURRENT_VERSION = 1; 650 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 651 | ENABLE_STRICT_OBJC_MSGSEND = YES; 652 | GCC_NO_COMMON_BLOCKS = YES; 653 | GCC_PREFIX_HEADER = "Target Support Files/PluggableApplicationDelegate/PluggableApplicationDelegate-prefix.pch"; 654 | INFOPLIST_FILE = "Target Support Files/PluggableApplicationDelegate/Info.plist"; 655 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 656 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 657 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 658 | MODULEMAP_FILE = "Target Support Files/PluggableApplicationDelegate/PluggableApplicationDelegate.modulemap"; 659 | MTL_ENABLE_DEBUG_INFO = NO; 660 | PRODUCT_NAME = PluggableApplicationDelegate; 661 | SDKROOT = iphoneos; 662 | SKIP_INSTALL = YES; 663 | SWIFT_VERSION = 3.0; 664 | TARGETED_DEVICE_FAMILY = "1,2"; 665 | VERSIONING_SYSTEM = "apple-generic"; 666 | VERSION_INFO_PREFIX = ""; 667 | }; 668 | name = Release; 669 | }; 670 | /* End XCBuildConfiguration section */ 671 | 672 | /* Begin XCConfigurationList section */ 673 | 0137A73C09AA806FD01DD27703033740 /* Build configuration list for PBXNativeTarget "PluggableApplicationDelegate" */ = { 674 | isa = XCConfigurationList; 675 | buildConfigurations = ( 676 | A5B967C44236C504939A0BD78564058A /* Debug */, 677 | DBE0A7ED7777DAED98F1662CE16C943D /* Release */, 678 | ); 679 | defaultConfigurationIsVisible = 0; 680 | defaultConfigurationName = Release; 681 | }; 682 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 683 | isa = XCConfigurationList; 684 | buildConfigurations = ( 685 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */, 686 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */, 687 | ); 688 | defaultConfigurationIsVisible = 0; 689 | defaultConfigurationName = Release; 690 | }; 691 | 3D450C81E23E296B33590D83DCF7C501 /* Build configuration list for PBXNativeTarget "Pods-PluggableApplicationDelegate_Example" */ = { 692 | isa = XCConfigurationList; 693 | buildConfigurations = ( 694 | 454B0AC0CA0D52B98F5F760233C65335 /* Debug */, 695 | B832BD19AC8D70E6EEFF26F92BB06CC9 /* Release */, 696 | ); 697 | defaultConfigurationIsVisible = 0; 698 | defaultConfigurationName = Release; 699 | }; 700 | A9F8B0E330AE8F05B7E50AE824B20D5D /* Build configuration list for PBXNativeTarget "Pods-PluggableApplicationDelegate_Tests" */ = { 701 | isa = XCConfigurationList; 702 | buildConfigurations = ( 703 | 27663D6038481F4F172BE6DE93AF04ED /* Debug */, 704 | B58543A060EC75E884B2FD9010DE5A2B /* Release */, 705 | ); 706 | defaultConfigurationIsVisible = 0; 707 | defaultConfigurationName = Release; 708 | }; 709 | /* End XCConfigurationList section */ 710 | }; 711 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 712 | } 713 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/PluggableApplicationDelegate.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PluggableApplicationDelegate/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/PluggableApplicationDelegate/PluggableApplicationDelegate-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_PluggableApplicationDelegate : NSObject 3 | @end 4 | @implementation PodsDummy_PluggableApplicationDelegate 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PluggableApplicationDelegate/PluggableApplicationDelegate-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/PluggableApplicationDelegate/PluggableApplicationDelegate-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 PluggableApplicationDelegateVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char PluggableApplicationDelegateVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PluggableApplicationDelegate/PluggableApplicationDelegate.modulemap: -------------------------------------------------------------------------------- 1 | framework module PluggableApplicationDelegate { 2 | umbrella header "PluggableApplicationDelegate-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PluggableApplicationDelegate/PluggableApplicationDelegate.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_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-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## PluggableApplicationDelegate 5 | 6 | Copyright (c) 2017 fmo91 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-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_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) 2017 fmo91 <ortizfernandomartin@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 | PluggableApplicationDelegate 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-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_PluggableApplicationDelegate_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_PluggableApplicationDelegate_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/PluggableApplicationDelegate/PluggableApplicationDelegate.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/PluggableApplicationDelegate/PluggableApplicationDelegate.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 25 | TARGET_DEVICE_ARGS="--target-device mac" 26 | ;; 27 | esac 28 | 29 | install_resource() 30 | { 31 | if [[ "$1" = /* ]] ; then 32 | RESOURCE_PATH="$1" 33 | else 34 | RESOURCE_PATH="${PODS_ROOT}/$1" 35 | fi 36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 37 | cat << EOM 38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 39 | EOM 40 | exit 1 41 | fi 42 | case $RESOURCE_PATH in 43 | *.storyboard) 44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 46 | ;; 47 | *.xib) 48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 50 | ;; 51 | *.framework) 52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | ;; 57 | *.xcdatamodel) 58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 60 | ;; 61 | *.xcdatamodeld) 62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 64 | ;; 65 | *.xcmappingmodel) 66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 68 | ;; 69 | *.xcassets) 70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 72 | ;; 73 | *) 74 | echo "$RESOURCE_PATH" 75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 76 | ;; 77 | esac 78 | } 79 | 80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | fi 86 | rm -f "$RESOURCES_TO_COPY" 87 | 88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 89 | then 90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 92 | while read line; do 93 | if [[ $line != "${PODS_ROOT}*" ]]; then 94 | XCASSET_FILES+=("$line") 95 | fi 96 | done <<<"$OTHER_XCASSETS" 97 | 98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_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_PluggableApplicationDelegate_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_PluggableApplicationDelegate_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate/PluggableApplicationDelegate.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "PluggableApplicationDelegate" 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_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_PluggableApplicationDelegate_Example { 2 | umbrella header "Pods-PluggableApplicationDelegate_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Example/Pods-PluggableApplicationDelegate_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate/PluggableApplicationDelegate.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "PluggableApplicationDelegate" 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_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_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-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_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-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_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-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_PluggableApplicationDelegate_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_PluggableApplicationDelegate_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 25 | TARGET_DEVICE_ARGS="--target-device mac" 26 | ;; 27 | esac 28 | 29 | install_resource() 30 | { 31 | if [[ "$1" = /* ]] ; then 32 | RESOURCE_PATH="$1" 33 | else 34 | RESOURCE_PATH="${PODS_ROOT}/$1" 35 | fi 36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 37 | cat << EOM 38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 39 | EOM 40 | exit 1 41 | fi 42 | case $RESOURCE_PATH in 43 | *.storyboard) 44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 46 | ;; 47 | *.xib) 48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 50 | ;; 51 | *.framework) 52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | ;; 57 | *.xcdatamodel) 58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 60 | ;; 61 | *.xcdatamodeld) 62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 64 | ;; 65 | *.xcmappingmodel) 66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 68 | ;; 69 | *.xcassets) 70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 72 | ;; 73 | *) 74 | echo "$RESOURCE_PATH" 75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 76 | ;; 77 | esac 78 | } 79 | 80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | fi 86 | rm -f "$RESOURCES_TO_COPY" 87 | 88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 89 | then 90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 92 | while read line; do 93 | if [[ $line != "${PODS_ROOT}*" ]]; then 94 | XCASSET_FILES+=("$line") 95 | fi 96 | done <<<"$OTHER_XCASSETS" 97 | 98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_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_PluggableApplicationDelegate_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_PluggableApplicationDelegate_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate/PluggableApplicationDelegate.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_PluggableApplicationDelegate_Tests { 2 | umbrella header "Pods-PluggableApplicationDelegate_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PluggableApplicationDelegate_Tests/Pods-PluggableApplicationDelegate_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/PluggableApplicationDelegate/PluggableApplicationDelegate.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import PluggableApplicationDelegate 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 fmo91 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 | -------------------------------------------------------------------------------- /PluggableApplicationDelegate.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint PluggableApplicationDelegate.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'PluggableApplicationDelegate' 11 | s.version = '0.2.0' 12 | s.summary = 'Services oriented AppDelegate in Swift 3.' 13 | s.description = <<-DESC 14 | PluggableApplicationDelegate is a way of decoupling AppDelegate, by splitting it into small modules called ApplicationService. 15 | Each ApplicationServices shares the life cycle with AppDelegate, and becomes its observer. Whenever AppDelegate runs any life cycle method, your Application services are notified and perform some action. 16 | PluggableApplicationDelegate is an open class from which your AppDelegate needs to inherit. Your AppDelegate then needs to override its `services` property, returning an ApplicationServices array. 17 | DESC 18 | 19 | s.homepage = 'https://github.com/fmo91/PluggableApplicationDelegate' 20 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 21 | s.license = { :type => 'MIT', :file => 'LICENSE' } 22 | s.author = { 'fmo91' => 'ortizfernandomartin@gmail.com' } 23 | s.source = { :git => 'https://github.com/fmo91/PluggableApplicationDelegate.git', :tag => s.version.to_s } 24 | # s.social_media_url = 'https://twitter.com/' 25 | 26 | s.ios.deployment_target = '8.0' 27 | 28 | s.source_files = 'PluggableApplicationDelegate/Classes/**/*' 29 | 30 | # s.resource_bundles = { 31 | # 'PluggableApplicationDelegate' => ['PluggableApplicationDelegate/Assets/*.png'] 32 | # } 33 | 34 | # s.public_header_files = 'Pod/Classes/**/*.h' 35 | s.frameworks = 'UIKit' 36 | # s.dependency 'AFNetworking', '~> 2.3' 37 | end 38 | -------------------------------------------------------------------------------- /PluggableApplicationDelegate/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fmo91/PluggableApplicationDelegate/465ebe3f6441f48f2a2144b59c0459c8f6cb7564/PluggableApplicationDelegate/Assets/.gitkeep -------------------------------------------------------------------------------- /PluggableApplicationDelegate/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fmo91/PluggableApplicationDelegate/465ebe3f6441f48f2a2144b59c0459c8f6cb7564/PluggableApplicationDelegate/Classes/.gitkeep -------------------------------------------------------------------------------- /PluggableApplicationDelegate/Classes/ApplicationServicesManager.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PluggableApplicationDelegate.swift 3 | // PluggableApplicationDelegate 4 | // 5 | // Created by Fernando Ortiz on 2/24/17. 6 | // Copyright © 2017 Fernando Martín Ortiz. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CloudKit 11 | 12 | /// This is only a tagging protocol. 13 | /// It doesn't add more functionalities yet. 14 | public protocol ApplicationService: UIApplicationDelegate {} 15 | 16 | open class PluggableApplicationDelegate: UIResponder, UIApplicationDelegate { 17 | 18 | public var window: UIWindow? 19 | 20 | open var services: [ApplicationService] { return [] } 21 | private lazy var __services: [ApplicationService] = { 22 | return self.services 23 | }() 24 | 25 | 26 | @discardableResult 27 | private func apply(_ work: (ApplicationService, @escaping (T) -> Void) -> S?, completionHandler: @escaping ([T]) -> Swift.Void) -> [S] { 28 | let dispatchGroup = DispatchGroup() 29 | var results: [T] = [] 30 | var returns: [S] = [] 31 | 32 | for service in __services { 33 | dispatchGroup.enter() 34 | let returned = work(service, { result in 35 | results.append(result) 36 | dispatchGroup.leave() 37 | }) 38 | if let returned = returned { 39 | returns.append(returned) 40 | } else { // delegate doesn't impliment method 41 | dispatchGroup.leave() 42 | } 43 | if returned == nil { 44 | } 45 | } 46 | 47 | dispatchGroup.notify(queue: .main) { 48 | completionHandler(results) 49 | } 50 | 51 | return returns 52 | } 53 | 54 | 55 | @available(iOS 2.0, *) 56 | open func applicationDidFinishLaunching(_ application: UIApplication) { 57 | __services.forEach { $0.applicationDidFinishLaunching?(application) } 58 | } 59 | 60 | 61 | @available(iOS 6.0, *) 62 | open func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { 63 | var result = false 64 | for service in __services { 65 | if service.application?(application, willFinishLaunchingWithOptions: launchOptions) ?? false { 66 | result = true 67 | } 68 | } 69 | return result 70 | } 71 | 72 | @available(iOS 3.0, *) 73 | open func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { 74 | var result = false 75 | for service in __services { 76 | if service.application?(application, didFinishLaunchingWithOptions: launchOptions) ?? false { 77 | result = true 78 | } 79 | } 80 | return result 81 | } 82 | 83 | 84 | @available(iOS 2.0, *) 85 | open func applicationDidBecomeActive(_ application: UIApplication) { 86 | for service in __services { 87 | service.applicationDidBecomeActive?(application) 88 | } 89 | } 90 | 91 | @available(iOS 2.0, *) 92 | open func applicationWillResignActive(_ application: UIApplication) { 93 | for service in __services { 94 | service.applicationWillResignActive?(application) 95 | } 96 | } 97 | 98 | @available(iOS, introduced: 2.0, deprecated: 9.0, message: "Please use application:openURL:options:") 99 | open func application(_ application: UIApplication, handleOpen url: URL) -> Bool { 100 | var result = false 101 | for service in __services { 102 | if service.application?(application, handleOpen: url) ?? false { 103 | result = true 104 | } 105 | } 106 | return result 107 | } 108 | 109 | @available(iOS, introduced: 4.2, deprecated: 9.0, message: "Please use application:openURL:options:") 110 | open func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { 111 | var result = false 112 | for service in __services { 113 | if service.application?(application, open: url, sourceApplication: sourceApplication, annotation: annotation) ?? false { 114 | result = true 115 | } 116 | } 117 | return result 118 | } 119 | 120 | @available(iOS 9.0, *) 121 | open func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { 122 | var result = false 123 | for service in __services { 124 | if service.application?(app, open: url, options: options) ?? false { 125 | result = true 126 | } 127 | } 128 | return result 129 | } 130 | 131 | @available(iOS 2.0, *) 132 | open func applicationDidReceiveMemoryWarning(_ application: UIApplication) { 133 | for service in __services { 134 | service.applicationDidReceiveMemoryWarning?(application) 135 | } 136 | } 137 | 138 | @available(iOS 2.0, *) 139 | open func applicationWillTerminate(_ application: UIApplication) { 140 | for service in __services { 141 | service.applicationWillTerminate?(application) 142 | } 143 | } 144 | 145 | @available(iOS 2.0, *) 146 | open func applicationSignificantTimeChange(_ application: UIApplication) { 147 | for service in __services { 148 | service.applicationSignificantTimeChange?(application) 149 | } 150 | } 151 | 152 | 153 | @available(iOS 2.0, *) 154 | open func application(_ application: UIApplication, willChangeStatusBarOrientation newStatusBarOrientation: UIInterfaceOrientation, duration: TimeInterval) { 155 | for service in __services { 156 | service.application?(application, willChangeStatusBarOrientation: newStatusBarOrientation, duration: duration) 157 | } 158 | } 159 | 160 | @available(iOS 2.0, *) 161 | open func application(_ application: UIApplication, didChangeStatusBarOrientation oldStatusBarOrientation: UIInterfaceOrientation) { 162 | for service in __services { 163 | service.application?(application, didChangeStatusBarOrientation: oldStatusBarOrientation) 164 | } 165 | } 166 | 167 | // open func application(_ application: UIApplication, willChangeStatusBarFrame newStatusBarFrame: CGRect) { 168 | // for service in __services { 169 | // service.application?(application, willChangeStatusBarFrame: newStatusBarFrame) 170 | // } 171 | // } 172 | // 173 | // open func application(_ application: UIApplication, didChangeStatusBarFrame oldStatusBarFrame: CGRect) { 174 | // for service in __services { 175 | // service.application?(application, didChangeStatusBarFrame: oldStatusBarFrame) 176 | // } 177 | // } 178 | 179 | 180 | // This callback will be made upon calling -[UIApplication registerUserNotificationSettings:]. The settings the user has granted to the application will be passed in as the second argument. 181 | @available(iOS, introduced: 8.0, deprecated: 10.0, message: "Use UserNotification UNNotification Settings instead") 182 | open func application(_ application: UIApplication, didRegister notificationSettings: UIUserNotificationSettings) { 183 | for service in __services { 184 | service.application?(application, didRegister: notificationSettings) 185 | } 186 | } 187 | 188 | 189 | @available(iOS 3.0, *) 190 | open func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { 191 | for service in __services { 192 | service.application?(application, didRegisterForRemoteNotificationsWithDeviceToken: deviceToken) 193 | } 194 | } 195 | 196 | 197 | @available(iOS 3.0, *) 198 | open func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { 199 | for service in __services { 200 | service.application?(application, didFailToRegisterForRemoteNotificationsWithError: error) 201 | } 202 | } 203 | 204 | 205 | @available(iOS, introduced: 3.0, deprecated: 10.0, message: "Use UserNotifications Framework's -[UNUserNotificationCenterDelegate willPresentNotification:withCompletionHandler:] or -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:] for user visible notifications and -[UIApplicationDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] for silent remote notifications") 206 | open func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) { 207 | for service in __services { 208 | service.application?(application, didReceiveRemoteNotification: userInfo) 209 | } 210 | } 211 | 212 | 213 | @available(iOS, introduced: 4.0, deprecated: 10.0, message: "Use UserNotifications Framework's -[UNUserNotificationCenterDelegate willPresentNotification:withCompletionHandler:] or -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]") 214 | open func application(_ application: UIApplication, didReceive notification: UILocalNotification) { 215 | for service in __services { 216 | service.application?(application, didReceive: notification) 217 | } 218 | } 219 | 220 | 221 | // Called when your app has been activated by the user selecting an action from a local notification. 222 | // A nil action identifier indicates the default action. 223 | // You should call the completion handler as soon as you've finished handling the action. 224 | @available(iOS, introduced: 8.0, deprecated: 10.0, message: "Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]") 225 | open func application(_ application: UIApplication, handleActionWithIdentifier identifier: String?, for notification: UILocalNotification, completionHandler: @escaping () -> Swift.Void) { 226 | apply({ (service, completion) -> Void? in 227 | service.application?(application, handleActionWithIdentifier: identifier, for: notification, completionHandler: completion) 228 | }, completionHandler: { _ in 229 | completionHandler() 230 | }) 231 | } 232 | 233 | 234 | @available(iOS, introduced: 9.0, deprecated: 10.0, message: "Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]") 235 | open func application(_ application: UIApplication, handleActionWithIdentifier identifier: String?, forRemoteNotification userInfo: [AnyHashable : Any], withResponseInfo responseInfo: [AnyHashable : Any], completionHandler: @escaping () -> Swift.Void) { 236 | apply({ (service, completionHandler) -> Void? in 237 | service.application?(application, handleActionWithIdentifier: identifier, forRemoteNotification: userInfo, withResponseInfo: responseInfo, completionHandler: completionHandler) 238 | }, completionHandler: { _ in 239 | completionHandler() 240 | }) 241 | } 242 | 243 | 244 | // Called when your app has been activated by the user selecting an action from a remote notification. 245 | // A nil action identifier indicates the default action. 246 | // You should call the completion handler as soon as you've finished handling the action. 247 | @available(iOS, introduced: 8.0, deprecated: 10.0, message: "Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]") 248 | open func application(_ application: UIApplication, handleActionWithIdentifier identifier: String?, forRemoteNotification userInfo: [AnyHashable : Any], completionHandler: @escaping () -> Swift.Void) { 249 | apply({ (service, completionHandler) -> Void? in 250 | service.application?(application, handleActionWithIdentifier: identifier, forRemoteNotification: userInfo, completionHandler: completionHandler) 251 | }, completionHandler: { _ in 252 | completionHandler() 253 | }) 254 | } 255 | 256 | 257 | @available(iOS, introduced: 9.0, deprecated: 10.0, message: "Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]") 258 | open func application(_ application: UIApplication, handleActionWithIdentifier identifier: String?, for notification: UILocalNotification, withResponseInfo responseInfo: [AnyHashable : Any], completionHandler: @escaping () -> Swift.Void) { 259 | apply({ (service, completionHandler) -> Void? in 260 | service.application?(application, handleActionWithIdentifier: identifier, for: notification, withResponseInfo: responseInfo, completionHandler: completionHandler) 261 | }, completionHandler: { _ in 262 | completionHandler() 263 | }) 264 | } 265 | 266 | 267 | /*! This delegate method offers an opportunity for applications with the "remote-notification" background mode to fetch appropriate new data in response to an incoming remote notification. You should call the fetchCompletionHandler as soon as you're finished performing that operation, so the system can accurately estimate its power and data cost. 268 | 269 | This method will be invoked even if the application was launched or resumed because of the remote notification. The respective delegate methods will be invoked first. Note that this behavior is in contrast to application:didReceiveRemoteNotification:, which is not called in those cases, and which will not be invoked if this method is implemented. !*/ 270 | @available(iOS 7.0, *) 271 | open func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Swift.Void) { 272 | apply({ (service, completionHandler) -> Void? in 273 | service.application?(application, didReceiveRemoteNotification: userInfo, fetchCompletionHandler: completionHandler) 274 | }, completionHandler: { results in 275 | let result = results.min(by: { $0.rawValue < $1.rawValue }) ?? .noData 276 | completionHandler(result) 277 | }) 278 | } 279 | 280 | 281 | /// Applications with the "fetch" background mode may be given opportunities to fetch updated content in the background or when it is convenient for the system. This method will be called in these situations. You should call the fetchCompletionHandler as soon as you're finished performing that operation, so the system can accurately estimate its power and data cost. 282 | @available(iOS 7.0, *) 283 | open func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Swift.Void) { 284 | apply({ (service, completionHandler) -> Void? in 285 | service.application?(application, performFetchWithCompletionHandler: completionHandler) 286 | }, completionHandler: { results in 287 | let result = results.min(by: { $0.rawValue < $1.rawValue }) ?? .noData 288 | completionHandler(result) 289 | }) 290 | } 291 | 292 | 293 | // Called when the user activates your application by selecting a shortcut on the home screen, 294 | // except when -application:willFinishLaunchingWithOptions: or -application:didFinishLaunchingWithOptions returns NO. 295 | @available(iOS 9.0, *) 296 | open func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Swift.Void) { 297 | apply({ (service, completionHandler) -> Void? in 298 | service.application?(application, performActionFor: shortcutItem, completionHandler: completionHandler) 299 | }, completionHandler: { results in 300 | // if any service handled the shortcut, return true 301 | let result = results.reduce(false, { $0 || $1 }) 302 | completionHandler(result) 303 | }) 304 | } 305 | 306 | 307 | // Applications using an NSURLSession with a background configuration may be launched or resumed in the background in order to handle the 308 | // completion of tasks in that session, or to handle authentication. This method will be called with the identifier of the session needing 309 | // attention. Once a session has been created from a configuration object with that identifier, the session's delegate will begin receiving 310 | // callbacks. If such a session has already been created (if the app is being resumed, for instance), then the delegate will start receiving 311 | // callbacks without any action by the application. You should call the completionHandler as soon as you're finished handling the callbacks. 312 | @available(iOS 7.0, *) 313 | open func application(_ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Swift.Void) { 314 | apply({ (service, completionHandler) -> Void? in 315 | service.application?(application, handleEventsForBackgroundURLSession: identifier, completionHandler: completionHandler) 316 | }, completionHandler: { _ in 317 | completionHandler() 318 | }) 319 | } 320 | 321 | 322 | @available(iOS 8.2, *) 323 | open func application(_ application: UIApplication, handleWatchKitExtensionRequest userInfo: [AnyHashable : Any]?, reply: @escaping ([AnyHashable : Any]?) -> Swift.Void) { 324 | for service in __services { 325 | service.application?(application, handleWatchKitExtensionRequest: userInfo, reply: reply) 326 | } 327 | apply({ (service, reply) -> Void? in 328 | service.application?(application, handleWatchKitExtensionRequest: userInfo, reply: reply) 329 | }, completionHandler: { results in 330 | let result = results.reduce([:], { initial, next in 331 | var initial = initial 332 | for (key, value) in next ?? [:] { 333 | initial[key] = value 334 | } 335 | return initial 336 | }) 337 | reply(result) 338 | }) 339 | } 340 | 341 | 342 | @available(iOS 9.0, *) 343 | open func applicationShouldRequestHealthAuthorization(_ application: UIApplication) { 344 | for service in __services { 345 | service.applicationShouldRequestHealthAuthorization?(application) 346 | } 347 | } 348 | 349 | 350 | @available(iOS 4.0, *) 351 | open func applicationDidEnterBackground(_ application: UIApplication) { 352 | for service in __services { 353 | service.applicationDidEnterBackground?(application) 354 | } 355 | } 356 | 357 | @available(iOS 4.0, *) 358 | open func applicationWillEnterForeground(_ application: UIApplication) { 359 | for service in __services { 360 | service.applicationWillEnterForeground?(application) 361 | } 362 | } 363 | 364 | 365 | @available(iOS 4.0, *) 366 | open func applicationProtectedDataWillBecomeUnavailable(_ application: UIApplication) { 367 | for service in __services { 368 | service.applicationProtectedDataWillBecomeUnavailable?(application) 369 | } 370 | } 371 | 372 | @available(iOS 4.0, *) 373 | open func applicationProtectedDataDidBecomeAvailable(_ application: UIApplication) { 374 | for service in __services { 375 | service.applicationProtectedDataDidBecomeAvailable?(application) 376 | } 377 | } 378 | 379 | 380 | // Applications may reject specific types of extensions based on the extension point identifier. 381 | // Constants representing common extension point identifiers are provided further down. 382 | // If unimplemented, the default behavior is to allow the extension point identifier. 383 | @available(iOS 8.0, *) 384 | open func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplicationExtensionPointIdentifier) -> Bool { 385 | var result = false 386 | for service in __services { 387 | if service.application?(application, shouldAllowExtensionPointIdentifier: extensionPointIdentifier) ?? true { 388 | result = true 389 | } 390 | } 391 | return result 392 | } 393 | 394 | 395 | @available(iOS 6.0, *) 396 | open func application(_ application: UIApplication, viewControllerWithRestorationIdentifierPath identifierComponents: [Any], coder: NSCoder) -> UIViewController? { 397 | for service in __services { 398 | if let viewController = service.application?(application, viewControllerWithRestorationIdentifierPath: identifierComponents, coder: coder) { 399 | return viewController 400 | } 401 | } 402 | 403 | return nil 404 | } 405 | 406 | @available(iOS 6.0, *) 407 | open func application(_ application: UIApplication, shouldSaveApplicationState coder: NSCoder) -> Bool { 408 | var result = false 409 | for service in __services { 410 | if service.application?(application, shouldSaveApplicationState: coder) ?? false { 411 | result = true 412 | } 413 | } 414 | return result 415 | } 416 | 417 | @available(iOS 6.0, *) 418 | open func application(_ application: UIApplication, shouldRestoreApplicationState coder: NSCoder) -> Bool { 419 | var result = false 420 | for service in __services { 421 | if service.application?(application, shouldRestoreApplicationState: coder) ?? false { 422 | result = true 423 | } 424 | } 425 | return result 426 | } 427 | 428 | @available(iOS 6.0, *) 429 | open func application(_ application: UIApplication, willEncodeRestorableStateWith coder: NSCoder) { 430 | for service in __services { 431 | service.application?(application, willEncodeRestorableStateWith: coder) 432 | } 433 | } 434 | 435 | @available(iOS 6.0, *) 436 | open func application(_ application: UIApplication, didDecodeRestorableStateWith coder: NSCoder) { 437 | for service in __services { 438 | service.application?(application, didDecodeRestorableStateWith: coder) 439 | } 440 | } 441 | 442 | 443 | // Called on the main thread as soon as the user indicates they want to continue an activity in your application. The NSUserActivity object may not be available instantly, 444 | // so use this as an opportunity to show the user that an activity will be continued shortly. 445 | // For each application:willContinueUserActivityWithType: invocation, you are guaranteed to get exactly one invocation of application:continueUserActivity: on success, 446 | // or application:didFailToContinueUserActivityWithType:error: if an error was encountered. 447 | @available(iOS 8.0, *) 448 | open func application(_ application: UIApplication, willContinueUserActivityWithType userActivityType: String) -> Bool { 449 | var result = false 450 | for service in __services { 451 | if service.application?(application, willContinueUserActivityWithType: userActivityType) ?? false { 452 | result = true 453 | } 454 | } 455 | return result 456 | } 457 | 458 | 459 | // Called on the main thread after the NSUserActivity object is available. Use the data you stored in the NSUserActivity object to re-create what the user was doing. 460 | // You can create/fetch any restorable objects associated with the user activity, and pass them to the restorationHandler. They will then have the UIResponder restoreUserActivityState: method 461 | // invoked with the user activity. Invoking the restorationHandler is optional. It may be copied and invoked later, and it will bounce to the main thread to complete its work and call 462 | // restoreUserActivityState on all objects. 463 | @available(iOS 8.0, *) 464 | open func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Swift.Void) -> Bool { 465 | let returns = apply({ (service, restorationHandler) -> Bool? in 466 | service.application?(application, continue: userActivity, restorationHandler: restorationHandler) 467 | }, completionHandler: { results in 468 | let result = results.reduce([], { $0 + ($1 ?? []) }) 469 | restorationHandler(result) 470 | }) 471 | 472 | return returns.reduce(false, { $0 || $1 }) 473 | } 474 | 475 | 476 | // If the user activity cannot be fetched after willContinueUserActivityWithType is called, this will be called on the main thread when implemented. 477 | @available(iOS 8.0, *) 478 | open func application(_ application: UIApplication, didFailToContinueUserActivityWithType userActivityType: String, error: Error) { 479 | for service in __services { 480 | service.application?(application, didFailToContinueUserActivityWithType: userActivityType, error: error) 481 | } 482 | } 483 | 484 | 485 | // This is called on the main thread when a user activity managed by UIKit has been updated. You can use this as a last chance to add additional data to the userActivity. 486 | @available(iOS 8.0, *) 487 | open func application(_ application: UIApplication, didUpdate userActivity: NSUserActivity) { 488 | for service in __services { 489 | service.application?(application, didUpdate: userActivity) 490 | } 491 | } 492 | 493 | 494 | // This will be called on the main thread after the user indicates they want to accept a CloudKit sharing invitation in your application. 495 | // You should use the CKShareMetadata object's shareURL and containerIdentifier to schedule a CKAcceptSharesOperation, then start using 496 | // the resulting CKShare and its associated record(s), which will appear in the CKContainer's shared database in a zone matching that of the record's owner. 497 | @available(iOS 10.0, *) 498 | open func application(_ application: UIApplication, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShareMetadata) { 499 | for service in __services { 500 | service.application?(application, userDidAcceptCloudKitShareWith: cloudKitShareMetadata) 501 | } 502 | } 503 | } 504 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PluggableApplicationDelegate 2 | 3 | [![CI Status](http://img.shields.io/travis/fmo91/PluggableApplicationDelegate.svg?style=flat)](https://travis-ci.org/fmo91/PluggableApplicationDelegate) 4 | [![Version](https://img.shields.io/cocoapods/v/PluggableApplicationDelegate.svg?style=flat)](http://cocoapods.org/pods/PluggableApplicationDelegate) 5 | [![License](https://img.shields.io/cocoapods/l/PluggableApplicationDelegate.svg?style=flat)](http://cocoapods.org/pods/PluggableApplicationDelegate) 6 | [![Platform](https://img.shields.io/cocoapods/p/PluggableApplicationDelegate.svg?style=flat)](http://cocoapods.org/pods/PluggableApplicationDelegate) 7 | 8 | ## Introduction 9 | `AppDelegate` is a traditional example of bad code. Lots of line of code that makes so much different things are put together in methods that are called within the application life cycle. But all of those concerns are over. 10 | Using `PluggableApplicationDelegate` you decouple AppDelegate from the services that you plug to it. Each `ApplicationService` has its own life cycle that is shared with `AppDelegate`. 11 | 12 | ## At a glance 13 | Let see some code. 14 | Here is how a `ApplicationService` is like: 15 | 16 | ```swift 17 | import Foundation 18 | import PluggableApplicationDelegate 19 | 20 | final class LoggerApplicationService: NSObject, ApplicationService { 21 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { 22 | 23 | print("It has started!") 24 | 25 | return true 26 | } 27 | 28 | func applicationDidEnterBackground(_ application: UIApplication) { 29 | print("It has entered background") 30 | } 31 | } 32 | ``` 33 | 34 | That's all. **It is exactly the same as a AppDelegate**. Think of `ApplicationService` as sub-AppDelegates. 35 | 36 | In `AppDelegate` you just have to inherit from PluggableApplicationDelegate to register the services. 37 | 38 | ```swift 39 | import UIKit 40 | import PluggableApplicationDelegate 41 | 42 | @UIApplicationMain 43 | class AppDelegate: PluggableApplicationDelegate { 44 | 45 | override var services: [ApplicationService] { 46 | return [ 47 | LoggerApplicationService() 48 | ] 49 | } 50 | } 51 | ``` 52 | 53 | Yes. That's all. Simple. 54 | 55 | ## How does this work? 56 | 57 | You may want to read my [Medium post about Pluggable App Delegate](https://medium.com/ios-os-x-development/pluggableapplicationdelegate-e50b2c5d97dd#.sz50l4d0l). 58 | Basically, you do an inversion of control. Instead of let AppDelegate instantiate your dependencies, perform actions at every step of its life cycle, you create objects that share the AppDelegate life cycle and plug them into your AppDelegate. 59 | Those objects are observers of the AppDelegate. Your AppDelegate has the only responsibility of notify them about its life cycle events. 60 | 61 | ## Example 62 | 63 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 64 | 65 | ## Requirements 66 | 67 | PluggableApplicationDelegate requires Swift 3.0 or above. 68 | 69 | ## Installation 70 | 71 | PluggableApplicationDelegate is available through [CocoaPods](http://cocoapods.org). To install 72 | it, simply add the following line to your Podfile: 73 | 74 | ```ruby 75 | pod 'PluggableApplicationDelegate' 76 | ``` 77 | 78 | ## Author 79 | 80 | fmo91, ortizfernandomartin@gmail.com 81 | 82 | ## License 83 | 84 | PluggableApplicationDelegate is available under the MIT license. See the LICENSE file for more info. 85 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------