├── .DS_Store ├── .gitignore ├── .travis.yml ├── Example ├── MGXWebBridge.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── MGXWebBridge-Example.xcscheme ├── MGXWebBridge.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── MGXWebBridge │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── MGXAppDelegate.h │ ├── MGXAppDelegate.m │ ├── MGXViewController.h │ ├── MGXViewController.m │ ├── MGXWebBridge-Info.plist │ ├── MGXWebBridge-Prefix.pch │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── html │ │ ├── bridge-raw.html │ │ └── mLibs.js │ └── main.m ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── MGXWebBridge.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── MGXWebBridge │ │ ├── Info.plist │ │ ├── MGXWebBridge-dummy.m │ │ ├── MGXWebBridge-prefix.pch │ │ ├── MGXWebBridge-umbrella.h │ │ ├── MGXWebBridge.modulemap │ │ └── MGXWebBridge.xcconfig │ │ ├── Pods-MGXWebBridge_Example │ │ ├── Info.plist │ │ ├── Pods-MGXWebBridge_Example-acknowledgements.markdown │ │ ├── Pods-MGXWebBridge_Example-acknowledgements.plist │ │ ├── Pods-MGXWebBridge_Example-dummy.m │ │ ├── Pods-MGXWebBridge_Example-frameworks.sh │ │ ├── Pods-MGXWebBridge_Example-resources.sh │ │ ├── Pods-MGXWebBridge_Example-umbrella.h │ │ ├── Pods-MGXWebBridge_Example.debug.xcconfig │ │ ├── Pods-MGXWebBridge_Example.modulemap │ │ └── Pods-MGXWebBridge_Example.release.xcconfig │ │ └── Pods-MGXWebBridge_Tests │ │ ├── Info.plist │ │ ├── Pods-MGXWebBridge_Tests-acknowledgements.markdown │ │ ├── Pods-MGXWebBridge_Tests-acknowledgements.plist │ │ ├── Pods-MGXWebBridge_Tests-dummy.m │ │ ├── Pods-MGXWebBridge_Tests-frameworks.sh │ │ ├── Pods-MGXWebBridge_Tests-resources.sh │ │ ├── Pods-MGXWebBridge_Tests-umbrella.h │ │ ├── Pods-MGXWebBridge_Tests.debug.xcconfig │ │ ├── Pods-MGXWebBridge_Tests.modulemap │ │ └── Pods-MGXWebBridge_Tests.release.xcconfig └── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ └── InfoPlist.strings ├── LICENSE ├── MGXWebBridge.podspec ├── MGXWebBridge ├── Assets │ └── .gitkeep └── Classes │ ├── .DS_Store │ ├── .gitkeep │ ├── MGXWebBridge.h │ └── MGXWebBridge.m ├── README.md └── _Pods.xcodeproj /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/changjianfeishui/MGXWebBridge/53bc0730d052d616ef5827e643f368b5a577eeb5/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | # Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/screenshots 54 | -------------------------------------------------------------------------------- /.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/MGXWebBridge.xcworkspace -scheme MGXWebBridge-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/MGXWebBridge.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0028ED08DA837869CCFDAA6F /* Pods_MGXWebBridge_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B83DF43E52766ED62A5BA39 /* Pods_MGXWebBridge_Example.framework */; }; 11 | 5DAA837621902E5E00D3CEB4 /* mLibs.js in Resources */ = {isa = PBXBuildFile; fileRef = 5DAA837421902E5E00D3CEB4 /* mLibs.js */; }; 12 | 5DAA837721902E5E00D3CEB4 /* bridge-raw.html in Resources */ = {isa = PBXBuildFile; fileRef = 5DAA837521902E5E00D3CEB4 /* bridge-raw.html */; }; 13 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 14 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 15 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 16 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 17 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 18 | 6003F59E195388D20070C39A /* MGXAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* MGXAppDelegate.m */; }; 19 | 6003F5A7195388D20070C39A /* MGXViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* MGXViewController.m */; }; 20 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 21 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 22 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 23 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 24 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 25 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 26 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; 27 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 28 | CC9A4FFB40AE802CA676DB2C /* Pods_MGXWebBridge_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F744273AE1C3B213481B00A /* Pods_MGXWebBridge_Tests.framework */; }; 29 | /* End PBXBuildFile section */ 30 | 31 | /* Begin PBXContainerItemProxy section */ 32 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = 6003F582195388D10070C39A /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = 6003F589195388D20070C39A; 37 | remoteInfo = MGXWebBridge; 38 | }; 39 | /* End PBXContainerItemProxy section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 00F37558809FB3421E3320F7 /* MGXWebBridge.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MGXWebBridge.podspec; path = ../MGXWebBridge.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 43 | 2B4866685E698F579DB60A8F /* Pods-MGXWebBridge_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MGXWebBridge_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example.debug.xcconfig"; sourceTree = ""; }; 44 | 5DAA837421902E5E00D3CEB4 /* mLibs.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = mLibs.js; sourceTree = ""; }; 45 | 5DAA837521902E5E00D3CEB4 /* bridge-raw.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = "bridge-raw.html"; sourceTree = ""; }; 46 | 5F4BFB43BBA5614C08042A98 /* Pods-MGXWebBridge_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MGXWebBridge_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests.release.xcconfig"; sourceTree = ""; }; 47 | 6003F58A195388D20070C39A /* MGXWebBridge_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MGXWebBridge_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 49 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 50 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 51 | 6003F595195388D20070C39A /* MGXWebBridge-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MGXWebBridge-Info.plist"; sourceTree = ""; }; 52 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 53 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 54 | 6003F59B195388D20070C39A /* MGXWebBridge-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MGXWebBridge-Prefix.pch"; sourceTree = ""; }; 55 | 6003F59C195388D20070C39A /* MGXAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGXAppDelegate.h; sourceTree = ""; }; 56 | 6003F59D195388D20070C39A /* MGXAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MGXAppDelegate.m; sourceTree = ""; }; 57 | 6003F5A5195388D20070C39A /* MGXViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGXViewController.h; sourceTree = ""; }; 58 | 6003F5A6195388D20070C39A /* MGXViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MGXViewController.m; sourceTree = ""; }; 59 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 60 | 6003F5AE195388D20070C39A /* MGXWebBridge_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MGXWebBridge_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 62 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 63 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 64 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 65 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 66 | 6F744273AE1C3B213481B00A /* Pods_MGXWebBridge_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MGXWebBridge_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 68 | 7B83DF43E52766ED62A5BA39 /* Pods_MGXWebBridge_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MGXWebBridge_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | 7FEFFEBFA1878B492D58943A /* Pods-MGXWebBridge_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MGXWebBridge_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example.release.xcconfig"; sourceTree = ""; }; 70 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 71 | C9D75CE8EDCEBAA12FE48071 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 72 | ED6158DE03DA43A88D8BE011 /* Pods-MGXWebBridge_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MGXWebBridge_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests.debug.xcconfig"; sourceTree = ""; }; 73 | FEFD24B45F076952C939373A /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 74 | /* End PBXFileReference section */ 75 | 76 | /* Begin PBXFrameworksBuildPhase section */ 77 | 6003F587195388D20070C39A /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 82 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 83 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 84 | 0028ED08DA837869CCFDAA6F /* Pods_MGXWebBridge_Example.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | 6003F5AB195388D20070C39A /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 93 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 94 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 95 | CC9A4FFB40AE802CA676DB2C /* Pods_MGXWebBridge_Tests.framework in Frameworks */, 96 | ); 97 | runOnlyForDeploymentPostprocessing = 0; 98 | }; 99 | /* End PBXFrameworksBuildPhase section */ 100 | 101 | /* Begin PBXGroup section */ 102 | 5DAA837321902E5E00D3CEB4 /* html */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 5DAA837421902E5E00D3CEB4 /* mLibs.js */, 106 | 5DAA837521902E5E00D3CEB4 /* bridge-raw.html */, 107 | ); 108 | path = html; 109 | sourceTree = ""; 110 | }; 111 | 6003F581195388D10070C39A = { 112 | isa = PBXGroup; 113 | children = ( 114 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 115 | 6003F593195388D20070C39A /* Example for MGXWebBridge */, 116 | 6003F5B5195388D20070C39A /* Tests */, 117 | 6003F58C195388D20070C39A /* Frameworks */, 118 | 6003F58B195388D20070C39A /* Products */, 119 | F7036A1F2DAC79BB460502D6 /* Pods */, 120 | ); 121 | sourceTree = ""; 122 | }; 123 | 6003F58B195388D20070C39A /* Products */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 6003F58A195388D20070C39A /* MGXWebBridge_Example.app */, 127 | 6003F5AE195388D20070C39A /* MGXWebBridge_Tests.xctest */, 128 | ); 129 | name = Products; 130 | sourceTree = ""; 131 | }; 132 | 6003F58C195388D20070C39A /* Frameworks */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 6003F58D195388D20070C39A /* Foundation.framework */, 136 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 137 | 6003F591195388D20070C39A /* UIKit.framework */, 138 | 6003F5AF195388D20070C39A /* XCTest.framework */, 139 | 7B83DF43E52766ED62A5BA39 /* Pods_MGXWebBridge_Example.framework */, 140 | 6F744273AE1C3B213481B00A /* Pods_MGXWebBridge_Tests.framework */, 141 | ); 142 | name = Frameworks; 143 | sourceTree = ""; 144 | }; 145 | 6003F593195388D20070C39A /* Example for MGXWebBridge */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 5DAA837321902E5E00D3CEB4 /* html */, 149 | 6003F59C195388D20070C39A /* MGXAppDelegate.h */, 150 | 6003F59D195388D20070C39A /* MGXAppDelegate.m */, 151 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 152 | 6003F5A5195388D20070C39A /* MGXViewController.h */, 153 | 6003F5A6195388D20070C39A /* MGXViewController.m */, 154 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */, 155 | 6003F5A8195388D20070C39A /* Images.xcassets */, 156 | 6003F594195388D20070C39A /* Supporting Files */, 157 | ); 158 | name = "Example for MGXWebBridge"; 159 | path = MGXWebBridge; 160 | sourceTree = ""; 161 | }; 162 | 6003F594195388D20070C39A /* Supporting Files */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | 6003F595195388D20070C39A /* MGXWebBridge-Info.plist */, 166 | 6003F596195388D20070C39A /* InfoPlist.strings */, 167 | 6003F599195388D20070C39A /* main.m */, 168 | 6003F59B195388D20070C39A /* MGXWebBridge-Prefix.pch */, 169 | ); 170 | name = "Supporting Files"; 171 | sourceTree = ""; 172 | }; 173 | 6003F5B5195388D20070C39A /* Tests */ = { 174 | isa = PBXGroup; 175 | children = ( 176 | 6003F5BB195388D20070C39A /* Tests.m */, 177 | 6003F5B6195388D20070C39A /* Supporting Files */, 178 | ); 179 | path = Tests; 180 | sourceTree = ""; 181 | }; 182 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 186 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 187 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 188 | ); 189 | name = "Supporting Files"; 190 | sourceTree = ""; 191 | }; 192 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 193 | isa = PBXGroup; 194 | children = ( 195 | 00F37558809FB3421E3320F7 /* MGXWebBridge.podspec */, 196 | FEFD24B45F076952C939373A /* README.md */, 197 | C9D75CE8EDCEBAA12FE48071 /* LICENSE */, 198 | ); 199 | name = "Podspec Metadata"; 200 | sourceTree = ""; 201 | }; 202 | F7036A1F2DAC79BB460502D6 /* Pods */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | 2B4866685E698F579DB60A8F /* Pods-MGXWebBridge_Example.debug.xcconfig */, 206 | 7FEFFEBFA1878B492D58943A /* Pods-MGXWebBridge_Example.release.xcconfig */, 207 | ED6158DE03DA43A88D8BE011 /* Pods-MGXWebBridge_Tests.debug.xcconfig */, 208 | 5F4BFB43BBA5614C08042A98 /* Pods-MGXWebBridge_Tests.release.xcconfig */, 209 | ); 210 | name = Pods; 211 | sourceTree = ""; 212 | }; 213 | /* End PBXGroup section */ 214 | 215 | /* Begin PBXNativeTarget section */ 216 | 6003F589195388D20070C39A /* MGXWebBridge_Example */ = { 217 | isa = PBXNativeTarget; 218 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "MGXWebBridge_Example" */; 219 | buildPhases = ( 220 | BE9C8536C81244742DFE1081 /* [CP] Check Pods Manifest.lock */, 221 | 6003F586195388D20070C39A /* Sources */, 222 | 6003F587195388D20070C39A /* Frameworks */, 223 | 6003F588195388D20070C39A /* Resources */, 224 | 26EBA00B3A5E2E1A130D1D5E /* [CP] Embed Pods Frameworks */, 225 | ); 226 | buildRules = ( 227 | ); 228 | dependencies = ( 229 | ); 230 | name = MGXWebBridge_Example; 231 | productName = MGXWebBridge; 232 | productReference = 6003F58A195388D20070C39A /* MGXWebBridge_Example.app */; 233 | productType = "com.apple.product-type.application"; 234 | }; 235 | 6003F5AD195388D20070C39A /* MGXWebBridge_Tests */ = { 236 | isa = PBXNativeTarget; 237 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "MGXWebBridge_Tests" */; 238 | buildPhases = ( 239 | 626578AF0E6E0BD25523F1C1 /* [CP] Check Pods Manifest.lock */, 240 | 6003F5AA195388D20070C39A /* Sources */, 241 | 6003F5AB195388D20070C39A /* Frameworks */, 242 | 6003F5AC195388D20070C39A /* Resources */, 243 | ); 244 | buildRules = ( 245 | ); 246 | dependencies = ( 247 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 248 | ); 249 | name = MGXWebBridge_Tests; 250 | productName = MGXWebBridgeTests; 251 | productReference = 6003F5AE195388D20070C39A /* MGXWebBridge_Tests.xctest */; 252 | productType = "com.apple.product-type.bundle.unit-test"; 253 | }; 254 | /* End PBXNativeTarget section */ 255 | 256 | /* Begin PBXProject section */ 257 | 6003F582195388D10070C39A /* Project object */ = { 258 | isa = PBXProject; 259 | attributes = { 260 | CLASSPREFIX = MGX; 261 | LastUpgradeCheck = 0720; 262 | ORGANIZATIONNAME = "329735967@qq.com"; 263 | TargetAttributes = { 264 | 6003F5AD195388D20070C39A = { 265 | TestTargetID = 6003F589195388D20070C39A; 266 | }; 267 | }; 268 | }; 269 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "MGXWebBridge" */; 270 | compatibilityVersion = "Xcode 3.2"; 271 | developmentRegion = English; 272 | hasScannedForEncodings = 0; 273 | knownRegions = ( 274 | en, 275 | Base, 276 | ); 277 | mainGroup = 6003F581195388D10070C39A; 278 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 279 | projectDirPath = ""; 280 | projectRoot = ""; 281 | targets = ( 282 | 6003F589195388D20070C39A /* MGXWebBridge_Example */, 283 | 6003F5AD195388D20070C39A /* MGXWebBridge_Tests */, 284 | ); 285 | }; 286 | /* End PBXProject section */ 287 | 288 | /* Begin PBXResourcesBuildPhase section */ 289 | 6003F588195388D20070C39A /* Resources */ = { 290 | isa = PBXResourcesBuildPhase; 291 | buildActionMask = 2147483647; 292 | files = ( 293 | 5DAA837721902E5E00D3CEB4 /* bridge-raw.html in Resources */, 294 | 5DAA837621902E5E00D3CEB4 /* mLibs.js in Resources */, 295 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 296 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */, 297 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 298 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | }; 302 | 6003F5AC195388D20070C39A /* Resources */ = { 303 | isa = PBXResourcesBuildPhase; 304 | buildActionMask = 2147483647; 305 | files = ( 306 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 307 | ); 308 | runOnlyForDeploymentPostprocessing = 0; 309 | }; 310 | /* End PBXResourcesBuildPhase section */ 311 | 312 | /* Begin PBXShellScriptBuildPhase section */ 313 | 26EBA00B3A5E2E1A130D1D5E /* [CP] Embed Pods Frameworks */ = { 314 | isa = PBXShellScriptBuildPhase; 315 | buildActionMask = 2147483647; 316 | files = ( 317 | ); 318 | inputPaths = ( 319 | "${SRCROOT}/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example-frameworks.sh", 320 | "${BUILT_PRODUCTS_DIR}/MGXWebBridge/MGXWebBridge.framework", 321 | ); 322 | name = "[CP] Embed Pods Frameworks"; 323 | outputPaths = ( 324 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MGXWebBridge.framework", 325 | ); 326 | runOnlyForDeploymentPostprocessing = 0; 327 | shellPath = /bin/sh; 328 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example-frameworks.sh\"\n"; 329 | showEnvVarsInLog = 0; 330 | }; 331 | 626578AF0E6E0BD25523F1C1 /* [CP] Check Pods Manifest.lock */ = { 332 | isa = PBXShellScriptBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | ); 336 | inputPaths = ( 337 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 338 | "${PODS_ROOT}/Manifest.lock", 339 | ); 340 | name = "[CP] Check Pods Manifest.lock"; 341 | outputPaths = ( 342 | "$(DERIVED_FILE_DIR)/Pods-MGXWebBridge_Tests-checkManifestLockResult.txt", 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | shellPath = /bin/sh; 346 | 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"; 347 | showEnvVarsInLog = 0; 348 | }; 349 | BE9C8536C81244742DFE1081 /* [CP] Check Pods Manifest.lock */ = { 350 | isa = PBXShellScriptBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | ); 354 | inputPaths = ( 355 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 356 | "${PODS_ROOT}/Manifest.lock", 357 | ); 358 | name = "[CP] Check Pods Manifest.lock"; 359 | outputPaths = ( 360 | "$(DERIVED_FILE_DIR)/Pods-MGXWebBridge_Example-checkManifestLockResult.txt", 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | shellPath = /bin/sh; 364 | 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"; 365 | showEnvVarsInLog = 0; 366 | }; 367 | /* End PBXShellScriptBuildPhase section */ 368 | 369 | /* Begin PBXSourcesBuildPhase section */ 370 | 6003F586195388D20070C39A /* Sources */ = { 371 | isa = PBXSourcesBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | 6003F59E195388D20070C39A /* MGXAppDelegate.m in Sources */, 375 | 6003F5A7195388D20070C39A /* MGXViewController.m in Sources */, 376 | 6003F59A195388D20070C39A /* main.m in Sources */, 377 | ); 378 | runOnlyForDeploymentPostprocessing = 0; 379 | }; 380 | 6003F5AA195388D20070C39A /* Sources */ = { 381 | isa = PBXSourcesBuildPhase; 382 | buildActionMask = 2147483647; 383 | files = ( 384 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 385 | ); 386 | runOnlyForDeploymentPostprocessing = 0; 387 | }; 388 | /* End PBXSourcesBuildPhase section */ 389 | 390 | /* Begin PBXTargetDependency section */ 391 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 392 | isa = PBXTargetDependency; 393 | target = 6003F589195388D20070C39A /* MGXWebBridge_Example */; 394 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 395 | }; 396 | /* End PBXTargetDependency section */ 397 | 398 | /* Begin PBXVariantGroup section */ 399 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 400 | isa = PBXVariantGroup; 401 | children = ( 402 | 6003F597195388D20070C39A /* en */, 403 | ); 404 | name = InfoPlist.strings; 405 | sourceTree = ""; 406 | }; 407 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 408 | isa = PBXVariantGroup; 409 | children = ( 410 | 6003F5B9195388D20070C39A /* en */, 411 | ); 412 | name = InfoPlist.strings; 413 | sourceTree = ""; 414 | }; 415 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = { 416 | isa = PBXVariantGroup; 417 | children = ( 418 | 71719F9E1E33DC2100824A3D /* Base */, 419 | ); 420 | name = LaunchScreen.storyboard; 421 | sourceTree = ""; 422 | }; 423 | /* End PBXVariantGroup section */ 424 | 425 | /* Begin XCBuildConfiguration section */ 426 | 6003F5BD195388D20070C39A /* Debug */ = { 427 | isa = XCBuildConfiguration; 428 | buildSettings = { 429 | ALWAYS_SEARCH_USER_PATHS = NO; 430 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 431 | CLANG_CXX_LIBRARY = "libc++"; 432 | CLANG_ENABLE_MODULES = YES; 433 | CLANG_ENABLE_OBJC_ARC = YES; 434 | CLANG_WARN_BOOL_CONVERSION = YES; 435 | CLANG_WARN_CONSTANT_CONVERSION = YES; 436 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 437 | CLANG_WARN_EMPTY_BODY = YES; 438 | CLANG_WARN_ENUM_CONVERSION = YES; 439 | CLANG_WARN_INT_CONVERSION = YES; 440 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 441 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 442 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 443 | COPY_PHASE_STRIP = NO; 444 | ENABLE_TESTABILITY = YES; 445 | GCC_C_LANGUAGE_STANDARD = gnu99; 446 | GCC_DYNAMIC_NO_PIC = NO; 447 | GCC_OPTIMIZATION_LEVEL = 0; 448 | GCC_PREPROCESSOR_DEFINITIONS = ( 449 | "DEBUG=1", 450 | "$(inherited)", 451 | ); 452 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 453 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 454 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 455 | GCC_WARN_UNDECLARED_SELECTOR = YES; 456 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 457 | GCC_WARN_UNUSED_FUNCTION = YES; 458 | GCC_WARN_UNUSED_VARIABLE = YES; 459 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 460 | ONLY_ACTIVE_ARCH = YES; 461 | SDKROOT = iphoneos; 462 | TARGETED_DEVICE_FAMILY = "1,2"; 463 | }; 464 | name = Debug; 465 | }; 466 | 6003F5BE195388D20070C39A /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | buildSettings = { 469 | ALWAYS_SEARCH_USER_PATHS = NO; 470 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 471 | CLANG_CXX_LIBRARY = "libc++"; 472 | CLANG_ENABLE_MODULES = YES; 473 | CLANG_ENABLE_OBJC_ARC = YES; 474 | CLANG_WARN_BOOL_CONVERSION = YES; 475 | CLANG_WARN_CONSTANT_CONVERSION = YES; 476 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 477 | CLANG_WARN_EMPTY_BODY = YES; 478 | CLANG_WARN_ENUM_CONVERSION = YES; 479 | CLANG_WARN_INT_CONVERSION = YES; 480 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 481 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 482 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 483 | COPY_PHASE_STRIP = YES; 484 | ENABLE_NS_ASSERTIONS = NO; 485 | GCC_C_LANGUAGE_STANDARD = gnu99; 486 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 487 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 488 | GCC_WARN_UNDECLARED_SELECTOR = YES; 489 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 490 | GCC_WARN_UNUSED_FUNCTION = YES; 491 | GCC_WARN_UNUSED_VARIABLE = YES; 492 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 493 | SDKROOT = iphoneos; 494 | TARGETED_DEVICE_FAMILY = "1,2"; 495 | VALIDATE_PRODUCT = YES; 496 | }; 497 | name = Release; 498 | }; 499 | 6003F5C0195388D20070C39A /* Debug */ = { 500 | isa = XCBuildConfiguration; 501 | baseConfigurationReference = 2B4866685E698F579DB60A8F /* Pods-MGXWebBridge_Example.debug.xcconfig */; 502 | buildSettings = { 503 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 504 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 505 | GCC_PREFIX_HEADER = "MGXWebBridge/MGXWebBridge-Prefix.pch"; 506 | INFOPLIST_FILE = "MGXWebBridge/MGXWebBridge-Info.plist"; 507 | MODULE_NAME = ExampleApp; 508 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | WRAPPER_EXTENSION = app; 511 | }; 512 | name = Debug; 513 | }; 514 | 6003F5C1195388D20070C39A /* Release */ = { 515 | isa = XCBuildConfiguration; 516 | baseConfigurationReference = 7FEFFEBFA1878B492D58943A /* Pods-MGXWebBridge_Example.release.xcconfig */; 517 | buildSettings = { 518 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 519 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 520 | GCC_PREFIX_HEADER = "MGXWebBridge/MGXWebBridge-Prefix.pch"; 521 | INFOPLIST_FILE = "MGXWebBridge/MGXWebBridge-Info.plist"; 522 | MODULE_NAME = ExampleApp; 523 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 524 | PRODUCT_NAME = "$(TARGET_NAME)"; 525 | WRAPPER_EXTENSION = app; 526 | }; 527 | name = Release; 528 | }; 529 | 6003F5C3195388D20070C39A /* Debug */ = { 530 | isa = XCBuildConfiguration; 531 | baseConfigurationReference = ED6158DE03DA43A88D8BE011 /* Pods-MGXWebBridge_Tests.debug.xcconfig */; 532 | buildSettings = { 533 | BUNDLE_LOADER = "$(TEST_HOST)"; 534 | FRAMEWORK_SEARCH_PATHS = ( 535 | "$(SDKROOT)/Developer/Library/Frameworks", 536 | "$(inherited)", 537 | "$(DEVELOPER_FRAMEWORKS_DIR)", 538 | ); 539 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 540 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 541 | GCC_PREPROCESSOR_DEFINITIONS = ( 542 | "DEBUG=1", 543 | "$(inherited)", 544 | ); 545 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 546 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 547 | PRODUCT_NAME = "$(TARGET_NAME)"; 548 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MGXWebBridge_Example.app/MGXWebBridge_Example"; 549 | WRAPPER_EXTENSION = xctest; 550 | }; 551 | name = Debug; 552 | }; 553 | 6003F5C4195388D20070C39A /* Release */ = { 554 | isa = XCBuildConfiguration; 555 | baseConfigurationReference = 5F4BFB43BBA5614C08042A98 /* Pods-MGXWebBridge_Tests.release.xcconfig */; 556 | buildSettings = { 557 | BUNDLE_LOADER = "$(TEST_HOST)"; 558 | FRAMEWORK_SEARCH_PATHS = ( 559 | "$(SDKROOT)/Developer/Library/Frameworks", 560 | "$(inherited)", 561 | "$(DEVELOPER_FRAMEWORKS_DIR)", 562 | ); 563 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 564 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 565 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 566 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 567 | PRODUCT_NAME = "$(TARGET_NAME)"; 568 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MGXWebBridge_Example.app/MGXWebBridge_Example"; 569 | WRAPPER_EXTENSION = xctest; 570 | }; 571 | name = Release; 572 | }; 573 | /* End XCBuildConfiguration section */ 574 | 575 | /* Begin XCConfigurationList section */ 576 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "MGXWebBridge" */ = { 577 | isa = XCConfigurationList; 578 | buildConfigurations = ( 579 | 6003F5BD195388D20070C39A /* Debug */, 580 | 6003F5BE195388D20070C39A /* Release */, 581 | ); 582 | defaultConfigurationIsVisible = 0; 583 | defaultConfigurationName = Release; 584 | }; 585 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "MGXWebBridge_Example" */ = { 586 | isa = XCConfigurationList; 587 | buildConfigurations = ( 588 | 6003F5C0195388D20070C39A /* Debug */, 589 | 6003F5C1195388D20070C39A /* Release */, 590 | ); 591 | defaultConfigurationIsVisible = 0; 592 | defaultConfigurationName = Release; 593 | }; 594 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "MGXWebBridge_Tests" */ = { 595 | isa = XCConfigurationList; 596 | buildConfigurations = ( 597 | 6003F5C3195388D20070C39A /* Debug */, 598 | 6003F5C4195388D20070C39A /* Release */, 599 | ); 600 | defaultConfigurationIsVisible = 0; 601 | defaultConfigurationName = Release; 602 | }; 603 | /* End XCConfigurationList section */ 604 | }; 605 | rootObject = 6003F582195388D10070C39A /* Project object */; 606 | } 607 | -------------------------------------------------------------------------------- /Example/MGXWebBridge.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/MGXWebBridge.xcodeproj/xcshareddata/xcschemes/MGXWebBridge-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Example/MGXWebBridge.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/MGXWebBridge.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/Base.lproj/LaunchScreen.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 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/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" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/MGXAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // MGXAppDelegate.h 3 | // MGXWebBridge 4 | // 5 | // Created by 329735967@qq.com on 11/05/2018. 6 | // Copyright (c) 2018 329735967@qq.com. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface MGXAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/MGXAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // MGXAppDelegate.m 3 | // MGXWebBridge 4 | // 5 | // Created by 329735967@qq.com on 11/05/2018. 6 | // Copyright (c) 2018 329735967@qq.com. All rights reserved. 7 | // 8 | 9 | #import "MGXAppDelegate.h" 10 | 11 | @implementation MGXAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // 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. 22 | // 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. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // 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. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // 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. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/MGXViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MGXViewController.h 3 | // MGXWebBridge 4 | // 5 | // Created by 329735967@qq.com on 11/05/2018. 6 | // Copyright (c) 2018 329735967@qq.com. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface MGXViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/MGXViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MGXViewController.m 3 | // MGXWebBridge 4 | // 5 | // Created by 329735967@qq.com on 11/05/2018. 6 | // Copyright (c) 2018 329735967@qq.com. All rights reserved. 7 | // 8 | 9 | #import "MGXViewController.h" 10 | #import "MGXWebBridge.h" 11 | 12 | @interface MGXViewController () 13 | @property (weak, nonatomic) IBOutlet UIWebView *webView; 14 | @property (nonatomic,strong) MGXWebBridge *bridge; 15 | 16 | @end 17 | 18 | @implementation MGXViewController 19 | 20 | - (void)viewDidLoad 21 | { 22 | [super viewDidLoad]; 23 | self.navigationItem.title = @"混合开发示例"; 24 | self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"callJS" style:UIBarButtonItemStylePlain target:self action:@selector(send2JS)]; 25 | 26 | NSString *path = [[NSBundle mainBundle]pathForResource:@"bridge-raw"ofType:@"html"]; 27 | NSURL *url = [NSURL fileURLWithPath:path]; 28 | [self.webView loadRequest:[NSURLRequest requestWithURL:url]]; 29 | 30 | self.bridge = [[MGXWebBridge alloc]initWithWebView:self.webView]; 31 | [self.bridge registerObjcFuncForJS:@"liveCallHanlder"]; 32 | __weak typeof(self) weakSelf = self; 33 | self.bridge.JSHander = ^id(NSString * _Nonnull funcName, NSArray * _Nonnull params) { 34 | NSLog(@"%@===%@",funcName,params); 35 | if ([funcName isEqualToString:@"liveCallHanlder"]) { 36 | return [weakSelf liveCallHanlder]; 37 | } 38 | return nil; 39 | }; 40 | 41 | } 42 | 43 | - (NSString *)liveCallHanlder 44 | { 45 | return @"abcdefg"; 46 | } 47 | 48 | 49 | - (void)send2JS 50 | { 51 | NSDictionary *param = @{ 52 | @"name":@"lilei", 53 | @"age":@"13", 54 | @"sex":@"1", 55 | @"friends":@[@"han",@"li"] 56 | }; 57 | //support param type: NSString , NSArray, NSDictionary 58 | [self.bridge invokeJSFunc:@"ajaxResult.list" params:param]; 59 | 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/MGXWebBridge-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/MGXWebBridge-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/html/bridge-raw.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 混合开发通信测试 7 | 64 | 65 | 66 | 67 |
68 |

