├── _Pods.xcodeproj ├── Example ├── Pods │ ├── Target Support Files │ │ ├── MSRouter │ │ │ ├── MSRouter.modulemap │ │ │ ├── MSRouter-dummy.m │ │ │ ├── MSRouter-prefix.pch │ │ │ ├── MSRouter-umbrella.h │ │ │ ├── MSRouter.debug.xcconfig │ │ │ ├── MSRouter.release.xcconfig │ │ │ └── MSRouter-Info.plist │ │ ├── Pods-ZRouter_Tests │ │ │ ├── Pods-ZRouter_Tests.modulemap │ │ │ ├── Pods-ZRouter_Tests-acknowledgements.markdown │ │ │ ├── Pods-ZRouter_Tests-dummy.m │ │ │ ├── Pods-ZRouter_Tests-umbrella.h │ │ │ ├── Pods-ZRouter_Tests.debug.xcconfig │ │ │ ├── Pods-ZRouter_Tests.release.xcconfig │ │ │ ├── Pods-ZRouter_Tests-Info.plist │ │ │ └── Pods-ZRouter_Tests-acknowledgements.plist │ │ └── Pods-ZRouter_Example │ │ │ ├── Pods-ZRouter_Example.modulemap │ │ │ ├── Pods-ZRouter_Example-dummy.m │ │ │ ├── Pods-ZRouter_Example-umbrella.h │ │ │ ├── Pods-ZRouter_Example.debug.xcconfig │ │ │ ├── Pods-ZRouter_Example.release.xcconfig │ │ │ ├── Pods-ZRouter_Example-Info.plist │ │ │ ├── Pods-ZRouter_Example-acknowledgements.markdown │ │ │ ├── Pods-ZRouter_Example-acknowledgements.plist │ │ │ └── Pods-ZRouter_Example-frameworks.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ ├── MSRouter.podspec.json │ │ └── ZRouter.podspec.json │ └── Pods.xcodeproj │ │ └── project.pbxproj ├── ZRouter │ ├── ZRouter_Example-Bridging-Header.h │ ├── ViewController3.h │ ├── RouterAdapter.swift │ ├── BaseViewController.swift │ ├── ViewController3.m │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── ViewController2.swift │ ├── ViewController.swift │ ├── ViewController1.swift │ ├── ViewController2.xib │ ├── AppDelegate.swift │ └── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard ├── Podfile ├── ZRouter.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── ZRouter-Example.xcscheme │ └── project.pbxproj ├── ZRouter.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── Podfile.lock └── Tests │ ├── Info.plist │ └── Tests.swift ├── .travis.yml ├── MSRouter ├── Assets │ └── router.plist └── Classes │ └── MSRouter.swift ├── .gitignore ├── MSRouter.podspec ├── LICENSE └── README.md /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MSRouter/MSRouter.modulemap: -------------------------------------------------------------------------------- 1 | framework module MSRouter { 2 | umbrella header "MSRouter-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MSRouter/MSRouter-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MSRouter : NSObject 3 | @end 4 | @implementation PodsDummy_MSRouter 5 | @end 6 | -------------------------------------------------------------------------------- /Example/ZRouter/ZRouter_Example-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import "ViewController3.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ZRouter_Tests { 2 | umbrella header "Pods-ZRouter_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ZRouter_Example { 2 | umbrella header "Pods-ZRouter_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_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-ZRouter_Tests/Pods-ZRouter_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ZRouter_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ZRouter_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ZRouter_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ZRouter_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '9.0' 4 | 5 | target 'ZRouter_Example' do 6 | pod 'MSRouter', :path => '../' 7 | 8 | target 'ZRouter_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/ZRouter.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MSRouter/MSRouter-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/ZRouter.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/ZRouter.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/ZRouter.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MSRouter (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - MSRouter (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MSRouter: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MSRouter: 1fa264662ff1ad7fdec4c598adc4448beb7daccb 13 | 14 | PODFILE CHECKSUM: 1eca3ae2b5bef077289ab4b443539623b6ad7613 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MSRouter (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - MSRouter (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MSRouter: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MSRouter: 1fa264662ff1ad7fdec4c598adc4448beb7daccb 13 | 14 | PODFILE CHECKSUM: 1eca3ae2b5bef077289ab4b443539623b6ad7613 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /Example/ZRouter/ViewController3.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController3.h 3 | // ZRouter_Example 4 | // 5 | // Created by marshal on 2021/2/26. 6 | // Copyright © 2021 CocoaPods. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ViewController3 : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MSRouter/MSRouter-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 MSRouterVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char MSRouterVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_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_ZRouter_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ZRouter_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_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_ZRouter_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ZRouter_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/MSRouter.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MSRouter", 3 | "version": "0.1.0", 4 | "summary": "路由组件", 5 | "homepage": "https://github.com/yuanshuainiuniu/MSRouter.git", 6 | "license": { 7 | "type": "MIT", 8 | "file": "LICENSE" 9 | }, 10 | "authors": { 11 | "Marshal": "marshal819@zto.com" 12 | }, 13 | "source": { 14 | "git": "https://github.com/yuanshuainiuniu/MSRouter.git", 15 | "tag": "0.1.0" 16 | }, 17 | "platforms": { 18 | "ios": "9.0" 19 | }, 20 | "source_files": "MSRouter/Classes/**/*" 21 | } 22 | -------------------------------------------------------------------------------- /.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/ZRouter.xcworkspace -scheme ZRouter-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/ZRouter/RouterAdapter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RouterAdapter.swift 3 | // ZRouter_Example 4 | // 5 | // Created by marshal on 2021/2/26. 6 | // Copyright © 2021 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class RouterAdapter:NSObject { 12 | static func addRouter(){ 13 | MSRouter.addRouter(withUrl: "RouterAdapter1", forObject: nil, completed: nil) { (request) in 14 | let vc = ViewController3() 15 | MSRouter.getNavigation()?.pushViewController(vc, animated: true) 16 | } 17 | } 18 | override init() { 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/ZRouter.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZRouter", 3 | "version": "0.1.0", 4 | "summary": "A short description of ZRouter.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/717999274@qq.com/ZRouter", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "717999274@qq.com": "marshal819@zto.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/717999274@qq.com/ZRouter.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "9.0" 20 | }, 21 | "source_files": "ZRouter/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MSRouter/MSRouter.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MSRouter 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MSRouter/MSRouter.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MSRouter 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MSRouter" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MSRouter/MSRouter.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "MSRouter" 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-ZRouter_Tests/Pods-ZRouter_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MSRouter" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MSRouter/MSRouter.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "MSRouter" 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/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 | -------------------------------------------------------------------------------- /MSRouter/Assets/router.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | module 7 | ZRouter_Example 8 | url 9 | vc1 10 | object 11 | V1RouterBridge 12 | 13 | 14 | module 15 | ZRouter_Example 16 | url 17 | vc2 18 | object 19 | ViewController2 20 | 21 | 22 | module 23 | ZRouter_Example 24 | url 25 | CallDataBridge 26 | object 27 | CallDataBridge 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import MSRouter 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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /Example/ZRouter/BaseViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BaseViewController.swift 3 | // ZRouter_Example 4 | // 5 | // Created by marshal on 2021/2/26. 6 | // Copyright © 2021 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class BaseViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | // Do any additional setup after loading the view. 17 | } 18 | 19 | 20 | /* 21 | // MARK: - Navigation 22 | 23 | // In a storyboard-based application, you will often want to do a little preparation before navigation 24 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 25 | // Get the new view controller using segue.destination. 26 | // Pass the selected object to the new view controller. 27 | } 28 | */ 29 | 30 | deinit { 31 | print("\(self.classForCoder)--deinit") 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Example/ZRouter/ViewController3.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController3.m 3 | // ZRouter_Example 4 | // 5 | // Created by marshal on 2021/2/26. 6 | // Copyright © 2021 CocoaPods. All rights reserved. 7 | // 8 | 9 | #import "ViewController3.h" 10 | 11 | @interface ViewController3 () 12 | 13 | @end 14 | 15 | @implementation ViewController3 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | self.view.backgroundColor = [UIColor purpleColor]; 21 | } 22 | 23 | /* 24 | #pragma mark - Navigation 25 | 26 | // In a storyboard-based application, you will often want to do a little preparation before navigation 27 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 28 | // Get the new view controller using [segue destinationViewController]. 29 | // Pass the selected object to the new view controller. 30 | } 31 | */ 32 | - (void)dealloc{ 33 | NSLog(@"----dealloc"); 34 | } 35 | @end 36 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_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}/MSRouter" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MSRouter/MSRouter.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | OTHER_LDFLAGS = $(inherited) -framework "MSRouter" 8 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 9 | PODS_BUILD_DIR = ${BUILD_DIR} 10 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 12 | PODS_ROOT = ${SRCROOT}/Pods 13 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 14 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_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}/MSRouter" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MSRouter/MSRouter.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | OTHER_LDFLAGS = $(inherited) -framework "MSRouter" 8 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 9 | PODS_BUILD_DIR = ${BUILD_DIR} 10 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 12 | PODS_ROOT = ${SRCROOT}/Pods 13 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 14 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 15 | -------------------------------------------------------------------------------- /MSRouter.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint ZRouter.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 = 'MSRouter' 11 | s.version = '0.2.7' 12 | s.summary = 'swift路由组件' 13 | 14 | 15 | s.homepage = 'https://github.com/yuanshuainiuniu/MSRouter.git' 16 | s.license = { :type => 'MIT', :file => 'LICENSE' } 17 | s.author = { 'Marshal' => '717999274@qq.com' } 18 | s.source = { :git => 'https://github.com/yuanshuainiuniu/MSRouter.git', :tag => s.version } 19 | s.ios.deployment_target = '9.0' 20 | s.source_files = 'MSRouter/Classes/**/*' 21 | s.resource_bundles = { 22 | s.name => 'MSRouter/Assets/**/*' 23 | } 24 | s.swift_version = "5.0" 25 | 26 | end 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MSRouter/MSRouter-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_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-ZRouter_Example/Pods-ZRouter_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-ZRouter_Tests/Pods-ZRouter_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/ZRouter/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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021 717999274@qq.com 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Example/ZRouter/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/Pods/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## MSRouter 5 | 6 | Copyright (c) 2021 717999274@qq.com 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/ZRouter/ViewController2.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController2.swift 3 | // ZRouter_Example 4 | // 5 | // Created by marshal on 2021/2/7. 6 | // Copyright © 2021 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController2: UIViewController { 12 | 13 | 14 | 15 | var callBack:((String)->())? 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | self.view.backgroundColor = UIColor.white 20 | // Do any additional setup after loading the view. 21 | if let request = self.ms_routerRequest { 22 | if let params = request.params{ 23 | self.navigationItem.title = params["title"] as? String 24 | } 25 | if let nativeParams = request.nativeParams,let block = nativeParams["callback"] as? ((String)->()){ 26 | callBack = block 27 | } 28 | 29 | } 30 | } 31 | 32 | @IBAction func click(_ sender: UIButton) { 33 | self.navigationController?.popViewController(animated: true) 34 | 35 | callBack?("返回了---") 36 | } 37 | 38 | /* 39 | // MARK: - Navigation 40 | 41 | // In a storyboard-based application, you will often want to do a little preparation before navigation 42 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 43 | // Get the new view controller using segue.destination. 44 | // Pass the selected object to the new view controller. 45 | } 46 | */ 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Example/ZRouter/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ZRouter 4 | // 5 | // Created by 717999274@qq.com on 02/07/2021. 6 | // Copyright (c) 2021 717999274@qq.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | var callBack = { (data:String) in 23 | print("----\(data)") 24 | } 25 | 26 | 27 | @IBAction func clickAction(_ sender: UIButton) { 28 | MSRouter.openUrl("vc1?title=vc1&presented=1", ["callback":callBack]) 29 | } 30 | @IBAction func clickV2(_ sender: Any) { 31 | MSRouter.openUrl("vc2?title=vc2", ["callback":callBack]) 32 | } 33 | @IBAction func clickV3(_ sender: Any) { 34 | MSRouter.openUrl("RouterAdapter1", nil) 35 | // MSRouter.handleUrl("RouterAdapter2", nil) 36 | } 37 | @IBAction func dosync(_ sender: Any) { 38 | let res = MSRouter.callData("CallDataBridge", nil) as? String 39 | print("同步执行结果\(res ?? "")") 40 | } 41 | @IBAction func doAsync(_ sender: Any) { 42 | MSRouter.asyncCallData("CallDataBridge", nil) { result in 43 | let res = result as? String 44 | print("异步同步执行结果\(res ?? "")") 45 | } 46 | } 47 | 48 | override func viewDidAppear(_ animated: Bool) { 49 | super.viewDidAppear(animated) 50 | } 51 | } 52 | 53 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2021 717999274@qq.com <marshal819@zto.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | MSRouter 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/ZRouter/ViewController1.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController1.swift 3 | // ZRouter_Example 4 | // 5 | // Created by marshal on 2021/2/7. 6 | // Copyright © 2021 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController1: UIViewController { 12 | 13 | var callBack:((String)->())? 14 | 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | // Do any additional setup after loading the view. 19 | if let request = self.ms_routerRequest { 20 | if let params = request.params{ 21 | self.navigationItem.title = params["title"] as? String 22 | } 23 | if let nativeParams = request.nativeParams,let block = nativeParams["callback"] as? ((String)->()){ 24 | callBack = block 25 | } 26 | 27 | } 28 | } 29 | 30 | 31 | @IBAction func backAction(_ sender: UIButton) { 32 | callBack?("携带参数返回了") 33 | guard let navi = self.navigationController,navi.children.count > 1 else { 34 | self.dismiss(animated: true, completion: nil) 35 | return 36 | } 37 | navi.popViewController(animated: true) 38 | 39 | } 40 | /* 41 | // MARK: - Navigation 42 | 43 | // In a storyboard-based application, you will often want to do a little preparation before navigation 44 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 45 | // Get the new view controller using segue.destination. 46 | // Pass the selected object to the new view controller. 47 | } 48 | */ 49 | 50 | } 51 | 52 | class V1RouterBridge:NSObject { 53 | override func ms_handleRouter(_ request: MSRouterRequest) -> Any? { 54 | let res = MSRouterResponse() 55 | res.object = UIStoryboard(name: "Main", bundle: .main).instantiateViewController(withIdentifier: "ViewController1") 56 | request.presented = true 57 | print("拦截了路由\(String(describing: request.params))") 58 | if let callback = request.nativeParams?["callback"] as? (String)->(){ 59 | callback("路由被拦截") 60 | } 61 | return res 62 | } 63 | 64 | } 65 | 66 | class CallDataBridge:NSObject{ 67 | ///同步方法拦截 68 | override func ms_handleRouter(_ request: MSRouterRequest) -> Any? { 69 | return "123" 70 | } 71 | ///异步方法拦截 72 | override func ms_asyncHandleRouter(_ request: MSRouterRequest, callBack: ((Any?) -> (Void))?) { 73 | DispatchQueue.main.asyncAfter(deadline: .now() + 3) { 74 | callBack?("1234") 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /Example/ZRouter/ViewController2.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Example/ZRouter/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ZRouter 4 | // 5 | // Created by 717999274@qq.com on 02/07/2021. 6 | // Copyright (c) 2021 717999274@qq.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | 19 | 20 | let moduleName = Bundle.main.infoDictionary?["CFBundleExecutable"] as! String 21 | //手动注册路由 22 | MSRouter.addRouter(withParams: ["url":"vc1","object":"V1RouterBridge"], forModule: moduleName) { (res) in 23 | print("注册失败的链接:\(res)") 24 | 25 | } 26 | //通过配置文件注册路由 27 | let path = Bundle.main.path(forResource: "router", ofType: "plist") 28 | MSRouter.addRouter(withPlistPath: path, forModule: moduleName) { (res) in 29 | print("注册失败的链接:\(res)") 30 | } 31 | let path1 = Bundle.main.path(forResource: "router1", ofType: "plist") 32 | MSRouter.addRouter(withPlistPath: path1) 33 | 34 | // for _ in 0..<1000{ 35 | // MSRouter.addRouter(withPlistPath: path, forModule: moduleName) { (res) in 36 | // print("注册失败的链接:\(res)") 37 | // } 38 | // } 39 | // DispatchQueue.global().async { 40 | // for _ in 0..<1000{ 41 | // MSRouter.addRouter(withPlistPath: path, forModule: moduleName) { (res) in 42 | // print("注册失败的链接:\(res)") 43 | // } 44 | // } 45 | // } 46 | //通过object注册 47 | RouterAdapter.addRouter() 48 | return true 49 | } 50 | 51 | func applicationWillResignActive(_ application: UIApplication) { 52 | // 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. 53 | // 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. 54 | } 55 | 56 | func applicationDidEnterBackground(_ application: UIApplication) { 57 | // 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. 58 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 59 | } 60 | 61 | func applicationWillEnterForeground(_ application: UIApplication) { 62 | // 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. 63 | } 64 | 65 | func applicationDidBecomeActive(_ application: UIApplication) { 66 | // 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. 67 | } 68 | 69 | func applicationWillTerminate(_ application: UIApplication) { 70 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 71 | } 72 | 73 | 74 | } 75 | 76 | -------------------------------------------------------------------------------- /Example/ZRouter/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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MSRouter 2 | 3 | [![CI Status](https://img.shields.io/travis/717999274@qq.com/ZRouter.svg?style=flat)](https://travis-ci.org/717999274@qq.com/ZRouter) 4 | [![Version](https://img.shields.io/cocoapods/v/ZRouter.svg?style=flat)](https://cocoapods.org/pods/ZRouter) 5 | [![License](https://img.shields.io/cocoapods/l/ZRouter.svg?style=flat)](https://cocoapods.org/pods/ZRouter) 6 | [![Platform](https://img.shields.io/cocoapods/p/ZRouter.svg?style=flat)](https://cocoapods.org/pods/ZRouter) 7 | 8 | ## 为什么需要路由? 9 | 这里笼统的介绍了下组件化开发的场景,路由作为中介组件,我单独剥离出来,提供一种解题思路 10 | https://mp.weixin.qq.com/s/Lz7JbiN-ccMSg0F-afzTUg 11 | 12 | ## Example 13 | 14 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 15 | 16 | ## Requirements 17 | 18 | ## Installation 19 | 20 | MSRouter is available through [CocoaPods](https://cocoapods.org). To install 21 | it, simply add the following line to your Podfile: 22 | 23 | ```ruby 24 | pod 'MSRouter' 25 | ``` 26 | ## 注册路由 27 | ```swift 28 | //1.手动注册路由,如果已经被注册过,返回注册失败的路由地址 29 | //参数key为固定参数,url:注册链接,object:路由处理对象的classString 30 | //因swift存在命名空间,需要配置moduleName,一般为object类所在的target名称,如未配置,默认取 Bundle.main.infoDictionary?["CFBundleExecutable"] 31 | MSRouter.addRouter(withParams: ["url":"vc1","object":"V1RouterBridge"], forModule: moduleName) { (res) in 32 | print("注册失败的链接:\(res)") 33 | 34 | 35 | } 36 | //2.通过配置文件注册路由,如果已经被注册过,返回注册失败的路由地址 37 | //plist为数组类型,[["url":"xx","object":"xxx","module":"xxx"],["url":"xx","object":"xxx","module":"xxx"]] 38 | //因swift存在命名空间,需要配置moduleName,一般为object类所在的target名称,如未配置,默认取 Bundle.main.infoDictionary?["CFBundleExecutable"] 39 | 40 | let path = Bundle.main.path(forResource: "router", ofType: "plist") 41 | MSRouter.addRouter(withPlistPath: path, forModule: moduleName) { (res) in 42 | print("注册失败的链接:\(res)") 43 | } 44 | 45 | //3.通过target-action方式注册路由 46 | MSRouter.addRouter(withUrl: "RouterAdapter1", forObject: RouterAdapter(), completed: nil) { (request) in 47 | let vc = ViewController3() 48 | MSRouter.getNavigation()?.pushViewController(vc, animated: true) 49 | } 50 | ``` 51 | ## 访问路由 52 | ```swift 53 | //路由链接:scheme://host?xx=aa&yy=bb,路由识别通过注册url与scheme://host进行匹配 54 | var callBack = { (data:String) in 55 | print("----\(data)") 56 | } 57 | MSRouter.handleUrl("vc1?title=vc1&present=0", ["callback":callBack]) 58 | MSRouter.handleUrl("vc2?title=vc2", ["callback":callBack]) 59 | @IBAction func dosync(_ sender: Any) { 60 | let res = MSRouter.callData("CallDataBridge", nil) as? String 61 | print("同步执行结果\(res ?? "")") 62 | } 63 | 64 | @IBAction func doAsync(_ sender: Any) { 65 | MSRouter.asyncCallData("CallDataBridge", nil) { result in 66 | let res = result as? String 67 | print("异步同步执行结果\(res ?? "")") 68 | } 69 | } 70 | 71 | //注册类的参数解析后可通过ms_routerRequest进行访问 72 | 73 | var callBack:((String)->())? 74 | override func viewDidLoad() { 75 | super.viewDidLoad() 76 | if let request = self.ms_routerRequest { 77 | if let params = request.params{ 78 | self.navigationItem.title = params["title"] as? String 79 | } 80 | if let nativeParams = request.nativeParams,let block = nativeParams["callback"] as? ((String)->()){ 81 | callBack = block 82 | } 83 | 84 | } 85 | } 86 | ``` 87 | ## 拦截路由 88 | 89 | 90 | ```swift 91 | //通过MSRouterProtocol协议拦截路由,自定义处理逻辑,注路由拦截类必须继承自NSObject 92 | class V1RouterBridge:NSObject { 93 | override func ms_handleRouter(_ request: MSRouterRequest) -> Any? { 94 | let res = MSRouterResponse() 95 | res.object = UIStoryboard(name: "Main", bundle: .main).instantiateViewController(withIdentifier: "ViewController1") 96 | request.presented = true 97 | print("拦截了路由\(String(describing: request.params))") 98 | if let callback = request.nativeParams?["callback"] as? (String)->(){ 99 | callback("路由被拦截") 100 | } 101 | return res 102 | } 103 | 104 | } 105 | 106 | class CallDataBridge:NSObject{ 107 | ///同步方法拦截 108 | override func ms_handleRouter(_ request: MSRouterRequest) -> Any? { 109 | return "123" 110 | } 111 | ///异步方法拦截 112 | override func ms_asyncHandleRouter(_ request: MSRouterRequest, callBack: ((Any?) -> (Void))?) { 113 | DispatchQueue.main.asyncAfter(deadline: .now() + 3) { 114 | callBack?("1234") 115 | } 116 | } 117 | } 118 | ``` 119 | 120 | ## Author 121 | 122 | 717999274@qq.com, Marshal 123 | 124 | ## License 125 | 126 | MSRouter is available under the MIT license. See the LICENSE file for more info. 127 | -------------------------------------------------------------------------------- /Example/ZRouter.xcodeproj/xcshareddata/xcschemes/ZRouter-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 76 | 78 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_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 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 117 | fi 118 | fi 119 | } 120 | 121 | # Used as a return value for each invocation of `strip_invalid_archs` function. 122 | STRIP_BINARY_RETVAL=0 123 | 124 | # Strip invalid architectures 125 | strip_invalid_archs() { 126 | binary="$1" 127 | warn_missing_arch=${2:-true} 128 | # Get architectures for current target binary 129 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 130 | # Intersect them with the architectures we are building for 131 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 132 | # If there are no archs supported by this binary then warn the user 133 | if [[ -z "$intersected_archs" ]]; then 134 | if [[ "$warn_missing_arch" == "true" ]]; then 135 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 136 | fi 137 | STRIP_BINARY_RETVAL=1 138 | return 139 | fi 140 | stripped="" 141 | for arch in $binary_archs; do 142 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 143 | # Strip non-valid architectures in-place 144 | lipo -remove "$arch" -output "$binary" "$binary" 145 | stripped="$stripped $arch" 146 | fi 147 | done 148 | if [[ "$stripped" ]]; then 149 | echo "Stripped $binary of architectures:$stripped" 150 | fi 151 | STRIP_BINARY_RETVAL=0 152 | } 153 | 154 | # Copies the bcsymbolmap files of a vendored framework 155 | install_bcsymbolmap() { 156 | local bcsymbolmap_path="$1" 157 | local destination="${BUILT_PRODUCTS_DIR}" 158 | 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}"" 159 | 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 | } 161 | 162 | # Signs a framework with the provided identity 163 | code_sign_if_enabled() { 164 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 165 | # Use the current code_sign_identity 166 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 167 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 168 | 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | code_sign_cmd="$code_sign_cmd &" 171 | fi 172 | echo "$code_sign_cmd" 173 | eval "$code_sign_cmd" 174 | fi 175 | } 176 | 177 | if [[ "$CONFIGURATION" == "Debug" ]]; then 178 | install_framework "${BUILT_PRODUCTS_DIR}/MSRouter/MSRouter.framework" 179 | fi 180 | if [[ "$CONFIGURATION" == "Release" ]]; then 181 | install_framework "${BUILT_PRODUCTS_DIR}/MSRouter/MSRouter.framework" 182 | fi 183 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 184 | wait 185 | fi 186 | -------------------------------------------------------------------------------- /Example/ZRouter/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 | 46 | 53 | 60 | 68 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /MSRouter/Classes/MSRouter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ZRouter.swift 3 | // ZRouter_Example 4 | // 5 | // Created by marshal on 2021/2/7. 6 | // Copyright © 2021 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let MSUrl = "url" 12 | let MSObject = "object" 13 | let MSModule = "module" 14 | let MSKey = "key" 15 | 16 | 17 | 18 | /// 发起路由请求类 19 | @objc public class MSRouterRequest:NSObject{ 20 | 21 | /// 路由完整链接 22 | public var url:String? 23 | 24 | /// 解析后参数 25 | public var params:[AnyHashable:Any]?{ 26 | didSet{ 27 | if let animated = params?["animate"] as? String,let value = animated.ms_toBool(){ 28 | self.animated = value 29 | } 30 | if let presented = params?["presented"] as? String,let value = presented.ms_toBool(){ 31 | self.presented = value 32 | } 33 | if let presentedType = params?["presentedType"] as? String{ 34 | if presentedType == "auto"{ 35 | if #available(iOS 13.0, *) { 36 | self.presentedType = .automatic 37 | } else { 38 | // Fallback on earlier versions 39 | } 40 | }else if presentedType == "overFull"{ 41 | self.presentedType = .overFullScreen 42 | } 43 | } 44 | } 45 | } 46 | 47 | /// 原生传参 48 | public var nativeParams:[AnyHashable:Any]?{ 49 | didSet{ 50 | if let navi = nativeParams?["routerFrom"] as? UIViewController{ 51 | routerFrom = navi.navigationController 52 | }else if let navi = nativeParams?["routerFrom"] as? UINavigationController{ 53 | routerFrom = navi 54 | } 55 | } 56 | } 57 | 58 | /// 自定义来源导航 59 | public var routerFrom:UINavigationController? 60 | 61 | /// 是否需要动画 62 | public var animated:Bool = true 63 | 64 | /// 默认是push动画,如需要present,设置此值 65 | public var presented:Bool = false 66 | 67 | /// present样式 68 | public var presentedType:UIModalPresentationStyle = .fullScreen 69 | 70 | 71 | } 72 | 73 | /// 路由响应处理类 74 | @objc public class MSRouterResponse:NSObject{ 75 | public enum ZRouterType:Int { 76 | ///页面跳转路由 77 | case jump = 0 78 | ///方法路由 79 | case method = 1 80 | } 81 | ///路由处理对象 82 | public var object:Any? = nil 83 | ///请求体 84 | public var request:MSRouterRequest? = nil 85 | } 86 | 87 | /// 路由拦截协议 88 | @objc public protocol MSRouterProtocol:NSObjectProtocol{ 89 | /// 路由处理 90 | /// - Parameter request: 91 | @objc optional func ms_handleRouter(_ request:MSRouterRequest) -> Any? 92 | @objc optional func ms_asyncHandleRouter(_ request:MSRouterRequest,callBack:((_ data:Any?)->(Void))?) 93 | } 94 | 95 | @objc public class MSRouter:NSObject { 96 | 97 | 98 | /// 打开路由页面,url注册的object要为UIViewController类型 99 | /// - Parameters: 100 | /// - url: 路由地址 101 | /// - nativeParams: {block:回调} 102 | /// 请在主线程调用 103 | @discardableResult 104 | public static func openUrl(_ url:String,_ nativeParams:[AnyHashable:Any]?) -> Any?{ 105 | assert(Thread.isMainThread,"openUrl must called in main thread") 106 | let response = callData(url, nativeParams) as? MSRouterResponse 107 | guard let handler = response?.object else { return false } 108 | var result = false 109 | if let vc = handler as? UIViewController,let request = response?.request,let navi = (request.routerFrom ?? getNavigation()){ 110 | vc.ms_routerRequest = request 111 | if request.presented { 112 | vc.modalPresentationStyle = request.presentedType 113 | navi.present(vc, animated: request.animated, completion: nil) 114 | }else{ 115 | navi.pushViewController(vc, animated: request.animated) 116 | } 117 | result = true 118 | } 119 | return result 120 | } 121 | 122 | /// 同步执行 123 | /// - Parameters: 124 | /// - url: 执行的key 125 | /// - nativeParams: 原生参数 126 | @discardableResult 127 | public static func callData(_ url:String,_ nativeParams:[AnyHashable:Any]?) ->Any?{ 128 | sema.wait() 129 | var handler:Any? = nil 130 | var response:Any? = nil 131 | 132 | if let routerObject = ZRouterManager.shared.routerObjectLsit[url] { 133 | handler = routerObject 134 | 135 | }else if let objectClass = getObjectClass(fromUrl: url) as? NSObject.Type { 136 | handler = objectClass.init() 137 | } 138 | if let delegate:MSRouterProtocol = handler as? MSRouterProtocol{ 139 | let request = MSRouterRequest() 140 | request.url = url 141 | request.nativeParams = nativeParams 142 | request.params = getParams(fromUrl: url) 143 | 144 | var mDelegate:MSRouterProtocol = delegate 145 | if let router = handler as? ZRouterObject{ 146 | if let handleObject = router.object{ 147 | mDelegate = handleObject 148 | } 149 | if let handlerBlock = router.handler{ 150 | handlerBlock(request) 151 | sema.signal() 152 | 153 | return response 154 | } 155 | } 156 | 157 | if mDelegate.responds(to: #selector(MSRouterProtocol.ms_handleRouter(_:))) { 158 | response = mDelegate.ms_handleRouter?(request) 159 | (response as? MSRouterResponse)?.request = request 160 | } 161 | sema.signal() 162 | return response 163 | } 164 | sema.signal() 165 | return response 166 | } 167 | 168 | /// 异步执行 169 | /// - Parameters: 170 | /// - url 171 | /// - nativeParams 172 | /// - callBack 173 | public static func asyncCallData(_ url:String,_ nativeParams:[AnyHashable:Any]?,callBack:((_ result:Any?)->(Void))?){ 174 | 175 | sema.wait() 176 | var handler:Any? = nil 177 | 178 | if let routerObject = ZRouterManager.shared.routerObjectLsit[url] { 179 | handler = routerObject 180 | 181 | }else if let objectClass = getObjectClass(fromUrl: url) as? NSObject.Type { 182 | handler = objectClass.init() 183 | } 184 | routerQueue.async { 185 | if let delegate:MSRouterProtocol = handler as? MSRouterProtocol{ 186 | let request = MSRouterRequest() 187 | request.url = url 188 | request.nativeParams = nativeParams 189 | request.params = getParams(fromUrl: url) 190 | 191 | var mDelegate:MSRouterProtocol = delegate 192 | if let router = handler as? ZRouterObject{ 193 | if let handleObject = router.object{ 194 | mDelegate = handleObject 195 | } 196 | if let handlerBlock = router.handler{ 197 | DispatchQueue.main.async { 198 | handlerBlock(request) 199 | callBack?(nil) 200 | } 201 | } 202 | }else if mDelegate.responds(to: #selector(MSRouterProtocol.ms_asyncHandleRouter(_:callBack:))) { 203 | mDelegate.ms_asyncHandleRouter?(request, callBack: { data in 204 | DispatchQueue.main.async { 205 | callBack?(data) 206 | } 207 | }) 208 | } 209 | } 210 | } 211 | sema.signal() 212 | 213 | } 214 | 215 | /// 获取注册的路由类 216 | /// - Parameter fromUrl: 路由地址 217 | /// - Returns: 返回类实例 218 | public static func getObjectClass(fromUrl:String) -> AnyObject?{ 219 | let routerList = ZRouterManager.shared.routerList 220 | for item in routerList{ 221 | if let map = item as? [String:Any],let host = getHost(fromUrl: fromUrl) { 222 | if let url = map[MSUrl] as? String,host == url { 223 | if let object = map[MSObject] as? String { 224 | var className: AnyClass? = NSClassFromString(object) 225 | if className == nil { 226 | var moduleName = "" 227 | if let module = map[MSModule] as? String,!module.isEmpty { 228 | moduleName = module 229 | }else{ 230 | moduleName = Bundle.main.infoDictionary?["CFBundleExecutable"] as? String ?? "" 231 | moduleName = moduleName.replacingOccurrences(of: "-", with: "_") 232 | } 233 | className = NSClassFromString("\(moduleName).\(object)") 234 | if className == nil { 235 | let ttcname = "_TtC\(moduleName.count)\(moduleName)\(object.count)\(object)" 236 | className = NSClassFromString(ttcname) 237 | } 238 | } 239 | 240 | return className 241 | } 242 | } 243 | } 244 | } 245 | 246 | 247 | return nil 248 | } 249 | 250 | /// 通过plist列表注册路由 251 | /// - Parameters: 252 | /// - plistPath: plist路径 253 | /// plist:{"url","module","object"},url:路由链接,module:命名空间,object:反射的类,优先取配置的module 254 | /// 255 | /// - name: module 名称,为空的话默认主工程module 256 | /// - completed: 返回注册失败的路由 257 | public static func addRouter(withPlistPath plistPath:String?,forModule name:String? = nil,completed:((_ failedUrls:[String])->())? = nil){ 258 | sema.wait() 259 | routerQueue.async { 260 | guard let plistPath = plistPath else { 261 | sema.signal() 262 | print("MSRouter 路径不能为空") 263 | return 264 | 265 | } 266 | guard let list = NSArray(contentsOfFile: plistPath) as? [[AnyHashable:Any]] else { 267 | sema.signal() 268 | print("MSRouter 检查plist文件是否有问题") 269 | 270 | return 271 | 272 | } 273 | var temp = [String]() 274 | var moduleName = (name ?? "") 275 | let routerList = ZRouterManager.shared.routerList 276 | for item in list{ 277 | if let url = item[MSUrl] as? String{ 278 | if let defModule = item[MSModule] as? String,defModule.count > 0 { 279 | moduleName = defModule 280 | } 281 | let moduleUrl = url + moduleName 282 | for cacheItem in routerList{ 283 | if let cacheUrl = cacheItem[MSKey] as? String,cacheUrl == moduleUrl { 284 | temp.append(url) 285 | break 286 | } 287 | } 288 | var module = item 289 | module[MSKey] = moduleUrl 290 | module[MSModule] = moduleName 291 | ZRouterManager.shared.routerList.append(module) 292 | } 293 | } 294 | sema.signal() 295 | DispatchQueue.main.async { 296 | completed?(temp) 297 | } 298 | } 299 | } 300 | 301 | /// 注册单个路由 302 | /// - Parameters: 303 | /// - params: {url:String,object:String} 304 | /// - name: module 名称,为空的话默认主工程module 305 | /// - completed: 返回注册失败的路由 306 | static let sema = DispatchSemaphore.init(value: 1) 307 | static let routerQueue = DispatchQueue(label: "com.msrouter.serialQueue") 308 | public static func addRouter(withParams params:[AnyHashable:Any],forModule name:String? = nil,completed:((_ failedUrls:[String])->())? = nil){ 309 | sema.wait() 310 | routerQueue.async { 311 | var temp = [String]() 312 | let moduleName = (name ?? "") 313 | if let url = params[MSUrl] as? String{ 314 | let moduleUrl = url + moduleName 315 | let routerList = ZRouterManager.shared.routerList 316 | for cacheItem in routerList{ 317 | if let cacheUrl = cacheItem[MSKey] as? String,cacheUrl == moduleUrl { 318 | temp.append(url) 319 | break 320 | } 321 | } 322 | var module = params 323 | module[MSKey] = moduleUrl 324 | module[MSModule] = moduleName 325 | ZRouterManager.shared.routerList.append(module) 326 | } 327 | sema.signal() 328 | DispatchQueue.main.async { 329 | completed?(temp) 330 | } 331 | } 332 | } 333 | 334 | /// target-action注册路由 335 | /// - Parameters: 336 | /// - url: 路由链接 337 | /// - object: target 338 | /// - completed: 注册结果 339 | /// - handler: action 340 | public static func addRouter(withUrl url:String,forObject object:NSObject?,completed:((_ success: Bool)->())? = nil,handler:((MSRouterRequest)->())? = nil){ 341 | let manager = ZRouterManager.shared 342 | routerQueue.async { 343 | let hasCache = manager.routerObjectLsit[url] != nil 344 | if !hasCache{ 345 | var router = ZRouterObject() 346 | router.url = url 347 | router.object = object 348 | router.handler = handler 349 | manager.routerObjectLsit[url] = router 350 | } 351 | completed?(!hasCache) 352 | } 353 | 354 | } 355 | 356 | /// 获取当前栈导航控制器 357 | /// - Returns: 导航 358 | public static func getNavigation() -> UINavigationController?{ 359 | var currentWindow = UIApplication.shared.delegate?.window 360 | if currentWindow == nil { 361 | if #available(iOS 13.0, *) { 362 | currentWindow = (UIApplication.shared.connectedScenes.first?.delegate as? UIWindowSceneDelegate)?.window 363 | } else { 364 | // Fallback on earlier versions 365 | } 366 | if currentWindow == nil { 367 | currentWindow = UIApplication.shared.keyWindow 368 | } 369 | } 370 | 371 | if let window = currentWindow,let root = window?.rootViewController { 372 | if var presentVC = root.presentedViewController,presentVC.isKind(of: UIAlertController.self){ 373 | while presentVC.presentedViewController != nil { 374 | if presentVC.isKind(of: UINavigationController.self) { 375 | break 376 | } 377 | presentVC = presentVC.presentedViewController! 378 | } 379 | return presentVC as? UINavigationController 380 | } 381 | if root.isKind(of: UITabBarController.self) { 382 | let navi = (root as? UITabBarController)?.selectedViewController as? UINavigationController 383 | let visibleViewControllerNavi = navi?.visibleViewController?.navigationController 384 | return visibleViewControllerNavi ?? navi 385 | }else if(root.isKind(of: UINavigationController.self)){ 386 | let navi = root as? UINavigationController 387 | let visibleViewControllerNavi = navi?.visibleViewController?.navigationController 388 | return visibleViewControllerNavi ?? navi 389 | }else if(root.isKind(of: UIViewController.self)){ 390 | let navi = root.navigationController 391 | let visibleViewControllerNavi = navi?.visibleViewController?.navigationController 392 | return visibleViewControllerNavi ?? navi 393 | } 394 | } 395 | return nil 396 | } 397 | 398 | 399 | /// 通过url解析参数 400 | /// - Parameter url: url 401 | /// - Returns: [key:value] 402 | private static func getParams(fromUrl url:String) -> [String:Any]?{ 403 | let urls = url.components(separatedBy: "?") 404 | if urls.count > 1 { 405 | let urlParams = urls.last 406 | var params = [String:Any]() 407 | if let keyValues = urlParams?.components(separatedBy: "&") { 408 | for keyValue in keyValues { 409 | let kv = keyValue.components(separatedBy: "=") 410 | if kv.count == 2,let key = kv.first { 411 | params[key] = kv.last?.removingPercentEncoding 412 | } 413 | } 414 | } 415 | return params 416 | } 417 | return nil 418 | } 419 | 420 | /// 通过url获取路由 421 | /// - Parameter url: url 422 | /// - Returns: 返回路由string,用于匹配路由表 423 | private static func getHost(fromUrl url:String) -> String?{ 424 | return url.components(separatedBy: "?").first 425 | } 426 | 427 | 428 | } 429 | 430 | /// 路由管理器 431 | class ZRouterManager { 432 | static let shared = ZRouterManager() 433 | //private 434 | 435 | /// 缓存路由表 436 | var routerList = [[AnyHashable:Any]]() 437 | 438 | /// 缓存路由实例 439 | var routerObjectLsit = [AnyHashable:ZRouterObject]() 440 | 441 | } 442 | // 443 | struct ZRouterObject { 444 | var url:String? 445 | var object:NSObject? 446 | var handler:((MSRouterRequest)->())? 447 | } 448 | 449 | extension NSObject:MSRouterProtocol{ 450 | open func ms_handleRouter(_ request: MSRouterRequest) -> Any? { 451 | let response = MSRouterResponse() 452 | response.object = self 453 | response.request = request 454 | return response 455 | } 456 | open func ms_asyncHandleRouter(_ request: MSRouterRequest, callBack: ((Any?) -> (Void))?) { 457 | 458 | } 459 | 460 | public var ms_routerRequest:MSRouterRequest?{ 461 | get{ 462 | return objc_getAssociatedObject(self, AssociateKeys.ms_routerKey) as? MSRouterRequest 463 | } 464 | set{ 465 | objc_setAssociatedObject(self, AssociateKeys.ms_routerKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) 466 | } 467 | } 468 | private struct AssociateKeys{ 469 | static let ms_routerKey = UnsafeRawPointer(bitPattern: "_buttfly_ms_routerKey".hashValue)! 470 | } 471 | } 472 | public extension Bundle{ 473 | @objc class func ms_buldle(forModule name:String,bundleName:String? = nil) -> Bundle? { 474 | var bundlePath:String? 475 | if let path = Bundle.main.path(forResource: name, ofType: "bundle") { 476 | bundlePath = path 477 | }else{ 478 | var path1 = name 479 | if path1.contains("-") { 480 | path1 = path1.replacingOccurrences(of: "-", with: "_") 481 | } 482 | 483 | let fullPath = "Frameworks/" + path1 + ".framework/" + (bundleName ?? name) 484 | bundlePath = Bundle.main.path(forResource: fullPath, ofType: "bundle") 485 | } 486 | return Bundle(path: bundlePath ?? "") 487 | } 488 | } 489 | public extension String{ 490 | func ms_toBool() -> Bool? { 491 | switch self { 492 | case "True","TRUE", "true","YES", "yes", "1": 493 | return true 494 | case "False","FALSE", "false","NO", "no", "0": 495 | return false 496 | default: 497 | return nil 498 | } 499 | } 500 | } 501 | -------------------------------------------------------------------------------- /Example/ZRouter.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3AE2910A79DC4118E79AD69F /* Pods_ZRouter_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 689692B6355A020E4AC6759E /* Pods_ZRouter_Tests.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 | 80BF89F208900F1899FDBDDB /* Pods_ZRouter_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2EDA967A6E79DA955B261040 /* Pods_ZRouter_Example.framework */; }; 18 | F396C91C25E8E7C8000AF0CD /* ViewController3.m in Sources */ = {isa = PBXBuildFile; fileRef = F396C91B25E8E7C8000AF0CD /* ViewController3.m */; }; 19 | F396C92025E8E830000AF0CD /* RouterAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = F396C91F25E8E830000AF0CD /* RouterAdapter.swift */; }; 20 | F396C92725E8EBE6000AF0CD /* BaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F396C92625E8EBE6000AF0CD /* BaseViewController.swift */; }; 21 | F3AC2B4525CFECEB00031BAD /* ViewController1.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3AC2B4425CFECEB00031BAD /* ViewController1.swift */; }; 22 | F3AC2B5825CFFDCD00031BAD /* ViewController2.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3AC2B5625CFFDCD00031BAD /* ViewController2.swift */; }; 23 | F3AC2B5925CFFDCE00031BAD /* ViewController2.xib in Resources */ = {isa = PBXBuildFile; fileRef = F3AC2B5725CFFDCD00031BAD /* ViewController2.xib */; }; 24 | F3F0098425D128CA00FDCBF1 /* MSRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3F0098125D128CA00FDCBF1 /* MSRouter.swift */; }; 25 | F3F0098525D128CA00FDCBF1 /* router.plist in Resources */ = {isa = PBXBuildFile; fileRef = F3F0098325D128CA00FDCBF1 /* router.plist */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 34 | remoteInfo = ZRouter; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 12B2F1C54D28C2DC814D0391 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 40 | 2EDA967A6E79DA955B261040 /* Pods_ZRouter_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ZRouter_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 5E69FFA60ECE91F2BED0ED80 /* Pods-ZRouter_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZRouter_Tests.debug.xcconfig"; path = "Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_Tests.debug.xcconfig"; sourceTree = ""; }; 42 | 607FACD01AFB9204008FA782 /* ZRouter_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ZRouter_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 45 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 46 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 47 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 48 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 49 | 607FACE51AFB9204008FA782 /* ZRouter_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ZRouter_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 52 | 689692B6355A020E4AC6759E /* Pods_ZRouter_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ZRouter_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 87A04AC12F0F4CF7E9FB7564 /* MSRouter.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MSRouter.podspec; path = ../MSRouter.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 54 | A0CDBDB7B449036373ACAD64 /* Pods-ZRouter_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZRouter_Example.debug.xcconfig"; path = "Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example.debug.xcconfig"; sourceTree = ""; }; 55 | A7E46C9681D1E557A9BA37A8 /* Pods-ZRouter_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZRouter_Tests.release.xcconfig"; path = "Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_Tests.release.xcconfig"; sourceTree = ""; }; 56 | D0E040B57D485039B386F81F /* Pods-ZRouter_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZRouter_Example.release.xcconfig"; path = "Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example.release.xcconfig"; sourceTree = ""; }; 57 | E84FBE9B7C17DB867B581826 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 58 | F396C91925E8E7C8000AF0CD /* ZRouter_Example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ZRouter_Example-Bridging-Header.h"; sourceTree = ""; }; 59 | F396C91A25E8E7C8000AF0CD /* ViewController3.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController3.h; sourceTree = ""; }; 60 | F396C91B25E8E7C8000AF0CD /* ViewController3.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController3.m; sourceTree = ""; }; 61 | F396C91F25E8E830000AF0CD /* RouterAdapter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RouterAdapter.swift; sourceTree = ""; }; 62 | F396C92625E8EBE6000AF0CD /* BaseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseViewController.swift; sourceTree = ""; }; 63 | F3AC2B4425CFECEB00031BAD /* ViewController1.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController1.swift; sourceTree = ""; }; 64 | F3AC2B5625CFFDCD00031BAD /* ViewController2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController2.swift; sourceTree = ""; }; 65 | F3AC2B5725CFFDCD00031BAD /* ViewController2.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ViewController2.xib; sourceTree = ""; }; 66 | F3F0098125D128CA00FDCBF1 /* MSRouter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MSRouter.swift; sourceTree = ""; }; 67 | F3F0098325D128CA00FDCBF1 /* router.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = router.plist; sourceTree = ""; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 80BF89F208900F1899FDBDDB /* Pods_ZRouter_Example.framework in Frameworks */, 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | 3AE2910A79DC4118E79AD69F /* Pods_ZRouter_Tests.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | /* End PBXFrameworksBuildPhase section */ 88 | 89 | /* Begin PBXGroup section */ 90 | 607FACC71AFB9204008FA782 = { 91 | isa = PBXGroup; 92 | children = ( 93 | F3F0097F25D128CA00FDCBF1 /* MSRouter */, 94 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 95 | 607FACD21AFB9204008FA782 /* Example for ZRouter */, 96 | 607FACE81AFB9204008FA782 /* Tests */, 97 | 607FACD11AFB9204008FA782 /* Products */, 98 | 982607CC7D17AFD6CAD57A4F /* Pods */, 99 | E0B45719755137244919FDA8 /* Frameworks */, 100 | ); 101 | sourceTree = ""; 102 | }; 103 | 607FACD11AFB9204008FA782 /* Products */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 607FACD01AFB9204008FA782 /* ZRouter_Example.app */, 107 | 607FACE51AFB9204008FA782 /* ZRouter_Tests.xctest */, 108 | ); 109 | name = Products; 110 | sourceTree = ""; 111 | }; 112 | 607FACD21AFB9204008FA782 /* Example for ZRouter */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 116 | F3AC2B4425CFECEB00031BAD /* ViewController1.swift */, 117 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 118 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 119 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 120 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 121 | 607FACD31AFB9204008FA782 /* Supporting Files */, 122 | F3AC2B5625CFFDCD00031BAD /* ViewController2.swift */, 123 | F3AC2B5725CFFDCD00031BAD /* ViewController2.xib */, 124 | F396C91A25E8E7C8000AF0CD /* ViewController3.h */, 125 | F396C91B25E8E7C8000AF0CD /* ViewController3.m */, 126 | F396C91925E8E7C8000AF0CD /* ZRouter_Example-Bridging-Header.h */, 127 | F396C91F25E8E830000AF0CD /* RouterAdapter.swift */, 128 | F396C92625E8EBE6000AF0CD /* BaseViewController.swift */, 129 | ); 130 | name = "Example for ZRouter"; 131 | path = ZRouter; 132 | sourceTree = ""; 133 | }; 134 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 607FACD41AFB9204008FA782 /* Info.plist */, 138 | ); 139 | name = "Supporting Files"; 140 | sourceTree = ""; 141 | }; 142 | 607FACE81AFB9204008FA782 /* Tests */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 146 | 607FACE91AFB9204008FA782 /* Supporting Files */, 147 | ); 148 | path = Tests; 149 | sourceTree = ""; 150 | }; 151 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 607FACEA1AFB9204008FA782 /* Info.plist */, 155 | ); 156 | name = "Supporting Files"; 157 | sourceTree = ""; 158 | }; 159 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 87A04AC12F0F4CF7E9FB7564 /* MSRouter.podspec */, 163 | E84FBE9B7C17DB867B581826 /* README.md */, 164 | 12B2F1C54D28C2DC814D0391 /* LICENSE */, 165 | ); 166 | name = "Podspec Metadata"; 167 | sourceTree = ""; 168 | }; 169 | 982607CC7D17AFD6CAD57A4F /* Pods */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | A0CDBDB7B449036373ACAD64 /* Pods-ZRouter_Example.debug.xcconfig */, 173 | D0E040B57D485039B386F81F /* Pods-ZRouter_Example.release.xcconfig */, 174 | 5E69FFA60ECE91F2BED0ED80 /* Pods-ZRouter_Tests.debug.xcconfig */, 175 | A7E46C9681D1E557A9BA37A8 /* Pods-ZRouter_Tests.release.xcconfig */, 176 | ); 177 | path = Pods; 178 | sourceTree = ""; 179 | }; 180 | E0B45719755137244919FDA8 /* Frameworks */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | 2EDA967A6E79DA955B261040 /* Pods_ZRouter_Example.framework */, 184 | 689692B6355A020E4AC6759E /* Pods_ZRouter_Tests.framework */, 185 | ); 186 | name = Frameworks; 187 | sourceTree = ""; 188 | }; 189 | F3F0097F25D128CA00FDCBF1 /* MSRouter */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | F3F0098025D128CA00FDCBF1 /* Classes */, 193 | F3F0098225D128CA00FDCBF1 /* Assets */, 194 | ); 195 | name = MSRouter; 196 | path = ../MSRouter; 197 | sourceTree = ""; 198 | }; 199 | F3F0098025D128CA00FDCBF1 /* Classes */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | F3F0098125D128CA00FDCBF1 /* MSRouter.swift */, 203 | ); 204 | path = Classes; 205 | sourceTree = ""; 206 | }; 207 | F3F0098225D128CA00FDCBF1 /* Assets */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | F3F0098325D128CA00FDCBF1 /* router.plist */, 211 | ); 212 | path = Assets; 213 | sourceTree = ""; 214 | }; 215 | /* End PBXGroup section */ 216 | 217 | /* Begin PBXNativeTarget section */ 218 | 607FACCF1AFB9204008FA782 /* ZRouter_Example */ = { 219 | isa = PBXNativeTarget; 220 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ZRouter_Example" */; 221 | buildPhases = ( 222 | B1E36091EDE6258B85EAA908 /* [CP] Check Pods Manifest.lock */, 223 | 607FACCC1AFB9204008FA782 /* Sources */, 224 | 607FACCD1AFB9204008FA782 /* Frameworks */, 225 | 607FACCE1AFB9204008FA782 /* Resources */, 226 | 56D9BE344C2E6740D0D51B15 /* [CP] Embed Pods Frameworks */, 227 | ); 228 | buildRules = ( 229 | ); 230 | dependencies = ( 231 | ); 232 | name = ZRouter_Example; 233 | productName = ZRouter; 234 | productReference = 607FACD01AFB9204008FA782 /* ZRouter_Example.app */; 235 | productType = "com.apple.product-type.application"; 236 | }; 237 | 607FACE41AFB9204008FA782 /* ZRouter_Tests */ = { 238 | isa = PBXNativeTarget; 239 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ZRouter_Tests" */; 240 | buildPhases = ( 241 | C9D5C362ADF477B59264ADC1 /* [CP] Check Pods Manifest.lock */, 242 | 607FACE11AFB9204008FA782 /* Sources */, 243 | 607FACE21AFB9204008FA782 /* Frameworks */, 244 | 607FACE31AFB9204008FA782 /* Resources */, 245 | ); 246 | buildRules = ( 247 | ); 248 | dependencies = ( 249 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 250 | ); 251 | name = ZRouter_Tests; 252 | productName = Tests; 253 | productReference = 607FACE51AFB9204008FA782 /* ZRouter_Tests.xctest */; 254 | productType = "com.apple.product-type.bundle.unit-test"; 255 | }; 256 | /* End PBXNativeTarget section */ 257 | 258 | /* Begin PBXProject section */ 259 | 607FACC81AFB9204008FA782 /* Project object */ = { 260 | isa = PBXProject; 261 | attributes = { 262 | LastSwiftUpdateCheck = 0830; 263 | LastUpgradeCheck = 1240; 264 | ORGANIZATIONNAME = CocoaPods; 265 | TargetAttributes = { 266 | 607FACCF1AFB9204008FA782 = { 267 | CreatedOnToolsVersion = 6.3.1; 268 | LastSwiftMigration = 1240; 269 | }; 270 | 607FACE41AFB9204008FA782 = { 271 | CreatedOnToolsVersion = 6.3.1; 272 | LastSwiftMigration = 1240; 273 | TestTargetID = 607FACCF1AFB9204008FA782; 274 | }; 275 | }; 276 | }; 277 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ZRouter" */; 278 | compatibilityVersion = "Xcode 3.2"; 279 | developmentRegion = en; 280 | hasScannedForEncodings = 0; 281 | knownRegions = ( 282 | en, 283 | Base, 284 | ); 285 | mainGroup = 607FACC71AFB9204008FA782; 286 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 287 | projectDirPath = ""; 288 | projectRoot = ""; 289 | targets = ( 290 | 607FACCF1AFB9204008FA782 /* ZRouter_Example */, 291 | 607FACE41AFB9204008FA782 /* ZRouter_Tests */, 292 | ); 293 | }; 294 | /* End PBXProject section */ 295 | 296 | /* Begin PBXResourcesBuildPhase section */ 297 | 607FACCE1AFB9204008FA782 /* Resources */ = { 298 | isa = PBXResourcesBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | F3AC2B5925CFFDCE00031BAD /* ViewController2.xib in Resources */, 302 | F3F0098525D128CA00FDCBF1 /* router.plist in Resources */, 303 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 304 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 305 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | 607FACE31AFB9204008FA782 /* Resources */ = { 310 | isa = PBXResourcesBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | /* End PBXResourcesBuildPhase section */ 317 | 318 | /* Begin PBXShellScriptBuildPhase section */ 319 | 56D9BE344C2E6740D0D51B15 /* [CP] Embed Pods Frameworks */ = { 320 | isa = PBXShellScriptBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | ); 324 | inputPaths = ( 325 | "${PODS_ROOT}/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example-frameworks.sh", 326 | "${BUILT_PRODUCTS_DIR}/MSRouter/MSRouter.framework", 327 | ); 328 | name = "[CP] Embed Pods Frameworks"; 329 | outputPaths = ( 330 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MSRouter.framework", 331 | ); 332 | runOnlyForDeploymentPostprocessing = 0; 333 | shellPath = /bin/sh; 334 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example-frameworks.sh\"\n"; 335 | showEnvVarsInLog = 0; 336 | }; 337 | B1E36091EDE6258B85EAA908 /* [CP] Check Pods Manifest.lock */ = { 338 | isa = PBXShellScriptBuildPhase; 339 | buildActionMask = 2147483647; 340 | files = ( 341 | ); 342 | inputFileListPaths = ( 343 | ); 344 | inputPaths = ( 345 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 346 | "${PODS_ROOT}/Manifest.lock", 347 | ); 348 | name = "[CP] Check Pods Manifest.lock"; 349 | outputFileListPaths = ( 350 | ); 351 | outputPaths = ( 352 | "$(DERIVED_FILE_DIR)/Pods-ZRouter_Example-checkManifestLockResult.txt", 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | shellPath = /bin/sh; 356 | 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"; 357 | showEnvVarsInLog = 0; 358 | }; 359 | C9D5C362ADF477B59264ADC1 /* [CP] Check Pods Manifest.lock */ = { 360 | isa = PBXShellScriptBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | ); 364 | inputFileListPaths = ( 365 | ); 366 | inputPaths = ( 367 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 368 | "${PODS_ROOT}/Manifest.lock", 369 | ); 370 | name = "[CP] Check Pods Manifest.lock"; 371 | outputFileListPaths = ( 372 | ); 373 | outputPaths = ( 374 | "$(DERIVED_FILE_DIR)/Pods-ZRouter_Tests-checkManifestLockResult.txt", 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | shellPath = /bin/sh; 378 | 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"; 379 | showEnvVarsInLog = 0; 380 | }; 381 | /* End PBXShellScriptBuildPhase section */ 382 | 383 | /* Begin PBXSourcesBuildPhase section */ 384 | 607FACCC1AFB9204008FA782 /* Sources */ = { 385 | isa = PBXSourcesBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | F396C92025E8E830000AF0CD /* RouterAdapter.swift in Sources */, 389 | F3AC2B5825CFFDCD00031BAD /* ViewController2.swift in Sources */, 390 | F3AC2B4525CFECEB00031BAD /* ViewController1.swift in Sources */, 391 | F396C91C25E8E7C8000AF0CD /* ViewController3.m in Sources */, 392 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 393 | F396C92725E8EBE6000AF0CD /* BaseViewController.swift in Sources */, 394 | F3F0098425D128CA00FDCBF1 /* MSRouter.swift in Sources */, 395 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 396 | ); 397 | runOnlyForDeploymentPostprocessing = 0; 398 | }; 399 | 607FACE11AFB9204008FA782 /* Sources */ = { 400 | isa = PBXSourcesBuildPhase; 401 | buildActionMask = 2147483647; 402 | files = ( 403 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 404 | ); 405 | runOnlyForDeploymentPostprocessing = 0; 406 | }; 407 | /* End PBXSourcesBuildPhase section */ 408 | 409 | /* Begin PBXTargetDependency section */ 410 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 411 | isa = PBXTargetDependency; 412 | target = 607FACCF1AFB9204008FA782 /* ZRouter_Example */; 413 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 414 | }; 415 | /* End PBXTargetDependency section */ 416 | 417 | /* Begin PBXVariantGroup section */ 418 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 419 | isa = PBXVariantGroup; 420 | children = ( 421 | 607FACDA1AFB9204008FA782 /* Base */, 422 | ); 423 | name = Main.storyboard; 424 | sourceTree = ""; 425 | }; 426 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 427 | isa = PBXVariantGroup; 428 | children = ( 429 | 607FACDF1AFB9204008FA782 /* Base */, 430 | ); 431 | name = LaunchScreen.xib; 432 | sourceTree = ""; 433 | }; 434 | /* End PBXVariantGroup section */ 435 | 436 | /* Begin XCBuildConfiguration section */ 437 | 607FACED1AFB9204008FA782 /* Debug */ = { 438 | isa = XCBuildConfiguration; 439 | buildSettings = { 440 | ALWAYS_SEARCH_USER_PATHS = NO; 441 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 442 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 443 | CLANG_CXX_LIBRARY = "libc++"; 444 | CLANG_ENABLE_MODULES = YES; 445 | CLANG_ENABLE_OBJC_ARC = YES; 446 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 447 | CLANG_WARN_BOOL_CONVERSION = YES; 448 | CLANG_WARN_COMMA = YES; 449 | CLANG_WARN_CONSTANT_CONVERSION = YES; 450 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 451 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 452 | CLANG_WARN_EMPTY_BODY = YES; 453 | CLANG_WARN_ENUM_CONVERSION = YES; 454 | CLANG_WARN_INFINITE_RECURSION = YES; 455 | CLANG_WARN_INT_CONVERSION = YES; 456 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 457 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 458 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 459 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 460 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 461 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 462 | CLANG_WARN_STRICT_PROTOTYPES = YES; 463 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 464 | CLANG_WARN_UNREACHABLE_CODE = YES; 465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 467 | COPY_PHASE_STRIP = NO; 468 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 469 | ENABLE_STRICT_OBJC_MSGSEND = YES; 470 | ENABLE_TESTABILITY = YES; 471 | GCC_C_LANGUAGE_STANDARD = gnu99; 472 | GCC_DYNAMIC_NO_PIC = NO; 473 | GCC_NO_COMMON_BLOCKS = YES; 474 | GCC_OPTIMIZATION_LEVEL = 0; 475 | GCC_PREPROCESSOR_DEFINITIONS = ( 476 | "DEBUG=1", 477 | "$(inherited)", 478 | ); 479 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 480 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 481 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 482 | GCC_WARN_UNDECLARED_SELECTOR = YES; 483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 484 | GCC_WARN_UNUSED_FUNCTION = YES; 485 | GCC_WARN_UNUSED_VARIABLE = YES; 486 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 487 | MTL_ENABLE_DEBUG_INFO = YES; 488 | ONLY_ACTIVE_ARCH = YES; 489 | SDKROOT = iphoneos; 490 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 491 | }; 492 | name = Debug; 493 | }; 494 | 607FACEE1AFB9204008FA782 /* Release */ = { 495 | isa = XCBuildConfiguration; 496 | buildSettings = { 497 | ALWAYS_SEARCH_USER_PATHS = NO; 498 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 499 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 500 | CLANG_CXX_LIBRARY = "libc++"; 501 | CLANG_ENABLE_MODULES = YES; 502 | CLANG_ENABLE_OBJC_ARC = 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_EMPTY_BODY = YES; 510 | CLANG_WARN_ENUM_CONVERSION = YES; 511 | CLANG_WARN_INFINITE_RECURSION = YES; 512 | CLANG_WARN_INT_CONVERSION = YES; 513 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 514 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 515 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 516 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 517 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 518 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 519 | CLANG_WARN_STRICT_PROTOTYPES = YES; 520 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 521 | CLANG_WARN_UNREACHABLE_CODE = YES; 522 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 523 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 524 | COPY_PHASE_STRIP = NO; 525 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 526 | ENABLE_NS_ASSERTIONS = NO; 527 | ENABLE_STRICT_OBJC_MSGSEND = YES; 528 | GCC_C_LANGUAGE_STANDARD = gnu99; 529 | GCC_NO_COMMON_BLOCKS = YES; 530 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 531 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 532 | GCC_WARN_UNDECLARED_SELECTOR = YES; 533 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 534 | GCC_WARN_UNUSED_FUNCTION = YES; 535 | GCC_WARN_UNUSED_VARIABLE = YES; 536 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 537 | MTL_ENABLE_DEBUG_INFO = NO; 538 | SDKROOT = iphoneos; 539 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 540 | VALIDATE_PRODUCT = YES; 541 | }; 542 | name = Release; 543 | }; 544 | 607FACF01AFB9204008FA782 /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = A0CDBDB7B449036373ACAD64 /* Pods-ZRouter_Example.debug.xcconfig */; 547 | buildSettings = { 548 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 549 | CLANG_ENABLE_MODULES = YES; 550 | INFOPLIST_FILE = ZRouter/Info.plist; 551 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 552 | MODULE_NAME = ExampleApp; 553 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 554 | PRODUCT_NAME = "$(TARGET_NAME)"; 555 | SWIFT_OBJC_BRIDGING_HEADER = "ZRouter/ZRouter_Example-Bridging-Header.h"; 556 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 557 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 558 | SWIFT_VERSION = 5.0; 559 | }; 560 | name = Debug; 561 | }; 562 | 607FACF11AFB9204008FA782 /* Release */ = { 563 | isa = XCBuildConfiguration; 564 | baseConfigurationReference = D0E040B57D485039B386F81F /* Pods-ZRouter_Example.release.xcconfig */; 565 | buildSettings = { 566 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 567 | CLANG_ENABLE_MODULES = YES; 568 | INFOPLIST_FILE = ZRouter/Info.plist; 569 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 570 | MODULE_NAME = ExampleApp; 571 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 572 | PRODUCT_NAME = "$(TARGET_NAME)"; 573 | SWIFT_OBJC_BRIDGING_HEADER = "ZRouter/ZRouter_Example-Bridging-Header.h"; 574 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 575 | SWIFT_VERSION = 5.0; 576 | }; 577 | name = Release; 578 | }; 579 | 607FACF31AFB9204008FA782 /* Debug */ = { 580 | isa = XCBuildConfiguration; 581 | baseConfigurationReference = 5E69FFA60ECE91F2BED0ED80 /* Pods-ZRouter_Tests.debug.xcconfig */; 582 | buildSettings = { 583 | FRAMEWORK_SEARCH_PATHS = ( 584 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 585 | "$(inherited)", 586 | ); 587 | GCC_PREPROCESSOR_DEFINITIONS = ( 588 | "DEBUG=1", 589 | "$(inherited)", 590 | ); 591 | INFOPLIST_FILE = Tests/Info.plist; 592 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 593 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 594 | PRODUCT_NAME = "$(TARGET_NAME)"; 595 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 596 | SWIFT_VERSION = 5.0; 597 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZRouter_Example.app/ZRouter_Example"; 598 | }; 599 | name = Debug; 600 | }; 601 | 607FACF41AFB9204008FA782 /* Release */ = { 602 | isa = XCBuildConfiguration; 603 | baseConfigurationReference = A7E46C9681D1E557A9BA37A8 /* Pods-ZRouter_Tests.release.xcconfig */; 604 | buildSettings = { 605 | FRAMEWORK_SEARCH_PATHS = ( 606 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 607 | "$(inherited)", 608 | ); 609 | INFOPLIST_FILE = Tests/Info.plist; 610 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 611 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 612 | PRODUCT_NAME = "$(TARGET_NAME)"; 613 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 614 | SWIFT_VERSION = 5.0; 615 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZRouter_Example.app/ZRouter_Example"; 616 | }; 617 | name = Release; 618 | }; 619 | /* End XCBuildConfiguration section */ 620 | 621 | /* Begin XCConfigurationList section */ 622 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ZRouter" */ = { 623 | isa = XCConfigurationList; 624 | buildConfigurations = ( 625 | 607FACED1AFB9204008FA782 /* Debug */, 626 | 607FACEE1AFB9204008FA782 /* Release */, 627 | ); 628 | defaultConfigurationIsVisible = 0; 629 | defaultConfigurationName = Release; 630 | }; 631 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ZRouter_Example" */ = { 632 | isa = XCConfigurationList; 633 | buildConfigurations = ( 634 | 607FACF01AFB9204008FA782 /* Debug */, 635 | 607FACF11AFB9204008FA782 /* Release */, 636 | ); 637 | defaultConfigurationIsVisible = 0; 638 | defaultConfigurationName = Release; 639 | }; 640 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ZRouter_Tests" */ = { 641 | isa = XCConfigurationList; 642 | buildConfigurations = ( 643 | 607FACF31AFB9204008FA782 /* Debug */, 644 | 607FACF41AFB9204008FA782 /* Release */, 645 | ); 646 | defaultConfigurationIsVisible = 0; 647 | defaultConfigurationName = Release; 648 | }; 649 | /* End XCConfigurationList section */ 650 | }; 651 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 652 | } 653 | -------------------------------------------------------------------------------- /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 | 02C28140DC4515802D32013A78B9C905 /* MSRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04CBAD6335F40840CBDCE7438F0856AF /* MSRouter.swift */; }; 11 | 08B5948C82E235D911A4B7FCCADA0546 /* Pods-ZRouter_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2FEB5E9AF5A98C5543159889AB51FCCA /* Pods-ZRouter_Example-dummy.m */; }; 12 | 5AEC9557D76BF36FB6A1EB6C65784BC4 /* Pods-ZRouter_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 69F24EDFDC4F7BF745FA6EC6F5ED10C5 /* Pods-ZRouter_Tests-dummy.m */; }; 13 | 5B809A8B5E32635E96057F60E31B9AEB /* Pods-ZRouter_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B0777ECA2E189EA2B188A2B79D2F54B /* Pods-ZRouter_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 7340605ACF7026ED976BA6480A1BE91E /* MSRouter-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DFAB6BEA3457ACDF60D6688CEBCAB160 /* MSRouter-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 8C62725566F37DE96191B33DADD261B9 /* MSRouter-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = EEE001C36618C41C756F6DB3AD24A12B /* MSRouter-dummy.m */; }; 16 | 9D78582967BC20FF159D17746BB2E3A9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 17 | DD0EEAB648EEB31199CE29DD0CC311FD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 18 | E860FF8010411EAAC68FD36382F8A740 /* Pods-ZRouter_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B6B86474E6AC6C733C5B15875649C6F /* Pods-ZRouter_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | FEF39AE5264670F8350C1735514F6515 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 06F59E92FD371EE8291B0924F3729DA5 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 52E687C27951A88C9440C90B4E0E52BA; 28 | remoteInfo = "Pods-ZRouter_Example"; 29 | }; 30 | 9C7947C341F80E7DFE62CD772BEA5EDF /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = B27A15A78A45659BDBF99D061FD854E8; 35 | remoteInfo = MSRouter; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 04CBAD6335F40840CBDCE7438F0856AF /* MSRouter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MSRouter.swift; path = MSRouter/Classes/MSRouter.swift; sourceTree = ""; }; 41 | 08B66742A151BA6E3308096C6C63EA47 /* Pods-ZRouter_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ZRouter_Example.release.xcconfig"; sourceTree = ""; }; 42 | 1426E2474D6D7809B3930C3971BFA3BF /* MSRouter.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = MSRouter.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 43 | 2FEB5E9AF5A98C5543159889AB51FCCA /* Pods-ZRouter_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ZRouter_Example-dummy.m"; sourceTree = ""; }; 44 | 37AC819CF968391836E5062E825B66AD /* Pods-ZRouter_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ZRouter_Example-acknowledgements.plist"; sourceTree = ""; }; 45 | 3B0777ECA2E189EA2B188A2B79D2F54B /* Pods-ZRouter_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ZRouter_Tests-umbrella.h"; sourceTree = ""; }; 46 | 44CFDE51B508A4512A39B8C4A0122B8F /* MSRouter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MSRouter.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 4B6B86474E6AC6C733C5B15875649C6F /* Pods-ZRouter_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ZRouter_Example-umbrella.h"; sourceTree = ""; }; 48 | 4ED66C83172F93F5067B86C11A8D0F38 /* Pods-ZRouter_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ZRouter_Example.debug.xcconfig"; sourceTree = ""; }; 49 | 4F033F8F8EA7C8CA6CD69C7A96306ADE /* MSRouter-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "MSRouter-Info.plist"; sourceTree = ""; }; 50 | 4FE5D1F4C2A1BCEE2CAFD7DD25B846C1 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 51 | 529DD3390C6DB23303807AF0492805C3 /* Pods-ZRouter_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ZRouter_Tests-Info.plist"; sourceTree = ""; }; 52 | 65D10A51484D328E6EBD511425671A58 /* Pods-ZRouter_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ZRouter_Example-frameworks.sh"; sourceTree = ""; }; 53 | 69F24EDFDC4F7BF745FA6EC6F5ED10C5 /* Pods-ZRouter_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ZRouter_Tests-dummy.m"; sourceTree = ""; }; 54 | 6C8E19DABAD4F7B08711FF31EE868942 /* Pods-ZRouter_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-ZRouter_Tests.modulemap"; sourceTree = ""; }; 55 | 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; }; 56 | 7A97F6BE3B3F84D70068A02B195842CC /* Pods-ZRouter_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ZRouter_Tests.debug.xcconfig"; sourceTree = ""; }; 57 | 7DA37D532B5786115B6EEB139CCC2E34 /* Pods-ZRouter_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ZRouter_Tests-acknowledgements.markdown"; sourceTree = ""; }; 58 | 991E5D2AB64600C31890C16DB9281608 /* MSRouter.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = MSRouter.modulemap; sourceTree = ""; }; 59 | 9B1074C0AC934D6477A16F64D167DEF6 /* MSRouter.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MSRouter.debug.xcconfig; sourceTree = ""; }; 60 | 9D289ED063CDEAA6B29FD98800E9AF33 /* Pods-ZRouter_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ZRouter_Example-Info.plist"; sourceTree = ""; }; 61 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 62 | 9FFD7DC36D5D8722FD7E3D2A435E0E0C /* Pods-ZRouter_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ZRouter_Example-acknowledgements.markdown"; sourceTree = ""; }; 63 | A859AD6DBA50C9150710C84219ACF054 /* Pods-ZRouter_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-ZRouter_Example.modulemap"; sourceTree = ""; }; 64 | B4AEFFE75586B36E03CC4D8A4D71C688 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 65 | B64BC9A2B3785835F1B7B3F0FE654F46 /* MSRouter.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MSRouter.release.xcconfig; sourceTree = ""; }; 66 | D34DB8425C586CF85A26683D28FD2C6E /* Pods-ZRouter_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ZRouter_Tests-acknowledgements.plist"; sourceTree = ""; }; 67 | D47D7DB3782201FA278F88688914C4B8 /* Pods-ZRouter_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ZRouter_Tests.release.xcconfig"; sourceTree = ""; }; 68 | D512788CB1077729E82A3BA22B28407D /* Pods_ZRouter_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ZRouter_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | DFAB6BEA3457ACDF60D6688CEBCAB160 /* MSRouter-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MSRouter-umbrella.h"; sourceTree = ""; }; 70 | EEE001C36618C41C756F6DB3AD24A12B /* MSRouter-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "MSRouter-dummy.m"; sourceTree = ""; }; 71 | F6F90CC79C61B2A2A18AC4006097F62B /* MSRouter-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MSRouter-prefix.pch"; sourceTree = ""; }; 72 | FC9BD12F07E54A96D42D14D2DE947605 /* Pods_ZRouter_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ZRouter_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 73 | /* End PBXFileReference section */ 74 | 75 | /* Begin PBXFrameworksBuildPhase section */ 76 | 6CBDC8C34408B1F9E780F8CC9B20F652 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | FEF39AE5264670F8350C1735514F6515 /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | B5B53C6C232793C3BE404EDC144508CB /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | 9D78582967BC20FF159D17746BB2E3A9 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | C13F55C5BDB084EA825EA816221AC0F5 /* Frameworks */ = { 93 | isa = PBXFrameworksBuildPhase; 94 | buildActionMask = 2147483647; 95 | files = ( 96 | DD0EEAB648EEB31199CE29DD0CC311FD /* Foundation.framework in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | /* End PBXFrameworksBuildPhase section */ 101 | 102 | /* Begin PBXGroup section */ 103 | 144BE7FE29CAEB200E67AEF5AF7211A3 /* Pods-ZRouter_Example */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | A859AD6DBA50C9150710C84219ACF054 /* Pods-ZRouter_Example.modulemap */, 107 | 9FFD7DC36D5D8722FD7E3D2A435E0E0C /* Pods-ZRouter_Example-acknowledgements.markdown */, 108 | 37AC819CF968391836E5062E825B66AD /* Pods-ZRouter_Example-acknowledgements.plist */, 109 | 2FEB5E9AF5A98C5543159889AB51FCCA /* Pods-ZRouter_Example-dummy.m */, 110 | 65D10A51484D328E6EBD511425671A58 /* Pods-ZRouter_Example-frameworks.sh */, 111 | 9D289ED063CDEAA6B29FD98800E9AF33 /* Pods-ZRouter_Example-Info.plist */, 112 | 4B6B86474E6AC6C733C5B15875649C6F /* Pods-ZRouter_Example-umbrella.h */, 113 | 4ED66C83172F93F5067B86C11A8D0F38 /* Pods-ZRouter_Example.debug.xcconfig */, 114 | 08B66742A151BA6E3308096C6C63EA47 /* Pods-ZRouter_Example.release.xcconfig */, 115 | ); 116 | name = "Pods-ZRouter_Example"; 117 | path = "Target Support Files/Pods-ZRouter_Example"; 118 | sourceTree = ""; 119 | }; 120 | 4A00F9499941DDBAAAA5FE1BEB9C3838 /* Development Pods */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | CECB5CA21F37CA81F33D3F706488ED36 /* MSRouter */, 124 | ); 125 | name = "Development Pods"; 126 | sourceTree = ""; 127 | }; 128 | 4E9147D9F5768D68983B065793FF338A /* Pod */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | B4AEFFE75586B36E03CC4D8A4D71C688 /* LICENSE */, 132 | 1426E2474D6D7809B3930C3971BFA3BF /* MSRouter.podspec */, 133 | 4FE5D1F4C2A1BCEE2CAFD7DD25B846C1 /* README.md */, 134 | ); 135 | name = Pod; 136 | sourceTree = ""; 137 | }; 138 | 54AE9F324617E34F537217E68ABF6B87 /* Products */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 44CFDE51B508A4512A39B8C4A0122B8F /* MSRouter.framework */, 142 | FC9BD12F07E54A96D42D14D2DE947605 /* Pods_ZRouter_Example.framework */, 143 | D512788CB1077729E82A3BA22B28407D /* Pods_ZRouter_Tests.framework */, 144 | ); 145 | name = Products; 146 | sourceTree = ""; 147 | }; 148 | 578452D2E740E91742655AC8F1636D1F /* iOS */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */, 152 | ); 153 | name = iOS; 154 | sourceTree = ""; 155 | }; 156 | A0DF1911B7B2B09384CF4129A6474BA8 /* Targets Support Files */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 144BE7FE29CAEB200E67AEF5AF7211A3 /* Pods-ZRouter_Example */, 160 | B8DFBF2EA689A530CC8DD0E74409CA0A /* Pods-ZRouter_Tests */, 161 | ); 162 | name = "Targets Support Files"; 163 | sourceTree = ""; 164 | }; 165 | B8DFBF2EA689A530CC8DD0E74409CA0A /* Pods-ZRouter_Tests */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 6C8E19DABAD4F7B08711FF31EE868942 /* Pods-ZRouter_Tests.modulemap */, 169 | 7DA37D532B5786115B6EEB139CCC2E34 /* Pods-ZRouter_Tests-acknowledgements.markdown */, 170 | D34DB8425C586CF85A26683D28FD2C6E /* Pods-ZRouter_Tests-acknowledgements.plist */, 171 | 69F24EDFDC4F7BF745FA6EC6F5ED10C5 /* Pods-ZRouter_Tests-dummy.m */, 172 | 529DD3390C6DB23303807AF0492805C3 /* Pods-ZRouter_Tests-Info.plist */, 173 | 3B0777ECA2E189EA2B188A2B79D2F54B /* Pods-ZRouter_Tests-umbrella.h */, 174 | 7A97F6BE3B3F84D70068A02B195842CC /* Pods-ZRouter_Tests.debug.xcconfig */, 175 | D47D7DB3782201FA278F88688914C4B8 /* Pods-ZRouter_Tests.release.xcconfig */, 176 | ); 177 | name = "Pods-ZRouter_Tests"; 178 | path = "Target Support Files/Pods-ZRouter_Tests"; 179 | sourceTree = ""; 180 | }; 181 | CECB5CA21F37CA81F33D3F706488ED36 /* MSRouter */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 04CBAD6335F40840CBDCE7438F0856AF /* MSRouter.swift */, 185 | 4E9147D9F5768D68983B065793FF338A /* Pod */, 186 | FAA499BC895F61982ABD67D51DCBB46E /* Support Files */, 187 | ); 188 | name = MSRouter; 189 | path = ../..; 190 | sourceTree = ""; 191 | }; 192 | CF1408CF629C7361332E53B88F7BD30C = { 193 | isa = PBXGroup; 194 | children = ( 195 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 196 | 4A00F9499941DDBAAAA5FE1BEB9C3838 /* Development Pods */, 197 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 198 | 54AE9F324617E34F537217E68ABF6B87 /* Products */, 199 | A0DF1911B7B2B09384CF4129A6474BA8 /* Targets Support Files */, 200 | ); 201 | sourceTree = ""; 202 | }; 203 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 204 | isa = PBXGroup; 205 | children = ( 206 | 578452D2E740E91742655AC8F1636D1F /* iOS */, 207 | ); 208 | name = Frameworks; 209 | sourceTree = ""; 210 | }; 211 | FAA499BC895F61982ABD67D51DCBB46E /* Support Files */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 991E5D2AB64600C31890C16DB9281608 /* MSRouter.modulemap */, 215 | EEE001C36618C41C756F6DB3AD24A12B /* MSRouter-dummy.m */, 216 | 4F033F8F8EA7C8CA6CD69C7A96306ADE /* MSRouter-Info.plist */, 217 | F6F90CC79C61B2A2A18AC4006097F62B /* MSRouter-prefix.pch */, 218 | DFAB6BEA3457ACDF60D6688CEBCAB160 /* MSRouter-umbrella.h */, 219 | 9B1074C0AC934D6477A16F64D167DEF6 /* MSRouter.debug.xcconfig */, 220 | B64BC9A2B3785835F1B7B3F0FE654F46 /* MSRouter.release.xcconfig */, 221 | ); 222 | name = "Support Files"; 223 | path = "Example/Pods/Target Support Files/MSRouter"; 224 | sourceTree = ""; 225 | }; 226 | /* End PBXGroup section */ 227 | 228 | /* Begin PBXHeadersBuildPhase section */ 229 | 36E2157885C3F1ED105F2EE1164E6F43 /* Headers */ = { 230 | isa = PBXHeadersBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | E860FF8010411EAAC68FD36382F8A740 /* Pods-ZRouter_Example-umbrella.h in Headers */, 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | }; 237 | 40CDDF9E4859B24EA9A8416C3F7E7BD2 /* Headers */ = { 238 | isa = PBXHeadersBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | 5B809A8B5E32635E96057F60E31B9AEB /* Pods-ZRouter_Tests-umbrella.h in Headers */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | D64D500AF3CED3E72FDE934A213DF18C /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 7340605ACF7026ED976BA6480A1BE91E /* MSRouter-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | /* End PBXHeadersBuildPhase section */ 254 | 255 | /* Begin PBXNativeTarget section */ 256 | 1AD03037DE6E80A85880CB05D9DA8306 /* Pods-ZRouter_Tests */ = { 257 | isa = PBXNativeTarget; 258 | buildConfigurationList = C4A39AEDD657A2391D4A4814E910A7FD /* Build configuration list for PBXNativeTarget "Pods-ZRouter_Tests" */; 259 | buildPhases = ( 260 | 40CDDF9E4859B24EA9A8416C3F7E7BD2 /* Headers */, 261 | 7F1C4B27DB64252C4C75280CE59B02B7 /* Sources */, 262 | C13F55C5BDB084EA825EA816221AC0F5 /* Frameworks */, 263 | B48CD84EC651824DC31DDFFB4C745ED7 /* Resources */, 264 | ); 265 | buildRules = ( 266 | ); 267 | dependencies = ( 268 | 23F6DE0F4CA71B995EA67CD935A8BD87 /* PBXTargetDependency */, 269 | ); 270 | name = "Pods-ZRouter_Tests"; 271 | productName = "Pods-ZRouter_Tests"; 272 | productReference = D512788CB1077729E82A3BA22B28407D /* Pods_ZRouter_Tests.framework */; 273 | productType = "com.apple.product-type.framework"; 274 | }; 275 | 52E687C27951A88C9440C90B4E0E52BA /* Pods-ZRouter_Example */ = { 276 | isa = PBXNativeTarget; 277 | buildConfigurationList = D8AB28A8048A9CB673F912527AC478DA /* Build configuration list for PBXNativeTarget "Pods-ZRouter_Example" */; 278 | buildPhases = ( 279 | 36E2157885C3F1ED105F2EE1164E6F43 /* Headers */, 280 | BB6C158D94842A84CAD49CCCBC6775BD /* Sources */, 281 | B5B53C6C232793C3BE404EDC144508CB /* Frameworks */, 282 | D530DFF0D669EFDBE11DAC9F55D5B7DD /* Resources */, 283 | ); 284 | buildRules = ( 285 | ); 286 | dependencies = ( 287 | D856B6C0F836345DCFDEE61B1227B409 /* PBXTargetDependency */, 288 | ); 289 | name = "Pods-ZRouter_Example"; 290 | productName = "Pods-ZRouter_Example"; 291 | productReference = FC9BD12F07E54A96D42D14D2DE947605 /* Pods_ZRouter_Example.framework */; 292 | productType = "com.apple.product-type.framework"; 293 | }; 294 | B27A15A78A45659BDBF99D061FD854E8 /* MSRouter */ = { 295 | isa = PBXNativeTarget; 296 | buildConfigurationList = 8B78D98DE516372D0378C07919551CBA /* Build configuration list for PBXNativeTarget "MSRouter" */; 297 | buildPhases = ( 298 | D64D500AF3CED3E72FDE934A213DF18C /* Headers */, 299 | BB982ECC8E0E33439EAC71082030A5AF /* Sources */, 300 | 6CBDC8C34408B1F9E780F8CC9B20F652 /* Frameworks */, 301 | 74D8A08FFE52DF805F8F5E7C5F89B029 /* Resources */, 302 | ); 303 | buildRules = ( 304 | ); 305 | dependencies = ( 306 | ); 307 | name = MSRouter; 308 | productName = MSRouter; 309 | productReference = 44CFDE51B508A4512A39B8C4A0122B8F /* MSRouter.framework */; 310 | productType = "com.apple.product-type.framework"; 311 | }; 312 | /* End PBXNativeTarget section */ 313 | 314 | /* Begin PBXProject section */ 315 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 316 | isa = PBXProject; 317 | attributes = { 318 | LastSwiftUpdateCheck = 1100; 319 | LastUpgradeCheck = 1240; 320 | }; 321 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 322 | compatibilityVersion = "Xcode 3.2"; 323 | developmentRegion = en; 324 | hasScannedForEncodings = 0; 325 | knownRegions = ( 326 | en, 327 | Base, 328 | ); 329 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 330 | productRefGroup = 54AE9F324617E34F537217E68ABF6B87 /* Products */; 331 | projectDirPath = ""; 332 | projectRoot = ""; 333 | targets = ( 334 | B27A15A78A45659BDBF99D061FD854E8 /* MSRouter */, 335 | 52E687C27951A88C9440C90B4E0E52BA /* Pods-ZRouter_Example */, 336 | 1AD03037DE6E80A85880CB05D9DA8306 /* Pods-ZRouter_Tests */, 337 | ); 338 | }; 339 | /* End PBXProject section */ 340 | 341 | /* Begin PBXResourcesBuildPhase section */ 342 | 74D8A08FFE52DF805F8F5E7C5F89B029 /* Resources */ = { 343 | isa = PBXResourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | B48CD84EC651824DC31DDFFB4C745ED7 /* Resources */ = { 350 | isa = PBXResourcesBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | }; 356 | D530DFF0D669EFDBE11DAC9F55D5B7DD /* Resources */ = { 357 | isa = PBXResourcesBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | /* End PBXResourcesBuildPhase section */ 364 | 365 | /* Begin PBXSourcesBuildPhase section */ 366 | 7F1C4B27DB64252C4C75280CE59B02B7 /* Sources */ = { 367 | isa = PBXSourcesBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | 5AEC9557D76BF36FB6A1EB6C65784BC4 /* Pods-ZRouter_Tests-dummy.m in Sources */, 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | BB6C158D94842A84CAD49CCCBC6775BD /* Sources */ = { 375 | isa = PBXSourcesBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | 08B5948C82E235D911A4B7FCCADA0546 /* Pods-ZRouter_Example-dummy.m in Sources */, 379 | ); 380 | runOnlyForDeploymentPostprocessing = 0; 381 | }; 382 | BB982ECC8E0E33439EAC71082030A5AF /* Sources */ = { 383 | isa = PBXSourcesBuildPhase; 384 | buildActionMask = 2147483647; 385 | files = ( 386 | 8C62725566F37DE96191B33DADD261B9 /* MSRouter-dummy.m in Sources */, 387 | 02C28140DC4515802D32013A78B9C905 /* MSRouter.swift in Sources */, 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | }; 391 | /* End PBXSourcesBuildPhase section */ 392 | 393 | /* Begin PBXTargetDependency section */ 394 | 23F6DE0F4CA71B995EA67CD935A8BD87 /* PBXTargetDependency */ = { 395 | isa = PBXTargetDependency; 396 | name = "Pods-ZRouter_Example"; 397 | target = 52E687C27951A88C9440C90B4E0E52BA /* Pods-ZRouter_Example */; 398 | targetProxy = 06F59E92FD371EE8291B0924F3729DA5 /* PBXContainerItemProxy */; 399 | }; 400 | D856B6C0F836345DCFDEE61B1227B409 /* PBXTargetDependency */ = { 401 | isa = PBXTargetDependency; 402 | name = MSRouter; 403 | target = B27A15A78A45659BDBF99D061FD854E8 /* MSRouter */; 404 | targetProxy = 9C7947C341F80E7DFE62CD772BEA5EDF /* PBXContainerItemProxy */; 405 | }; 406 | /* End PBXTargetDependency section */ 407 | 408 | /* Begin XCBuildConfiguration section */ 409 | 0F2296D1271FC7F61806EFD10B186042 /* Release */ = { 410 | isa = XCBuildConfiguration; 411 | baseConfigurationReference = D47D7DB3782201FA278F88688914C4B8 /* Pods-ZRouter_Tests.release.xcconfig */; 412 | buildSettings = { 413 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 414 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 415 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 416 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 417 | CURRENT_PROJECT_VERSION = 1; 418 | DEFINES_MODULE = YES; 419 | DYLIB_COMPATIBILITY_VERSION = 1; 420 | DYLIB_CURRENT_VERSION = 1; 421 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 422 | INFOPLIST_FILE = "Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_Tests-Info.plist"; 423 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 424 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 425 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 426 | MACH_O_TYPE = staticlib; 427 | MODULEMAP_FILE = "Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_Tests.modulemap"; 428 | OTHER_LDFLAGS = ""; 429 | OTHER_LIBTOOLFLAGS = ""; 430 | PODS_ROOT = "$(SRCROOT)"; 431 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 432 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 433 | SDKROOT = iphoneos; 434 | SKIP_INSTALL = YES; 435 | TARGETED_DEVICE_FAMILY = "1,2"; 436 | VALIDATE_PRODUCT = YES; 437 | VERSIONING_SYSTEM = "apple-generic"; 438 | VERSION_INFO_PREFIX = ""; 439 | }; 440 | name = Release; 441 | }; 442 | 25AD9454612BF454A1E3DC4CD4FA8C6D /* Debug */ = { 443 | isa = XCBuildConfiguration; 444 | buildSettings = { 445 | ALWAYS_SEARCH_USER_PATHS = NO; 446 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 447 | CLANG_ANALYZER_NONNULL = YES; 448 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 449 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 450 | CLANG_CXX_LIBRARY = "libc++"; 451 | CLANG_ENABLE_MODULES = YES; 452 | CLANG_ENABLE_OBJC_ARC = YES; 453 | CLANG_ENABLE_OBJC_WEAK = 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_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 459 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 460 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 461 | CLANG_WARN_EMPTY_BODY = YES; 462 | CLANG_WARN_ENUM_CONVERSION = YES; 463 | CLANG_WARN_INFINITE_RECURSION = YES; 464 | CLANG_WARN_INT_CONVERSION = YES; 465 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 466 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 467 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 468 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 469 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 470 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 471 | CLANG_WARN_STRICT_PROTOTYPES = YES; 472 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 473 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 474 | CLANG_WARN_UNREACHABLE_CODE = YES; 475 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 476 | COPY_PHASE_STRIP = NO; 477 | DEBUG_INFORMATION_FORMAT = dwarf; 478 | ENABLE_STRICT_OBJC_MSGSEND = YES; 479 | ENABLE_TESTABILITY = YES; 480 | GCC_C_LANGUAGE_STANDARD = gnu11; 481 | GCC_DYNAMIC_NO_PIC = NO; 482 | GCC_NO_COMMON_BLOCKS = YES; 483 | GCC_OPTIMIZATION_LEVEL = 0; 484 | GCC_PREPROCESSOR_DEFINITIONS = ( 485 | "POD_CONFIGURATION_DEBUG=1", 486 | "DEBUG=1", 487 | "$(inherited)", 488 | ); 489 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 490 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 491 | GCC_WARN_UNDECLARED_SELECTOR = YES; 492 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 493 | GCC_WARN_UNUSED_FUNCTION = YES; 494 | GCC_WARN_UNUSED_VARIABLE = YES; 495 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 496 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 497 | MTL_FAST_MATH = YES; 498 | ONLY_ACTIVE_ARCH = YES; 499 | PRODUCT_NAME = "$(TARGET_NAME)"; 500 | STRIP_INSTALLED_PRODUCT = NO; 501 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 502 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 503 | SWIFT_VERSION = 5.0; 504 | SYMROOT = "${SRCROOT}/../build"; 505 | }; 506 | name = Debug; 507 | }; 508 | 358E3068C5E523814B75C04EC69D734D /* Debug */ = { 509 | isa = XCBuildConfiguration; 510 | baseConfigurationReference = 4ED66C83172F93F5067B86C11A8D0F38 /* Pods-ZRouter_Example.debug.xcconfig */; 511 | buildSettings = { 512 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 513 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 514 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 515 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 516 | CURRENT_PROJECT_VERSION = 1; 517 | DEFINES_MODULE = YES; 518 | DYLIB_COMPATIBILITY_VERSION = 1; 519 | DYLIB_CURRENT_VERSION = 1; 520 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 521 | INFOPLIST_FILE = "Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example-Info.plist"; 522 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 523 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 524 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 525 | MACH_O_TYPE = staticlib; 526 | MODULEMAP_FILE = "Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example.modulemap"; 527 | OTHER_LDFLAGS = ""; 528 | OTHER_LIBTOOLFLAGS = ""; 529 | PODS_ROOT = "$(SRCROOT)"; 530 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 531 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 532 | SDKROOT = iphoneos; 533 | SKIP_INSTALL = YES; 534 | TARGETED_DEVICE_FAMILY = "1,2"; 535 | VERSIONING_SYSTEM = "apple-generic"; 536 | VERSION_INFO_PREFIX = ""; 537 | }; 538 | name = Debug; 539 | }; 540 | 7D0EE43F54FB4230624C80EA4C4A7E24 /* Debug */ = { 541 | isa = XCBuildConfiguration; 542 | baseConfigurationReference = 9B1074C0AC934D6477A16F64D167DEF6 /* MSRouter.debug.xcconfig */; 543 | buildSettings = { 544 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 545 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 546 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 547 | CURRENT_PROJECT_VERSION = 1; 548 | DEFINES_MODULE = YES; 549 | DYLIB_COMPATIBILITY_VERSION = 1; 550 | DYLIB_CURRENT_VERSION = 1; 551 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 552 | GCC_PREFIX_HEADER = "Target Support Files/MSRouter/MSRouter-prefix.pch"; 553 | INFOPLIST_FILE = "Target Support Files/MSRouter/MSRouter-Info.plist"; 554 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 555 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 556 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 557 | MODULEMAP_FILE = "Target Support Files/MSRouter/MSRouter.modulemap"; 558 | PRODUCT_MODULE_NAME = MSRouter; 559 | PRODUCT_NAME = MSRouter; 560 | SDKROOT = iphoneos; 561 | SKIP_INSTALL = YES; 562 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 563 | SWIFT_VERSION = 5.0; 564 | TARGETED_DEVICE_FAMILY = "1,2"; 565 | VERSIONING_SYSTEM = "apple-generic"; 566 | VERSION_INFO_PREFIX = ""; 567 | }; 568 | name = Debug; 569 | }; 570 | CA547D2C7E9A8A153DC2B27FBE00B112 /* Release */ = { 571 | isa = XCBuildConfiguration; 572 | buildSettings = { 573 | ALWAYS_SEARCH_USER_PATHS = NO; 574 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 575 | CLANG_ANALYZER_NONNULL = YES; 576 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 577 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 578 | CLANG_CXX_LIBRARY = "libc++"; 579 | CLANG_ENABLE_MODULES = YES; 580 | CLANG_ENABLE_OBJC_ARC = YES; 581 | CLANG_ENABLE_OBJC_WEAK = YES; 582 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 583 | CLANG_WARN_BOOL_CONVERSION = YES; 584 | CLANG_WARN_COMMA = YES; 585 | CLANG_WARN_CONSTANT_CONVERSION = YES; 586 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 587 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 588 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 589 | CLANG_WARN_EMPTY_BODY = YES; 590 | CLANG_WARN_ENUM_CONVERSION = YES; 591 | CLANG_WARN_INFINITE_RECURSION = YES; 592 | CLANG_WARN_INT_CONVERSION = YES; 593 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 594 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 595 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 596 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 597 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 598 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 599 | CLANG_WARN_STRICT_PROTOTYPES = YES; 600 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 601 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 602 | CLANG_WARN_UNREACHABLE_CODE = YES; 603 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 604 | COPY_PHASE_STRIP = NO; 605 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 606 | ENABLE_NS_ASSERTIONS = NO; 607 | ENABLE_STRICT_OBJC_MSGSEND = YES; 608 | GCC_C_LANGUAGE_STANDARD = gnu11; 609 | GCC_NO_COMMON_BLOCKS = YES; 610 | GCC_PREPROCESSOR_DEFINITIONS = ( 611 | "POD_CONFIGURATION_RELEASE=1", 612 | "$(inherited)", 613 | ); 614 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 615 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 616 | GCC_WARN_UNDECLARED_SELECTOR = YES; 617 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 618 | GCC_WARN_UNUSED_FUNCTION = YES; 619 | GCC_WARN_UNUSED_VARIABLE = YES; 620 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 621 | MTL_ENABLE_DEBUG_INFO = NO; 622 | MTL_FAST_MATH = YES; 623 | PRODUCT_NAME = "$(TARGET_NAME)"; 624 | STRIP_INSTALLED_PRODUCT = NO; 625 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 626 | SWIFT_VERSION = 5.0; 627 | SYMROOT = "${SRCROOT}/../build"; 628 | }; 629 | name = Release; 630 | }; 631 | D3C7F25B276D3E581EE6F67E559265B2 /* Debug */ = { 632 | isa = XCBuildConfiguration; 633 | baseConfigurationReference = 7A97F6BE3B3F84D70068A02B195842CC /* Pods-ZRouter_Tests.debug.xcconfig */; 634 | buildSettings = { 635 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 636 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 637 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 638 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 639 | CURRENT_PROJECT_VERSION = 1; 640 | DEFINES_MODULE = YES; 641 | DYLIB_COMPATIBILITY_VERSION = 1; 642 | DYLIB_CURRENT_VERSION = 1; 643 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 644 | INFOPLIST_FILE = "Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_Tests-Info.plist"; 645 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 646 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 647 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 648 | MACH_O_TYPE = staticlib; 649 | MODULEMAP_FILE = "Target Support Files/Pods-ZRouter_Tests/Pods-ZRouter_Tests.modulemap"; 650 | OTHER_LDFLAGS = ""; 651 | OTHER_LIBTOOLFLAGS = ""; 652 | PODS_ROOT = "$(SRCROOT)"; 653 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 654 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 655 | SDKROOT = iphoneos; 656 | SKIP_INSTALL = YES; 657 | TARGETED_DEVICE_FAMILY = "1,2"; 658 | VERSIONING_SYSTEM = "apple-generic"; 659 | VERSION_INFO_PREFIX = ""; 660 | }; 661 | name = Debug; 662 | }; 663 | DD8AD714876DCDFF0F15BB58DB3C5D26 /* Release */ = { 664 | isa = XCBuildConfiguration; 665 | baseConfigurationReference = 08B66742A151BA6E3308096C6C63EA47 /* Pods-ZRouter_Example.release.xcconfig */; 666 | buildSettings = { 667 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 668 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 669 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 670 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 671 | CURRENT_PROJECT_VERSION = 1; 672 | DEFINES_MODULE = YES; 673 | DYLIB_COMPATIBILITY_VERSION = 1; 674 | DYLIB_CURRENT_VERSION = 1; 675 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 676 | INFOPLIST_FILE = "Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example-Info.plist"; 677 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 678 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 679 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 680 | MACH_O_TYPE = staticlib; 681 | MODULEMAP_FILE = "Target Support Files/Pods-ZRouter_Example/Pods-ZRouter_Example.modulemap"; 682 | OTHER_LDFLAGS = ""; 683 | OTHER_LIBTOOLFLAGS = ""; 684 | PODS_ROOT = "$(SRCROOT)"; 685 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 686 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 687 | SDKROOT = iphoneos; 688 | SKIP_INSTALL = YES; 689 | TARGETED_DEVICE_FAMILY = "1,2"; 690 | VALIDATE_PRODUCT = YES; 691 | VERSIONING_SYSTEM = "apple-generic"; 692 | VERSION_INFO_PREFIX = ""; 693 | }; 694 | name = Release; 695 | }; 696 | F84DFBA057408E875A910B4A15A427C6 /* Release */ = { 697 | isa = XCBuildConfiguration; 698 | baseConfigurationReference = B64BC9A2B3785835F1B7B3F0FE654F46 /* MSRouter.release.xcconfig */; 699 | buildSettings = { 700 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 701 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 702 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 703 | CURRENT_PROJECT_VERSION = 1; 704 | DEFINES_MODULE = YES; 705 | DYLIB_COMPATIBILITY_VERSION = 1; 706 | DYLIB_CURRENT_VERSION = 1; 707 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 708 | GCC_PREFIX_HEADER = "Target Support Files/MSRouter/MSRouter-prefix.pch"; 709 | INFOPLIST_FILE = "Target Support Files/MSRouter/MSRouter-Info.plist"; 710 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 711 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 712 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 713 | MODULEMAP_FILE = "Target Support Files/MSRouter/MSRouter.modulemap"; 714 | PRODUCT_MODULE_NAME = MSRouter; 715 | PRODUCT_NAME = MSRouter; 716 | SDKROOT = iphoneos; 717 | SKIP_INSTALL = YES; 718 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 719 | SWIFT_VERSION = 5.0; 720 | TARGETED_DEVICE_FAMILY = "1,2"; 721 | VALIDATE_PRODUCT = YES; 722 | VERSIONING_SYSTEM = "apple-generic"; 723 | VERSION_INFO_PREFIX = ""; 724 | }; 725 | name = Release; 726 | }; 727 | /* End XCBuildConfiguration section */ 728 | 729 | /* Begin XCConfigurationList section */ 730 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 731 | isa = XCConfigurationList; 732 | buildConfigurations = ( 733 | 25AD9454612BF454A1E3DC4CD4FA8C6D /* Debug */, 734 | CA547D2C7E9A8A153DC2B27FBE00B112 /* Release */, 735 | ); 736 | defaultConfigurationIsVisible = 0; 737 | defaultConfigurationName = Release; 738 | }; 739 | 8B78D98DE516372D0378C07919551CBA /* Build configuration list for PBXNativeTarget "MSRouter" */ = { 740 | isa = XCConfigurationList; 741 | buildConfigurations = ( 742 | 7D0EE43F54FB4230624C80EA4C4A7E24 /* Debug */, 743 | F84DFBA057408E875A910B4A15A427C6 /* Release */, 744 | ); 745 | defaultConfigurationIsVisible = 0; 746 | defaultConfigurationName = Release; 747 | }; 748 | C4A39AEDD657A2391D4A4814E910A7FD /* Build configuration list for PBXNativeTarget "Pods-ZRouter_Tests" */ = { 749 | isa = XCConfigurationList; 750 | buildConfigurations = ( 751 | D3C7F25B276D3E581EE6F67E559265B2 /* Debug */, 752 | 0F2296D1271FC7F61806EFD10B186042 /* Release */, 753 | ); 754 | defaultConfigurationIsVisible = 0; 755 | defaultConfigurationName = Release; 756 | }; 757 | D8AB28A8048A9CB673F912527AC478DA /* Build configuration list for PBXNativeTarget "Pods-ZRouter_Example" */ = { 758 | isa = XCConfigurationList; 759 | buildConfigurations = ( 760 | 358E3068C5E523814B75C04EC69D734D /* Debug */, 761 | DD8AD714876DCDFF0F15BB58DB3C5D26 /* Release */, 762 | ); 763 | defaultConfigurationIsVisible = 0; 764 | defaultConfigurationName = Release; 765 | }; 766 | /* End XCConfigurationList section */ 767 | }; 768 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 769 | } 770 | --------------------------------------------------------------------------------