├── .gitignore ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── YYRouter.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-YYRouter_Example │ │ ├── Pods-YYRouter_Example-Info.plist │ │ ├── Pods-YYRouter_Example-acknowledgements.markdown │ │ ├── Pods-YYRouter_Example-acknowledgements.plist │ │ ├── Pods-YYRouter_Example-dummy.m │ │ ├── Pods-YYRouter_Example-frameworks.sh │ │ ├── Pods-YYRouter_Example-umbrella.h │ │ ├── Pods-YYRouter_Example.debug.xcconfig │ │ ├── Pods-YYRouter_Example.modulemap │ │ └── Pods-YYRouter_Example.release.xcconfig │ │ ├── Pods-YYRouter_Tests │ │ ├── Pods-YYRouter_Tests-Info.plist │ │ ├── Pods-YYRouter_Tests-acknowledgements.markdown │ │ ├── Pods-YYRouter_Tests-acknowledgements.plist │ │ ├── Pods-YYRouter_Tests-dummy.m │ │ ├── Pods-YYRouter_Tests-umbrella.h │ │ ├── Pods-YYRouter_Tests.debug.xcconfig │ │ ├── Pods-YYRouter_Tests.modulemap │ │ └── Pods-YYRouter_Tests.release.xcconfig │ │ └── YYRouter │ │ ├── YYRouter-Info.plist │ │ ├── YYRouter-dummy.m │ │ ├── YYRouter-prefix.pch │ │ ├── YYRouter-umbrella.h │ │ ├── YYRouter.debug.xcconfig │ │ ├── YYRouter.modulemap │ │ └── YYRouter.release.xcconfig ├── Tests │ ├── Info.plist │ └── Tests.swift ├── YYRouter.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── YYRouter-Example.xcscheme ├── YYRouter.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── YYRouter │ ├── AController.swift │ ├── AppDelegate.swift │ ├── BController.swift │ ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard │ ├── CController.swift │ ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ ├── ViewController.swift │ └── WebController.swift ├── LICENSE ├── README.md ├── YYRouter.podspec ├── YYRouter ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── YYRouter │ ├── YYRoutable.swift │ ├── YYRouter.swift │ ├── YYRouterModel.swift │ └── YYRouterUtil.swift ├── _Pods.xcodeproj └── podReadme.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## User settings 6 | xcuserdata/ 7 | 8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 9 | *.xcscmblueprint 10 | *.xccheckout 11 | 12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 13 | build/ 14 | DerivedData/ 15 | *.moved-aside 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | 28 | ## App packaging 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | ## Playgrounds 34 | timeline.xctimeline 35 | playground.xcworkspace 36 | 37 | # Swift Package Manager 38 | # 39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 40 | # Packages/ 41 | # Package.pins 42 | # Package.resolved 43 | # *.xcodeproj 44 | # 45 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata 46 | # hence it is not needed unless you have added a package configuration file to your project 47 | # .swiftpm 48 | 49 | .build/ 50 | 51 | # CocoaPods 52 | # 53 | # We recommend against adding the Pods directory to your .gitignore. However 54 | # you should judge for yourself, the pros and cons are mentioned at: 55 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 56 | # 57 | # Pods/ 58 | # 59 | # Add this line if you want to avoid checking in source code from the Xcode workspace 60 | # *.xcworkspace 61 | 62 | # Carthage 63 | # 64 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 65 | # Carthage/Checkouts 66 | 67 | Carthage/Build/ 68 | 69 | # Accio dependency management 70 | Dependencies/ 71 | .accio/ 72 | 73 | # fastlane 74 | # 75 | # It is recommended to not store the screenshots in the git repo. 76 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 77 | # For more information about the recommended setup visit: 78 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 79 | 80 | fastlane/report.xml 81 | fastlane/Preview.html 82 | fastlane/screenshots/**/*.png 83 | fastlane/test_output 84 | 85 | # Code Injection 86 | # 87 | # After new code Injection tools there's a generated folder /iOSInjectionProject 88 | # https://github.com/johnno1962/injectionforxcode 89 | 90 | iOSInjectionProject/ 91 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/YYRouter.xcworkspace -scheme YYRouter-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '9.0' 4 | 5 | target 'YYRouter_Example' do 6 | pod 'YYRouter', :path => '../' 7 | 8 | target 'YYRouter_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - YYRouter (0.0.5): 3 | - YYRouter/YYRouter (= 0.0.5) 4 | - YYRouter/YYRouter (0.0.5) 5 | 6 | DEPENDENCIES: 7 | - YYRouter (from `../`) 8 | 9 | EXTERNAL SOURCES: 10 | YYRouter: 11 | :path: "../" 12 | 13 | SPEC CHECKSUMS: 14 | YYRouter: b4cc9b2549dd8f9ebb93b1ab572ad670a730fc93 15 | 16 | PODFILE CHECKSUM: ba992e51be9575cae96df94b6f24371257260cdc 17 | 18 | COCOAPODS: 1.11.2 19 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/YYRouter.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "YYRouter", 3 | "version": "0.0.5", 4 | "summary": "YYRouter路由组件.", 5 | "description": "YYRouter一个简单好用的swift路由组件.", 6 | "homepage": "https://github.com/yxh265/YYRouter", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "yxh265": "yxh265@qq.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/yxh265/YYRouter.git", 16 | "tag": "0.0.5" 17 | }, 18 | "platforms": { 19 | "ios": "9.0" 20 | }, 21 | "swift_versions": "5.0", 22 | "subspecs": [ 23 | { 24 | "name": "YYRouter", 25 | "source_files": "YYRouter/Classes/YYRouter/*" 26 | } 27 | ], 28 | "swift_version": "5.0" 29 | } 30 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - YYRouter (0.0.5): 3 | - YYRouter/YYRouter (= 0.0.5) 4 | - YYRouter/YYRouter (0.0.5) 5 | 6 | DEPENDENCIES: 7 | - YYRouter (from `../`) 8 | 9 | EXTERNAL SOURCES: 10 | YYRouter: 11 | :path: "../" 12 | 13 | SPEC CHECKSUMS: 14 | YYRouter: b4cc9b2549dd8f9ebb93b1ab572ad670a730fc93 15 | 16 | PODFILE CHECKSUM: ba992e51be9575cae96df94b6f24371257260cdc 17 | 18 | COCOAPODS: 1.11.2 19 | -------------------------------------------------------------------------------- /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 | 089DF33C734EB2AFD50E6237CA184C6D /* YYRouterUtil.swift in Sources */ = {isa = PBXBuildFile; fileRef = D09DF59E924C252FADF9BCDBE7DE7B9C /* YYRouterUtil.swift */; }; 11 | 092B4B63F8E423839400DB52B865AA2D /* Pods-YYRouter_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 90EE01B989513D8FFFB7B01D9328647A /* Pods-YYRouter_Example-dummy.m */; }; 12 | 1AFD6F88E67AC39FF794E0F8176C2961 /* YYRoutable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 641171E4F4798AD590D215B126EEC43D /* YYRoutable.swift */; }; 13 | 46416F3F655910B33EEF8B874D41E83A /* YYRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 476F8C85FCB94969074174CDE04BB34F /* YYRouter.swift */; }; 14 | 54E893C9066C0E7ADE6FB3E75565B25F /* Pods-YYRouter_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 431C85CD148085322458DD2200CAC220 /* Pods-YYRouter_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 733DBBC4BCCDEE029EEF2E66F5DDFEF8 /* YYRouterModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0E2B192DAC40940D10930467A2A2CF9 /* YYRouterModel.swift */; }; 16 | 8A17D539191A5F2E5960B682FC9D1936 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 17 | 9216A4975BB39C99A77F70BBCBF3A6E5 /* YYRouter-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 323871C1A7EF5E56A6DDCB38F7D0CEB8 /* YYRouter-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | A4D2D2ABF44FFF1960F10ACD17535143 /* Pods-YYRouter_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1DC2660B95EB0FC8FEA6EBBCD5346EBA /* Pods-YYRouter_Tests-dummy.m */; }; 19 | DF0E1A97C29FF62F19ABA2A0F78ACFB3 /* Pods-YYRouter_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6234BCF6FD83BA948EC27DE1C4CE4E3E /* Pods-YYRouter_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | ED8B71A12AFEBE6A81C8347DF1ADBBC9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 21 | F21E3AEEEF21BE2F62BF759BFE22926B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 22 | F8219A8F710A0D7704B640F11FF9C83F /* YYRouter-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2280DDBB1F9F39EF4506609DCC336F9E /* YYRouter-dummy.m */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 11A7A185F018C103464B4CDE4068C27A /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = D06D6A543B4459353920D8EADC342D47; 31 | remoteInfo = "Pods-YYRouter_Example"; 32 | }; 33 | 37069576535B30111757ED3A3B3315DC /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 39BC27EAB4476B45D31871B1B0F7F11A; 38 | remoteInfo = YYRouter; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 0A9E8698768B49363F848C3AF0D44D65 /* Pods-YYRouter_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-YYRouter_Example.release.xcconfig"; sourceTree = ""; }; 44 | 120942B5C9088C00830C8ED2DB42BC84 /* Pods-YYRouter_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-YYRouter_Example.debug.xcconfig"; sourceTree = ""; }; 45 | 1DC2660B95EB0FC8FEA6EBBCD5346EBA /* Pods-YYRouter_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-YYRouter_Tests-dummy.m"; sourceTree = ""; }; 46 | 2280DDBB1F9F39EF4506609DCC336F9E /* YYRouter-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "YYRouter-dummy.m"; sourceTree = ""; }; 47 | 25F8D6569D5315B26C2C75AAAC105E30 /* Pods-YYRouter_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-YYRouter_Tests-acknowledgements.plist"; sourceTree = ""; }; 48 | 2CA6B80D85D23AAAFFE57D76D2A562BE /* Pods-YYRouter_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-YYRouter_Example-Info.plist"; sourceTree = ""; }; 49 | 323871C1A7EF5E56A6DDCB38F7D0CEB8 /* YYRouter-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "YYRouter-umbrella.h"; sourceTree = ""; }; 50 | 360E993A44C0C97B2338B240AA4D2C13 /* Pods-YYRouter_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-YYRouter_Tests-acknowledgements.markdown"; sourceTree = ""; }; 51 | 3FCDCF1E40F5E0FE356E21E67105BAE5 /* YYRouter.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = YYRouter.release.xcconfig; sourceTree = ""; }; 52 | 431C85CD148085322458DD2200CAC220 /* Pods-YYRouter_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-YYRouter_Example-umbrella.h"; sourceTree = ""; }; 53 | 476F8C85FCB94969074174CDE04BB34F /* YYRouter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = YYRouter.swift; path = YYRouter/Classes/YYRouter/YYRouter.swift; sourceTree = ""; }; 54 | 54804C80439DE0DED43A5A3747CD90A8 /* YYRouter-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "YYRouter-Info.plist"; sourceTree = ""; }; 55 | 548C70A15D7A1CBEC336FA40566DF6E0 /* YYRouter.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = YYRouter.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 56 | 5B43C20C6E0F002C697380306549CD4B /* Pods-YYRouter_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-YYRouter_Tests-Info.plist"; sourceTree = ""; }; 57 | 6234BCF6FD83BA948EC27DE1C4CE4E3E /* Pods-YYRouter_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-YYRouter_Tests-umbrella.h"; sourceTree = ""; }; 58 | 6337085A3D62F32B8F940F7F79993CCA /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 59 | 641171E4F4798AD590D215B126EEC43D /* YYRoutable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = YYRoutable.swift; path = YYRouter/Classes/YYRouter/YYRoutable.swift; sourceTree = ""; }; 60 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 61 | 90EE01B989513D8FFFB7B01D9328647A /* Pods-YYRouter_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-YYRouter_Example-dummy.m"; sourceTree = ""; }; 62 | 952D3CEA7E08F7861272FE4E5FC5DACE /* Pods-YYRouter_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-YYRouter_Example-acknowledgements.markdown"; sourceTree = ""; }; 63 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 64 | A0874B25C6DA18ED727B33126C193F21 /* YYRouter-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "YYRouter-prefix.pch"; sourceTree = ""; }; 65 | A0A7E69BA93C88615356CA796D72A6A2 /* YYRouter */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = YYRouter; path = YYRouter.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | B22FC0820780CFAB3FA6951AC8A14CDA /* Pods-YYRouter_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-YYRouter_Tests.modulemap"; sourceTree = ""; }; 67 | B2D47671F48B9146C09B3D0757382C54 /* YYRouter.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = YYRouter.modulemap; sourceTree = ""; }; 68 | C24519DD4A37666507E1063E4D4F22A6 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 69 | C390E58A2BAF7448E6974EED11AA06E8 /* Pods-YYRouter_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-YYRouter_Tests.debug.xcconfig"; sourceTree = ""; }; 70 | C750887FC7C11CDC2C96CADC56D145BD /* Pods-YYRouter_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-YYRouter_Tests.release.xcconfig"; sourceTree = ""; }; 71 | D09DF59E924C252FADF9BCDBE7DE7B9C /* YYRouterUtil.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = YYRouterUtil.swift; path = YYRouter/Classes/YYRouter/YYRouterUtil.swift; sourceTree = ""; }; 72 | D3D2AE32DCBB78AE44F20AA2127A0ABB /* Pods-YYRouter_Tests */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = "Pods-YYRouter_Tests"; path = Pods_YYRouter_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 73 | DA0450DE00EA31D7810CDB9FC915150F /* Pods-YYRouter_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-YYRouter_Example-frameworks.sh"; sourceTree = ""; }; 74 | DAFDB3D3D0C8D724F85CDB78378FC572 /* Pods-YYRouter_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-YYRouter_Example-acknowledgements.plist"; sourceTree = ""; }; 75 | E0E2B192DAC40940D10930467A2A2CF9 /* YYRouterModel.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = YYRouterModel.swift; path = YYRouter/Classes/YYRouter/YYRouterModel.swift; sourceTree = ""; }; 76 | EE5204D365EA584EC071174A5C6601AD /* Pods-YYRouter_Example */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = "Pods-YYRouter_Example"; path = Pods_YYRouter_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 77 | F799ABF86D6E8A5C208AE65FCD628715 /* Pods-YYRouter_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-YYRouter_Example.modulemap"; sourceTree = ""; }; 78 | F89157B2BE0F47A0EC38ED6281B96BD6 /* YYRouter.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = YYRouter.debug.xcconfig; sourceTree = ""; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | 4105A2264118D57A628648471442DC5F /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | F21E3AEEEF21BE2F62BF759BFE22926B /* Foundation.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | 42B5C7A6E2C75BF5AF1E25D2CAFD4D48 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | 8A17D539191A5F2E5960B682FC9D1936 /* Foundation.framework in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | 9C474435936D69AB2CC84A299F62D5E8 /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | ED8B71A12AFEBE6A81C8347DF1ADBBC9 /* Foundation.framework in Frameworks */, 103 | ); 104 | runOnlyForDeploymentPostprocessing = 0; 105 | }; 106 | /* End PBXFrameworksBuildPhase section */ 107 | 108 | /* Begin PBXGroup section */ 109 | 248E7F10BCEBC7336F61222F53EA6CA8 /* Pod */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 6337085A3D62F32B8F940F7F79993CCA /* LICENSE */, 113 | C24519DD4A37666507E1063E4D4F22A6 /* README.md */, 114 | 548C70A15D7A1CBEC336FA40566DF6E0 /* YYRouter.podspec */, 115 | ); 116 | name = Pod; 117 | sourceTree = ""; 118 | }; 119 | 3A77FFE24B4AEC1641FBF7734519E7D3 /* Targets Support Files */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | D1D12CB079A4D37D68C7100EDBB40A4C /* Pods-YYRouter_Example */, 123 | 5F550DEB6414E4418E646928F4A34E5D /* Pods-YYRouter_Tests */, 124 | ); 125 | name = "Targets Support Files"; 126 | sourceTree = ""; 127 | }; 128 | 578452D2E740E91742655AC8F1636D1F /* iOS */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */, 132 | ); 133 | name = iOS; 134 | sourceTree = ""; 135 | }; 136 | 5F550DEB6414E4418E646928F4A34E5D /* Pods-YYRouter_Tests */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | B22FC0820780CFAB3FA6951AC8A14CDA /* Pods-YYRouter_Tests.modulemap */, 140 | 360E993A44C0C97B2338B240AA4D2C13 /* Pods-YYRouter_Tests-acknowledgements.markdown */, 141 | 25F8D6569D5315B26C2C75AAAC105E30 /* Pods-YYRouter_Tests-acknowledgements.plist */, 142 | 1DC2660B95EB0FC8FEA6EBBCD5346EBA /* Pods-YYRouter_Tests-dummy.m */, 143 | 5B43C20C6E0F002C697380306549CD4B /* Pods-YYRouter_Tests-Info.plist */, 144 | 6234BCF6FD83BA948EC27DE1C4CE4E3E /* Pods-YYRouter_Tests-umbrella.h */, 145 | C390E58A2BAF7448E6974EED11AA06E8 /* Pods-YYRouter_Tests.debug.xcconfig */, 146 | C750887FC7C11CDC2C96CADC56D145BD /* Pods-YYRouter_Tests.release.xcconfig */, 147 | ); 148 | name = "Pods-YYRouter_Tests"; 149 | path = "Target Support Files/Pods-YYRouter_Tests"; 150 | sourceTree = ""; 151 | }; 152 | CF1408CF629C7361332E53B88F7BD30C = { 153 | isa = PBXGroup; 154 | children = ( 155 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 156 | D9BED4627F70D487FE8BCD1D467420EC /* Development Pods */, 157 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 158 | EF73E2FDCF04993B0FAA0ED35F0FDDC3 /* Products */, 159 | 3A77FFE24B4AEC1641FBF7734519E7D3 /* Targets Support Files */, 160 | ); 161 | sourceTree = ""; 162 | }; 163 | CFBD2688BF7E4022A5F034E89AE3C363 /* Support Files */ = { 164 | isa = PBXGroup; 165 | children = ( 166 | B2D47671F48B9146C09B3D0757382C54 /* YYRouter.modulemap */, 167 | 2280DDBB1F9F39EF4506609DCC336F9E /* YYRouter-dummy.m */, 168 | 54804C80439DE0DED43A5A3747CD90A8 /* YYRouter-Info.plist */, 169 | A0874B25C6DA18ED727B33126C193F21 /* YYRouter-prefix.pch */, 170 | 323871C1A7EF5E56A6DDCB38F7D0CEB8 /* YYRouter-umbrella.h */, 171 | F89157B2BE0F47A0EC38ED6281B96BD6 /* YYRouter.debug.xcconfig */, 172 | 3FCDCF1E40F5E0FE356E21E67105BAE5 /* YYRouter.release.xcconfig */, 173 | ); 174 | name = "Support Files"; 175 | path = "Example/Pods/Target Support Files/YYRouter"; 176 | sourceTree = ""; 177 | }; 178 | D1D12CB079A4D37D68C7100EDBB40A4C /* Pods-YYRouter_Example */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | F799ABF86D6E8A5C208AE65FCD628715 /* Pods-YYRouter_Example.modulemap */, 182 | 952D3CEA7E08F7861272FE4E5FC5DACE /* Pods-YYRouter_Example-acknowledgements.markdown */, 183 | DAFDB3D3D0C8D724F85CDB78378FC572 /* Pods-YYRouter_Example-acknowledgements.plist */, 184 | 90EE01B989513D8FFFB7B01D9328647A /* Pods-YYRouter_Example-dummy.m */, 185 | DA0450DE00EA31D7810CDB9FC915150F /* Pods-YYRouter_Example-frameworks.sh */, 186 | 2CA6B80D85D23AAAFFE57D76D2A562BE /* Pods-YYRouter_Example-Info.plist */, 187 | 431C85CD148085322458DD2200CAC220 /* Pods-YYRouter_Example-umbrella.h */, 188 | 120942B5C9088C00830C8ED2DB42BC84 /* Pods-YYRouter_Example.debug.xcconfig */, 189 | 0A9E8698768B49363F848C3AF0D44D65 /* Pods-YYRouter_Example.release.xcconfig */, 190 | ); 191 | name = "Pods-YYRouter_Example"; 192 | path = "Target Support Files/Pods-YYRouter_Example"; 193 | sourceTree = ""; 194 | }; 195 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | 578452D2E740E91742655AC8F1636D1F /* iOS */, 199 | ); 200 | name = Frameworks; 201 | sourceTree = ""; 202 | }; 203 | D9BED4627F70D487FE8BCD1D467420EC /* Development Pods */ = { 204 | isa = PBXGroup; 205 | children = ( 206 | F77BEE1405D80B0632269FDDF597C922 /* YYRouter */, 207 | ); 208 | name = "Development Pods"; 209 | sourceTree = ""; 210 | }; 211 | EF73E2FDCF04993B0FAA0ED35F0FDDC3 /* Products */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | EE5204D365EA584EC071174A5C6601AD /* Pods-YYRouter_Example */, 215 | D3D2AE32DCBB78AE44F20AA2127A0ABB /* Pods-YYRouter_Tests */, 216 | A0A7E69BA93C88615356CA796D72A6A2 /* YYRouter */, 217 | ); 218 | name = Products; 219 | sourceTree = ""; 220 | }; 221 | F77BEE1405D80B0632269FDDF597C922 /* YYRouter */ = { 222 | isa = PBXGroup; 223 | children = ( 224 | 248E7F10BCEBC7336F61222F53EA6CA8 /* Pod */, 225 | CFBD2688BF7E4022A5F034E89AE3C363 /* Support Files */, 226 | FA1DDA3A395739067E2B374D1A19451E /* YYRouter */, 227 | ); 228 | name = YYRouter; 229 | path = ../..; 230 | sourceTree = ""; 231 | }; 232 | FA1DDA3A395739067E2B374D1A19451E /* YYRouter */ = { 233 | isa = PBXGroup; 234 | children = ( 235 | 641171E4F4798AD590D215B126EEC43D /* YYRoutable.swift */, 236 | 476F8C85FCB94969074174CDE04BB34F /* YYRouter.swift */, 237 | E0E2B192DAC40940D10930467A2A2CF9 /* YYRouterModel.swift */, 238 | D09DF59E924C252FADF9BCDBE7DE7B9C /* YYRouterUtil.swift */, 239 | ); 240 | name = YYRouter; 241 | sourceTree = ""; 242 | }; 243 | /* End PBXGroup section */ 244 | 245 | /* Begin PBXHeadersBuildPhase section */ 246 | 53742E4CCDA46E8ED78470E598595E58 /* Headers */ = { 247 | isa = PBXHeadersBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | DF0E1A97C29FF62F19ABA2A0F78ACFB3 /* Pods-YYRouter_Tests-umbrella.h in Headers */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 96334DDBBF5F2BF3111951856C980086 /* Headers */ = { 255 | isa = PBXHeadersBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | 54E893C9066C0E7ADE6FB3E75565B25F /* Pods-YYRouter_Example-umbrella.h in Headers */, 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | DFCB7391AB6D1DB15D8F3BA6BA2473BC /* Headers */ = { 263 | isa = PBXHeadersBuildPhase; 264 | buildActionMask = 2147483647; 265 | files = ( 266 | 9216A4975BB39C99A77F70BBCBF3A6E5 /* YYRouter-umbrella.h in Headers */, 267 | ); 268 | runOnlyForDeploymentPostprocessing = 0; 269 | }; 270 | /* End PBXHeadersBuildPhase section */ 271 | 272 | /* Begin PBXNativeTarget section */ 273 | 39BC27EAB4476B45D31871B1B0F7F11A /* YYRouter */ = { 274 | isa = PBXNativeTarget; 275 | buildConfigurationList = E80A42BD3E0A02633CD06F97C8A8BC05 /* Build configuration list for PBXNativeTarget "YYRouter" */; 276 | buildPhases = ( 277 | DFCB7391AB6D1DB15D8F3BA6BA2473BC /* Headers */, 278 | 9EBA4C1768052A30D92D43015E626A6F /* Sources */, 279 | 4105A2264118D57A628648471442DC5F /* Frameworks */, 280 | BEAAB75AF46FB3A3F5968C1D0D6B9752 /* Resources */, 281 | ); 282 | buildRules = ( 283 | ); 284 | dependencies = ( 285 | ); 286 | name = YYRouter; 287 | productName = YYRouter; 288 | productReference = A0A7E69BA93C88615356CA796D72A6A2 /* YYRouter */; 289 | productType = "com.apple.product-type.framework"; 290 | }; 291 | 7F081B2439340EFEA3EF14BAA07603CA /* Pods-YYRouter_Tests */ = { 292 | isa = PBXNativeTarget; 293 | buildConfigurationList = 3497AE8FD88FF0AF4A6606DA17458DD7 /* Build configuration list for PBXNativeTarget "Pods-YYRouter_Tests" */; 294 | buildPhases = ( 295 | 53742E4CCDA46E8ED78470E598595E58 /* Headers */, 296 | BE49D8C278907FFD39936070CBD58EF2 /* Sources */, 297 | 42B5C7A6E2C75BF5AF1E25D2CAFD4D48 /* Frameworks */, 298 | 36E7691F39A7E44B2A3EBA6D835EA785 /* Resources */, 299 | ); 300 | buildRules = ( 301 | ); 302 | dependencies = ( 303 | 9E32E74137DDEDC669A24CF840A0F31A /* PBXTargetDependency */, 304 | ); 305 | name = "Pods-YYRouter_Tests"; 306 | productName = Pods_YYRouter_Tests; 307 | productReference = D3D2AE32DCBB78AE44F20AA2127A0ABB /* Pods-YYRouter_Tests */; 308 | productType = "com.apple.product-type.framework"; 309 | }; 310 | D06D6A543B4459353920D8EADC342D47 /* Pods-YYRouter_Example */ = { 311 | isa = PBXNativeTarget; 312 | buildConfigurationList = 30343B31F72D362078C113835BA6E3A1 /* Build configuration list for PBXNativeTarget "Pods-YYRouter_Example" */; 313 | buildPhases = ( 314 | 96334DDBBF5F2BF3111951856C980086 /* Headers */, 315 | EEDA0E62386E10F0FFCFCA5B95332783 /* Sources */, 316 | 9C474435936D69AB2CC84A299F62D5E8 /* Frameworks */, 317 | E37C52D05C22117C945C6CCD38D56E2C /* Resources */, 318 | ); 319 | buildRules = ( 320 | ); 321 | dependencies = ( 322 | 559D341F4EF7E9B349A9E93DCCDDDC86 /* PBXTargetDependency */, 323 | ); 324 | name = "Pods-YYRouter_Example"; 325 | productName = Pods_YYRouter_Example; 326 | productReference = EE5204D365EA584EC071174A5C6601AD /* Pods-YYRouter_Example */; 327 | productType = "com.apple.product-type.framework"; 328 | }; 329 | /* End PBXNativeTarget section */ 330 | 331 | /* Begin PBXProject section */ 332 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 333 | isa = PBXProject; 334 | attributes = { 335 | LastSwiftUpdateCheck = 1500; 336 | LastUpgradeCheck = 1500; 337 | }; 338 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 339 | compatibilityVersion = "Xcode 3.2"; 340 | developmentRegion = en; 341 | hasScannedForEncodings = 0; 342 | knownRegions = ( 343 | Base, 344 | en, 345 | ); 346 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 347 | productRefGroup = EF73E2FDCF04993B0FAA0ED35F0FDDC3 /* Products */; 348 | projectDirPath = ""; 349 | projectRoot = ""; 350 | targets = ( 351 | D06D6A543B4459353920D8EADC342D47 /* Pods-YYRouter_Example */, 352 | 7F081B2439340EFEA3EF14BAA07603CA /* Pods-YYRouter_Tests */, 353 | 39BC27EAB4476B45D31871B1B0F7F11A /* YYRouter */, 354 | ); 355 | }; 356 | /* End PBXProject section */ 357 | 358 | /* Begin PBXResourcesBuildPhase section */ 359 | 36E7691F39A7E44B2A3EBA6D835EA785 /* Resources */ = { 360 | isa = PBXResourcesBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | }; 366 | BEAAB75AF46FB3A3F5968C1D0D6B9752 /* Resources */ = { 367 | isa = PBXResourcesBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | ); 371 | runOnlyForDeploymentPostprocessing = 0; 372 | }; 373 | E37C52D05C22117C945C6CCD38D56E2C /* Resources */ = { 374 | isa = PBXResourcesBuildPhase; 375 | buildActionMask = 2147483647; 376 | files = ( 377 | ); 378 | runOnlyForDeploymentPostprocessing = 0; 379 | }; 380 | /* End PBXResourcesBuildPhase section */ 381 | 382 | /* Begin PBXSourcesBuildPhase section */ 383 | 9EBA4C1768052A30D92D43015E626A6F /* Sources */ = { 384 | isa = PBXSourcesBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | 1AFD6F88E67AC39FF794E0F8176C2961 /* YYRoutable.swift in Sources */, 388 | 46416F3F655910B33EEF8B874D41E83A /* YYRouter.swift in Sources */, 389 | F8219A8F710A0D7704B640F11FF9C83F /* YYRouter-dummy.m in Sources */, 390 | 733DBBC4BCCDEE029EEF2E66F5DDFEF8 /* YYRouterModel.swift in Sources */, 391 | 089DF33C734EB2AFD50E6237CA184C6D /* YYRouterUtil.swift in Sources */, 392 | ); 393 | runOnlyForDeploymentPostprocessing = 0; 394 | }; 395 | BE49D8C278907FFD39936070CBD58EF2 /* Sources */ = { 396 | isa = PBXSourcesBuildPhase; 397 | buildActionMask = 2147483647; 398 | files = ( 399 | A4D2D2ABF44FFF1960F10ACD17535143 /* Pods-YYRouter_Tests-dummy.m in Sources */, 400 | ); 401 | runOnlyForDeploymentPostprocessing = 0; 402 | }; 403 | EEDA0E62386E10F0FFCFCA5B95332783 /* Sources */ = { 404 | isa = PBXSourcesBuildPhase; 405 | buildActionMask = 2147483647; 406 | files = ( 407 | 092B4B63F8E423839400DB52B865AA2D /* Pods-YYRouter_Example-dummy.m in Sources */, 408 | ); 409 | runOnlyForDeploymentPostprocessing = 0; 410 | }; 411 | /* End PBXSourcesBuildPhase section */ 412 | 413 | /* Begin PBXTargetDependency section */ 414 | 559D341F4EF7E9B349A9E93DCCDDDC86 /* PBXTargetDependency */ = { 415 | isa = PBXTargetDependency; 416 | name = YYRouter; 417 | target = 39BC27EAB4476B45D31871B1B0F7F11A /* YYRouter */; 418 | targetProxy = 37069576535B30111757ED3A3B3315DC /* PBXContainerItemProxy */; 419 | }; 420 | 9E32E74137DDEDC669A24CF840A0F31A /* PBXTargetDependency */ = { 421 | isa = PBXTargetDependency; 422 | name = "Pods-YYRouter_Example"; 423 | target = D06D6A543B4459353920D8EADC342D47 /* Pods-YYRouter_Example */; 424 | targetProxy = 11A7A185F018C103464B4CDE4068C27A /* PBXContainerItemProxy */; 425 | }; 426 | /* End PBXTargetDependency section */ 427 | 428 | /* Begin XCBuildConfiguration section */ 429 | 08793AD05748CA5B0313C4271224F510 /* Debug */ = { 430 | isa = XCBuildConfiguration; 431 | baseConfigurationReference = F89157B2BE0F47A0EC38ED6281B96BD6 /* YYRouter.debug.xcconfig */; 432 | buildSettings = { 433 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 434 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 435 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 436 | CURRENT_PROJECT_VERSION = 1; 437 | DEFINES_MODULE = YES; 438 | DYLIB_COMPATIBILITY_VERSION = 1; 439 | DYLIB_CURRENT_VERSION = 1; 440 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 441 | GCC_PREFIX_HEADER = "Target Support Files/YYRouter/YYRouter-prefix.pch"; 442 | INFOPLIST_FILE = "Target Support Files/YYRouter/YYRouter-Info.plist"; 443 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 444 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 445 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 446 | MODULEMAP_FILE = "Target Support Files/YYRouter/YYRouter.modulemap"; 447 | PRODUCT_MODULE_NAME = YYRouter; 448 | PRODUCT_NAME = YYRouter; 449 | SDKROOT = iphoneos; 450 | SKIP_INSTALL = YES; 451 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 452 | SWIFT_VERSION = 5.0; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | VERSIONING_SYSTEM = "apple-generic"; 455 | VERSION_INFO_PREFIX = ""; 456 | }; 457 | name = Debug; 458 | }; 459 | 2297591CABF7EF6564DD81D380F9B08A /* Debug */ = { 460 | isa = XCBuildConfiguration; 461 | baseConfigurationReference = C390E58A2BAF7448E6974EED11AA06E8 /* Pods-YYRouter_Tests.debug.xcconfig */; 462 | buildSettings = { 463 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 464 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 465 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 466 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 467 | CURRENT_PROJECT_VERSION = 1; 468 | DEFINES_MODULE = YES; 469 | DYLIB_COMPATIBILITY_VERSION = 1; 470 | DYLIB_CURRENT_VERSION = 1; 471 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 472 | INFOPLIST_FILE = "Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests-Info.plist"; 473 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 474 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 475 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 476 | MACH_O_TYPE = staticlib; 477 | MODULEMAP_FILE = "Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests.modulemap"; 478 | OTHER_LDFLAGS = ""; 479 | OTHER_LIBTOOLFLAGS = ""; 480 | PODS_ROOT = "$(SRCROOT)"; 481 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 482 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 483 | SDKROOT = iphoneos; 484 | SKIP_INSTALL = YES; 485 | TARGETED_DEVICE_FAMILY = "1,2"; 486 | VERSIONING_SYSTEM = "apple-generic"; 487 | VERSION_INFO_PREFIX = ""; 488 | }; 489 | name = Debug; 490 | }; 491 | 25AD9454612BF454A1E3DC4CD4FA8C6D /* Debug */ = { 492 | isa = XCBuildConfiguration; 493 | buildSettings = { 494 | ALWAYS_SEARCH_USER_PATHS = NO; 495 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 496 | CLANG_ANALYZER_NONNULL = YES; 497 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 498 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 499 | CLANG_CXX_LIBRARY = "libc++"; 500 | CLANG_ENABLE_MODULES = YES; 501 | CLANG_ENABLE_OBJC_ARC = YES; 502 | CLANG_ENABLE_OBJC_WEAK = YES; 503 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 504 | CLANG_WARN_BOOL_CONVERSION = YES; 505 | CLANG_WARN_COMMA = YES; 506 | CLANG_WARN_CONSTANT_CONVERSION = YES; 507 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 508 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 509 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 510 | CLANG_WARN_EMPTY_BODY = YES; 511 | CLANG_WARN_ENUM_CONVERSION = YES; 512 | CLANG_WARN_INFINITE_RECURSION = YES; 513 | CLANG_WARN_INT_CONVERSION = YES; 514 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 515 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 516 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 517 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 518 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 519 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 520 | CLANG_WARN_STRICT_PROTOTYPES = YES; 521 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 522 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 523 | CLANG_WARN_UNREACHABLE_CODE = YES; 524 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 525 | COPY_PHASE_STRIP = NO; 526 | DEBUG_INFORMATION_FORMAT = dwarf; 527 | ENABLE_STRICT_OBJC_MSGSEND = YES; 528 | ENABLE_TESTABILITY = YES; 529 | GCC_C_LANGUAGE_STANDARD = gnu11; 530 | GCC_DYNAMIC_NO_PIC = NO; 531 | GCC_NO_COMMON_BLOCKS = YES; 532 | GCC_OPTIMIZATION_LEVEL = 0; 533 | GCC_PREPROCESSOR_DEFINITIONS = ( 534 | "POD_CONFIGURATION_DEBUG=1", 535 | "DEBUG=1", 536 | "$(inherited)", 537 | ); 538 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 539 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 540 | GCC_WARN_UNDECLARED_SELECTOR = YES; 541 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 542 | GCC_WARN_UNUSED_FUNCTION = YES; 543 | GCC_WARN_UNUSED_VARIABLE = YES; 544 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 545 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 546 | MTL_FAST_MATH = YES; 547 | ONLY_ACTIVE_ARCH = YES; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | STRIP_INSTALLED_PRODUCT = NO; 550 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 551 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 552 | SWIFT_VERSION = 5.0; 553 | SYMROOT = "${SRCROOT}/../build"; 554 | }; 555 | name = Debug; 556 | }; 557 | 2BA7585842F33E666A087CC6EB331EDD /* Release */ = { 558 | isa = XCBuildConfiguration; 559 | baseConfigurationReference = 3FCDCF1E40F5E0FE356E21E67105BAE5 /* YYRouter.release.xcconfig */; 560 | buildSettings = { 561 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 562 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 563 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 564 | CURRENT_PROJECT_VERSION = 1; 565 | DEFINES_MODULE = YES; 566 | DYLIB_COMPATIBILITY_VERSION = 1; 567 | DYLIB_CURRENT_VERSION = 1; 568 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 569 | GCC_PREFIX_HEADER = "Target Support Files/YYRouter/YYRouter-prefix.pch"; 570 | INFOPLIST_FILE = "Target Support Files/YYRouter/YYRouter-Info.plist"; 571 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 572 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 573 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 574 | MODULEMAP_FILE = "Target Support Files/YYRouter/YYRouter.modulemap"; 575 | PRODUCT_MODULE_NAME = YYRouter; 576 | PRODUCT_NAME = YYRouter; 577 | SDKROOT = iphoneos; 578 | SKIP_INSTALL = YES; 579 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 580 | SWIFT_VERSION = 5.0; 581 | TARGETED_DEVICE_FAMILY = "1,2"; 582 | VALIDATE_PRODUCT = YES; 583 | VERSIONING_SYSTEM = "apple-generic"; 584 | VERSION_INFO_PREFIX = ""; 585 | }; 586 | name = Release; 587 | }; 588 | 370D60466B4BDD1D7F075A023D4EC834 /* Debug */ = { 589 | isa = XCBuildConfiguration; 590 | baseConfigurationReference = 120942B5C9088C00830C8ED2DB42BC84 /* Pods-YYRouter_Example.debug.xcconfig */; 591 | buildSettings = { 592 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 593 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 594 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 595 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 596 | CURRENT_PROJECT_VERSION = 1; 597 | DEFINES_MODULE = YES; 598 | DYLIB_COMPATIBILITY_VERSION = 1; 599 | DYLIB_CURRENT_VERSION = 1; 600 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 601 | INFOPLIST_FILE = "Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example-Info.plist"; 602 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 603 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 604 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 605 | MACH_O_TYPE = staticlib; 606 | MODULEMAP_FILE = "Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example.modulemap"; 607 | OTHER_LDFLAGS = ""; 608 | OTHER_LIBTOOLFLAGS = ""; 609 | PODS_ROOT = "$(SRCROOT)"; 610 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 611 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 612 | SDKROOT = iphoneos; 613 | SKIP_INSTALL = YES; 614 | TARGETED_DEVICE_FAMILY = "1,2"; 615 | VERSIONING_SYSTEM = "apple-generic"; 616 | VERSION_INFO_PREFIX = ""; 617 | }; 618 | name = Debug; 619 | }; 620 | 84CA3EB2CFE75960C27B02EF13C6B75A /* Release */ = { 621 | isa = XCBuildConfiguration; 622 | baseConfigurationReference = 0A9E8698768B49363F848C3AF0D44D65 /* Pods-YYRouter_Example.release.xcconfig */; 623 | buildSettings = { 624 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 625 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 626 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 627 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 628 | CURRENT_PROJECT_VERSION = 1; 629 | DEFINES_MODULE = YES; 630 | DYLIB_COMPATIBILITY_VERSION = 1; 631 | DYLIB_CURRENT_VERSION = 1; 632 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 633 | INFOPLIST_FILE = "Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example-Info.plist"; 634 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 635 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 636 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 637 | MACH_O_TYPE = staticlib; 638 | MODULEMAP_FILE = "Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example.modulemap"; 639 | OTHER_LDFLAGS = ""; 640 | OTHER_LIBTOOLFLAGS = ""; 641 | PODS_ROOT = "$(SRCROOT)"; 642 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 643 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 644 | SDKROOT = iphoneos; 645 | SKIP_INSTALL = YES; 646 | TARGETED_DEVICE_FAMILY = "1,2"; 647 | VALIDATE_PRODUCT = YES; 648 | VERSIONING_SYSTEM = "apple-generic"; 649 | VERSION_INFO_PREFIX = ""; 650 | }; 651 | name = Release; 652 | }; 653 | ADED7F46BC84A3878793C40E3E4BBBF8 /* Release */ = { 654 | isa = XCBuildConfiguration; 655 | baseConfigurationReference = C750887FC7C11CDC2C96CADC56D145BD /* Pods-YYRouter_Tests.release.xcconfig */; 656 | buildSettings = { 657 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 658 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 659 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 660 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 661 | CURRENT_PROJECT_VERSION = 1; 662 | DEFINES_MODULE = YES; 663 | DYLIB_COMPATIBILITY_VERSION = 1; 664 | DYLIB_CURRENT_VERSION = 1; 665 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 666 | INFOPLIST_FILE = "Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests-Info.plist"; 667 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 668 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 669 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 670 | MACH_O_TYPE = staticlib; 671 | MODULEMAP_FILE = "Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests.modulemap"; 672 | OTHER_LDFLAGS = ""; 673 | OTHER_LIBTOOLFLAGS = ""; 674 | PODS_ROOT = "$(SRCROOT)"; 675 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 676 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 677 | SDKROOT = iphoneos; 678 | SKIP_INSTALL = YES; 679 | TARGETED_DEVICE_FAMILY = "1,2"; 680 | VALIDATE_PRODUCT = YES; 681 | VERSIONING_SYSTEM = "apple-generic"; 682 | VERSION_INFO_PREFIX = ""; 683 | }; 684 | name = Release; 685 | }; 686 | CA547D2C7E9A8A153DC2B27FBE00B112 /* Release */ = { 687 | isa = XCBuildConfiguration; 688 | buildSettings = { 689 | ALWAYS_SEARCH_USER_PATHS = NO; 690 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 691 | CLANG_ANALYZER_NONNULL = YES; 692 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 693 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 694 | CLANG_CXX_LIBRARY = "libc++"; 695 | CLANG_ENABLE_MODULES = YES; 696 | CLANG_ENABLE_OBJC_ARC = YES; 697 | CLANG_ENABLE_OBJC_WEAK = YES; 698 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 699 | CLANG_WARN_BOOL_CONVERSION = YES; 700 | CLANG_WARN_COMMA = YES; 701 | CLANG_WARN_CONSTANT_CONVERSION = YES; 702 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 703 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 704 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 705 | CLANG_WARN_EMPTY_BODY = YES; 706 | CLANG_WARN_ENUM_CONVERSION = YES; 707 | CLANG_WARN_INFINITE_RECURSION = YES; 708 | CLANG_WARN_INT_CONVERSION = YES; 709 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 710 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 711 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 712 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 713 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 714 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 715 | CLANG_WARN_STRICT_PROTOTYPES = YES; 716 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 717 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 718 | CLANG_WARN_UNREACHABLE_CODE = YES; 719 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 720 | COPY_PHASE_STRIP = NO; 721 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 722 | ENABLE_NS_ASSERTIONS = NO; 723 | ENABLE_STRICT_OBJC_MSGSEND = YES; 724 | GCC_C_LANGUAGE_STANDARD = gnu11; 725 | GCC_NO_COMMON_BLOCKS = YES; 726 | GCC_PREPROCESSOR_DEFINITIONS = ( 727 | "POD_CONFIGURATION_RELEASE=1", 728 | "$(inherited)", 729 | ); 730 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 731 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 732 | GCC_WARN_UNDECLARED_SELECTOR = YES; 733 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 734 | GCC_WARN_UNUSED_FUNCTION = YES; 735 | GCC_WARN_UNUSED_VARIABLE = YES; 736 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 737 | MTL_ENABLE_DEBUG_INFO = NO; 738 | MTL_FAST_MATH = YES; 739 | PRODUCT_NAME = "$(TARGET_NAME)"; 740 | STRIP_INSTALLED_PRODUCT = NO; 741 | SWIFT_COMPILATION_MODE = wholemodule; 742 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 743 | SWIFT_VERSION = 5.0; 744 | SYMROOT = "${SRCROOT}/../build"; 745 | }; 746 | name = Release; 747 | }; 748 | /* End XCBuildConfiguration section */ 749 | 750 | /* Begin XCConfigurationList section */ 751 | 30343B31F72D362078C113835BA6E3A1 /* Build configuration list for PBXNativeTarget "Pods-YYRouter_Example" */ = { 752 | isa = XCConfigurationList; 753 | buildConfigurations = ( 754 | 370D60466B4BDD1D7F075A023D4EC834 /* Debug */, 755 | 84CA3EB2CFE75960C27B02EF13C6B75A /* Release */, 756 | ); 757 | defaultConfigurationIsVisible = 0; 758 | defaultConfigurationName = Release; 759 | }; 760 | 3497AE8FD88FF0AF4A6606DA17458DD7 /* Build configuration list for PBXNativeTarget "Pods-YYRouter_Tests" */ = { 761 | isa = XCConfigurationList; 762 | buildConfigurations = ( 763 | 2297591CABF7EF6564DD81D380F9B08A /* Debug */, 764 | ADED7F46BC84A3878793C40E3E4BBBF8 /* Release */, 765 | ); 766 | defaultConfigurationIsVisible = 0; 767 | defaultConfigurationName = Release; 768 | }; 769 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 770 | isa = XCConfigurationList; 771 | buildConfigurations = ( 772 | 25AD9454612BF454A1E3DC4CD4FA8C6D /* Debug */, 773 | CA547D2C7E9A8A153DC2B27FBE00B112 /* Release */, 774 | ); 775 | defaultConfigurationIsVisible = 0; 776 | defaultConfigurationName = Release; 777 | }; 778 | E80A42BD3E0A02633CD06F97C8A8BC05 /* Build configuration list for PBXNativeTarget "YYRouter" */ = { 779 | isa = XCConfigurationList; 780 | buildConfigurations = ( 781 | 08793AD05748CA5B0313C4271224F510 /* Debug */, 782 | 2BA7585842F33E666A087CC6EB331EDD /* Release */, 783 | ); 784 | defaultConfigurationIsVisible = 0; 785 | defaultConfigurationName = Release; 786 | }; 787 | /* End XCConfigurationList section */ 788 | }; 789 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 790 | } 791 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_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-YYRouter_Example/Pods-YYRouter_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## YYRouter 5 | 6 | MIT License 7 | 8 | Copyright (c) 2021 yxh265 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_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 | MIT License 18 | 19 | Copyright (c) 2021 yxh265 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | YYRouter 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_YYRouter_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_YYRouter_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | BCSYMBOLMAP_DIR="BCSymbolMaps" 23 | 24 | 25 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 26 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 27 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 28 | 29 | # Copies and strips a vendored framework 30 | install_framework() 31 | { 32 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 33 | local source="${BUILT_PRODUCTS_DIR}/$1" 34 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 35 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 36 | elif [ -r "$1" ]; then 37 | local source="$1" 38 | fi 39 | 40 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 41 | 42 | if [ -L "${source}" ]; then 43 | echo "Symlinked..." 44 | source="$(readlink "${source}")" 45 | fi 46 | 47 | if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then 48 | # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied 49 | find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do 50 | echo "Installing $f" 51 | install_bcsymbolmap "$f" "$destination" 52 | rm "$f" 53 | done 54 | rmdir "${source}/${BCSYMBOLMAP_DIR}" 55 | fi 56 | 57 | # Use filter instead of exclude so missing patterns don't throw errors. 58 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 59 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 60 | 61 | local basename 62 | basename="$(basename -s .framework "$1")" 63 | binary="${destination}/${basename}.framework/${basename}" 64 | 65 | if ! [ -r "$binary" ]; then 66 | binary="${destination}/${basename}" 67 | elif [ -L "${binary}" ]; then 68 | echo "Destination binary is symlinked..." 69 | dirname="$(dirname "${binary}")" 70 | binary="${dirname}/$(readlink "${binary}")" 71 | fi 72 | 73 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 74 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 75 | strip_invalid_archs "$binary" 76 | fi 77 | 78 | # Resign the code if required by the build settings to avoid unstable apps 79 | code_sign_if_enabled "${destination}/$(basename "$1")" 80 | 81 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 82 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 83 | local swift_runtime_libs 84 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 85 | for lib in $swift_runtime_libs; do 86 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 87 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 88 | code_sign_if_enabled "${destination}/${lib}" 89 | done 90 | fi 91 | } 92 | # Copies and strips a vendored dSYM 93 | install_dsym() { 94 | local source="$1" 95 | warn_missing_arch=${2:-true} 96 | if [ -r "$source" ]; then 97 | # Copy the dSYM into the targets temp dir. 98 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 99 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 100 | 101 | local basename 102 | basename="$(basename -s .dSYM "$source")" 103 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 104 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 105 | 106 | # Strip invalid architectures from the dSYM. 107 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 108 | strip_invalid_archs "$binary" "$warn_missing_arch" 109 | fi 110 | if [[ $STRIP_BINARY_RETVAL == 0 ]]; then 111 | # Move the stripped file into its final destination. 112 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 113 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 114 | else 115 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 116 | mkdir -p "${DWARF_DSYM_FOLDER_PATH}" 117 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 118 | fi 119 | fi 120 | } 121 | 122 | # Used as a return value for each invocation of `strip_invalid_archs` function. 123 | STRIP_BINARY_RETVAL=0 124 | 125 | # Strip invalid architectures 126 | strip_invalid_archs() { 127 | binary="$1" 128 | warn_missing_arch=${2:-true} 129 | # Get architectures for current target binary 130 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 131 | # Intersect them with the architectures we are building for 132 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 133 | # If there are no archs supported by this binary then warn the user 134 | if [[ -z "$intersected_archs" ]]; then 135 | if [[ "$warn_missing_arch" == "true" ]]; then 136 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 137 | fi 138 | STRIP_BINARY_RETVAL=1 139 | return 140 | fi 141 | stripped="" 142 | for arch in $binary_archs; do 143 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 144 | # Strip non-valid architectures in-place 145 | lipo -remove "$arch" -output "$binary" "$binary" 146 | stripped="$stripped $arch" 147 | fi 148 | done 149 | if [[ "$stripped" ]]; then 150 | echo "Stripped $binary of architectures:$stripped" 151 | fi 152 | STRIP_BINARY_RETVAL=0 153 | } 154 | 155 | # Copies the bcsymbolmap files of a vendored framework 156 | install_bcsymbolmap() { 157 | local bcsymbolmap_path="$1" 158 | local destination="${BUILT_PRODUCTS_DIR}" 159 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 160 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 161 | } 162 | 163 | # Signs a framework with the provided identity 164 | code_sign_if_enabled() { 165 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 166 | # Use the current code_sign_identity 167 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 168 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 169 | 170 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 171 | code_sign_cmd="$code_sign_cmd &" 172 | fi 173 | echo "$code_sign_cmd" 174 | eval "$code_sign_cmd" 175 | fi 176 | } 177 | 178 | if [[ "$CONFIGURATION" == "Debug" ]]; then 179 | install_framework "${BUILT_PRODUCTS_DIR}/YYRouter/YYRouter.framework" 180 | fi 181 | if [[ "$CONFIGURATION" == "Release" ]]; then 182 | install_framework "${BUILT_PRODUCTS_DIR}/YYRouter/YYRouter.framework" 183 | fi 184 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 185 | wait 186 | fi 187 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_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_YYRouter_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_YYRouter_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/YYRouter" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/YYRouter/YYRouter.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 8 | OTHER_LDFLAGS = $(inherited) -framework "YYRouter" 9 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 10 | PODS_BUILD_DIR = ${BUILD_DIR} 11 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 12 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 13 | PODS_ROOT = ${SRCROOT}/Pods 14 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 15 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_YYRouter_Example { 2 | umbrella header "Pods-YYRouter_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/YYRouter" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/YYRouter/YYRouter.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 8 | OTHER_LDFLAGS = $(inherited) -framework "YYRouter" 9 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 10 | PODS_BUILD_DIR = ${BUILD_DIR} 11 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 12 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 13 | PODS_ROOT = ${SRCROOT}/Pods 14 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 15 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_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-YYRouter_Tests/Pods-YYRouter_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-YYRouter_Tests/Pods-YYRouter_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-YYRouter_Tests/Pods-YYRouter_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_YYRouter_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_YYRouter_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_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_YYRouter_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_YYRouter_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/YYRouter" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/YYRouter/YYRouter.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "YYRouter" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_YYRouter_Tests { 2 | umbrella header "Pods-YYRouter_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/YYRouter" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/YYRouter/YYRouter.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "YYRouter" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/YYRouter/YYRouter-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.0.5 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/YYRouter/YYRouter-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_YYRouter : NSObject 3 | @end 4 | @implementation PodsDummy_YYRouter 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/YYRouter/YYRouter-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/YYRouter/YYRouter-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 YYRouterVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char YYRouterVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/YYRouter/YYRouter.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/YYRouter 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 5 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 12 | SKIP_INSTALL = YES 13 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/YYRouter/YYRouter.modulemap: -------------------------------------------------------------------------------- 1 | framework module YYRouter { 2 | umbrella header "YYRouter-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/YYRouter/YYRouter.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/YYRouter 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 5 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 12 | SKIP_INSTALL = YES 13 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 14 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import YYRouter 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Example/YYRouter.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 26DC71C37E272F986A602A9A /* Pods_YYRouter_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 969CAE12C46B43A30B6298E3 /* Pods_YYRouter_Example.framework */; }; 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 | C8EC3CEA3B8A751A7FF90CA7 /* Pods_YYRouter_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8597C8B969E134781F28EFD4 /* Pods_YYRouter_Tests.framework */; }; 18 | D31C52C3274B39CD00FDD832 /* BController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D31C52C0274B39CD00FDD832 /* BController.swift */; }; 19 | D31C52C4274B39CD00FDD832 /* WebController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D31C52C1274B39CD00FDD832 /* WebController.swift */; }; 20 | D31C52C5274B39CD00FDD832 /* AController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D31C52C2274B39CD00FDD832 /* AController.swift */; }; 21 | D3B76EDF28C9BA85002908BA /* CController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3B76EDE28C9BA85002908BA /* CController.swift */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 30 | remoteInfo = YYRouter; 31 | }; 32 | /* End PBXContainerItemProxy section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 10836CFAC19208C048E58D5A /* Pods-YYRouter_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-YYRouter_Tests.release.xcconfig"; path = "Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests.release.xcconfig"; sourceTree = ""; }; 36 | 11C0FE730FDADBBB924D79FA /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 37 | 1A158A048C78D8C54B0CDF4B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 38 | 607FACD01AFB9204008FA782 /* YYRouter_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YYRouter_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 42 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 44 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 45 | 607FACE51AFB9204008FA782 /* YYRouter_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YYRouter_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 48 | 70F38F925551CFD033010046 /* Pods-YYRouter_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-YYRouter_Tests.debug.xcconfig"; path = "Target Support Files/Pods-YYRouter_Tests/Pods-YYRouter_Tests.debug.xcconfig"; sourceTree = ""; }; 49 | 8597C8B969E134781F28EFD4 /* Pods_YYRouter_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_YYRouter_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 8C8DB42601A1C8DCC616B39A /* YYRouter.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = YYRouter.podspec; path = ../YYRouter.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 51 | 969CAE12C46B43A30B6298E3 /* Pods_YYRouter_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_YYRouter_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | BB564845AB08B88A1CA6CA96 /* Pods-YYRouter_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-YYRouter_Example.release.xcconfig"; path = "Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example.release.xcconfig"; sourceTree = ""; }; 53 | D2ED36FDE9FEC980A8A0AF3C /* Pods-YYRouter_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-YYRouter_Example.debug.xcconfig"; path = "Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example.debug.xcconfig"; sourceTree = ""; }; 54 | D31C52C0274B39CD00FDD832 /* BController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BController.swift; sourceTree = ""; }; 55 | D31C52C1274B39CD00FDD832 /* WebController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebController.swift; sourceTree = ""; }; 56 | D31C52C2274B39CD00FDD832 /* AController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AController.swift; sourceTree = ""; }; 57 | D3B76EDE28C9BA85002908BA /* CController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CController.swift; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 26DC71C37E272F986A602A9A /* Pods_YYRouter_Example.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | C8EC3CEA3B8A751A7FF90CA7 /* Pods_YYRouter_Tests.framework in Frameworks */, 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | /* End PBXFrameworksBuildPhase section */ 78 | 79 | /* Begin PBXGroup section */ 80 | 607FACC71AFB9204008FA782 = { 81 | isa = PBXGroup; 82 | children = ( 83 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 84 | 607FACD21AFB9204008FA782 /* Example for YYRouter */, 85 | 607FACE81AFB9204008FA782 /* Tests */, 86 | 607FACD11AFB9204008FA782 /* Products */, 87 | F6072AA268A348EB2E8C91F7 /* Pods */, 88 | D96CC1DEE8BE7FA13C64D759 /* Frameworks */, 89 | ); 90 | sourceTree = ""; 91 | }; 92 | 607FACD11AFB9204008FA782 /* Products */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 607FACD01AFB9204008FA782 /* YYRouter_Example.app */, 96 | 607FACE51AFB9204008FA782 /* YYRouter_Tests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | 607FACD21AFB9204008FA782 /* Example for YYRouter */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 105 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 106 | D31C52C2274B39CD00FDD832 /* AController.swift */, 107 | D31C52C0274B39CD00FDD832 /* BController.swift */, 108 | D3B76EDE28C9BA85002908BA /* CController.swift */, 109 | D31C52C1274B39CD00FDD832 /* WebController.swift */, 110 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 111 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 112 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 113 | 607FACD31AFB9204008FA782 /* Supporting Files */, 114 | ); 115 | name = "Example for YYRouter"; 116 | path = YYRouter; 117 | sourceTree = ""; 118 | }; 119 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 607FACD41AFB9204008FA782 /* Info.plist */, 123 | ); 124 | name = "Supporting Files"; 125 | sourceTree = ""; 126 | }; 127 | 607FACE81AFB9204008FA782 /* Tests */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 131 | 607FACE91AFB9204008FA782 /* Supporting Files */, 132 | ); 133 | path = Tests; 134 | sourceTree = ""; 135 | }; 136 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 607FACEA1AFB9204008FA782 /* Info.plist */, 140 | ); 141 | name = "Supporting Files"; 142 | sourceTree = ""; 143 | }; 144 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 8C8DB42601A1C8DCC616B39A /* YYRouter.podspec */, 148 | 1A158A048C78D8C54B0CDF4B /* README.md */, 149 | 11C0FE730FDADBBB924D79FA /* LICENSE */, 150 | ); 151 | name = "Podspec Metadata"; 152 | sourceTree = ""; 153 | }; 154 | D96CC1DEE8BE7FA13C64D759 /* Frameworks */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 969CAE12C46B43A30B6298E3 /* Pods_YYRouter_Example.framework */, 158 | 8597C8B969E134781F28EFD4 /* Pods_YYRouter_Tests.framework */, 159 | ); 160 | name = Frameworks; 161 | sourceTree = ""; 162 | }; 163 | F6072AA268A348EB2E8C91F7 /* Pods */ = { 164 | isa = PBXGroup; 165 | children = ( 166 | D2ED36FDE9FEC980A8A0AF3C /* Pods-YYRouter_Example.debug.xcconfig */, 167 | BB564845AB08B88A1CA6CA96 /* Pods-YYRouter_Example.release.xcconfig */, 168 | 70F38F925551CFD033010046 /* Pods-YYRouter_Tests.debug.xcconfig */, 169 | 10836CFAC19208C048E58D5A /* Pods-YYRouter_Tests.release.xcconfig */, 170 | ); 171 | path = Pods; 172 | sourceTree = ""; 173 | }; 174 | /* End PBXGroup section */ 175 | 176 | /* Begin PBXNativeTarget section */ 177 | 607FACCF1AFB9204008FA782 /* YYRouter_Example */ = { 178 | isa = PBXNativeTarget; 179 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "YYRouter_Example" */; 180 | buildPhases = ( 181 | 4D8C30F606107442C00E8935 /* [CP] Check Pods Manifest.lock */, 182 | 607FACCC1AFB9204008FA782 /* Sources */, 183 | 607FACCD1AFB9204008FA782 /* Frameworks */, 184 | 607FACCE1AFB9204008FA782 /* Resources */, 185 | 845CD195467C653F8D7DE7AD /* [CP] Embed Pods Frameworks */, 186 | ); 187 | buildRules = ( 188 | ); 189 | dependencies = ( 190 | ); 191 | name = YYRouter_Example; 192 | productName = YYRouter; 193 | productReference = 607FACD01AFB9204008FA782 /* YYRouter_Example.app */; 194 | productType = "com.apple.product-type.application"; 195 | }; 196 | 607FACE41AFB9204008FA782 /* YYRouter_Tests */ = { 197 | isa = PBXNativeTarget; 198 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "YYRouter_Tests" */; 199 | buildPhases = ( 200 | BE55DD99253AF3D2A88D3A2D /* [CP] Check Pods Manifest.lock */, 201 | 607FACE11AFB9204008FA782 /* Sources */, 202 | 607FACE21AFB9204008FA782 /* Frameworks */, 203 | 607FACE31AFB9204008FA782 /* Resources */, 204 | ); 205 | buildRules = ( 206 | ); 207 | dependencies = ( 208 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 209 | ); 210 | name = YYRouter_Tests; 211 | productName = Tests; 212 | productReference = 607FACE51AFB9204008FA782 /* YYRouter_Tests.xctest */; 213 | productType = "com.apple.product-type.bundle.unit-test"; 214 | }; 215 | /* End PBXNativeTarget section */ 216 | 217 | /* Begin PBXProject section */ 218 | 607FACC81AFB9204008FA782 /* Project object */ = { 219 | isa = PBXProject; 220 | attributes = { 221 | LastSwiftUpdateCheck = 0830; 222 | LastUpgradeCheck = 0830; 223 | ORGANIZATIONNAME = CocoaPods; 224 | TargetAttributes = { 225 | 607FACCF1AFB9204008FA782 = { 226 | CreatedOnToolsVersion = 6.3.1; 227 | LastSwiftMigration = 0900; 228 | }; 229 | 607FACE41AFB9204008FA782 = { 230 | CreatedOnToolsVersion = 6.3.1; 231 | LastSwiftMigration = 0900; 232 | TestTargetID = 607FACCF1AFB9204008FA782; 233 | }; 234 | }; 235 | }; 236 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "YYRouter" */; 237 | compatibilityVersion = "Xcode 3.2"; 238 | developmentRegion = English; 239 | hasScannedForEncodings = 0; 240 | knownRegions = ( 241 | English, 242 | en, 243 | Base, 244 | ); 245 | mainGroup = 607FACC71AFB9204008FA782; 246 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 247 | projectDirPath = ""; 248 | projectRoot = ""; 249 | targets = ( 250 | 607FACCF1AFB9204008FA782 /* YYRouter_Example */, 251 | 607FACE41AFB9204008FA782 /* YYRouter_Tests */, 252 | ); 253 | }; 254 | /* End PBXProject section */ 255 | 256 | /* Begin PBXResourcesBuildPhase section */ 257 | 607FACCE1AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 262 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 263 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | 607FACE31AFB9204008FA782 /* Resources */ = { 268 | isa = PBXResourcesBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | /* End PBXResourcesBuildPhase section */ 275 | 276 | /* Begin PBXShellScriptBuildPhase section */ 277 | 4D8C30F606107442C00E8935 /* [CP] Check Pods Manifest.lock */ = { 278 | isa = PBXShellScriptBuildPhase; 279 | buildActionMask = 2147483647; 280 | files = ( 281 | ); 282 | inputFileListPaths = ( 283 | ); 284 | inputPaths = ( 285 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 286 | "${PODS_ROOT}/Manifest.lock", 287 | ); 288 | name = "[CP] Check Pods Manifest.lock"; 289 | outputFileListPaths = ( 290 | ); 291 | outputPaths = ( 292 | "$(DERIVED_FILE_DIR)/Pods-YYRouter_Example-checkManifestLockResult.txt", 293 | ); 294 | runOnlyForDeploymentPostprocessing = 0; 295 | shellPath = /bin/sh; 296 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 297 | showEnvVarsInLog = 0; 298 | }; 299 | 845CD195467C653F8D7DE7AD /* [CP] Embed Pods Frameworks */ = { 300 | isa = PBXShellScriptBuildPhase; 301 | buildActionMask = 2147483647; 302 | files = ( 303 | ); 304 | inputPaths = ( 305 | "${PODS_ROOT}/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example-frameworks.sh", 306 | "${BUILT_PRODUCTS_DIR}/YYRouter/YYRouter.framework", 307 | ); 308 | name = "[CP] Embed Pods Frameworks"; 309 | outputPaths = ( 310 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYRouter.framework", 311 | ); 312 | runOnlyForDeploymentPostprocessing = 0; 313 | shellPath = /bin/sh; 314 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-YYRouter_Example/Pods-YYRouter_Example-frameworks.sh\"\n"; 315 | showEnvVarsInLog = 0; 316 | }; 317 | BE55DD99253AF3D2A88D3A2D /* [CP] Check Pods Manifest.lock */ = { 318 | isa = PBXShellScriptBuildPhase; 319 | buildActionMask = 2147483647; 320 | files = ( 321 | ); 322 | inputFileListPaths = ( 323 | ); 324 | inputPaths = ( 325 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 326 | "${PODS_ROOT}/Manifest.lock", 327 | ); 328 | name = "[CP] Check Pods Manifest.lock"; 329 | outputFileListPaths = ( 330 | ); 331 | outputPaths = ( 332 | "$(DERIVED_FILE_DIR)/Pods-YYRouter_Tests-checkManifestLockResult.txt", 333 | ); 334 | runOnlyForDeploymentPostprocessing = 0; 335 | shellPath = /bin/sh; 336 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 337 | showEnvVarsInLog = 0; 338 | }; 339 | /* End PBXShellScriptBuildPhase section */ 340 | 341 | /* Begin PBXSourcesBuildPhase section */ 342 | 607FACCC1AFB9204008FA782 /* Sources */ = { 343 | isa = PBXSourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | D31C52C4274B39CD00FDD832 /* WebController.swift in Sources */, 347 | D31C52C5274B39CD00FDD832 /* AController.swift in Sources */, 348 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 349 | D31C52C3274B39CD00FDD832 /* BController.swift in Sources */, 350 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 351 | D3B76EDF28C9BA85002908BA /* CController.swift in Sources */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 607FACE11AFB9204008FA782 /* Sources */ = { 356 | isa = PBXSourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | /* End PBXSourcesBuildPhase section */ 364 | 365 | /* Begin PBXTargetDependency section */ 366 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 367 | isa = PBXTargetDependency; 368 | target = 607FACCF1AFB9204008FA782 /* YYRouter_Example */; 369 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 370 | }; 371 | /* End PBXTargetDependency section */ 372 | 373 | /* Begin PBXVariantGroup section */ 374 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 375 | isa = PBXVariantGroup; 376 | children = ( 377 | 607FACDA1AFB9204008FA782 /* Base */, 378 | ); 379 | name = Main.storyboard; 380 | sourceTree = ""; 381 | }; 382 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 383 | isa = PBXVariantGroup; 384 | children = ( 385 | 607FACDF1AFB9204008FA782 /* Base */, 386 | ); 387 | name = LaunchScreen.xib; 388 | sourceTree = ""; 389 | }; 390 | /* End PBXVariantGroup section */ 391 | 392 | /* Begin XCBuildConfiguration section */ 393 | 607FACED1AFB9204008FA782 /* Debug */ = { 394 | isa = XCBuildConfiguration; 395 | buildSettings = { 396 | ALWAYS_SEARCH_USER_PATHS = NO; 397 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 398 | CLANG_CXX_LIBRARY = "libc++"; 399 | CLANG_ENABLE_MODULES = YES; 400 | CLANG_ENABLE_OBJC_ARC = YES; 401 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 402 | CLANG_WARN_BOOL_CONVERSION = YES; 403 | CLANG_WARN_COMMA = YES; 404 | CLANG_WARN_CONSTANT_CONVERSION = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 406 | CLANG_WARN_EMPTY_BODY = YES; 407 | CLANG_WARN_ENUM_CONVERSION = YES; 408 | CLANG_WARN_INFINITE_RECURSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 412 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 413 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 414 | CLANG_WARN_STRICT_PROTOTYPES = YES; 415 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 416 | CLANG_WARN_UNREACHABLE_CODE = YES; 417 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 418 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 419 | COPY_PHASE_STRIP = NO; 420 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | ENABLE_TESTABILITY = YES; 423 | GCC_C_LANGUAGE_STANDARD = gnu99; 424 | GCC_DYNAMIC_NO_PIC = NO; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_OPTIMIZATION_LEVEL = 0; 427 | GCC_PREPROCESSOR_DEFINITIONS = ( 428 | "DEBUG=1", 429 | "$(inherited)", 430 | ); 431 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 432 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 433 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 434 | GCC_WARN_UNDECLARED_SELECTOR = YES; 435 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 436 | GCC_WARN_UNUSED_FUNCTION = YES; 437 | GCC_WARN_UNUSED_VARIABLE = YES; 438 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 439 | MTL_ENABLE_DEBUG_INFO = YES; 440 | ONLY_ACTIVE_ARCH = YES; 441 | SDKROOT = iphoneos; 442 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 443 | }; 444 | name = Debug; 445 | }; 446 | 607FACEE1AFB9204008FA782 /* Release */ = { 447 | isa = XCBuildConfiguration; 448 | buildSettings = { 449 | ALWAYS_SEARCH_USER_PATHS = NO; 450 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 451 | CLANG_CXX_LIBRARY = "libc++"; 452 | CLANG_ENABLE_MODULES = YES; 453 | CLANG_ENABLE_OBJC_ARC = YES; 454 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 455 | CLANG_WARN_BOOL_CONVERSION = YES; 456 | CLANG_WARN_COMMA = YES; 457 | CLANG_WARN_CONSTANT_CONVERSION = YES; 458 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 459 | CLANG_WARN_EMPTY_BODY = YES; 460 | CLANG_WARN_ENUM_CONVERSION = YES; 461 | CLANG_WARN_INFINITE_RECURSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 464 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 465 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 466 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 467 | CLANG_WARN_STRICT_PROTOTYPES = YES; 468 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 469 | CLANG_WARN_UNREACHABLE_CODE = YES; 470 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 471 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 472 | COPY_PHASE_STRIP = NO; 473 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 474 | ENABLE_NS_ASSERTIONS = NO; 475 | ENABLE_STRICT_OBJC_MSGSEND = YES; 476 | GCC_C_LANGUAGE_STANDARD = gnu99; 477 | GCC_NO_COMMON_BLOCKS = YES; 478 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 479 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 480 | GCC_WARN_UNDECLARED_SELECTOR = YES; 481 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 482 | GCC_WARN_UNUSED_FUNCTION = YES; 483 | GCC_WARN_UNUSED_VARIABLE = YES; 484 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 485 | MTL_ENABLE_DEBUG_INFO = NO; 486 | SDKROOT = iphoneos; 487 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 488 | VALIDATE_PRODUCT = YES; 489 | }; 490 | name = Release; 491 | }; 492 | 607FACF01AFB9204008FA782 /* Debug */ = { 493 | isa = XCBuildConfiguration; 494 | baseConfigurationReference = D2ED36FDE9FEC980A8A0AF3C /* Pods-YYRouter_Example.debug.xcconfig */; 495 | buildSettings = { 496 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 497 | INFOPLIST_FILE = YYRouter/Info.plist; 498 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 499 | MODULE_NAME = ExampleApp; 500 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 503 | SWIFT_VERSION = 4.0; 504 | }; 505 | name = Debug; 506 | }; 507 | 607FACF11AFB9204008FA782 /* Release */ = { 508 | isa = XCBuildConfiguration; 509 | baseConfigurationReference = BB564845AB08B88A1CA6CA96 /* Pods-YYRouter_Example.release.xcconfig */; 510 | buildSettings = { 511 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 512 | INFOPLIST_FILE = YYRouter/Info.plist; 513 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 514 | MODULE_NAME = ExampleApp; 515 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 516 | PRODUCT_NAME = "$(TARGET_NAME)"; 517 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 518 | SWIFT_VERSION = 4.0; 519 | }; 520 | name = Release; 521 | }; 522 | 607FACF31AFB9204008FA782 /* Debug */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = 70F38F925551CFD033010046 /* Pods-YYRouter_Tests.debug.xcconfig */; 525 | buildSettings = { 526 | FRAMEWORK_SEARCH_PATHS = ( 527 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 528 | "$(inherited)", 529 | ); 530 | GCC_PREPROCESSOR_DEFINITIONS = ( 531 | "DEBUG=1", 532 | "$(inherited)", 533 | ); 534 | INFOPLIST_FILE = Tests/Info.plist; 535 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 536 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 537 | PRODUCT_NAME = "$(TARGET_NAME)"; 538 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 539 | SWIFT_VERSION = 4.0; 540 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/YYRouter_Example.app/YYRouter_Example"; 541 | }; 542 | name = Debug; 543 | }; 544 | 607FACF41AFB9204008FA782 /* Release */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = 10836CFAC19208C048E58D5A /* Pods-YYRouter_Tests.release.xcconfig */; 547 | buildSettings = { 548 | FRAMEWORK_SEARCH_PATHS = ( 549 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 550 | "$(inherited)", 551 | ); 552 | INFOPLIST_FILE = Tests/Info.plist; 553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 554 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 555 | PRODUCT_NAME = "$(TARGET_NAME)"; 556 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 557 | SWIFT_VERSION = 4.0; 558 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/YYRouter_Example.app/YYRouter_Example"; 559 | }; 560 | name = Release; 561 | }; 562 | /* End XCBuildConfiguration section */ 563 | 564 | /* Begin XCConfigurationList section */ 565 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "YYRouter" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 607FACED1AFB9204008FA782 /* Debug */, 569 | 607FACEE1AFB9204008FA782 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "YYRouter_Example" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 607FACF01AFB9204008FA782 /* Debug */, 578 | 607FACF11AFB9204008FA782 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "YYRouter_Tests" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 607FACF31AFB9204008FA782 /* Debug */, 587 | 607FACF41AFB9204008FA782 /* Release */, 588 | ); 589 | defaultConfigurationIsVisible = 0; 590 | defaultConfigurationName = Release; 591 | }; 592 | /* End XCConfigurationList section */ 593 | }; 594 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 595 | } 596 | -------------------------------------------------------------------------------- /Example/YYRouter.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/YYRouter.xcodeproj/xcshareddata/xcschemes/YYRouter-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/YYRouter.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/YYRouter.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/YYRouter/AController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AController.swift 3 | // 4 | // Created by yxh265 on 2021/7/21. 5 | // 6 | 7 | import UIKit 8 | import YYRouter 9 | class AController: UIViewController { 10 | 11 | override func viewDidLoad() { 12 | super.viewDidLoad() 13 | self.title = "A page" 14 | self.view.backgroundColor = .green 15 | 16 | var button = UIButton() 17 | button.frame = CGRect(x: 100, y: 100, width: 200, height: 40) 18 | button.setTitle("跳 B 原生页面", for: .normal) 19 | button.backgroundColor = .gray 20 | button.addTarget(self, action: #selector(buttonAction1), for: .touchUpInside) 21 | self.view.addSubview(button) 22 | 23 | button = UIButton() 24 | button.frame = CGRect(x: 100, y: 200, width: 200, height: 40) 25 | button.setTitle("跳 baidu 网页", for: .normal) 26 | button.backgroundColor = .red 27 | button.addTarget(self, action: #selector(buttonAction2), for: .touchUpInside) 28 | self.view.addSubview(button) 29 | } 30 | 31 | @objc func buttonAction1() { 32 | YYRouter.pushTo(jumpParams: ["to": "native://view/BController", "name": "1"]) 33 | } 34 | @objc func buttonAction2() { 35 | YYRouter.pushTo(jumpParams: ["to": "https://www.baidu.com", "value": "2"]) 36 | } 37 | } 38 | 39 | // 实现路由协议,让自己支持路由跳转。 40 | extension AController: YYRoutable { 41 | // 返回一个路由协议的实例 42 | static func createInstance(params: [String : Any]) -> YYRoutable { 43 | return AController() 44 | } 45 | } 46 | 47 | // 添加路由表 48 | extension YYRouter { 49 | @objc func router_AController() -> YYRouterModel { 50 | return YYRouterModel(to: "native://view/AController", routerClass: AController.self) 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Example/YYRouter/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // YYRouter 4 | // 5 | // Created by yxh265 on 2021/7/21. 6 | // 7 | 8 | import UIKit 9 | 10 | @UIApplicationMain 11 | class AppDelegate: UIResponder, UIApplicationDelegate { 12 | 13 | var window: UIWindow? 14 | 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | func applicationWillResignActive(_ application: UIApplication) { 22 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 23 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 24 | } 25 | 26 | func applicationDidEnterBackground(_ application: UIApplication) { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | func applicationWillEnterForeground(_ application: UIApplication) { 32 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 33 | } 34 | 35 | func applicationDidBecomeActive(_ application: UIApplication) { 36 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 37 | } 38 | 39 | func applicationWillTerminate(_ application: UIApplication) { 40 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 41 | } 42 | 43 | 44 | } 45 | 46 | -------------------------------------------------------------------------------- /Example/YYRouter/BController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BController.swift 3 | // 4 | // Created by yxh265 on 2021/7/21. 5 | // 6 | 7 | import UIKit 8 | import YYRouter 9 | class BController: UIViewController { 10 | 11 | override func viewDidLoad() { 12 | super.viewDidLoad() 13 | 14 | self.title = "B page" 15 | self.view.backgroundColor = .blue 16 | 17 | var button = UIButton() 18 | button.frame = CGRect(x: 100, y: 100, width: 200, height: 40) 19 | button.setTitle("跳 A 原生页面", for: .normal) 20 | button.backgroundColor = .gray 21 | button.addTarget(self, action: #selector(buttonAction1), for: .touchUpInside) 22 | self.view.addSubview(button) 23 | 24 | button = UIButton() 25 | button.frame = CGRect(x: 100, y: 200, width: 200, height: 40) 26 | button.setTitle("跳 qq 网页", for: .normal) 27 | button.backgroundColor = .red 28 | button.addTarget(self, action: #selector(buttonAction2), for: .touchUpInside) 29 | self.view.addSubview(button) 30 | 31 | button = UIButton() 32 | button.frame = CGRect(x: 100, y: 300, width: 200, height: 40) 33 | button.setTitle("跳 C 原生页面", for: .normal) 34 | button.backgroundColor = .gray 35 | button.addTarget(self, action: #selector(buttonAction3), for: .touchUpInside) 36 | self.view.addSubview(button) 37 | } 38 | 39 | @objc func buttonAction1() { 40 | YYRouter.pushTo(jumpParams: ["to": "native://view/AController", "name": "1"]) 41 | } 42 | @objc func buttonAction2() { 43 | YYRouter.pushTo(jumpParams: ["to": "https://www.qq.com", "value": "2"]) 44 | } 45 | @objc func buttonAction3() { 46 | YYRouter.pushTo(jumpParams: ["to": "native://view/CController", "title": "定制跳转"]) 47 | } 48 | } 49 | 50 | // 实现路由协议,让自己支持路由跳转。 51 | extension BController: YYRoutable { 52 | // 返回一个路由协议的实例 53 | static func createInstance(params: [String : Any]) -> YYRoutable { 54 | return BController() 55 | } 56 | } 57 | 58 | // 添加路由表 59 | extension YYRouter { 60 | @objc func router_BController() -> YYRouterModel { 61 | return YYRouterModel(to: "native://view/BController", routerClass: BController.self) 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Example/YYRouter/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/YYRouter/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/YYRouter/CController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CController.swift 3 | // YYRouter_Example 4 | // 5 | // Created by yxh265 on 2022/9/8. 6 | // 7 | 8 | import UIKit 9 | import YYRouter 10 | 11 | class CController: UIViewController { 12 | var titleString: String = "" 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | self.title = titleString 17 | self.view.backgroundColor = .yellow 18 | 19 | } 20 | } 21 | 22 | // 实现路由协议,让自己支持路由跳转。 23 | extension CController: YYRoutable { 24 | // 返回一个路由协议的实例 25 | static func createInstance(params: [String : Any]) -> YYRoutable { 26 | return CController() 27 | } 28 | 29 | // 如果有特殊逻辑,可以自己实现路由做特殊跳转 30 | func executeRouter(params: [String: Any] = [:], navRootVC: UIViewController? = nil) { 31 | print("====跳转逻辑自己写") 32 | let controller = CController() 33 | controller.titleString = params["title"] as? String ?? "" // 路由传参数 34 | 35 | if let rootVC = YYRouterUtil.getNavigationController(navRootVC: navRootVC) { 36 | rootVC.pushViewController(controller, animated: true) 37 | } 38 | } 39 | } 40 | 41 | // 添加路由表 42 | extension YYRouter { 43 | @objc func router_CController() -> YYRouterModel { 44 | return YYRouterModel(to: "native://view/CController", routerClass: CController.self) 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Example/YYRouter/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/YYRouter/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/YYRouter/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // 4 | // Created by yxh265 on 2021/7/21. 5 | // 6 | 7 | import Foundation 8 | import UIKit 9 | import YYRouter 10 | class ViewController: UIViewController { 11 | 12 | override func viewDidLoad() { 13 | super.viewDidLoad() 14 | 15 | self.view.backgroundColor = .white 16 | 17 | let button = UIButton() 18 | button.frame = CGRect(x: 100, y: 100, width: 200, height: 40) 19 | button.setTitle("跳 A 原生页面", for: .normal) 20 | button.backgroundColor = .gray 21 | button.addTarget(self, action: #selector(buttonAction1), for: .touchUpInside) 22 | self.view.addSubview(button) 23 | } 24 | 25 | @objc func buttonAction1() { 26 | YYRouter.pushTo(jumpParams: ["to": "native://view/AController", "name": "1"]) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Example/YYRouter/WebController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WebController.swift 3 | // 4 | // Created by yxh265 on 2021/11/17. 5 | // 6 | 7 | import UIKit 8 | import WebKit 9 | import YYRouter 10 | 11 | class WebController: UIViewController { 12 | var webView: WKWebView! 13 | var url: String = "" 14 | var value: String = "" 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | self.title = "Web" 18 | self.view.backgroundColor = .white 19 | 20 | webView = WKWebView(frame: self.view.bounds, configuration: WKWebViewConfiguration()) 21 | self.view.addSubview(webView!) 22 | if let requestUrl = URL(string: self.url) { 23 | var request: URLRequest = URLRequest(url: requestUrl) 24 | request.timeoutInterval = 60 25 | webView.load(request) 26 | } 27 | } 28 | } 29 | 30 | // 实现路由协议,让自己支持路由跳转。 31 | extension WebController: YYRoutable { 32 | // 返回一个路由协议的实例 33 | static func createInstance(params: [String : Any]) -> YYRoutable { 34 | let vc = WebController() 35 | vc.url = params["to"] as? String ?? "" // 路由传参数 36 | vc.value = params["value"] as? String ?? "" // 路由传参数 37 | return vc 38 | } 39 | } 40 | 41 | // 添加路由表 42 | extension YYRouter { 43 | @objc func router_WebController() -> YYRouterModel { 44 | return YYRouterModel(to: "http", routerClass: WebController.self) 45 | } 46 | @objc func router_WebController_https() -> YYRouterModel { 47 | return YYRouterModel(to: "https", routerClass: WebController.self) 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 yxh265 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # YYRouter 2 | YYRouter一个简单好用的swift路由组件, 纯swift开发,超轻量,代码量小,定义的路由不占内存,跳转的时候按使用需要才实例化,超省内存。支持多模块开发,可以做不同模块组件间对象的解耦工具,支持通过定义路由key获取不同组件的路由对象。路由代码有自检查功能,定义不对的有asset告警,方便团队间开放规范。已经在大项目中,多模块组件实战多年。欢迎使用。 3 | 4 | 5 | 6 | ## 如何使用 7 | 8 | pod 'YYRouter' 9 | 10 | 11 | 12 | ## 路由定义 13 | 14 | ```Sw 15 | extension ViewController: YYRoutable { 16 | static func createInstance(params: [String : Any]) -> YYRoutable { 17 | return ViewController() 18 | } 19 | } 20 | 21 | extension YYRouter { 22 | @objc func router_ViewController() -> YYRouterModel { 23 | return YYRouterModel(to: "app://ViewController", routerClass: ViewController.self) 24 | } 25 | } 26 | ``` 27 | 28 | ## 路由调用 29 | 30 | ```Sw 31 | YYRouter.pushTo(jumpParams: ["to": "app://ViewController"]) 32 | ``` 33 | 34 | 35 | 36 | ## 路由调用的传参 37 | 38 | 这里负责传参 39 | 40 | ```Sw 41 | YYRouter.pushTo(jumpParams: ["to": "app://ViewController", "param1": "1", "param2": 2]) 42 | ``` 43 | 44 | 接收端负责接收 45 | 46 | ```Sw 47 | extension ViewController: YYRoutable { 48 | static func createInstance(params: [String : Any]) -> YYRoutable { 49 | let vc = ViewController() 50 | vc.param1 = params["param1"] as? String ?? "" 51 | vc.param2 = params["param2"] as? Int ?? 0 52 | return vc 53 | } 54 | } 55 | ``` 56 | 57 | 如果项目按模块组件开发,不同模块间都引入路由模块,那么A模块可以通过下面方法拿到B模块的某个类对象。 58 | 59 | ```Sw 60 | let params = ["to": "app://ViewController", "param1": "1", "param2": 2] 61 | if let vc = YYRouter.getRouterVC(jumpParams: params) { 62 | return vc // 通过路由跨模块拿到路由key:"app://ViewController"的对象。 63 | } 64 | ``` 65 | 66 | 67 | 68 | ## 介绍 69 | 70 | ### Swift路由组件(一)使用路由的目的和实现思想 71 | 72 | https://juejin.cn/post/7032164814210203685/ 73 | 74 | ### Swift路由组件(二)路由的实现 75 | 76 | https://juejin.cn/post/7032214542528544805 77 | -------------------------------------------------------------------------------- /YYRouter.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint YYRouter.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'YYRouter' 11 | s.version = '0.0.6' 12 | s.summary = 'YYRouter路由组件.' 13 | 14 | s.description = <<-DESC 15 | YYRouter一个简单好用的swift路由组件. 16 | DESC 17 | 18 | s.homepage = 'https://github.com/yxh265/YYRouter' 19 | s.license = { :type => 'MIT', :file => 'LICENSE' } 20 | s.author = { 'yxh265' => 'yxh265@qq.com' } 21 | s.source = { :git => 'https://github.com/yxh265/YYRouter.git', :tag => s.version.to_s } 22 | 23 | s.ios.deployment_target = '9.0' 24 | s.swift_version = '5.0' 25 | s.subspec 'YYRouter' do |a| 26 | a.source_files = 'YYRouter/Classes/YYRouter/*' 27 | end 28 | end 29 | -------------------------------------------------------------------------------- /YYRouter/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yxh265/YYRouter/84b80a849d9b5ad98e052b1c61eee983d1d100b8/YYRouter/Assets/.gitkeep -------------------------------------------------------------------------------- /YYRouter/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yxh265/YYRouter/84b80a849d9b5ad98e052b1c61eee983d1d100b8/YYRouter/Classes/.gitkeep -------------------------------------------------------------------------------- /YYRouter/Classes/YYRouter/YYRoutable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // YYRoutable.swift 3 | // 4 | // Created by yxh265 on 2021/7/21. 5 | // 6 | 7 | import Foundation 8 | 9 | /// 路由协议, 需要是AnyObject,其他如struct和enum等不能实现这个协议 10 | public protocol YYRoutable: AnyObject { 11 | /// 路由传参,接收者负责解析自己的参数并返回一个路由实例 12 | static func createInstance(params: [String: Any]) -> YYRoutable 13 | 14 | /// 路由逻辑处理 15 | func executeRouter(params: [String: Any], navRootVC: UIViewController?) 16 | } 17 | 18 | /// 路由协议的默认实现 19 | public extension YYRoutable { 20 | /// 默认路由跳转 21 | func executeRouter(params: [String: Any] = [:], navRootVC: UIViewController? = nil) { 22 | guard let controller = self as? UIViewController else { 23 | assert(false, "默认路由跳转,需要routable继承UIViewController") 24 | return 25 | } 26 | 27 | defaultPush(to: controller, params: params, navRootVC: navRootVC) 28 | } 29 | } 30 | 31 | /// 路由里面的私有方法 32 | public extension YYRoutable { 33 | /// native://my?userId=1&token=jdfsakbfjkafbf 34 | /// 35 | /// - Parameters: 36 | /// - controller: 跳转VC 37 | /// - params: 额外参数 38 | /// - navRootVC 有的时候不需要取currentVC 39 | func defaultPush(to controller: UIViewController, params: [String: Any] = [:], navRootVC: UIViewController? = nil) { 40 | let animated = (params["animated"] as? Bool) ?? true 41 | let hidesBottomBarWhenPushed = (params["hidesBottomBarWhenPushed"] as? Bool) ?? true 42 | 43 | if let rootVC = YYRouterUtil.getNavigationController(navRootVC: navRootVC) { 44 | controller.hidesBottomBarWhenPushed = hidesBottomBarWhenPushed 45 | rootVC.pushViewController(controller, animated: animated) 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /YYRouter/Classes/YYRouter/YYRouter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // YYRouter.swift 3 | // 4 | // Created by yxh265 on 2021/7/21. 5 | // 6 | 7 | import Foundation 8 | 9 | public class YYRouter: NSObject { 10 | private static let shared = YYRouter() 11 | 12 | private static var routers: [String: YYRouterModel] = { 13 | return config() 14 | }() 15 | #if DEBUG 16 | private static var isCheck: Bool = false 17 | private static var checkList: [String: Bool] = [:] 18 | #endif 19 | 20 | private static func configRoutersFromMethodList() -> [String: YYRouterModel] { 21 | var routerList: [String: YYRouterModel] = [:] 22 | var methodCount: UInt32 = 0 23 | let methodList = class_copyMethodList(YYRouter.self, &methodCount) 24 | 25 | if let methodList = methodList, methodCount > 0 { 26 | for i in 0...allocate(capacity: Int(expectedClassCount)) 54 | let autoreleasingAllClasses = AutoreleasingUnsafeMutablePointer(allClasses) 55 | let actualClassCount: Int32 = objc_getClassList(autoreleasingAllClasses, expectedClassCount) 56 | 57 | for i in 0 ..< actualClassCount { 58 | let currentClass: AnyClass = allClasses[Int(i)] 59 | if let cls = currentClass as? YYRoutable.Type { 60 | var isSet = checkList["\(cls)"] 61 | if isSet == nil { 62 | var curCls: AnyClass = cls as AnyClass 63 | // 只要有一个父亲添加了路由表,就表示ok,因为路由那边是不允许子类实现路由协议的,子类只能继承,只能override,或者换别的类去实现路由 64 | while let superCls = curCls.superclass() { 65 | if checkList["\(superCls)"] != nil { 66 | isSet = true 67 | break 68 | } 69 | curCls = superCls 70 | } 71 | } 72 | assert(isSet != nil, "\(cls)有实现Routable协议,但是没有添加路由表,或者路由表配置没有按规范,请检查:\(cls)。") 73 | checkList["\(cls)"] = true 74 | } 75 | } 76 | for (key, value) in checkList where value == false { 77 | assert(false, "\(key)有添加路由表,但是没有实现Routable协议,请检查:\(key)。") 78 | } 79 | isCheck = true 80 | if let classes = actualClassCount as? UnsafeMutableRawPointer { 81 | free(classes) 82 | } 83 | #if swift(>=4.1) 84 | allClasses.deallocate() 85 | #else 86 | allClasses.deallocate(capacity: expectedClassCount) 87 | #endif 88 | } 89 | #endif 90 | /// 配置映射文件 91 | private static func config() -> [String: YYRouterModel] { 92 | let routers = configRoutersFromMethodList() 93 | return routers 94 | } 95 | 96 | private static func getRoutable(_ urlString: String, params: [String: Any]) -> YYRoutable? { 97 | guard let url = URL(string: urlString), let urlScheme = url.scheme else { return nil } 98 | var routerModel = routers[urlScheme] 99 | if routerModel == nil { 100 | let path = urlString.components(separatedBy: "?").first ?? "" 101 | routerModel = routers[path] 102 | } 103 | if let cls = routerModel?.routerClass, let routable = (cls as? YYRoutable.Type)?.createInstance(params: params) { 104 | return routable 105 | } 106 | #if DEBUG 107 | // 没有找到路由的时候,才检查路由设置是否合理。 108 | checkRoutableClassesSettingIsConform() 109 | #endif 110 | return nil 111 | } 112 | 113 | } 114 | 115 | // MARK: - 路由入口 116 | extension YYRouter { 117 | /// 路由处理逻辑: 118 | /// 从jumpParams取出to参数,得到url,通过url,转出routable。 119 | /// 最后跳转到routable和传参params 120 | public static func pushTo(jumpParams: [String: Any]? = nil, navRootVC: UIViewController? = nil) { 121 | let params = jumpParams ?? [:] 122 | guard let url = params["to"] as? String else { 123 | assert(false, "要跳转的路由链接不能空") 124 | return 125 | } 126 | 127 | guard let routable = getRoutable(url, params: params) else { 128 | assert(false, "路由实例不能为空") 129 | return 130 | } 131 | 132 | routable.executeRouter(params: params, navRootVC: navRootVC) 133 | } 134 | /// 获取路由对象,可以用做模块解耦用。 135 | /// 给一个路由key,可以拿到其他模块里面的对象。 136 | public static func getRouterVC(jumpParams: [String: Any]? = nil) -> UIViewController? { 137 | if let jumpParams = jumpParams, 138 | let toString = jumpParams["to"] as? String, 139 | let routable = YYRouter.getRoutable(toString, params: jumpParams), 140 | let vc = routable as? UIViewController { 141 | return vc // 通过路由跨模块去拿UIViewController 142 | } 143 | return nil 144 | } 145 | } 146 | -------------------------------------------------------------------------------- /YYRouter/Classes/YYRouter/YYRouterModel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // YYRouterModel.swift 3 | // 4 | // Created by yxh265 on 2021/7/21. 5 | // 6 | 7 | import Foundation 8 | 9 | public class YYRouterModel: NSObject { 10 | /// 路由名,可以任意定义一个唯一的key 11 | /// 如:native://course/detail,这样的一个规则表示本地的某个页面。 12 | /// 或者http,或者https,这两个表示是url网页,直接用webview去响应。 13 | public var to: String = "" 14 | public var routerClass: AnyClass = YYRouterModel.self // 路由目标类 15 | 16 | /// 路由模块的路由表定义 17 | /// - Parameters: 18 | /// - to: 路由名的定义 19 | /// - routerClass: 路由目标类 20 | public convenience init(to: String, routerClass: AnyClass) { 21 | self.init() 22 | self.to = to 23 | self.routerClass = routerClass 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /YYRouter/Classes/YYRouter/YYRouterUtil.swift: -------------------------------------------------------------------------------- 1 | // 2 | // YYRouterUtil.swift 3 | // 4 | // Created by yxh265 on 2021/7/21. 5 | // 6 | 7 | import Foundation 8 | 9 | public struct YYRouterUtil { 10 | public static func delegate() -> UIApplicationDelegate { 11 | return UIApplication.shared.delegate! 12 | } 13 | 14 | public static func currentController() -> UIViewController { 15 | if #available(iOS 13.0, *) { 16 | if let keyWindow = UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }.flatMap { $0.windows }.first(where: { $0.isKeyWindow }), let root = keyWindow.rootViewController { 17 | return getCurrent(controller: root) 18 | } else if let keyWindow = UIApplication.shared.delegate?.window ?? UIApplication.shared.keyWindow, let root = keyWindow.rootViewController { 19 | return getCurrent(controller: root) 20 | } 21 | } else { 22 | if let root = delegate().window??.rootViewController { 23 | return getCurrent(controller: root) 24 | } 25 | } 26 | print("异常问题, 还没有rootVC不应该调用") 27 | assert(false, "异常问题, 还没有rootVC不应该调用") 28 | return UIViewController() 29 | } 30 | 31 | /// 当前的导航控制器 32 | public static func currentNavigationController() -> UINavigationController? { 33 | return currentController().navigationController 34 | } 35 | 36 | /// 获取可用的导航控制器 37 | public static func getNavigationController(navRootVC: UIViewController? = nil) -> UINavigationController? { 38 | if let rootVC = navRootVC as? UINavigationController { 39 | return rootVC 40 | } else if let rootVC = navRootVC?.navigationController { 41 | return rootVC 42 | } else { 43 | return currentNavigationController() 44 | } 45 | } 46 | 47 | /// 通过递归拿到当前显示的UIViewController 48 | public static func getCurrent(controller: UIViewController) -> UIViewController { 49 | if controller is UINavigationController { 50 | let naviController = controller as! UINavigationController 51 | return getCurrent(controller: naviController.viewControllers.last!) 52 | } else if controller is UITabBarController { 53 | let tabbarController = controller as! UITabBarController 54 | return getCurrent(controller: tabbarController.selectedViewController!) 55 | } else if controller.presentedViewController != nil { 56 | return getCurrent(controller: controller.presentedViewController!) 57 | } else { 58 | return controller 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /podReadme.md: -------------------------------------------------------------------------------- 1 | # pod组件更新脚本 2 | 3 | 4 | pod lib lint --no-clean --allow-warnings 5 | 6 | 7 | 8 | pod trunk push YYRouter.podspec --allow-warnings 9 | 10 | 11 | ### 出现这个错误时: 12 | [!] Authentication token is invalid or unverified. Either verify it with the email that was sent or register a new session. 13 | ### 解决方法: 14 | pod trunk register your_email@example.com 'Your Name' 15 | --------------------------------------------------------------------------------