调用Objc方法测试

69 | 70 |

调用参数:

71 |
72 | 73 | 74 |
75 |

调用JS方法测试

76 |

显示调用JS的参数

77 |

.......

78 |
79 | 80 | 81 | 82 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Example/MGXWebBridge/html/mLibs.js: -------------------------------------------------------------------------------- 1 | !function(t){String.prototype.trim===t&&(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),Array.prototype.reduce===t&&(Array.prototype.reduce=function(n){if(void 0===this||null===this)throw new TypeError;var e,i=Object(this),r=i.length>>>0,o=0;if("function"!=typeof n)throw new TypeError;if(0==r&&1==arguments.length)throw new TypeError;if(arguments.length>=2)e=arguments[1];else for(;;){if(o in i){e=i[o++];break}if(++o>=r)throw new TypeError}for(;r>o;)o in i&&(e=n.call(t,e,i[o],o,i)),o++;return e})}();var Zepto=function(){function t(t){return"[object Function]"==_.call(t)}function n(t){return t instanceof Object}function e(n){var e,i;if("[object Object]"!==_.call(n))return!1;if(i=t(n.constructor)&&n.constructor.prototype,!i||!hasOwnProperty.call(i,"isPrototypeOf"))return!1;for(e in n);return e===m||hasOwnProperty.call(n,e)}function i(t){return t instanceof Array}function r(t){return"number"==typeof t.length}function o(t){return t.filter(function(t){return t!==m&&null!==t})}function a(t){return t.length>0?[].concat.apply([],t):t}function u(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function s(t){return t in S?S[t]:S[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function c(t,n){return"number"!=typeof n||N[u(t)]?n:n+"px"}function l(t){var n,e;return j[t]||(n=T.createElement(t),T.body.appendChild(n),e=C(n,"").getPropertyValue("display"),n.parentNode.removeChild(n),"none"==e&&(e="block"),j[t]=e),j[t]}function f(t,n){return n===m?v(t):v(t).filter(n)}function h(n,e,i,r){return t(e)?e.call(n,i,r):e}function p(t,n,e){var i=t%2?n:n.parentNode;i?i.insertBefore(e,t?1==t?i.firstChild:2==t?n:null:n.nextSibling):v(e).remove()}function d(t,n){n(t);for(var e in t.childNodes)d(t.childNodes[e],n)}var m,g,v,y,w,b,x=[],E=x.slice,T=window.document,j={},S={},C=T.defaultView.getComputedStyle,N={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},O=/^\s*<(\w+|!)[^>]*>/,P=[1,3,8,9,11],k=["after","prepend","before","append"],A=T.createElement("table"),Z=T.createElement("tr"),M={tr:T.createElement("tbody"),tbody:A,thead:A,tfoot:A,td:Z,th:Z,"*":T.createElement("div")},$=/complete|loaded|interactive/,R=/^\.([\w-]+)$/,z=/^#([\w-]+)$/,L=/^[\w-]+$/,_={}.toString,D={},q=T.createElement("div");return D.matches=function(t,n){if(!t||1!==t.nodeType)return!1;var e=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(e)return e.call(t,n);var i,r=t.parentNode,o=!r;return o&&(r=q).appendChild(t),i=~D.qsa(r,n).indexOf(t),o&&q.removeChild(t),i},w=function(t){return t.replace(/-+(.)?/g,function(t,n){return n?n.toUpperCase():""})},b=function(t){return t.filter(function(n,e){return t.indexOf(n)==e})},D.fragment=function(t,n){n===m&&(n=O.test(t)&&RegExp.$1),n in M||(n="*");var e=M[n];return e.innerHTML=""+t,v.each(E.call(e.childNodes),function(){e.removeChild(this)})},D.Z=function(t,n){return t=t||[],t.__proto__=arguments.callee.prototype,t.selector=n||"",t},D.isZ=function(t){return t instanceof D.Z},D.init=function(n,r){if(!n)return D.Z();if(t(n))return v(T).ready(n);if(D.isZ(n))return n;var a;if(i(n))a=o(n);else if(e(n))a=[v.extend({},n)],n=null;else if(P.indexOf(n.nodeType)>=0||n===window)a=[n],n=null;else if(O.test(n))a=D.fragment(n.trim(),RegExp.$1),n=null;else{if(r!==m)return v(r).find(n);a=D.qsa(T,n)}return D.Z(a,n)},v=function(t,n){return D.init(t,n)},v.extend=function(t){return E.call(arguments,1).forEach(function(n){for(g in n)n[g]!==m&&(t[g]=n[g])}),t},D.qsa=function(t,n){var e;return t===T&&z.test(n)?(e=t.getElementById(RegExp.$1))?[e]:x:1!==t.nodeType&&9!==t.nodeType?x:E.call(R.test(n)?t.getElementsByClassName(RegExp.$1):L.test(n)?t.getElementsByTagName(n):t.querySelectorAll(n))},v.isFunction=t,v.isObject=n,v.isArray=i,v.isPlainObject=e,v.inArray=function(t,n,e){return x.indexOf.call(n,t,e)},v.trim=function(t){return t.trim()},v.uuid=0,v.map=function(t,n){var e,i,o,u=[];if(r(t))for(i=0;i0&&D.matches(this[0],t)},not:function(n){var e=[];if(t(n)&&n.call!==m)this.each(function(t){n.call(this,t)||e.push(this)});else{var i="string"==typeof n?this.filter(n):r(n)&&t(n.item)?E.call(n):v(n);this.forEach(function(t){i.indexOf(t)<0&&e.push(t)})}return v(e)},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!n(t)?t:v(t)},last:function(){var t=this[this.length-1];return t&&!n(t)?t:v(t)},find:function(t){var n;return n=1==this.length?D.qsa(this[0],t):this.map(function(){return D.qsa(this,t)}),v(n)},closest:function(t,n){for(var e=this[0];e&&!D.matches(e,t);)e=e!==n&&e!==T&&e.parentNode;return v(e)},parents:function(t){for(var n=[],e=this;e.length>0;)e=v.map(e,function(t){return(t=t.parentNode)&&t!==T&&n.indexOf(t)<0?(n.push(t),t):void 0});return f(n,t)},parent:function(t){return f(b(this.pluck("parentNode")),t)},children:function(t){return f(this.map(function(){return E.call(this.children)}),t)},siblings:function(t){return f(this.map(function(t,n){return E.call(n.parentNode.children).filter(function(t){return t!==n})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return this.map(function(){return this[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=null),"none"==C(this,"").getPropertyValue("display")&&(this.style.display=l(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){return this.each(function(){v(this).wrapAll(v(t)[0].cloneNode(!1))})},wrapAll:function(t){return this[0]&&(v(this[0]).before(t=v(t)),t.append(this)),this},unwrap:function(){return this.parent().each(function(){v(this).replaceWith(v(this).children())}),this},clone:function(){return v(this.map(function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return(t===m?"none"==this.css("display"):t)?this.show():this.hide()},prev:function(){return v(this.pluck("previousElementSibling"))},next:function(){return v(this.pluck("nextElementSibling"))},html:function(t){return t===m?this.length>0?this[0].innerHTML:null:this.each(function(n){var e=this.innerHTML;v(this).empty().append(h(this,t,n,e))})},text:function(t){return t===m?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=t})},attr:function(t,e){var i;return"string"==typeof t&&e===m?0==this.length||1!==this[0].nodeType?m:"value"==t&&"INPUT"==this[0].nodeName?this.val():!(i=this[0].getAttribute(t))&&t in this[0]?this[0][t]:i:this.each(function(i){if(1===this.nodeType)if(n(t))for(g in t)this.setAttribute(g,t[g]);else this.setAttribute(t,h(this,e,i,this.getAttribute(t)))})},removeAttr:function(t){return this.each(function(){1===this.nodeType&&this.removeAttribute(t)})},prop:function(t,n){return n===m?this[0]?this[0][t]:m:this.each(function(e){this[t]=h(this,n,e,this[t])})},data:function(t,n){var e=this.attr("data-"+u(t),n);return null!==e?e:m},val:function(t){return t===m?this.length>0?this[0].value:m:this.each(function(n){this.value=h(this,t,n,this.value)})},offset:function(){if(0==this.length)return null;var t=this[0].getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,width:t.width,height:t.height}},css:function(t,n){if(n===m&&"string"==typeof t)return 0==this.length?m:this[0].style[w(t)]||C(this[0],"").getPropertyValue(t);var e="";for(g in t)"string"==typeof t[g]&&""==t[g]?this.each(function(){this.style.removeProperty(u(g))}):e+=u(g)+":"+c(g,t[g])+";";return"string"==typeof t&&(""==n?this.each(function(){this.style.removeProperty(u(t))}):e=u(t)+":"+c(t,n)),this.each(function(){this.style.cssText+=";"+e})},index:function(t){return t?this.indexOf(v(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return this.length<1?!1:s(t).test(this[0].className)},addClass:function(t){return this.each(function(n){y=[];var e=this.className,i=h(this,t,n,e);i.split(/\s+/g).forEach(function(t){v(this).hasClass(t)||y.push(t)},this),y.length&&(this.className+=(e?" ":"")+y.join(" "))})},removeClass:function(t){return this.each(function(n){return t===m?this.className="":(y=this.className,h(this,t,n,y).split(/\s+/g).forEach(function(t){y=y.replace(s(t)," ")}),this.className=y.trim(),void 0)})},toggleClass:function(t,n){return this.each(function(e){var i=h(this,t,e,this.className);(n===m?!v(this).hasClass(i):n)?v(this).addClass(i):v(this).removeClass(i)})}},["width","height"].forEach(function(t){v.fn[t]=function(n){var e,i=t.replace(/./,function(t){return t[0].toUpperCase()});return n===m?this[0]==window?window["inner"+i]:this[0]==T?T.documentElement["offset"+i]:(e=this.offset())&&e[t]:this.each(function(e){var i=v(this);i.css(t,h(this,n,e,i[t]()))})}}),k.forEach(function(t,e){v.fn[t]=function(){var t=v.map(arguments,function(t){return n(t)?t:D.fragment(t)});if(t.length<1)return this;var i=this.length,r=i>1,o=2>e;return this.each(function(n,a){for(var u=0;un&&(s=s.cloneNode(!0)),p(e,a,s)}})},v.fn[e%2?t+"To":"insert"+(e?"Before":"After")]=function(n){return v(n)[t](this),this}}),D.Z.prototype=v.fn,D.camelize=w,D.uniq=b,v.zepto=D,v}();window.Zepto=Zepto,"$"in window||(window.$=Zepto),function(t){function n(t){return t._zid||(t._zid=f++)}function e(t,e,o,a){if(e=i(e),e.ns)var u=r(e.ns);return(l[n(t)]||[]).filter(function(t){return!(!t||e.e&&t.e!=e.e||e.ns&&!u.test(t.ns)||o&&n(t.fn)!==n(o)||a&&t.sel!=a)})}function i(t){var n=(""+t).split(".");return{e:n[0],ns:n.slice(1).sort().join(" ")}}function r(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(n,e,i){t.isObject(n)?t.each(n,i):n.split(/\s/).forEach(function(t){i(t,e)})}function a(e,r,a,u,s,c){c=!!c;var f=n(e),h=l[f]||(l[f]=[]);o(r,a,function(n,r){var o=s&&s(r,n),a=o||r,l=function(t){var n=a.apply(e,[t].concat(t.data));return n===!1&&t.preventDefault(),n},f=t.extend(i(n),{fn:r,proxy:l,sel:u,del:o,i:h.length});h.push(f),e.addEventListener(f.e,l,c)})}function u(t,i,r,a){var u=n(t);o(i||"",r,function(n,i){e(t,n,i,a).forEach(function(n){delete l[u][n.i],t.removeEventListener(n.e,n.proxy,!1)})})}function s(n){var e=t.extend({originalEvent:n},n);return t.each(m,function(t,i){e[t]=function(){return this[i]=p,n[t].apply(n,arguments)},e[i]=d}),e}function c(t){if(!("defaultPrevented"in t)){t.defaultPrevented=!1;var n=t.preventDefault;t.preventDefault=function(){this.defaultPrevented=!0,n.call(this)}}}var l=(t.zepto.qsa,{}),f=1,h={};h.click=h.mousedown=h.mouseup=h.mousemove="MouseEvents",t.event={add:a,remove:u},t.proxy=function(e,i){if(t.isFunction(e)){var r=function(){return e.apply(i,arguments)};return r._zid=n(e),r}if("string"==typeof i)return t.proxy(e[i],e);throw new TypeError("expected function")},t.fn.bind=function(t,n){return this.each(function(){a(this,t,n)})},t.fn.unbind=function(t,n){return this.each(function(){u(this,t,n)})},t.fn.one=function(t,n){return this.each(function(e,i){a(this,t,n,null,function(t,n){return function(){var e=t.apply(i,arguments);return u(i,n,t),e}})})};var p=function(){return!0},d=function(){return!1},m={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(n,e,i){var r=!1;return("blur"==e||"focus"==e)&&(t.iswebkit?e="blur"==e?"focusout":"focus"==e?"focusin":e:r=!0),this.each(function(o,u){a(u,e,i,n,function(e){return function(i){var r,o=t(i.target).closest(n,u).get(0);return o?(r=t.extend(s(i),{currentTarget:o,liveFired:u}),e.apply(o,[r].concat([].slice.call(arguments,1)))):void 0}},r)})},t.fn.undelegate=function(t,n,e){return this.each(function(){u(this,n,e,t)})},t.fn.live=function(n,e){return t(document.body).delegate(this.selector,n,e),this},t.fn.die=function(n,e){return t(document.body).undelegate(this.selector,n,e),this},t.fn.on=function(n,e,i){return void 0==e||t.isFunction(e)?this.bind(n,e):this.delegate(e,n,i)},t.fn.off=function(n,e,i){return void 0==e||t.isFunction(e)?this.unbind(n,e):this.undelegate(e,n,i)},t.fn.trigger=function(n,e){return"string"==typeof n&&(n=t.Event(n)),c(n),n.data=e,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(n)})},t.fn.triggerHandler=function(n,i){var r,o;return this.each(function(a,u){r=s("string"==typeof n?t.Event(n):n),r.data=i,r.target=u,t.each(e(u,n.type||n),function(t,n){return o=n.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),o},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout change select keydown keypress keyup error".split(" ").forEach(function(n){t.fn[n]=function(t){return this.bind(n,t)}}),["focus","blur"].forEach(function(n){t.fn[n]=function(t){if(t)this.bind(n,t);else if(this.length)try{this.get(0)[n]()}catch(e){}return this}}),t.Event=function(t,n){var e=document.createEvent(h[t]||"Events"),i=!0;if(n)for(var r in n)"bubbles"==r?i=!!n[r]:e[r]=n[r];return e.initEvent(t,i,!0,null,null,null,null,null,null,null,null,null,null,null,null),e}}(Zepto),function(t){function n(t){var n=this.os={},e=this.browser={},i=t.match(/WebKit\/([\d.]+)/),r=t.match(/(Android)\s+([\d.]+)/),o=t.match(/(iPad).*OS\s([\d_]+)/),a=!o&&t.match(/(iPhone\sOS)\s([\d_]+)/),u=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),s=u&&t.match(/TouchPad/),c=t.match(/Kindle\/([\d.]+)/),l=t.match(/Silk\/([\d._]+)/),f=t.match(/(BlackBerry).*Version\/([\d.]+)/);(e.webkit=!!i)&&(e.version=i[1]),r&&(n.android=!0,n.version=r[2]),a&&(n.ios=n.iphone=!0,n.version=a[2].replace(/_/g,".")),o&&(n.ios=n.ipad=!0,n.version=o[2].replace(/_/g,".")),u&&(n.webos=!0,n.version=u[2]),s&&(n.touchpad=!0),f&&(n.blackberry=!0,n.version=f[2]),c&&(n.kindle=!0,n.version=c[1]),l&&(e.silk=!0,e.version=l[1]),!l&&n.android&&t.match(/Kindle Fire/)&&(e.silk=!0)}n.call(t,navigator.userAgent),t.__detect=n}(Zepto),function(t,n){function e(t){return t.toLowerCase()}function i(t){return r?r+t:e(t)}var r,o="",a={Webkit:"webkit",Moz:"",O:"o",ms:"MS"},u=window.document,s=u.createElement("div"),c=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,l={};t.each(a,function(t,i){return s.style[t+"TransitionProperty"]!==n?(o="-"+e(t)+"-",r=i,!1):void 0}),l[o+"transition-property"]=l[o+"transition-duration"]=l[o+"transition-timing-function"]=l[o+"animation-name"]=l[o+"animation-duration"]="",t.fx={off:r===n&&s.style.transitionProperty===n,cssPrefix:o,transitionEnd:i("TransitionEnd"),animationEnd:i("AnimationEnd")},t.fn.animate=function(n,e,i,r){return t.isObject(e)&&(i=e.easing,r=e.complete,e=e.duration),e&&(e/=1e3),this.anim(n,e,i,r)},t.fn.anim=function(e,i,r,a){var u,s,f,h={},p=this,d=t.fx.transitionEnd;if(i===n&&(i=.4),t.fx.off&&(i=0),"string"==typeof e)h[o+"animation-name"]=e,h[o+"animation-duration"]=i+"s",d=t.fx.animationEnd;else{for(s in e)c.test(s)?(u||(u=[]),u.push(s+"("+e[s]+")")):h[s]=e[s];u&&(h[o+"transform"]=u.join(" ")),!t.fx.off&&"object"==typeof e&&(h[o+"transition-property"]=Object.keys(e).join(", "),h[o+"transition-duration"]=i+"s",h[o+"transition-timing-function"]=r||"linear")}return f=function(n){if("undefined"!=typeof n){if(n.target!==n.currentTarget)return;t(n.target).unbind(d,arguments.callee)}t(this).css(l),a&&a.call(this)},i>0&&this.bind(d,f),setTimeout(function(){p.css(h),0>=i&&setTimeout(function(){p.each(function(){f.call(this)})},0)},0),this},s=null}(Zepto),function(t){function n(n,e,i){var r=t.Event(e);return t(n).trigger(r,i),!r.defaultPrevented}function e(t,e,i,r){return t.global?n(e||y,i,r):void 0}function i(n){n.global&&0===t.active++&&e(n,null,"ajaxStart")}function r(n){n.global&&!--t.active&&e(n,null,"ajaxStop")}function o(t,n){var i=n.context;return n.beforeSend.call(i,t,n)===!1||e(n,i,"ajaxBeforeSend",[t,n])===!1?!1:void e(n,i,"ajaxSend",[t,n])}function a(t,n,i){var r=i.context,o="success";i.success.call(r,t,o,n),e(i,r,"ajaxSuccess",[n,i,t]),s(o,n,i)}function u(t,n,i,r){var o=r.context;r.error.call(o,i,n,t),e(r,o,"ajaxError",[i,r,t]),s(n,i,r)}function s(t,n,i){var o=i.context;i.complete.call(o,n,t),e(i,o,"ajaxComplete",[n,i]),r(i)}function c(){}function l(t){return t&&(t==T?"html":t==E?"json":b.test(t)?"script":x.test(t)&&"xml")||"text"}function f(t,n){return(t+"&"+n).replace(/[&?]{1,2}/,"?")}function h(n){v(n.data)&&(n.data=t.param(n.data)),n.data&&(!n.type||"GET"==n.type.toUpperCase())&&(n.url=f(n.url,n.data))}function p(n,e,i,r){var o=t.isArray(e);t.each(e,function(e,a){r&&(e=i?r:r+"["+(o?"":e)+"]"),!r&&o?n.add(a.name,a.value):(i?t.isArray(a):v(a))?p(n,a,i,e):n.add(e,a)})}var d,m,g=0,v=t.isObject,y=window.document,w=/)<[^<]*)*<\/script>/gi,b=/^(?:text|application)\/javascript/i,x=/^(?:text|application)\/xml/i,E="application/json",T="text/html",j=/^\s*$/;t.active=0,t.ajaxJSONP=function(n){var e,i="jsonp"+ ++g,r=y.createElement("script"),o=function(){t(r).remove(),i in window&&(window[i]=c),s("abort",u,n)},u={abort:o};return n.error&&(r.onerror=function(){u.abort(),n.error()}),window[i]=function(o){clearTimeout(e),t(r).remove(),delete window[i],a(o,u,n)},h(n),r.src=n.url.replace(/=\?/,"="+i),t("head").append(r),n.timeout>0&&(e=setTimeout(function(){u.abort(),s("timeout",u,n)},n.timeout)),u},t.ajaxSettings={type:"GET",beforeSend:c,success:c,error:c,complete:c,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:E,xml:"application/xml, text/xml",html:T,text:"text/plain"},crossDomain:!1,timeout:0},t.ajax=function(n){var e=t.extend({},n||{});for(d in t.ajaxSettings)void 0===e[d]&&(e[d]=t.ajaxSettings[d]);i(e),e.crossDomain||(e.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(e.url)&&RegExp.$2!=window.location.host);var r=e.dataType,s=/=\?/.test(e.url);if("jsonp"==r||s)return s||(e.url=f(e.url,"callback=?")),t.ajaxJSONP(e);e.url||(e.url=window.location.toString()),h(e);var p,g=e.accepts[r],v={},y=/^([\w-]+:)\/\//.test(e.url)?RegExp.$1:window.location.protocol,w=t.ajaxSettings.xhr();e.crossDomain||(v["X-Requested-With"]="XMLHttpRequest"),g&&(v.Accept=g,g.indexOf(",")>-1&&(g=g.split(",",2)[0]),w.overrideMimeType&&w.overrideMimeType(g)),(e.contentType||e.data&&"GET"!=e.type.toUpperCase())&&(v["Content-Type"]=e.contentType||"application/x-www-form-urlencoded"),e.headers=t.extend(v,e.headers||{}),w.onreadystatechange=function(){if(4==w.readyState){clearTimeout(p);var t,n=!1;if(w.status>=200&&w.status<300||304==w.status||0==w.status&&"file:"==y){r=r||l(w.getResponseHeader("content-type")),t=w.responseText;try{"script"==r?(1,eval)(t):"xml"==r?t=w.responseXML:"json"==r&&(t=j.test(t)?null:JSON.parse(t))}catch(i){n=i}n?u(n,"parsererror",w,e):a(t,w,e)}else u(null,"error",w,e)}};var b="async"in e?e.async:!0;w.open(e.type,e.url,b);for(m in e.headers)w.setRequestHeader(m,e.headers[m]);return o(w,e)===!1?(w.abort(),!1):(e.timeout>0&&(p=setTimeout(function(){w.onreadystatechange=c,w.abort(),u(null,"timeout",w,e)},e.timeout)),w.send(e.data?e.data:null),w)},t.get=function(n,e){return t.ajax({url:n,success:e})},t.post=function(n,e,i,r){return t.isFunction(e)&&(r=r||i,i=e,e=null),t.ajax({type:"POST",url:n,data:e,success:i,dataType:r})},t.getJSON=function(n,e){return t.ajax({url:n,success:e,dataType:"json"})},t.fn.load=function(n,e){if(!this.length)return this;var i,r=this,o=n.split(/\s/);return o.length>1&&(n=o[0],i=o[1]),t.get(n,function(n){r.html(i?t(y.createElement("div")).html(n.replace(w,"")).find(i).html():n),e&&e.call(r)}),this};var S=encodeURIComponent;t.param=function(t,n){var e=[];return e.add=function(t,n){this.push(S(t)+"="+S(n))},p(e,t,n),e.join("&").replace("%20","+")}}(Zepto),function(t){t.fn.serializeArray=function(){var n,e=[];return t(Array.prototype.slice.call(this.get(0).elements)).each(function(){n=t(this);var i=n.attr("type");"fieldset"!=this.nodeName.toLowerCase()&&!this.disabled&&"submit"!=i&&"reset"!=i&&"button"!=i&&("radio"!=i&&"checkbox"!=i||this.checked)&&e.push({name:n.attr("name"),value:n.val()})}),e},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(n){t.push(encodeURIComponent(n.name)+"="+encodeURIComponent(n.value))}),t.join("&")},t.fn.submit=function(n){if(n)this.bind("submit",n);else if(this.length){var e=t.Event("submit");this.eq(0).trigger(e),e.defaultPrevented||this.get(0).submit()}return this}}(Zepto),function(t){function n(t){return"tagName"in t?t:t.parentNode}function e(t,n,e,i){var r=Math.abs(t-n),o=Math.abs(e-i);return r>=o?t-n>0?"Left":"Right":e-i>0?"Up":"Down"}function i(){a=null,u.last&&(u.el.trigger("longTap"),u={})}function r(){a&&clearTimeout(a),a=null}var o,a,u={},s=750;t(document).ready(function(){var c,l;t(document.body).bind("touchstart",function(e){c=Date.now(),l=c-(u.last||c),u.el=t(n(e.touches[0].target)),o&&clearTimeout(o),u.x1=e.touches[0].pageX,u.y1=e.touches[0].pageY,l>0&&250>=l&&(u.isDoubleTap=!0),u.last=c,a=setTimeout(i,s)}).bind("touchmove",function(t){r(),u.x2=t.touches[0].pageX,u.y2=t.touches[0].pageY}).bind("touchend",function(){r(),u.isDoubleTap?(u.el.trigger("doubleTap"),u={}):u.x2&&Math.abs(u.x1-u.x2)>30||u.y2&&Math.abs(u.y1-u.y2)>30?(u.el.trigger("swipe")&&u.el.trigger("swipe"+e(u.x1,u.x2,u.y1,u.y2)),u={}):"last"in u&&(u.el.trigger("tap"),o=setTimeout(function(){o=null,u.el.trigger("singleTap"),u={}},250))}).bind("touchcancel",function(){o&&clearTimeout(o),a&&clearTimeout(a),a=o=null,u={}})}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(n){t.fn[n]=function(t){return this.bind(n,t)}})}(Zepto),function(t){var n={},e=-1;t.publish=function(t,e){if(n[t])for(var i=n[t],r=i.length;r--;)i[r].func(t,e)},t.subscribe=function(t,i){n[t]=n[t]?n[t]:[];var r=(++e).toString();n[t].push({token:r,func:i})}}(Zepto),window.liveClient=liveClient=function(t){try{"object"==typeof t&&t.fc&&$.publish(t.fc,t)}catch(n){}}; 2 | ;!function(t,e,n,i){"use strict";function r(t,e,n){return setTimeout(h(t,n),e)}function s(t,e,n){return Array.isArray(t)?(o(t,n[e],n),!0):!1}function o(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==i)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,r,i),e.apply(this,arguments)}}function u(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&ae(i,n)}function h(t,e){return function(){return t.apply(e,arguments)}}function c(t,e){return typeof t==ce?t.apply(e?e[0]||i:i,e):t}function l(t,e){return t===i?e:t}function p(t,e,n){o(m(e),function(e){t.addEventListener(e,n,!1)})}function f(t,e,n){o(m(e),function(e){t.removeEventListener(e,n,!1)})}function d(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(t,e){return t.indexOf(e)>-1}function m(t){return t.trim().split(/\s+/g)}function g(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]}):i.sort()),i}function E(t,e){for(var n,r,s=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=C(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,u=e.center=x(i);e.timeStamp=fe(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=M(a,u),e.distance=z(a,u),S(n,e),e.offsetDirection=O(e.deltaX,e.deltaY);var h=R(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=pe(h.x)>pe(h.y)?h.x:h.y,e.scale=o?X(o.pointers,i):1,e.rotation=o?N(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,P(n,e);var c=t.element;d(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function S(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};(e.eventType===be||s.eventType===Pe)&&(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function P(t,e){var n,r,s,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=Ce&&(u>De||a.velocity===i)){var h=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=R(u,h,c);r=l.x,s=l.y,n=pe(l.x)>pe(l.y)?l.x:l.y,o=O(h,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=s,e.direction=o}function C(t){for(var e=[],n=0;nr;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:le(n/e),y:le(i/e)}}function R(t,e,n){return{x:e/t||0,y:n/t||0}}function O(t,e){return t===e?xe:pe(t)>=pe(e)?0>t?Re:Oe:0>e?ze:Me}function z(t,e,n){n||(n=Fe);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function M(t,e,n){n||(n=Fe);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function N(t,e){return M(e[1],e[0],We)+M(t[1],t[0],We)}function X(t,e){return z(e[0],e[1],We)/z(t[0],t[1],We)}function Y(){this.evEl=ke,this.evWin=He,this.allow=!0,this.pressed=!1,_.apply(this,arguments)}function F(){this.evEl=Ve,this.evWin=je,_.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function W(){this.evTarget=Ze,this.evWin=Be,this.started=!1,_.apply(this,arguments)}function q(t,e){var n=T(t.touches),i=T(t.changedTouches);return e&(Pe|Ce)&&(n=y(n.concat(i),"identifier",!0)),[n,i]}function k(){this.evTarget=Je,this.targetIds={},_.apply(this,arguments)}function H(t,e){var n=T(t.touches),i=this.targetIds;if(e&(be|Se)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=T(t.changedTouches),a=[],u=this.target;if(s=n.filter(function(t){return d(t.target,u)}),e===be)for(r=0;ra&&(e.push(t),a=e.length-1):r&(Pe|Ce)&&(n=!0),0>a||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var Ge={touchstart:be,touchmove:Se,touchend:Pe,touchcancel:Ce},Ze="touchstart",Be="touchstart touchmove touchend touchcancel";u(W,_,{handler:function(t){var e=Ge[t.type];if(e===be&&(this.started=!0),this.started){var n=q.call(this,t,e);e&(Pe|Ce)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Ie,srcEvent:t})}}});var $e={touchstart:be,touchmove:Se,touchend:Pe,touchcancel:Ce},Je="touchstart touchmove touchend touchcancel";u(k,_,{handler:function(t){var e=$e[t.type],n=H.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Ie,srcEvent:t})}}),u(L,_,{handler:function(t,e,n){var i=n.pointerType==Ie,r=n.pointerType==_e;if(i)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(Pe|Ce)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ke=E(he.style,"touchAction"),Qe=Ke!==i,tn="compute",en="auto",nn="manipulation",rn="none",sn="pan-x",on="pan-y";U.prototype={set:function(t){t==tn&&(t=this.compute()),Qe&&this.manager.element.style&&(this.manager.element.style[Ke]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return o(this.manager.recognizers,function(e){c(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),V(t.join(" "))},preventDefaults:function(t){if(!Qe){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=v(i,rn),s=v(i,on),o=v(i,sn);if(r){var a=1===t.pointers.length,u=t.distance<2,h=t.deltaTime<250;if(a&&u&&h)return}if(!o||!s)return r||s&&n&Ne||o&&n&Xe?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var an=1,un=2,hn=4,cn=8,ln=cn,pn=16,fn=32;j.prototype={defaults:{},set:function(t){return ae(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(s(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=B(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return s(t,"dropRecognizeWith",this)?this:(t=B(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(s(t,"requireFailure",this))return this;var e=this.requireFail;return t=B(t,this),-1===g(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(s(t,"dropRequireFailure",this))return this;t=B(t,this);var e=g(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;cn>i&&e(n.options.event+G(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=cn&&e(n.options.event+G(i))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=fn)},canEmit:function(){for(var t=0;ts?Re:Oe,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?xe:0>o?ze:Me,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return $.prototype.attrTest.call(this,t)&&(this.state&un||!(this.state&un)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Z(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),u(K,$,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[rn]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&un)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),u(Q,j,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[en]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||t.eventType&(Pe|Ce)&&!s)this.reset();else if(t.eventType&be)this.reset(),this._timer=r(function(){this.state=ln,this.tryEmit()},e.time,this);else if(t.eventType&Pe)return ln;return fn},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ln&&(t&&t.eventType&Pe?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=fe(),this.manager.emit(this.options.event,this._input)))}}),u(te,$,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[rn]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&un)}}),u(ee,$,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ne|Xe,pointers:1},getTouchAction:function(){return J.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Ne|Xe)?e=t.overallVelocity:n&Ne?e=t.overallVelocityX:n&Xe&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&pe(e)>this.options.velocity&&t.eventType&Pe},emit:function(t){var e=Z(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),u(ne,j,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[nn]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance '../' 5 | 6 | target 'MGXWebBridge_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MGXWebBridge (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - MGXWebBridge (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MGXWebBridge: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MGXWebBridge: bb0a1ec6ecf70b125e7e83aaa23a28ff6bec261e 13 | 14 | PODFILE CHECKSUM: 344c7f1038e76c046565695b2681efab56c5001c 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/MGXWebBridge.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MGXWebBridge", 3 | "version": "0.1.0", 4 | "summary": "UIWebView与JS交互", 5 | "description": "ObjC使用UIWebView与JavaScript的交互封装, 支持直接return调用结果", 6 | "homepage": "https://github.com/changjianfeishui/MGXWebBridge", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "mangox": "22469836@qq.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/changjianfeishui/MGXWebBridge.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "9.0" 20 | }, 21 | "source_files": "MGXWebBridge/Classes/**/*", 22 | "frameworks": "JavaScriptCore" 23 | } 24 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MGXWebBridge (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - MGXWebBridge (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MGXWebBridge: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MGXWebBridge: bb0a1ec6ecf70b125e7e83aaa23a28ff6bec261e 13 | 14 | PODFILE CHECKSUM: 344c7f1038e76c046565695b2681efab56c5001c 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 237F65BD71C238979E128E0B5878722B /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B4E3AC1528D162145D99323382DD5E10 /* JavaScriptCore.framework */; }; 11 | 37225E42EAF61A9A658E89C02BC8B3CB /* Pods-MGXWebBridge_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 341F263B69A21DEC990E09A62D65CFED /* Pods-MGXWebBridge_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 59EAB4D2299D2B4C5C4080AEC120BB91 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B53A15A241FD8AAFB51191B67D365185 /* Foundation.framework */; }; 13 | 7D697788198F490E68404DDF19D0590E /* Pods-MGXWebBridge_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 40BCA2CC32AB03998F9148B5A3290183 /* Pods-MGXWebBridge_Example-dummy.m */; }; 14 | 855E40FA873D0CB8807D38CD4B1D2CFF /* MGXWebBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C714F9D0651B1E26D5376981D578A56 /* MGXWebBridge.m */; }; 15 | AD21197958987EFFADC612D290724C6E /* MGXWebBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 3C4F9DDB76F98F41C62AA082C94943D0 /* MGXWebBridge.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | ADC1A4FD293D9E8B72CED9DB026F99E6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B53A15A241FD8AAFB51191B67D365185 /* Foundation.framework */; }; 17 | C400D28541279B1956F53284B328B541 /* Pods-MGXWebBridge_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 9F2AA14BDF8D7D5D022349337171A72B /* Pods-MGXWebBridge_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | CC9E04704ECB3EAE86F833EF28C7FE75 /* MGXWebBridge-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 548A943E0199BD91FE9C6D0A0BF14AB6 /* MGXWebBridge-dummy.m */; }; 19 | D943DA5C9EDE2BBFED2E679984F236FE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B53A15A241FD8AAFB51191B67D365185 /* Foundation.framework */; }; 20 | DCF2D0DC43BC3AFB7E48C86AEB14AACC /* MGXWebBridge-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 02FE0B0B0E7B0959D9B3A37492587263 /* MGXWebBridge-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | FD4268F46914E54909CD58C22EC31020 /* Pods-MGXWebBridge_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E046A773EFBEB8A94104EF864947DD44 /* Pods-MGXWebBridge_Tests-dummy.m */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | 5C446CE5ED4B4D843CB7B97F4E7458A9 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 46FFB289CD1A39F3EF5BBCDCB208DF9B; 30 | remoteInfo = "Pods-MGXWebBridge_Example"; 31 | }; 32 | E711DC98BB9CD0ED3B97A8BF2A8CA5B2 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = 117BFCDF07C36124F2C037FFBE19FE0F; 37 | remoteInfo = MGXWebBridge; 38 | }; 39 | /* End PBXContainerItemProxy section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 02FE0B0B0E7B0959D9B3A37492587263 /* MGXWebBridge-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MGXWebBridge-umbrella.h"; sourceTree = ""; }; 43 | 181CA3FC48A3189975166B8179F1931A /* Pods-MGXWebBridge_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MGXWebBridge_Tests.release.xcconfig"; sourceTree = ""; }; 44 | 1C714F9D0651B1E26D5376981D578A56 /* MGXWebBridge.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = MGXWebBridge.m; path = MGXWebBridge/Classes/MGXWebBridge.m; sourceTree = ""; }; 45 | 1F88C6C9B2926CF1BD127477640E23CB /* Pods-MGXWebBridge_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MGXWebBridge_Tests.debug.xcconfig"; sourceTree = ""; }; 46 | 243A214FD69604D9D319F8FD1639313E /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 2A4E54299CA6E76455EE9E3FA7AFA6F4 /* Pods-MGXWebBridge_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MGXWebBridge_Example-acknowledgements.plist"; sourceTree = ""; }; 48 | 2CFA1A0BC4F79255D72A5C7D5437208A /* MGXWebBridge.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MGXWebBridge.xcconfig; sourceTree = ""; }; 49 | 2D0394BA92730DDB3881BC13343BA14E /* Pods-MGXWebBridge_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MGXWebBridge_Tests-resources.sh"; sourceTree = ""; }; 50 | 341F263B69A21DEC990E09A62D65CFED /* Pods-MGXWebBridge_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MGXWebBridge_Example-umbrella.h"; sourceTree = ""; }; 51 | 36F328F78CF62EA647A39A8B41298176 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 377E72B2456E287D2E9A193037B25045 /* MGXWebBridge.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = MGXWebBridge.framework; path = MGXWebBridge.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 3C4F9DDB76F98F41C62AA082C94943D0 /* MGXWebBridge.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MGXWebBridge.h; path = MGXWebBridge/Classes/MGXWebBridge.h; sourceTree = ""; }; 54 | 40BCA2CC32AB03998F9148B5A3290183 /* Pods-MGXWebBridge_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MGXWebBridge_Example-dummy.m"; sourceTree = ""; }; 55 | 459C3ACFABD388FFC779278D0F201949 /* Pods-MGXWebBridge_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MGXWebBridge_Tests-frameworks.sh"; sourceTree = ""; }; 56 | 48F3B7DE923435CA3A3205956906A4CE /* Pods-MGXWebBridge_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MGXWebBridge_Tests-acknowledgements.plist"; sourceTree = ""; }; 57 | 548A943E0199BD91FE9C6D0A0BF14AB6 /* MGXWebBridge-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "MGXWebBridge-dummy.m"; sourceTree = ""; }; 58 | 54BB5BAB60E31EDDF0EB91AA2616A712 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 59 | 601517EB527DE6818586C76FC3F4F86A /* Pods-MGXWebBridge_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MGXWebBridge_Example-acknowledgements.markdown"; sourceTree = ""; }; 60 | 7809715973FB704370D8DD3FFF5B4579 /* MGXWebBridge.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = MGXWebBridge.modulemap; sourceTree = ""; }; 61 | 79C714F54AD3BC8F72413AF54FBE7FD7 /* Pods-MGXWebBridge_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-MGXWebBridge_Tests.modulemap"; sourceTree = ""; }; 62 | 7AE57E2ECC54FE39A78C9D74F479CB96 /* Pods-MGXWebBridge_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MGXWebBridge_Example.release.xcconfig"; sourceTree = ""; }; 63 | 87B948FD53F6E18F7986700D60ACD180 /* Pods-MGXWebBridge_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MGXWebBridge_Tests-acknowledgements.markdown"; sourceTree = ""; }; 64 | 908968AC6536FFB5D8B4EBC8E15FA8D9 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 65 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 66 | 9B3289963F7DF0C5B3B8CBE04255BCD8 /* Pods-MGXWebBridge_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MGXWebBridge_Example-resources.sh"; sourceTree = ""; }; 67 | 9B5DE63488A3CF388E97614DD82970A7 /* Pods-MGXWebBridge_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-MGXWebBridge_Example.modulemap"; sourceTree = ""; }; 68 | 9F2AA14BDF8D7D5D022349337171A72B /* Pods-MGXWebBridge_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MGXWebBridge_Tests-umbrella.h"; sourceTree = ""; }; 69 | 9FA38CA082476B44AB7276B00FA34803 /* Pods_MGXWebBridge_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_MGXWebBridge_Tests.framework; path = "Pods-MGXWebBridge_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 70 | A3B149DD0241E5DF900BF2170F6C6289 /* MGXWebBridge-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MGXWebBridge-prefix.pch"; sourceTree = ""; }; 71 | A5BCE158AA15333D4BD09A674F03A33B /* Pods-MGXWebBridge_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MGXWebBridge_Example.debug.xcconfig"; sourceTree = ""; }; 72 | A8CFC7CCF5B03E2AED40FF7387108025 /* Pods-MGXWebBridge_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MGXWebBridge_Example-frameworks.sh"; sourceTree = ""; }; 73 | AB834C50914E183D84700468A682294D /* MGXWebBridge.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = MGXWebBridge.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 74 | ABCDA7AD661255A8991E136E86A5654F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 75 | B4E3AC1528D162145D99323382DD5E10 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 76 | B53A15A241FD8AAFB51191B67D365185 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 77 | E046A773EFBEB8A94104EF864947DD44 /* Pods-MGXWebBridge_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MGXWebBridge_Tests-dummy.m"; sourceTree = ""; }; 78 | F1EE21746A4BD8D82245B5922A614C52 /* Pods_MGXWebBridge_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_MGXWebBridge_Example.framework; path = "Pods-MGXWebBridge_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | 2FA8EB7F8A73A54E2E6F4E612B00F0D2 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | D943DA5C9EDE2BBFED2E679984F236FE /* Foundation.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | 5DCB55A5F04374D63154411232063B54 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | ADC1A4FD293D9E8B72CED9DB026F99E6 /* Foundation.framework in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | 874F8ECCA294A94745E0770E96ED2256 /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | 59EAB4D2299D2B4C5C4080AEC120BB91 /* Foundation.framework in Frameworks */, 103 | 237F65BD71C238979E128E0B5878722B /* JavaScriptCore.framework in Frameworks */, 104 | ); 105 | runOnlyForDeploymentPostprocessing = 0; 106 | }; 107 | /* End PBXFrameworksBuildPhase section */ 108 | 109 | /* Begin PBXGroup section */ 110 | 00E03B1C6DE0B25BFDBAC8780DEDD84D /* Support Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 36F328F78CF62EA647A39A8B41298176 /* Info.plist */, 114 | 7809715973FB704370D8DD3FFF5B4579 /* MGXWebBridge.modulemap */, 115 | 2CFA1A0BC4F79255D72A5C7D5437208A /* MGXWebBridge.xcconfig */, 116 | 548A943E0199BD91FE9C6D0A0BF14AB6 /* MGXWebBridge-dummy.m */, 117 | A3B149DD0241E5DF900BF2170F6C6289 /* MGXWebBridge-prefix.pch */, 118 | 02FE0B0B0E7B0959D9B3A37492587263 /* MGXWebBridge-umbrella.h */, 119 | ); 120 | name = "Support Files"; 121 | path = "Example/Pods/Target Support Files/MGXWebBridge"; 122 | sourceTree = ""; 123 | }; 124 | 28A1868B4795737852DF1817B58A7C5C /* Development Pods */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 9D56A0A62CA083364B266ACFD5242565 /* MGXWebBridge */, 128 | ); 129 | name = "Development Pods"; 130 | sourceTree = ""; 131 | }; 132 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 5DB625A01D251B3FB0B216A3C37A0033 /* iOS */, 136 | ); 137 | name = Frameworks; 138 | sourceTree = ""; 139 | }; 140 | 4B51F1FB89C655D6A705EC7228DDECBE /* Products */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 377E72B2456E287D2E9A193037B25045 /* MGXWebBridge.framework */, 144 | F1EE21746A4BD8D82245B5922A614C52 /* Pods_MGXWebBridge_Example.framework */, 145 | 9FA38CA082476B44AB7276B00FA34803 /* Pods_MGXWebBridge_Tests.framework */, 146 | ); 147 | name = Products; 148 | sourceTree = ""; 149 | }; 150 | 55AC98328924A8CE1D4789DFE0D9A7E0 /* Pods-MGXWebBridge_Example */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | 243A214FD69604D9D319F8FD1639313E /* Info.plist */, 154 | 9B5DE63488A3CF388E97614DD82970A7 /* Pods-MGXWebBridge_Example.modulemap */, 155 | 601517EB527DE6818586C76FC3F4F86A /* Pods-MGXWebBridge_Example-acknowledgements.markdown */, 156 | 2A4E54299CA6E76455EE9E3FA7AFA6F4 /* Pods-MGXWebBridge_Example-acknowledgements.plist */, 157 | 40BCA2CC32AB03998F9148B5A3290183 /* Pods-MGXWebBridge_Example-dummy.m */, 158 | A8CFC7CCF5B03E2AED40FF7387108025 /* Pods-MGXWebBridge_Example-frameworks.sh */, 159 | 9B3289963F7DF0C5B3B8CBE04255BCD8 /* Pods-MGXWebBridge_Example-resources.sh */, 160 | 341F263B69A21DEC990E09A62D65CFED /* Pods-MGXWebBridge_Example-umbrella.h */, 161 | A5BCE158AA15333D4BD09A674F03A33B /* Pods-MGXWebBridge_Example.debug.xcconfig */, 162 | 7AE57E2ECC54FE39A78C9D74F479CB96 /* Pods-MGXWebBridge_Example.release.xcconfig */, 163 | ); 164 | name = "Pods-MGXWebBridge_Example"; 165 | path = "Target Support Files/Pods-MGXWebBridge_Example"; 166 | sourceTree = ""; 167 | }; 168 | 5DB625A01D251B3FB0B216A3C37A0033 /* iOS */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | B53A15A241FD8AAFB51191B67D365185 /* Foundation.framework */, 172 | B4E3AC1528D162145D99323382DD5E10 /* JavaScriptCore.framework */, 173 | ); 174 | name = iOS; 175 | sourceTree = ""; 176 | }; 177 | 7DB346D0F39D3F0E887471402A8071AB = { 178 | isa = PBXGroup; 179 | children = ( 180 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 181 | 28A1868B4795737852DF1817B58A7C5C /* Development Pods */, 182 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, 183 | 4B51F1FB89C655D6A705EC7228DDECBE /* Products */, 184 | DFB1742CA53900E27ED6AF43C70F836E /* Targets Support Files */, 185 | ); 186 | sourceTree = ""; 187 | }; 188 | 9D56A0A62CA083364B266ACFD5242565 /* MGXWebBridge */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 3C4F9DDB76F98F41C62AA082C94943D0 /* MGXWebBridge.h */, 192 | 1C714F9D0651B1E26D5376981D578A56 /* MGXWebBridge.m */, 193 | DD420EC2A687B835479F805584F500E5 /* Pod */, 194 | 00E03B1C6DE0B25BFDBAC8780DEDD84D /* Support Files */, 195 | ); 196 | name = MGXWebBridge; 197 | path = ../..; 198 | sourceTree = ""; 199 | }; 200 | C9FC1318B4C51ED2D7DE438062DA66CF /* Pods-MGXWebBridge_Tests */ = { 201 | isa = PBXGroup; 202 | children = ( 203 | ABCDA7AD661255A8991E136E86A5654F /* Info.plist */, 204 | 79C714F54AD3BC8F72413AF54FBE7FD7 /* Pods-MGXWebBridge_Tests.modulemap */, 205 | 87B948FD53F6E18F7986700D60ACD180 /* Pods-MGXWebBridge_Tests-acknowledgements.markdown */, 206 | 48F3B7DE923435CA3A3205956906A4CE /* Pods-MGXWebBridge_Tests-acknowledgements.plist */, 207 | E046A773EFBEB8A94104EF864947DD44 /* Pods-MGXWebBridge_Tests-dummy.m */, 208 | 459C3ACFABD388FFC779278D0F201949 /* Pods-MGXWebBridge_Tests-frameworks.sh */, 209 | 2D0394BA92730DDB3881BC13343BA14E /* Pods-MGXWebBridge_Tests-resources.sh */, 210 | 9F2AA14BDF8D7D5D022349337171A72B /* Pods-MGXWebBridge_Tests-umbrella.h */, 211 | 1F88C6C9B2926CF1BD127477640E23CB /* Pods-MGXWebBridge_Tests.debug.xcconfig */, 212 | 181CA3FC48A3189975166B8179F1931A /* Pods-MGXWebBridge_Tests.release.xcconfig */, 213 | ); 214 | name = "Pods-MGXWebBridge_Tests"; 215 | path = "Target Support Files/Pods-MGXWebBridge_Tests"; 216 | sourceTree = ""; 217 | }; 218 | DD420EC2A687B835479F805584F500E5 /* Pod */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 54BB5BAB60E31EDDF0EB91AA2616A712 /* LICENSE */, 222 | AB834C50914E183D84700468A682294D /* MGXWebBridge.podspec */, 223 | 908968AC6536FFB5D8B4EBC8E15FA8D9 /* README.md */, 224 | ); 225 | name = Pod; 226 | sourceTree = ""; 227 | }; 228 | DFB1742CA53900E27ED6AF43C70F836E /* Targets Support Files */ = { 229 | isa = PBXGroup; 230 | children = ( 231 | 55AC98328924A8CE1D4789DFE0D9A7E0 /* Pods-MGXWebBridge_Example */, 232 | C9FC1318B4C51ED2D7DE438062DA66CF /* Pods-MGXWebBridge_Tests */, 233 | ); 234 | name = "Targets Support Files"; 235 | sourceTree = ""; 236 | }; 237 | /* End PBXGroup section */ 238 | 239 | /* Begin PBXHeadersBuildPhase section */ 240 | 036E01AFCA09F81123E8D623F811092C /* Headers */ = { 241 | isa = PBXHeadersBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | C400D28541279B1956F53284B328B541 /* Pods-MGXWebBridge_Tests-umbrella.h in Headers */, 245 | ); 246 | runOnlyForDeploymentPostprocessing = 0; 247 | }; 248 | 4524EEC5C0921395C7C38B90A6BC50CE /* Headers */ = { 249 | isa = PBXHeadersBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | DCF2D0DC43BC3AFB7E48C86AEB14AACC /* MGXWebBridge-umbrella.h in Headers */, 253 | AD21197958987EFFADC612D290724C6E /* MGXWebBridge.h in Headers */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | C7A431E3ABC55D2F0F0423FA32A93E45 /* Headers */ = { 258 | isa = PBXHeadersBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | 37225E42EAF61A9A658E89C02BC8B3CB /* Pods-MGXWebBridge_Example-umbrella.h in Headers */, 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | }; 265 | /* End PBXHeadersBuildPhase section */ 266 | 267 | /* Begin PBXNativeTarget section */ 268 | 117BFCDF07C36124F2C037FFBE19FE0F /* MGXWebBridge */ = { 269 | isa = PBXNativeTarget; 270 | buildConfigurationList = 078E4ACC8279ED798FA9E6C49DAD024F /* Build configuration list for PBXNativeTarget "MGXWebBridge" */; 271 | buildPhases = ( 272 | CFCF237AB27BA3067AFF726569F0C285 /* Sources */, 273 | 874F8ECCA294A94745E0770E96ED2256 /* Frameworks */, 274 | 4524EEC5C0921395C7C38B90A6BC50CE /* Headers */, 275 | ); 276 | buildRules = ( 277 | ); 278 | dependencies = ( 279 | ); 280 | name = MGXWebBridge; 281 | productName = MGXWebBridge; 282 | productReference = 377E72B2456E287D2E9A193037B25045 /* MGXWebBridge.framework */; 283 | productType = "com.apple.product-type.framework"; 284 | }; 285 | 46FFB289CD1A39F3EF5BBCDCB208DF9B /* Pods-MGXWebBridge_Example */ = { 286 | isa = PBXNativeTarget; 287 | buildConfigurationList = C9EFD2F50BA2C9EE95FBE977433FEA3A /* Build configuration list for PBXNativeTarget "Pods-MGXWebBridge_Example" */; 288 | buildPhases = ( 289 | 847E6080C451B9F888B7292B005CA391 /* Sources */, 290 | 5DCB55A5F04374D63154411232063B54 /* Frameworks */, 291 | C7A431E3ABC55D2F0F0423FA32A93E45 /* Headers */, 292 | ); 293 | buildRules = ( 294 | ); 295 | dependencies = ( 296 | 3B2400ED1F1F4FD8A6AFCF8EC4DD209A /* PBXTargetDependency */, 297 | ); 298 | name = "Pods-MGXWebBridge_Example"; 299 | productName = "Pods-MGXWebBridge_Example"; 300 | productReference = F1EE21746A4BD8D82245B5922A614C52 /* Pods_MGXWebBridge_Example.framework */; 301 | productType = "com.apple.product-type.framework"; 302 | }; 303 | 5CF62B2BA4C0F8D8C96E9A05CE69816E /* Pods-MGXWebBridge_Tests */ = { 304 | isa = PBXNativeTarget; 305 | buildConfigurationList = 5C4D31054EFB3A5D08C77699F9A332F8 /* Build configuration list for PBXNativeTarget "Pods-MGXWebBridge_Tests" */; 306 | buildPhases = ( 307 | 835B5B65E2779581A7A969D0841504AE /* Sources */, 308 | 2FA8EB7F8A73A54E2E6F4E612B00F0D2 /* Frameworks */, 309 | 036E01AFCA09F81123E8D623F811092C /* Headers */, 310 | ); 311 | buildRules = ( 312 | ); 313 | dependencies = ( 314 | 71CCB59D6E318350780AB3E0DCC2C375 /* PBXTargetDependency */, 315 | ); 316 | name = "Pods-MGXWebBridge_Tests"; 317 | productName = "Pods-MGXWebBridge_Tests"; 318 | productReference = 9FA38CA082476B44AB7276B00FA34803 /* Pods_MGXWebBridge_Tests.framework */; 319 | productType = "com.apple.product-type.framework"; 320 | }; 321 | /* End PBXNativeTarget section */ 322 | 323 | /* Begin PBXProject section */ 324 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 325 | isa = PBXProject; 326 | attributes = { 327 | LastSwiftUpdateCheck = 0930; 328 | LastUpgradeCheck = 0930; 329 | }; 330 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 331 | compatibilityVersion = "Xcode 3.2"; 332 | developmentRegion = English; 333 | hasScannedForEncodings = 0; 334 | knownRegions = ( 335 | en, 336 | ); 337 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 338 | productRefGroup = 4B51F1FB89C655D6A705EC7228DDECBE /* Products */; 339 | projectDirPath = ""; 340 | projectRoot = ""; 341 | targets = ( 342 | 117BFCDF07C36124F2C037FFBE19FE0F /* MGXWebBridge */, 343 | 46FFB289CD1A39F3EF5BBCDCB208DF9B /* Pods-MGXWebBridge_Example */, 344 | 5CF62B2BA4C0F8D8C96E9A05CE69816E /* Pods-MGXWebBridge_Tests */, 345 | ); 346 | }; 347 | /* End PBXProject section */ 348 | 349 | /* Begin PBXSourcesBuildPhase section */ 350 | 835B5B65E2779581A7A969D0841504AE /* Sources */ = { 351 | isa = PBXSourcesBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | FD4268F46914E54909CD58C22EC31020 /* Pods-MGXWebBridge_Tests-dummy.m in Sources */, 355 | ); 356 | runOnlyForDeploymentPostprocessing = 0; 357 | }; 358 | 847E6080C451B9F888B7292B005CA391 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 7D697788198F490E68404DDF19D0590E /* Pods-MGXWebBridge_Example-dummy.m in Sources */, 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | }; 366 | CFCF237AB27BA3067AFF726569F0C285 /* Sources */ = { 367 | isa = PBXSourcesBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | CC9E04704ECB3EAE86F833EF28C7FE75 /* MGXWebBridge-dummy.m in Sources */, 371 | 855E40FA873D0CB8807D38CD4B1D2CFF /* MGXWebBridge.m in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | /* End PBXSourcesBuildPhase section */ 376 | 377 | /* Begin PBXTargetDependency section */ 378 | 3B2400ED1F1F4FD8A6AFCF8EC4DD209A /* PBXTargetDependency */ = { 379 | isa = PBXTargetDependency; 380 | name = MGXWebBridge; 381 | target = 117BFCDF07C36124F2C037FFBE19FE0F /* MGXWebBridge */; 382 | targetProxy = E711DC98BB9CD0ED3B97A8BF2A8CA5B2 /* PBXContainerItemProxy */; 383 | }; 384 | 71CCB59D6E318350780AB3E0DCC2C375 /* PBXTargetDependency */ = { 385 | isa = PBXTargetDependency; 386 | name = "Pods-MGXWebBridge_Example"; 387 | target = 46FFB289CD1A39F3EF5BBCDCB208DF9B /* Pods-MGXWebBridge_Example */; 388 | targetProxy = 5C446CE5ED4B4D843CB7B97F4E7458A9 /* PBXContainerItemProxy */; 389 | }; 390 | /* End PBXTargetDependency section */ 391 | 392 | /* Begin XCBuildConfiguration section */ 393 | 3298159518E43C4B7A84EE78A2D58F99 /* Release */ = { 394 | isa = XCBuildConfiguration; 395 | baseConfigurationReference = 7AE57E2ECC54FE39A78C9D74F479CB96 /* Pods-MGXWebBridge_Example.release.xcconfig */; 396 | buildSettings = { 397 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 398 | CODE_SIGN_IDENTITY = ""; 399 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 400 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 401 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 402 | CURRENT_PROJECT_VERSION = 1; 403 | DEFINES_MODULE = YES; 404 | DYLIB_COMPATIBILITY_VERSION = 1; 405 | DYLIB_CURRENT_VERSION = 1; 406 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 407 | INFOPLIST_FILE = "Target Support Files/Pods-MGXWebBridge_Example/Info.plist"; 408 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 409 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 410 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 411 | MACH_O_TYPE = staticlib; 412 | MODULEMAP_FILE = "Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example.modulemap"; 413 | OTHER_LDFLAGS = ""; 414 | OTHER_LIBTOOLFLAGS = ""; 415 | PODS_ROOT = "$(SRCROOT)"; 416 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 417 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 418 | SDKROOT = iphoneos; 419 | SKIP_INSTALL = YES; 420 | TARGETED_DEVICE_FAMILY = "1,2"; 421 | VALIDATE_PRODUCT = YES; 422 | VERSIONING_SYSTEM = "apple-generic"; 423 | VERSION_INFO_PREFIX = ""; 424 | }; 425 | name = Release; 426 | }; 427 | 592DE8F72281C13775B527BDB873535F /* Debug */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 1F88C6C9B2926CF1BD127477640E23CB /* Pods-MGXWebBridge_Tests.debug.xcconfig */; 430 | buildSettings = { 431 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 432 | CODE_SIGN_IDENTITY = ""; 433 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 434 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 435 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 436 | CURRENT_PROJECT_VERSION = 1; 437 | DEFINES_MODULE = YES; 438 | DYLIB_COMPATIBILITY_VERSION = 1; 439 | DYLIB_CURRENT_VERSION = 1; 440 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 441 | INFOPLIST_FILE = "Target Support Files/Pods-MGXWebBridge_Tests/Info.plist"; 442 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 443 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 444 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 445 | MACH_O_TYPE = staticlib; 446 | MODULEMAP_FILE = "Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests.modulemap"; 447 | OTHER_LDFLAGS = ""; 448 | OTHER_LIBTOOLFLAGS = ""; 449 | PODS_ROOT = "$(SRCROOT)"; 450 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 451 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 452 | SDKROOT = iphoneos; 453 | SKIP_INSTALL = YES; 454 | TARGETED_DEVICE_FAMILY = "1,2"; 455 | VERSIONING_SYSTEM = "apple-generic"; 456 | VERSION_INFO_PREFIX = ""; 457 | }; 458 | name = Debug; 459 | }; 460 | 6B8B0DFD15737398DD2C003E922BD32B /* Release */ = { 461 | isa = XCBuildConfiguration; 462 | baseConfigurationReference = 2CFA1A0BC4F79255D72A5C7D5437208A /* MGXWebBridge.xcconfig */; 463 | buildSettings = { 464 | CODE_SIGN_IDENTITY = ""; 465 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 467 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 468 | CURRENT_PROJECT_VERSION = 1; 469 | DEFINES_MODULE = YES; 470 | DYLIB_COMPATIBILITY_VERSION = 1; 471 | DYLIB_CURRENT_VERSION = 1; 472 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 473 | GCC_PREFIX_HEADER = "Target Support Files/MGXWebBridge/MGXWebBridge-prefix.pch"; 474 | INFOPLIST_FILE = "Target Support Files/MGXWebBridge/Info.plist"; 475 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 476 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 477 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 478 | MODULEMAP_FILE = "Target Support Files/MGXWebBridge/MGXWebBridge.modulemap"; 479 | PRODUCT_MODULE_NAME = MGXWebBridge; 480 | PRODUCT_NAME = MGXWebBridge; 481 | SDKROOT = iphoneos; 482 | SKIP_INSTALL = YES; 483 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 484 | TARGETED_DEVICE_FAMILY = "1,2"; 485 | VALIDATE_PRODUCT = YES; 486 | VERSIONING_SYSTEM = "apple-generic"; 487 | VERSION_INFO_PREFIX = ""; 488 | }; 489 | name = Release; 490 | }; 491 | 8B33C5230DE4A9DFA6D8F46505DD7AF7 /* Debug */ = { 492 | isa = XCBuildConfiguration; 493 | buildSettings = { 494 | ALWAYS_SEARCH_USER_PATHS = NO; 495 | CLANG_ANALYZER_NONNULL = YES; 496 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 497 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 498 | CLANG_CXX_LIBRARY = "libc++"; 499 | CLANG_ENABLE_MODULES = YES; 500 | CLANG_ENABLE_OBJC_ARC = YES; 501 | CLANG_ENABLE_OBJC_WEAK = YES; 502 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 503 | CLANG_WARN_BOOL_CONVERSION = YES; 504 | CLANG_WARN_COMMA = YES; 505 | CLANG_WARN_CONSTANT_CONVERSION = YES; 506 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 507 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 508 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 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_RANGE_LOOP_ANALYSIS = YES; 518 | CLANG_WARN_STRICT_PROTOTYPES = YES; 519 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 520 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 521 | CLANG_WARN_UNREACHABLE_CODE = YES; 522 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 523 | CODE_SIGNING_ALLOWED = NO; 524 | CODE_SIGNING_REQUIRED = NO; 525 | COPY_PHASE_STRIP = NO; 526 | DEBUG_INFORMATION_FORMAT = dwarf; 527 | ENABLE_STRICT_OBJC_MSGSEND = YES; 528 | ENABLE_TESTABILITY = YES; 529 | GCC_C_LANGUAGE_STANDARD = gnu11; 530 | GCC_DYNAMIC_NO_PIC = NO; 531 | GCC_NO_COMMON_BLOCKS = YES; 532 | GCC_OPTIMIZATION_LEVEL = 0; 533 | GCC_PREPROCESSOR_DEFINITIONS = ( 534 | "POD_CONFIGURATION_DEBUG=1", 535 | "DEBUG=1", 536 | "$(inherited)", 537 | ); 538 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 539 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 540 | GCC_WARN_UNDECLARED_SELECTOR = YES; 541 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 542 | GCC_WARN_UNUSED_FUNCTION = YES; 543 | GCC_WARN_UNUSED_VARIABLE = YES; 544 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 545 | MTL_ENABLE_DEBUG_INFO = YES; 546 | ONLY_ACTIVE_ARCH = YES; 547 | PRODUCT_NAME = "$(TARGET_NAME)"; 548 | STRIP_INSTALLED_PRODUCT = NO; 549 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 550 | SYMROOT = "${SRCROOT}/../build"; 551 | }; 552 | name = Debug; 553 | }; 554 | 8F6FC7D9F9693D43C0DECCB3C03D6B27 /* Debug */ = { 555 | isa = XCBuildConfiguration; 556 | baseConfigurationReference = 2CFA1A0BC4F79255D72A5C7D5437208A /* MGXWebBridge.xcconfig */; 557 | buildSettings = { 558 | CODE_SIGN_IDENTITY = ""; 559 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 560 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 561 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 562 | CURRENT_PROJECT_VERSION = 1; 563 | DEFINES_MODULE = YES; 564 | DYLIB_COMPATIBILITY_VERSION = 1; 565 | DYLIB_CURRENT_VERSION = 1; 566 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 567 | GCC_PREFIX_HEADER = "Target Support Files/MGXWebBridge/MGXWebBridge-prefix.pch"; 568 | INFOPLIST_FILE = "Target Support Files/MGXWebBridge/Info.plist"; 569 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 570 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 571 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 572 | MODULEMAP_FILE = "Target Support Files/MGXWebBridge/MGXWebBridge.modulemap"; 573 | PRODUCT_MODULE_NAME = MGXWebBridge; 574 | PRODUCT_NAME = MGXWebBridge; 575 | SDKROOT = iphoneos; 576 | SKIP_INSTALL = YES; 577 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 578 | TARGETED_DEVICE_FAMILY = "1,2"; 579 | VERSIONING_SYSTEM = "apple-generic"; 580 | VERSION_INFO_PREFIX = ""; 581 | }; 582 | name = Debug; 583 | }; 584 | 9D72060DC295E2310F7D84787A358377 /* Debug */ = { 585 | isa = XCBuildConfiguration; 586 | baseConfigurationReference = A5BCE158AA15333D4BD09A674F03A33B /* Pods-MGXWebBridge_Example.debug.xcconfig */; 587 | buildSettings = { 588 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 589 | CODE_SIGN_IDENTITY = ""; 590 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 591 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 592 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 593 | CURRENT_PROJECT_VERSION = 1; 594 | DEFINES_MODULE = YES; 595 | DYLIB_COMPATIBILITY_VERSION = 1; 596 | DYLIB_CURRENT_VERSION = 1; 597 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 598 | INFOPLIST_FILE = "Target Support Files/Pods-MGXWebBridge_Example/Info.plist"; 599 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 600 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 601 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 602 | MACH_O_TYPE = staticlib; 603 | MODULEMAP_FILE = "Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example.modulemap"; 604 | OTHER_LDFLAGS = ""; 605 | OTHER_LIBTOOLFLAGS = ""; 606 | PODS_ROOT = "$(SRCROOT)"; 607 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 608 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 609 | SDKROOT = iphoneos; 610 | SKIP_INSTALL = YES; 611 | TARGETED_DEVICE_FAMILY = "1,2"; 612 | VERSIONING_SYSTEM = "apple-generic"; 613 | VERSION_INFO_PREFIX = ""; 614 | }; 615 | name = Debug; 616 | }; 617 | B0B489BFCF5A758C2B58009956F20D69 /* Release */ = { 618 | isa = XCBuildConfiguration; 619 | baseConfigurationReference = 181CA3FC48A3189975166B8179F1931A /* Pods-MGXWebBridge_Tests.release.xcconfig */; 620 | buildSettings = { 621 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 622 | CODE_SIGN_IDENTITY = ""; 623 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 624 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 625 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 626 | CURRENT_PROJECT_VERSION = 1; 627 | DEFINES_MODULE = YES; 628 | DYLIB_COMPATIBILITY_VERSION = 1; 629 | DYLIB_CURRENT_VERSION = 1; 630 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 631 | INFOPLIST_FILE = "Target Support Files/Pods-MGXWebBridge_Tests/Info.plist"; 632 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 633 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 634 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 635 | MACH_O_TYPE = staticlib; 636 | MODULEMAP_FILE = "Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests.modulemap"; 637 | OTHER_LDFLAGS = ""; 638 | OTHER_LIBTOOLFLAGS = ""; 639 | PODS_ROOT = "$(SRCROOT)"; 640 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 641 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 642 | SDKROOT = iphoneos; 643 | SKIP_INSTALL = YES; 644 | TARGETED_DEVICE_FAMILY = "1,2"; 645 | VALIDATE_PRODUCT = YES; 646 | VERSIONING_SYSTEM = "apple-generic"; 647 | VERSION_INFO_PREFIX = ""; 648 | }; 649 | name = Release; 650 | }; 651 | B42B54097A876E8A982CBF5DAA91B1AB /* Release */ = { 652 | isa = XCBuildConfiguration; 653 | buildSettings = { 654 | ALWAYS_SEARCH_USER_PATHS = NO; 655 | CLANG_ANALYZER_NONNULL = YES; 656 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 657 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 658 | CLANG_CXX_LIBRARY = "libc++"; 659 | CLANG_ENABLE_MODULES = YES; 660 | CLANG_ENABLE_OBJC_ARC = YES; 661 | CLANG_ENABLE_OBJC_WEAK = YES; 662 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 663 | CLANG_WARN_BOOL_CONVERSION = YES; 664 | CLANG_WARN_COMMA = YES; 665 | CLANG_WARN_CONSTANT_CONVERSION = YES; 666 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 667 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 668 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 669 | CLANG_WARN_EMPTY_BODY = YES; 670 | CLANG_WARN_ENUM_CONVERSION = YES; 671 | CLANG_WARN_INFINITE_RECURSION = YES; 672 | CLANG_WARN_INT_CONVERSION = YES; 673 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 674 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 675 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 676 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 677 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 678 | CLANG_WARN_STRICT_PROTOTYPES = YES; 679 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 680 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 681 | CLANG_WARN_UNREACHABLE_CODE = YES; 682 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 683 | CODE_SIGNING_ALLOWED = NO; 684 | CODE_SIGNING_REQUIRED = NO; 685 | COPY_PHASE_STRIP = NO; 686 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 687 | ENABLE_NS_ASSERTIONS = NO; 688 | ENABLE_STRICT_OBJC_MSGSEND = YES; 689 | GCC_C_LANGUAGE_STANDARD = gnu11; 690 | GCC_NO_COMMON_BLOCKS = YES; 691 | GCC_PREPROCESSOR_DEFINITIONS = ( 692 | "POD_CONFIGURATION_RELEASE=1", 693 | "$(inherited)", 694 | ); 695 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 696 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 697 | GCC_WARN_UNDECLARED_SELECTOR = YES; 698 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 699 | GCC_WARN_UNUSED_FUNCTION = YES; 700 | GCC_WARN_UNUSED_VARIABLE = YES; 701 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 702 | MTL_ENABLE_DEBUG_INFO = NO; 703 | PRODUCT_NAME = "$(TARGET_NAME)"; 704 | STRIP_INSTALLED_PRODUCT = NO; 705 | SYMROOT = "${SRCROOT}/../build"; 706 | }; 707 | name = Release; 708 | }; 709 | /* End XCBuildConfiguration section */ 710 | 711 | /* Begin XCConfigurationList section */ 712 | 078E4ACC8279ED798FA9E6C49DAD024F /* Build configuration list for PBXNativeTarget "MGXWebBridge" */ = { 713 | isa = XCConfigurationList; 714 | buildConfigurations = ( 715 | 8F6FC7D9F9693D43C0DECCB3C03D6B27 /* Debug */, 716 | 6B8B0DFD15737398DD2C003E922BD32B /* Release */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 722 | isa = XCConfigurationList; 723 | buildConfigurations = ( 724 | 8B33C5230DE4A9DFA6D8F46505DD7AF7 /* Debug */, 725 | B42B54097A876E8A982CBF5DAA91B1AB /* Release */, 726 | ); 727 | defaultConfigurationIsVisible = 0; 728 | defaultConfigurationName = Release; 729 | }; 730 | 5C4D31054EFB3A5D08C77699F9A332F8 /* Build configuration list for PBXNativeTarget "Pods-MGXWebBridge_Tests" */ = { 731 | isa = XCConfigurationList; 732 | buildConfigurations = ( 733 | 592DE8F72281C13775B527BDB873535F /* Debug */, 734 | B0B489BFCF5A758C2B58009956F20D69 /* Release */, 735 | ); 736 | defaultConfigurationIsVisible = 0; 737 | defaultConfigurationName = Release; 738 | }; 739 | C9EFD2F50BA2C9EE95FBE977433FEA3A /* Build configuration list for PBXNativeTarget "Pods-MGXWebBridge_Example" */ = { 740 | isa = XCConfigurationList; 741 | buildConfigurations = ( 742 | 9D72060DC295E2310F7D84787A358377 /* Debug */, 743 | 3298159518E43C4B7A84EE78A2D58F99 /* Release */, 744 | ); 745 | defaultConfigurationIsVisible = 0; 746 | defaultConfigurationName = Release; 747 | }; 748 | /* End XCConfigurationList section */ 749 | }; 750 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 751 | } 752 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MGXWebBridge/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/MGXWebBridge/MGXWebBridge-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MGXWebBridge : NSObject 3 | @end 4 | @implementation PodsDummy_MGXWebBridge 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MGXWebBridge/MGXWebBridge-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MGXWebBridge/MGXWebBridge-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 | #import "MGXWebBridge.h" 14 | 15 | FOUNDATION_EXPORT double MGXWebBridgeVersionNumber; 16 | FOUNDATION_EXPORT const unsigned char MGXWebBridgeVersionString[]; 17 | 18 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MGXWebBridge/MGXWebBridge.modulemap: -------------------------------------------------------------------------------- 1 | framework module MGXWebBridge { 2 | umbrella header "MGXWebBridge-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MGXWebBridge/MGXWebBridge.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "JavaScriptCore" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_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-MGXWebBridge_Example/Pods-MGXWebBridge_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## MGXWebBridge 5 | 6 | Copyright (c) 2018 329735967@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/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_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) 2018 329735967@qq.com <zhangmiao@xiu8.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 | MGXWebBridge 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MGXWebBridge_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MGXWebBridge_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | 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}\"" 80 | 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}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # 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. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/MGXWebBridge/MGXWebBridge.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/MGXWebBridge/MGXWebBridge.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_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_MGXWebBridge_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MGXWebBridge_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge/MGXWebBridge.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "MGXWebBridge" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MGXWebBridge_Example { 2 | umbrella header "Pods-MGXWebBridge_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Example/Pods-MGXWebBridge_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge/MGXWebBridge.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "MGXWebBridge" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_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-MGXWebBridge_Tests/Pods-MGXWebBridge_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-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MGXWebBridge_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MGXWebBridge_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | 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}\"" 80 | 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}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # 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. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 145 | wait 146 | fi 147 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_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_MGXWebBridge_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MGXWebBridge_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge/MGXWebBridge.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MGXWebBridge_Tests { 2 | umbrella header "Pods-MGXWebBridge_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MGXWebBridge_Tests/Pods-MGXWebBridge_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MGXWebBridge/MGXWebBridge.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Tests/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 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // MGXWebBridgeTests.m 3 | // MGXWebBridgeTests 4 | // 5 | // Created by 329735967@qq.com on 11/05/2018. 6 | // Copyright (c) 2018 329735967@qq.com. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 329735967@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 | -------------------------------------------------------------------------------- /MGXWebBridge.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint MGXWebBridge.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 = 'MGXWebBridge' 11 | s.version = '0.1.0' 12 | s.summary = 'UIWebView与JS交互' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | ObjC使用UIWebView与JavaScript的交互封装, 支持直接return调用结果 22 | DESC 23 | 24 | s.homepage = 'https://github.com/changjianfeishui/MGXWebBridge' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'mangox' => '22469836@qq.com' } 28 | s.source = { :git => 'https://github.com/changjianfeishui/MGXWebBridge.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '9.0' 32 | 33 | s.source_files = 'MGXWebBridge/Classes/**/*' 34 | 35 | # s.resource_bundles = { 36 | # 'MGXWebBridge' => ['MGXWebBridge/Assets/*.png'] 37 | # } 38 | 39 | # s.public_header_files = 'Pod/Classes/**/*.h' 40 | s.frameworks = 'JavaScriptCore' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /MGXWebBridge/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/changjianfeishui/MGXWebBridge/53bc0730d052d616ef5827e643f368b5a577eeb5/MGXWebBridge/Assets/.gitkeep -------------------------------------------------------------------------------- /MGXWebBridge/Classes/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/changjianfeishui/MGXWebBridge/53bc0730d052d616ef5827e643f368b5a577eeb5/MGXWebBridge/Classes/.DS_Store -------------------------------------------------------------------------------- /MGXWebBridge/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/changjianfeishui/MGXWebBridge/53bc0730d052d616ef5827e643f368b5a577eeb5/MGXWebBridge/Classes/.gitkeep -------------------------------------------------------------------------------- /MGXWebBridge/Classes/MGXWebBridge.h: -------------------------------------------------------------------------------- 1 | // 2 | // MGXWebBridge.h 3 | // MGXWebBridge 4 | // 5 | // Created by Miu on 2018/11/5. 6 | // 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | @protocol MGXWebBridgeDelegate 12 | /** 13 | webView加载完成 14 | */ 15 | - (void)mgx_webViewDidFinishLoad:(UIWebView *)webView; 16 | 17 | /** 18 | webView加载失败 19 | */ 20 | - (void)mgx_webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error; 21 | 22 | @end 23 | 24 | 25 | @interface MGXWebBridge : NSObject 26 | 27 | @property (nonatomic,weak) id delegate; 28 | 29 | 30 | /** 31 | 创建MGXWebBridge 32 | 33 | @param webView 需要与JS进行交互的UIWebView对象 34 | @return MGXWebBridge Obj 35 | */ 36 | - (instancetype)initWithWebView:(UIWebView *)webView; 37 | 38 | 39 | /** 40 | 注册Objc方法,供JS调用 41 | 42 | @param aObjcFuncName Objc方法名称 43 | @discussion 延迟到webView加载完成后才会执行真正的注册 44 | */ 45 | - (void)registerObjcFuncForJS:(NSString *)aObjcFuncName; 46 | 47 | /** 48 | 调用JS方法 49 | 50 | @param aJSFuncName JS方法名称 51 | @param params 调用参数, 支持NSString, NSArray, NSDictionary 52 | @discussion 调用时需要注意js是否加载完成 53 | */ 54 | - (void)invokeJSFunc:(NSString *)aJSFuncName params:(nullable id)params; 55 | 56 | 57 | /** 58 | 响应JS调用 59 | 无返回值则return nil 60 | */ 61 | @property (nonatomic,copy) id (^JSHander)(NSString *funcName,NSArray *params); 62 | 63 | @end 64 | 65 | NS_ASSUME_NONNULL_END 66 | -------------------------------------------------------------------------------- /MGXWebBridge/Classes/MGXWebBridge.m: -------------------------------------------------------------------------------- 1 | // 2 | // MGXWebBridge.m 3 | // MGXWebBridge 4 | // 5 | // Created by Miu on 2018/11/5. 6 | // 7 | 8 | #import "MGXWebBridge.h" 9 | #import 10 | 11 | @interface MGXWebBridge() 12 | @property (nonatomic,weak) UIWebView *webView; 13 | @property (nonatomic,strong) NSMutableArray *fns; 14 | @property (nonatomic,assign,getter=isWebFinish) BOOL webFinish; 15 | @end 16 | 17 | @implementation MGXWebBridge 18 | #pragma mark LifeCycle 19 | - (void)dealloc 20 | { 21 | [_webView stopLoading]; 22 | _webView = nil; 23 | } 24 | - (instancetype)initWithWebView:(UIWebView *)webView 25 | { 26 | if (self = [super init]) { 27 | _webView = webView; 28 | _webView.delegate = self; 29 | _fns = [NSMutableArray array]; 30 | } 31 | return self; 32 | } 33 | #pragma mark Event 34 | - (void)registerObjcFuncForJS:(NSString *)aObjcFuncName 35 | { 36 | if (self.webFinish) { 37 | [self realRegisterObjcFunc:aObjcFuncName]; 38 | }else{ 39 | [self.fns addObject:aObjcFuncName]; 40 | } 41 | } 42 | 43 | - (void)registerCachedObjcFuncs 44 | { 45 | for (NSString *funcName in self.fns) { 46 | [self realRegisterObjcFunc:funcName]; 47 | } 48 | } 49 | 50 | - (void)realRegisterObjcFunc:(NSString *)aObjcFuncName 51 | { 52 | JSContext *context = [self.webView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"]; 53 | __weak typeof(self) weakSelf = self; 54 | context[aObjcFuncName] = ^id(){ 55 | NSArray *args = [JSContext currentArguments]; 56 | NSMutableArray *format = [NSMutableArray arrayWithCapacity:args.count]; 57 | for (JSValue *js in args) { 58 | if (js.isObject) { 59 | [format addObject:[js toDictionary]]; 60 | }else if (js.isString){ 61 | NSString *str = [js toString]; 62 | NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding]; 63 | NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:nil]; 64 | if (dic) { 65 | [format addObject:dic]; 66 | }else{ 67 | [format addObject:str]; 68 | } 69 | }else if (js.isNumber){ 70 | [format addObject:[js toNumber]]; 71 | }else if (js.isDate){ 72 | [format addObject:[js toDate]]; 73 | }else if (js.isArray){ 74 | [format addObject:[js toArray]]; 75 | }else{ 76 | NSLog(@"MGXWebBridge_unsupported===%@",js); 77 | } 78 | if (weakSelf.JSHander) { 79 | return weakSelf.JSHander(aObjcFuncName,format); 80 | } 81 | } 82 | return nil; 83 | }; 84 | } 85 | 86 | - (void)invokeJSFunc:(NSString *)aJSFuncName params:(id)params 87 | { 88 | NSString *jsStr; 89 | JSContext *context = [self.webView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"]; 90 | if (!params) { 91 | jsStr = [NSString stringWithFormat:@"%@()",aJSFuncName]; 92 | }else{ 93 | if (![NSJSONSerialization isValidJSONObject:params]) { 94 | NSString *paramsStr = [NSString stringWithFormat:@"\"%@\"",params]; 95 | jsStr = [NSString stringWithFormat:@"%@(%@)",aJSFuncName,paramsStr]; 96 | }else{ 97 | NSData *jsondata = [NSJSONSerialization dataWithJSONObject:params options:0 error:nil]; 98 | NSString *jsonString = [[NSString alloc]initWithData:jsondata encoding:NSUTF8StringEncoding]; 99 | jsStr = [NSString stringWithFormat:@"%@(%@)",aJSFuncName,jsonString]; 100 | } 101 | } 102 | if (jsStr) { 103 | [context evaluateScript:jsStr]; 104 | } 105 | } 106 | 107 | #pragma mark UIWebViewDelegate 108 | - (void)webViewDidFinishLoad:(UIWebView *)webView 109 | { 110 | self.webFinish = YES; 111 | [self registerCachedObjcFuncs]; 112 | if ([self.delegate respondsToSelector:@selector(mgx_webViewDidFinishLoad:)]) { 113 | [self.delegate mgx_webViewDidFinishLoad:webView]; 114 | } 115 | } 116 | 117 | - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error 118 | { 119 | self.webFinish = NO; 120 | if ([self.delegate respondsToSelector:@selector(mgx_webView:didFailLoadWithError:)]) { 121 | [self.delegate mgx_webView:webView didFailLoadWithError:error]; 122 | } 123 | } 124 | 125 | @end 126 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MGXWebBridge 2 | 3 | [![CI Status](https://img.shields.io/travis/329735967@qq.com/MGXWebBridge.svg?style=flat)](https://travis-ci.org/329735967@qq.com/MGXWebBridge) 4 | [![Version](https://img.shields.io/cocoapods/v/MGXWebBridge.svg?style=flat)](https://cocoapods.org/pods/MGXWebBridge) 5 | [![License](https://img.shields.io/cocoapods/l/MGXWebBridge.svg?style=flat)](https://cocoapods.org/pods/MGXWebBridge) 6 | [![Platform](https://img.shields.io/cocoapods/p/MGXWebBridge.svg?style=flat)](https://cocoapods.org/pods/MGXWebBridge) 7 | 8 | ## Example 9 | 10 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 11 | 12 | ## Usage 13 | JS to Objc: 14 | 15 | ``` 16 | self.bridge = [[MGXWebBridge alloc]initWithWebView:self.webView]; 17 | [self.bridge registerObjcFuncForJS:@"liveCallHanlder"]; 18 | __weak typeof(self) weakSelf = self; 19 | self.bridge.JSHander = ^id(NSString * _Nonnull funcName, NSArray * _Nonnull params) { 20 | NSLog(@"%@===%@",funcName,params); 21 | if ([funcName isEqualToString:@"liveCallHanlder"]) { 22 | return [weakSelf liveCallHanlder]; 23 | } 24 | return nil; 25 | }; 26 | 27 | ``` 28 | 29 | Objc to JS: 30 | 31 | ``` 32 | NSDictionary *param = @{ 33 | @"name":@"lilei", 34 | @"age":@"13", 35 | @"sex":@"1", 36 | @"friends":@[@"han",@"li"] 37 | }; 38 | //support param type: NSString , NSArray, NSDictionary 39 | [self.bridge invokeJSFunc:@"ajaxResult.list" params:param]; 40 | ``` 41 | 42 | 43 | ## Requirements 44 | iOS 7.0 45 | 46 | ## Installation 47 | 48 | MGXWebBridge is available through [CocoaPods](https://cocoapods.org). To install 49 | it, simply add the following line to your Podfile: 50 | 51 | ```ruby 52 | pod 'MGXWebBridge' 53 | ``` 54 | 55 | 56 | ## License 57 | 58 | MGXWebBridge is available under the MIT license. See the LICENSE file for more info. 59 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------