diff --git a/.DS_Store b/.DS_Store index 1e9ac65..15a90d2 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 0000000..d51ee9c --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,13 @@ +use_frameworks! + +platform :ios, '8.0' + +target 'WKJavaScriptBridge_Example' do + pod 'WKJavaScriptBridge', :path => '../' + + target 'WKJavaScriptBridge_Tests' do + inherit! :search_paths + + + end +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..e51efd7 --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - WKJavaScriptBridge (0.1.0) + +DEPENDENCIES: + - WKJavaScriptBridge (from `../`) + +EXTERNAL SOURCES: + WKJavaScriptBridge: + :path: "../" + +SPEC CHECKSUMS: + WKJavaScriptBridge: 002bd91f9541b23acba79c0c02345b0a8015e2b9 + +PODFILE CHECKSUM: 7a8764f9ffcd97bedaf15694e9b25cdbdc128802 + +COCOAPODS: 1.9.3 diff --git a/Example/Pods/Local Podspecs/WKJavaScriptBridge.podspec.json b/Example/Pods/Local Podspecs/WKJavaScriptBridge.podspec.json new file mode 100644 index 0000000..014a8f1 --- /dev/null +++ b/Example/Pods/Local Podspecs/WKJavaScriptBridge.podspec.json @@ -0,0 +1,22 @@ +{ + "name": "WKJavaScriptBridge", + "version": "0.1.0", + "summary": "A short description of WKJavaScriptBridge.", + "description": "TODO: Add long description of the pod here.", + "homepage": "https://github.com/GitWangKai/WKJavaScriptBridge", + "license": { + "type": "MIT", + "file": "LICENSE" + }, + "authors": { + "GitWangKai": "18500052382@163.com" + }, + "source": { + "git": "https://github.com/GitWangKai/WKJavaScriptBridge.git", + "tag": "0.1.0" + }, + "platforms": { + "ios": "8.0" + }, + "source_files": "WKJavaScriptBridge/Classes/**/*" +} diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock new file mode 100644 index 0000000..e51efd7 --- /dev/null +++ b/Example/Pods/Manifest.lock @@ -0,0 +1,16 @@ +PODS: + - WKJavaScriptBridge (0.1.0) + +DEPENDENCIES: + - WKJavaScriptBridge (from `../`) + +EXTERNAL SOURCES: + WKJavaScriptBridge: + :path: "../" + +SPEC CHECKSUMS: + WKJavaScriptBridge: 002bd91f9541b23acba79c0c02345b0a8015e2b9 + +PODFILE CHECKSUM: 7a8764f9ffcd97bedaf15694e9b25cdbdc128802 + +COCOAPODS: 1.9.3 diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..255d76c --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,891 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1214D8B1397FDFC7C68FA8FFB50530F4 /* Pods-WKJavaScriptBridge_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = D0E106D87E4CA4077C0CCE709CE9EFCB /* Pods-WKJavaScriptBridge_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1293AB8E8EB7A50E0E88A919E0DDDBFD /* NSString+BridgeJSONPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A78970988CA4F36A81329A9E972779 /* NSString+BridgeJSONPrivate.m */; }; + 171DC50A236E09A8132C0B4C673D5F77 /* WKJavaScriptMessageDispatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 57F5480989137A1F843A39ABB204B7B7 /* WKJavaScriptMessageDispatcher.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1D8253259DF2B6E2F0082CB663D3A041 /* WKJavaScriptBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E2C1968BB5BE0E59527E5A25FE29695 /* WKJavaScriptBridge.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 22D385E2DE1BAF7BCEE1B21EA43E451E /* NSString+BridgeJSONPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C9DDA9B68DBF1D38648A3D03CDA3A23 /* NSString+BridgeJSONPrivate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2D41138DF9056CC39D030EDF28F05B6C /* WKJavaScriptBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = B1DC064D1CD4B1FB28A728AACF0FB75B /* WKJavaScriptBridge.m */; }; + 3717D3C7A0B4ACC4D2A5062FD4CAF313 /* WKPluginResult.h in Headers */ = {isa = PBXBuildFile; fileRef = AEED66C6B14667D29D84B1294277C104 /* WKPluginResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3F31EE627449D5D691D5CC305AF9747A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; + 512B3EC0F988071A7671DD911723915F /* WKPluginResult.m in Sources */ = {isa = PBXBuildFile; fileRef = EA0A314C2063666AE3721D0A1C08A3BB /* WKPluginResult.m */; }; + 51EC404A49947A5F1AD8EF9D8E248162 /* WKJavaScriptBridgePluginAnnotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 4342E9F0CAF4E883E1B3EF0CD878E570 /* WKJavaScriptBridgePluginAnnotation.m */; }; + 7222B424A724F9A62B1FE9A57A9AD967 /* WKPluginProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 8E9C5305656A340CA612DC00B409CB98 /* WKPluginProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7AED8BA97CB70766F574CD0C7513BB7C /* WKPluginSecurityProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 047C2E5FFE9EB6B8CBEF2A5881FDCEDA /* WKPluginSecurityProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 83CE0F66AF2019A73B9242B96A3464CD /* WKCommandProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 32E02F3B0D69A23F1383711218528E0E /* WKCommandProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 86EDF8A10C77F57FECEDE7F2138A8A5D /* WKJavaScriptBridge-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 09D49AA3ED3F4916C06CFAA153E114FF /* WKJavaScriptBridge-dummy.m */; }; + 8B09A5F3B4704F865A363F6768964404 /* WKCommandImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = A2BEB5F6A9C161F963477CF238F93085 /* WKCommandImpl.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8BEA8DFD94F03CD93F74545ADA8A52F2 /* WKJavaScriptBridgeProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = E6908A76FA49546874C3D68ADA9AA819 /* WKJavaScriptBridgeProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 90A96B7A3F7A83BC37DBB7664798B620 /* WKJavaScriptBridge-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C03D8F11A8C5BB7779925D6445FDB946 /* WKJavaScriptBridge-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 9A3EDDA49A04314A4EF4BA54AEA2419C /* Pods-WKJavaScriptBridge_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 774A8A3926BCB3417C031CE14D3A5360 /* Pods-WKJavaScriptBridge_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 9A991564D9A8F72EB40DDE3E027D848F /* WKMsgCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 14FB98A3715A8001CF83F96A6FC9905D /* WKMsgCommand.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B5CE477ED9D7579D378A9129160D2644 /* WKJavaScriptMessageDispatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = CC0AED92072FEE10655B3BBA742CB5CC /* WKJavaScriptMessageDispatcher.m */; }; + B7C38F09FD332390AC6481A0ABEDAA69 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; + C25C0067D7EFB1A3D14518CEAA1FB048 /* WKBasePlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = F8C0A2AB178663D683E3DEAFB44F2F5B /* WKBasePlugin.h */; settings = {ATTRIBUTES = (Public, ); }; }; + CF862D7D785F63AF909827ED6B00412A /* Pods-WKJavaScriptBridge_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 710D65D9911916E575F5438DB13F6B03 /* Pods-WKJavaScriptBridge_Example-dummy.m */; }; + D0C2A8753E68E6269A8FEBF342BE887D /* WKMsgCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 189E03A538517E791BA53A68C0142FEB /* WKMsgCommand.m */; }; + DB5513079EBA66F6A8FAEEBEB7CFDA25 /* WKCommandImpl.m in Sources */ = {isa = PBXBuildFile; fileRef = 11872520D0F6BA1530F9F1323EDD9C93 /* WKCommandImpl.m */; }; + E08B4DFEFC8D967A20D1CE0D379A2E0F /* Pods-WKJavaScriptBridge_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E8ABB81DF77B1BB5E92E6087E819D586 /* Pods-WKJavaScriptBridge_Tests-dummy.m */; }; + F21D8143049F09FE7398C17FD21458EA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; + F33FEC77ED342948EA13A1F2E9BBEE9D /* WKJavaScriptBridgePluginAnnotation.h in Headers */ = {isa = PBXBuildFile; fileRef = B00A422083F80D1D46F925A23DE8C6D6 /* WKJavaScriptBridgePluginAnnotation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F9EAB73FF36E7D4708BAFB80A69F678A /* WKBasePlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = B71FF397D168F81B7C193881EC5546F9 /* WKBasePlugin.m */; }; + FA739C948D5327E2B7C2CDB6375F399E /* WKWeakScriptMessageHandlerDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8661BBF543DAA0FFB45C16BA2A62A27E /* WKWeakScriptMessageHandlerDelegate.m */; }; + FC788FFE91D6FA1861159BD3D0DB7B0A /* WKWeakScriptMessageHandlerDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 23E54793889C168FA3246C5BD1DCEBA0 /* WKWeakScriptMessageHandlerDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 2E3A604F7A0CCAF6CFC2C58772DE835A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 883FE4A98A39F65560738FF8ACC95D71; + remoteInfo = "Pods-WKJavaScriptBridge_Example"; + }; + D5AD4AF2B33A181549ECC1C9E9D2C679 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8F8347086F8B20856E52922A9A74248D; + remoteInfo = WKJavaScriptBridge; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 047C2E5FFE9EB6B8CBEF2A5881FDCEDA /* WKPluginSecurityProtocol.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKPluginSecurityProtocol.h; sourceTree = ""; }; + 09D49AA3ED3F4916C06CFAA153E114FF /* WKJavaScriptBridge-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "WKJavaScriptBridge-dummy.m"; sourceTree = ""; }; + 0AB5A7C657210B3AABD198F5077B679C /* Pods_WKJavaScriptBridge_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WKJavaScriptBridge_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 11872520D0F6BA1530F9F1323EDD9C93 /* WKCommandImpl.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = WKCommandImpl.m; sourceTree = ""; }; + 13A78970988CA4F36A81329A9E972779 /* NSString+BridgeJSONPrivate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "NSString+BridgeJSONPrivate.m"; sourceTree = ""; }; + 14FB98A3715A8001CF83F96A6FC9905D /* WKMsgCommand.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKMsgCommand.h; sourceTree = ""; }; + 1558DF69E71932C3C188D12669EB7F9A /* Pods-WKJavaScriptBridge_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WKJavaScriptBridge_Tests.debug.xcconfig"; sourceTree = ""; }; + 189E03A538517E791BA53A68C0142FEB /* WKMsgCommand.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = WKMsgCommand.m; sourceTree = ""; }; + 23E54793889C168FA3246C5BD1DCEBA0 /* WKWeakScriptMessageHandlerDelegate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKWeakScriptMessageHandlerDelegate.h; sourceTree = ""; }; + 2E497486D5B1997976CEBF772818DA49 /* WKJavaScriptBridge.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WKJavaScriptBridge.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 301FAB3A4368C3A3C2AD4B4C1322098D /* Pods-WKJavaScriptBridge_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WKJavaScriptBridge_Example-acknowledgements.plist"; sourceTree = ""; }; + 31C031B651BCD53DC4CC88E15C6E6B40 /* Pods-WKJavaScriptBridge_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WKJavaScriptBridge_Tests-Info.plist"; sourceTree = ""; }; + 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 32E02F3B0D69A23F1383711218528E0E /* WKCommandProtocol.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKCommandProtocol.h; sourceTree = ""; }; + 33A01A89445811495F46D66F82FC6B09 /* Pods-WKJavaScriptBridge_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WKJavaScriptBridge_Tests.release.xcconfig"; sourceTree = ""; }; + 38CA62BAB103D9DC9F68FB242E185A1E /* WKJavaScriptBridge.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WKJavaScriptBridge.release.xcconfig; sourceTree = ""; }; + 40A403073A77DD168268371A1976EFEC /* WKJavaScriptBridge-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "WKJavaScriptBridge-Info.plist"; sourceTree = ""; }; + 4342E9F0CAF4E883E1B3EF0CD878E570 /* WKJavaScriptBridgePluginAnnotation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = WKJavaScriptBridgePluginAnnotation.m; sourceTree = ""; }; + 4C63C3A44C45DA722C3C6A08B3BA5957 /* Pods-WKJavaScriptBridge_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-WKJavaScriptBridge_Tests.modulemap"; sourceTree = ""; }; + 51F1C41DAFF76B6A011C7B789AF6C36B /* WKJavaScriptBridge-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WKJavaScriptBridge-prefix.pch"; sourceTree = ""; }; + 54A03357C4B6319334F90C606F701E18 /* WKJavaScriptBridge.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = WKJavaScriptBridge.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 57F5480989137A1F843A39ABB204B7B7 /* WKJavaScriptMessageDispatcher.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKJavaScriptMessageDispatcher.h; sourceTree = ""; }; + 5C9DDA9B68DBF1D38648A3D03CDA3A23 /* NSString+BridgeJSONPrivate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "NSString+BridgeJSONPrivate.h"; sourceTree = ""; }; + 68ACD6FE7A95E5569C01F672A4B40D92 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; + 70EDE9F2D19F96B938CDAB814617DE74 /* Pods-WKJavaScriptBridge_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WKJavaScriptBridge_Example-Info.plist"; sourceTree = ""; }; + 710D65D9911916E575F5438DB13F6B03 /* Pods-WKJavaScriptBridge_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WKJavaScriptBridge_Example-dummy.m"; sourceTree = ""; }; + 774A8A3926BCB3417C031CE14D3A5360 /* Pods-WKJavaScriptBridge_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WKJavaScriptBridge_Example-umbrella.h"; sourceTree = ""; }; + 7E2C1968BB5BE0E59527E5A25FE29695 /* WKJavaScriptBridge.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WKJavaScriptBridge.h; path = WKJavaScriptBridge/Classes/WKJavaScriptBridge.h; sourceTree = ""; }; + 834721C590C379A46A40ADBE82C4F15F /* Pods-WKJavaScriptBridge_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WKJavaScriptBridge_Example.release.xcconfig"; sourceTree = ""; }; + 8661BBF543DAA0FFB45C16BA2A62A27E /* WKWeakScriptMessageHandlerDelegate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = WKWeakScriptMessageHandlerDelegate.m; sourceTree = ""; }; + 8E9C5305656A340CA612DC00B409CB98 /* WKPluginProtocol.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKPluginProtocol.h; sourceTree = ""; }; + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + A2BEB5F6A9C161F963477CF238F93085 /* WKCommandImpl.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKCommandImpl.h; sourceTree = ""; }; + A374EBE5CEE67BA43677B57A871EE9D4 /* Pods-WKJavaScriptBridge_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WKJavaScriptBridge_Example-frameworks.sh"; sourceTree = ""; }; + A5F98B8E9357C9C1AACD2E07A72155FF /* WKJavaScriptBridge.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WKJavaScriptBridge.debug.xcconfig; sourceTree = ""; }; + A8210C3C7F352271AF9E1743C12D05EC /* Pods-WKJavaScriptBridge_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WKJavaScriptBridge_Tests-acknowledgements.plist"; sourceTree = ""; }; + AEED66C6B14667D29D84B1294277C104 /* WKPluginResult.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKPluginResult.h; sourceTree = ""; }; + B00A422083F80D1D46F925A23DE8C6D6 /* WKJavaScriptBridgePluginAnnotation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKJavaScriptBridgePluginAnnotation.h; sourceTree = ""; }; + B1DC064D1CD4B1FB28A728AACF0FB75B /* WKJavaScriptBridge.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WKJavaScriptBridge.m; path = WKJavaScriptBridge/Classes/WKJavaScriptBridge.m; sourceTree = ""; }; + B4F8C3C490631E0B1EBC6EE9A0AFB053 /* Pods-WKJavaScriptBridge_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WKJavaScriptBridge_Tests-acknowledgements.markdown"; sourceTree = ""; }; + B71FF397D168F81B7C193881EC5546F9 /* WKBasePlugin.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = WKBasePlugin.m; sourceTree = ""; }; + BEE7AA5F42761CAE8BABAFAF34B582DB /* WKJavaScriptBridge.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = WKJavaScriptBridge.modulemap; sourceTree = ""; }; + C03D8F11A8C5BB7779925D6445FDB946 /* WKJavaScriptBridge-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WKJavaScriptBridge-umbrella.h"; sourceTree = ""; }; + CA783533AC1F3556251D34C07F048287 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; + CC0AED92072FEE10655B3BBA742CB5CC /* WKJavaScriptMessageDispatcher.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = WKJavaScriptMessageDispatcher.m; sourceTree = ""; }; + D0E106D87E4CA4077C0CCE709CE9EFCB /* Pods-WKJavaScriptBridge_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WKJavaScriptBridge_Tests-umbrella.h"; sourceTree = ""; }; + D5F895E0793700E5AF2EFE043A921DAA /* Pods-WKJavaScriptBridge_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WKJavaScriptBridge_Example.debug.xcconfig"; sourceTree = ""; }; + E2AE7FCD6E1BEBFC47748F31A33301F3 /* Pods-WKJavaScriptBridge_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WKJavaScriptBridge_Example-acknowledgements.markdown"; sourceTree = ""; }; + E6908A76FA49546874C3D68ADA9AA819 /* WKJavaScriptBridgeProtocol.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WKJavaScriptBridgeProtocol.h; path = WKJavaScriptBridge/Classes/WKJavaScriptBridgeProtocol.h; sourceTree = ""; }; + E8ABB81DF77B1BB5E92E6087E819D586 /* Pods-WKJavaScriptBridge_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WKJavaScriptBridge_Tests-dummy.m"; sourceTree = ""; }; + EA0A314C2063666AE3721D0A1C08A3BB /* WKPluginResult.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = WKPluginResult.m; sourceTree = ""; }; + F4963E2EFFAAA15D91F010AD781B1684 /* Pods-WKJavaScriptBridge_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-WKJavaScriptBridge_Example.modulemap"; sourceTree = ""; }; + F8C0A2AB178663D683E3DEAFB44F2F5B /* WKBasePlugin.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = WKBasePlugin.h; sourceTree = ""; }; + FC5F691569AFE0EFF406546F7B6F471A /* Pods_WKJavaScriptBridge_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WKJavaScriptBridge_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 00FDDD0BE9B6BF383866056C6F1DEFEF /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F21D8143049F09FE7398C17FD21458EA /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 05C928CEC9214F94234ABDBD0B969DF2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B7C38F09FD332390AC6481A0ABEDAA69 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 239FD859A12EF8D7DD5765420748EF48 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3F31EE627449D5D691D5CC305AF9747A /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 184AF76C4404DA009A3D733DB7AC6AE4 /* Pods-WKJavaScriptBridge_Example */ = { + isa = PBXGroup; + children = ( + F4963E2EFFAAA15D91F010AD781B1684 /* Pods-WKJavaScriptBridge_Example.modulemap */, + E2AE7FCD6E1BEBFC47748F31A33301F3 /* Pods-WKJavaScriptBridge_Example-acknowledgements.markdown */, + 301FAB3A4368C3A3C2AD4B4C1322098D /* Pods-WKJavaScriptBridge_Example-acknowledgements.plist */, + 710D65D9911916E575F5438DB13F6B03 /* Pods-WKJavaScriptBridge_Example-dummy.m */, + A374EBE5CEE67BA43677B57A871EE9D4 /* Pods-WKJavaScriptBridge_Example-frameworks.sh */, + 70EDE9F2D19F96B938CDAB814617DE74 /* Pods-WKJavaScriptBridge_Example-Info.plist */, + 774A8A3926BCB3417C031CE14D3A5360 /* Pods-WKJavaScriptBridge_Example-umbrella.h */, + D5F895E0793700E5AF2EFE043A921DAA /* Pods-WKJavaScriptBridge_Example.debug.xcconfig */, + 834721C590C379A46A40ADBE82C4F15F /* Pods-WKJavaScriptBridge_Example.release.xcconfig */, + ); + name = "Pods-WKJavaScriptBridge_Example"; + path = "Target Support Files/Pods-WKJavaScriptBridge_Example"; + sourceTree = ""; + }; + 1D7D3BF891A3217902AE92E6D9E78035 /* Pod */ = { + isa = PBXGroup; + children = ( + CA783533AC1F3556251D34C07F048287 /* LICENSE */, + 68ACD6FE7A95E5569C01F672A4B40D92 /* README.md */, + 54A03357C4B6319334F90C606F701E18 /* WKJavaScriptBridge.podspec */, + ); + name = Pod; + sourceTree = ""; + }; + 3CAE51D0DAC28E1F2E199C9E03945F81 /* Development Pods */ = { + isa = PBXGroup; + children = ( + 8D0B65DAFD19C55863D8EBB8612CDD98 /* WKJavaScriptBridge */, + ); + name = "Development Pods"; + sourceTree = ""; + }; + 3D977E2076CC5E9426494538B9B1A8E5 /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + 184AF76C4404DA009A3D733DB7AC6AE4 /* Pods-WKJavaScriptBridge_Example */, + 6807E6C8FAC5F90048B5C8929C8466E5 /* Pods-WKJavaScriptBridge_Tests */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + 4C660FD0908F60750AE50E75D4F01086 /* Dispatcher */ = { + isa = PBXGroup; + children = ( + 57F5480989137A1F843A39ABB204B7B7 /* WKJavaScriptMessageDispatcher.h */, + CC0AED92072FEE10655B3BBA742CB5CC /* WKJavaScriptMessageDispatcher.m */, + 14FB98A3715A8001CF83F96A6FC9905D /* WKMsgCommand.h */, + 189E03A538517E791BA53A68C0142FEB /* WKMsgCommand.m */, + ); + name = Dispatcher; + path = WKJavaScriptBridge/Classes/Dispatcher; + sourceTree = ""; + }; + 61BDF114AF6E651E40E09A6EE617C424 /* Support Files */ = { + isa = PBXGroup; + children = ( + BEE7AA5F42761CAE8BABAFAF34B582DB /* WKJavaScriptBridge.modulemap */, + 09D49AA3ED3F4916C06CFAA153E114FF /* WKJavaScriptBridge-dummy.m */, + 40A403073A77DD168268371A1976EFEC /* WKJavaScriptBridge-Info.plist */, + 51F1C41DAFF76B6A011C7B789AF6C36B /* WKJavaScriptBridge-prefix.pch */, + C03D8F11A8C5BB7779925D6445FDB946 /* WKJavaScriptBridge-umbrella.h */, + A5F98B8E9357C9C1AACD2E07A72155FF /* WKJavaScriptBridge.debug.xcconfig */, + 38CA62BAB103D9DC9F68FB242E185A1E /* WKJavaScriptBridge.release.xcconfig */, + ); + name = "Support Files"; + path = "Example/Pods/Target Support Files/WKJavaScriptBridge"; + sourceTree = ""; + }; + 6807E6C8FAC5F90048B5C8929C8466E5 /* Pods-WKJavaScriptBridge_Tests */ = { + isa = PBXGroup; + children = ( + 4C63C3A44C45DA722C3C6A08B3BA5957 /* Pods-WKJavaScriptBridge_Tests.modulemap */, + B4F8C3C490631E0B1EBC6EE9A0AFB053 /* Pods-WKJavaScriptBridge_Tests-acknowledgements.markdown */, + A8210C3C7F352271AF9E1743C12D05EC /* Pods-WKJavaScriptBridge_Tests-acknowledgements.plist */, + E8ABB81DF77B1BB5E92E6087E819D586 /* Pods-WKJavaScriptBridge_Tests-dummy.m */, + 31C031B651BCD53DC4CC88E15C6E6B40 /* Pods-WKJavaScriptBridge_Tests-Info.plist */, + D0E106D87E4CA4077C0CCE709CE9EFCB /* Pods-WKJavaScriptBridge_Tests-umbrella.h */, + 1558DF69E71932C3C188D12669EB7F9A /* Pods-WKJavaScriptBridge_Tests.debug.xcconfig */, + 33A01A89445811495F46D66F82FC6B09 /* Pods-WKJavaScriptBridge_Tests.release.xcconfig */, + ); + name = "Pods-WKJavaScriptBridge_Tests"; + path = "Target Support Files/Pods-WKJavaScriptBridge_Tests"; + sourceTree = ""; + }; + 7F07F4DECFE76D5BAF98AA9BB5D5352D /* Security */ = { + isa = PBXGroup; + children = ( + B00A422083F80D1D46F925A23DE8C6D6 /* WKJavaScriptBridgePluginAnnotation.h */, + 4342E9F0CAF4E883E1B3EF0CD878E570 /* WKJavaScriptBridgePluginAnnotation.m */, + 047C2E5FFE9EB6B8CBEF2A5881FDCEDA /* WKPluginSecurityProtocol.h */, + ); + name = Security; + path = WKJavaScriptBridge/Classes/Security; + sourceTree = ""; + }; + 8D0B65DAFD19C55863D8EBB8612CDD98 /* WKJavaScriptBridge */ = { + isa = PBXGroup; + children = ( + 7E2C1968BB5BE0E59527E5A25FE29695 /* WKJavaScriptBridge.h */, + B1DC064D1CD4B1FB28A728AACF0FB75B /* WKJavaScriptBridge.m */, + E6908A76FA49546874C3D68ADA9AA819 /* WKJavaScriptBridgeProtocol.h */, + 4C660FD0908F60750AE50E75D4F01086 /* Dispatcher */, + C5F9BAA5404EE0F752066D47F6FA4AB6 /* Plugin */, + 1D7D3BF891A3217902AE92E6D9E78035 /* Pod */, + 7F07F4DECFE76D5BAF98AA9BB5D5352D /* Security */, + 61BDF114AF6E651E40E09A6EE617C424 /* Support Files */, + E55614D061D7B7B0A91F62C55E9A34E7 /* Util */, + ); + name = WKJavaScriptBridge; + path = ../..; + sourceTree = ""; + }; + C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { + isa = PBXGroup; + children = ( + 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + C5F9BAA5404EE0F752066D47F6FA4AB6 /* Plugin */ = { + isa = PBXGroup; + children = ( + F8C0A2AB178663D683E3DEAFB44F2F5B /* WKBasePlugin.h */, + B71FF397D168F81B7C193881EC5546F9 /* WKBasePlugin.m */, + A2BEB5F6A9C161F963477CF238F93085 /* WKCommandImpl.h */, + 11872520D0F6BA1530F9F1323EDD9C93 /* WKCommandImpl.m */, + 32E02F3B0D69A23F1383711218528E0E /* WKCommandProtocol.h */, + 8E9C5305656A340CA612DC00B409CB98 /* WKPluginProtocol.h */, + AEED66C6B14667D29D84B1294277C104 /* WKPluginResult.h */, + EA0A314C2063666AE3721D0A1C08A3BB /* WKPluginResult.m */, + ); + name = Plugin; + path = WKJavaScriptBridge/Classes/Plugin; + sourceTree = ""; + }; + CF1408CF629C7361332E53B88F7BD30C = { + isa = PBXGroup; + children = ( + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, + 3CAE51D0DAC28E1F2E199C9E03945F81 /* Development Pods */, + D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, + F24CBC1171C32BB22C4A0B91B3D187A4 /* Products */, + 3D977E2076CC5E9426494538B9B1A8E5 /* Targets Support Files */, + ); + sourceTree = ""; + }; + D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { + isa = PBXGroup; + children = ( + C0834CEBB1379A84116EF29F93051C60 /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + E55614D061D7B7B0A91F62C55E9A34E7 /* Util */ = { + isa = PBXGroup; + children = ( + 5C9DDA9B68DBF1D38648A3D03CDA3A23 /* NSString+BridgeJSONPrivate.h */, + 13A78970988CA4F36A81329A9E972779 /* NSString+BridgeJSONPrivate.m */, + 23E54793889C168FA3246C5BD1DCEBA0 /* WKWeakScriptMessageHandlerDelegate.h */, + 8661BBF543DAA0FFB45C16BA2A62A27E /* WKWeakScriptMessageHandlerDelegate.m */, + ); + name = Util; + path = WKJavaScriptBridge/Classes/Util; + sourceTree = ""; + }; + F24CBC1171C32BB22C4A0B91B3D187A4 /* Products */ = { + isa = PBXGroup; + children = ( + FC5F691569AFE0EFF406546F7B6F471A /* Pods_WKJavaScriptBridge_Example.framework */, + 0AB5A7C657210B3AABD198F5077B679C /* Pods_WKJavaScriptBridge_Tests.framework */, + 2E497486D5B1997976CEBF772818DA49 /* WKJavaScriptBridge.framework */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 377CC4D7EE9A563D1C8E6F49B86C5BCD /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 1214D8B1397FDFC7C68FA8FFB50530F4 /* Pods-WKJavaScriptBridge_Tests-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7111D6F7B7E24EF901A505A680E5F266 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 9A3EDDA49A04314A4EF4BA54AEA2419C /* Pods-WKJavaScriptBridge_Example-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C2BAAF8BE4874D46706178FB38601793 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 22D385E2DE1BAF7BCEE1B21EA43E451E /* NSString+BridgeJSONPrivate.h in Headers */, + C25C0067D7EFB1A3D14518CEAA1FB048 /* WKBasePlugin.h in Headers */, + 8B09A5F3B4704F865A363F6768964404 /* WKCommandImpl.h in Headers */, + 83CE0F66AF2019A73B9242B96A3464CD /* WKCommandProtocol.h in Headers */, + 90A96B7A3F7A83BC37DBB7664798B620 /* WKJavaScriptBridge-umbrella.h in Headers */, + 1D8253259DF2B6E2F0082CB663D3A041 /* WKJavaScriptBridge.h in Headers */, + F33FEC77ED342948EA13A1F2E9BBEE9D /* WKJavaScriptBridgePluginAnnotation.h in Headers */, + 8BEA8DFD94F03CD93F74545ADA8A52F2 /* WKJavaScriptBridgeProtocol.h in Headers */, + 171DC50A236E09A8132C0B4C673D5F77 /* WKJavaScriptMessageDispatcher.h in Headers */, + 9A991564D9A8F72EB40DDE3E027D848F /* WKMsgCommand.h in Headers */, + 7222B424A724F9A62B1FE9A57A9AD967 /* WKPluginProtocol.h in Headers */, + 3717D3C7A0B4ACC4D2A5062FD4CAF313 /* WKPluginResult.h in Headers */, + 7AED8BA97CB70766F574CD0C7513BB7C /* WKPluginSecurityProtocol.h in Headers */, + FC788FFE91D6FA1861159BD3D0DB7B0A /* WKWeakScriptMessageHandlerDelegate.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 755E204626CE89F863FB451307F6642E /* Pods-WKJavaScriptBridge_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 80D2A0FC26D66A0040A8D5D8E162C4EA /* Build configuration list for PBXNativeTarget "Pods-WKJavaScriptBridge_Tests" */; + buildPhases = ( + 377CC4D7EE9A563D1C8E6F49B86C5BCD /* Headers */, + 9B4AC8FEA1BDA86065E4F7437ADC167F /* Sources */, + 05C928CEC9214F94234ABDBD0B969DF2 /* Frameworks */, + D3293D74D80998F50E914DF00AAE6387 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + DCCC250130921A9DDBE74F6AAB211177 /* PBXTargetDependency */, + ); + name = "Pods-WKJavaScriptBridge_Tests"; + productName = "Pods-WKJavaScriptBridge_Tests"; + productReference = 0AB5A7C657210B3AABD198F5077B679C /* Pods_WKJavaScriptBridge_Tests.framework */; + productType = "com.apple.product-type.framework"; + }; + 883FE4A98A39F65560738FF8ACC95D71 /* Pods-WKJavaScriptBridge_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = D0549A0003E838F487D5BAA25A287FBA /* Build configuration list for PBXNativeTarget "Pods-WKJavaScriptBridge_Example" */; + buildPhases = ( + 7111D6F7B7E24EF901A505A680E5F266 /* Headers */, + AF03383C78837EC02542E07405E9D57D /* Sources */, + 00FDDD0BE9B6BF383866056C6F1DEFEF /* Frameworks */, + DB3BEA9121B49ECE4BFE8E0503002132 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 3A05FA48375D1FB1BCC889DBA6C375C4 /* PBXTargetDependency */, + ); + name = "Pods-WKJavaScriptBridge_Example"; + productName = "Pods-WKJavaScriptBridge_Example"; + productReference = FC5F691569AFE0EFF406546F7B6F471A /* Pods_WKJavaScriptBridge_Example.framework */; + productType = "com.apple.product-type.framework"; + }; + 8F8347086F8B20856E52922A9A74248D /* WKJavaScriptBridge */ = { + isa = PBXNativeTarget; + buildConfigurationList = 51A3D4460D5810FD144D7DF820AFECD7 /* Build configuration list for PBXNativeTarget "WKJavaScriptBridge" */; + buildPhases = ( + C2BAAF8BE4874D46706178FB38601793 /* Headers */, + DA0361B8FA00128D614E0A8CEC28E089 /* Sources */, + 239FD859A12EF8D7DD5765420748EF48 /* Frameworks */, + 28C2609870EA5AC93F94F45A1B7D82C0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = WKJavaScriptBridge; + productName = WKJavaScriptBridge; + productReference = 2E497486D5B1997976CEBF772818DA49 /* WKJavaScriptBridge.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BFDFE7DC352907FC980B868725387E98 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1100; + LastUpgradeCheck = 1100; + }; + buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = CF1408CF629C7361332E53B88F7BD30C; + productRefGroup = F24CBC1171C32BB22C4A0B91B3D187A4 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 883FE4A98A39F65560738FF8ACC95D71 /* Pods-WKJavaScriptBridge_Example */, + 755E204626CE89F863FB451307F6642E /* Pods-WKJavaScriptBridge_Tests */, + 8F8347086F8B20856E52922A9A74248D /* WKJavaScriptBridge */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 28C2609870EA5AC93F94F45A1B7D82C0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D3293D74D80998F50E914DF00AAE6387 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DB3BEA9121B49ECE4BFE8E0503002132 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 9B4AC8FEA1BDA86065E4F7437ADC167F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E08B4DFEFC8D967A20D1CE0D379A2E0F /* Pods-WKJavaScriptBridge_Tests-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + AF03383C78837EC02542E07405E9D57D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CF862D7D785F63AF909827ED6B00412A /* Pods-WKJavaScriptBridge_Example-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA0361B8FA00128D614E0A8CEC28E089 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1293AB8E8EB7A50E0E88A919E0DDDBFD /* NSString+BridgeJSONPrivate.m in Sources */, + F9EAB73FF36E7D4708BAFB80A69F678A /* WKBasePlugin.m in Sources */, + DB5513079EBA66F6A8FAEEBEB7CFDA25 /* WKCommandImpl.m in Sources */, + 86EDF8A10C77F57FECEDE7F2138A8A5D /* WKJavaScriptBridge-dummy.m in Sources */, + 2D41138DF9056CC39D030EDF28F05B6C /* WKJavaScriptBridge.m in Sources */, + 51EC404A49947A5F1AD8EF9D8E248162 /* WKJavaScriptBridgePluginAnnotation.m in Sources */, + B5CE477ED9D7579D378A9129160D2644 /* WKJavaScriptMessageDispatcher.m in Sources */, + D0C2A8753E68E6269A8FEBF342BE887D /* WKMsgCommand.m in Sources */, + 512B3EC0F988071A7671DD911723915F /* WKPluginResult.m in Sources */, + FA739C948D5327E2B7C2CDB6375F399E /* WKWeakScriptMessageHandlerDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 3A05FA48375D1FB1BCC889DBA6C375C4 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = WKJavaScriptBridge; + target = 8F8347086F8B20856E52922A9A74248D /* WKJavaScriptBridge */; + targetProxy = D5AD4AF2B33A181549ECC1C9E9D2C679 /* PBXContainerItemProxy */; + }; + DCCC250130921A9DDBE74F6AAB211177 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "Pods-WKJavaScriptBridge_Example"; + target = 883FE4A98A39F65560738FF8ACC95D71 /* Pods-WKJavaScriptBridge_Example */; + targetProxy = 2E3A604F7A0CCAF6CFC2C58772DE835A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 2D8002AAF2E228D2CEA3CAA635A14CFC /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1558DF69E71932C3C188D12669EB7F9A /* Pods-WKJavaScriptBridge_Tests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 3F108DF09AC5FBD618780D2CD91B634C /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D5F895E0793700E5AF2EFE043A921DAA /* Pods-WKJavaScriptBridge_Example.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 47248B9EF369065BF8C8C1F720E5DD1E /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33A01A89445811495F46D66F82FC6B09 /* Pods-WKJavaScriptBridge_Tests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + 6C025F14181343F6BD4E02560339318C /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 38CA62BAB103D9DC9F68FB242E185A1E /* WKJavaScriptBridge.release.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.modulemap"; + PRODUCT_MODULE_NAME = WKJavaScriptBridge; + PRODUCT_NAME = WKJavaScriptBridge; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + 919A9CECC1A835592B9AA58FC24FAD96 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A5F98B8E9357C9C1AACD2E07A72155FF /* WKJavaScriptBridge.debug.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.modulemap"; + PRODUCT_MODULE_NAME = WKJavaScriptBridge; + PRODUCT_NAME = WKJavaScriptBridge; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + BAC2DACE965431330E545661AE5098E7 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 834721C590C379A46A40ADBE82C4F15F /* Pods-WKJavaScriptBridge_Example.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */, + 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 51A3D4460D5810FD144D7DF820AFECD7 /* Build configuration list for PBXNativeTarget "WKJavaScriptBridge" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 919A9CECC1A835592B9AA58FC24FAD96 /* Debug */, + 6C025F14181343F6BD4E02560339318C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 80D2A0FC26D66A0040A8D5D8E162C4EA /* Build configuration list for PBXNativeTarget "Pods-WKJavaScriptBridge_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2D8002AAF2E228D2CEA3CAA635A14CFC /* Debug */, + 47248B9EF369065BF8C8C1F720E5DD1E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D0549A0003E838F487D5BAA25A287FBA /* Build configuration list for PBXNativeTarget "Pods-WKJavaScriptBridge_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3F108DF09AC5FBD618780D2CD91B634C /* Debug */, + BAC2DACE965431330E545661AE5098E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; +} diff --git a/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/Pods-WKJavaScriptBridge_Example.xcscheme b/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/Pods-WKJavaScriptBridge_Example.xcscheme new file mode 100644 index 0000000..298fffe --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/Pods-WKJavaScriptBridge_Example.xcscheme @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/Pods-WKJavaScriptBridge_Tests.xcscheme b/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/Pods-WKJavaScriptBridge_Tests.xcscheme new file mode 100644 index 0000000..1d3a2f1 --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/Pods-WKJavaScriptBridge_Tests.xcscheme @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/WKJavaScriptBridge.xcscheme b/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/WKJavaScriptBridge.xcscheme new file mode 100644 index 0000000..bc0da50 --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/WKJavaScriptBridge.xcscheme @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WKJavaScriptBridge-demo/Pods/Pods.xcodeproj/xcuserdata/kevin.xcuserdatad/xcschemes/xcschememanagement.plist b/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/xcschememanagement.plist similarity index 57% rename from WKJavaScriptBridge-demo/Pods/Pods.xcodeproj/xcuserdata/kevin.xcuserdatad/xcschemes/xcschememanagement.plist rename to Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/xcschememanagement.plist index 6bf8a9a..40c69b6 100644 --- a/WKJavaScriptBridge-demo/Pods/Pods.xcodeproj/xcuserdata/kevin.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Example/Pods/Pods.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/xcschememanagement.plist @@ -4,12 +4,20 @@ SchemeUserState - Pods-WKJavaScriptBridge-demo.xcscheme + Pods-WKJavaScriptBridge_Example.xcscheme + + isShown + + + Pods-WKJavaScriptBridge_Tests.xcscheme + + isShown + + + WKJavaScriptBridge.xcscheme isShown - orderHint - 0 SuppressBuildableAutocreation diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-Info.plist b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-acknowledgements.markdown new file mode 100644 index 0000000..48228a8 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-acknowledgements.markdown @@ -0,0 +1,26 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## WKJavaScriptBridge + +Copyright (c) 2020 GitWangKai <18500052382@163.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Generated by CocoaPods - https://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-acknowledgements.plist new file mode 100644 index 0000000..8d9e999 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-acknowledgements.plist @@ -0,0 +1,58 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2020 GitWangKai <18500052382@163.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + License + MIT + Title + WKJavaScriptBridge + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-dummy.m b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-dummy.m new file mode 100644 index 0000000..55cf188 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_WKJavaScriptBridge_Example : NSObject +@end +@implementation PodsDummy_Pods_WKJavaScriptBridge_Example +@end diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-frameworks.sh b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-frameworks.sh new file mode 100755 index 0000000..a1f6207 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-frameworks.sh @@ -0,0 +1,207 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +function on_error { + echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" +} +trap 'on_error $LINENO' ERR + +if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then + # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy + # frameworks to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +# Used as a return value for each invocation of `strip_invalid_archs` function. +STRIP_BINARY_RETVAL=0 + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +# Copies and strips a vendored framework +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # Use filter instead of exclude so missing patterns don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + elif [ -L "${binary}" ]; then + echo "Destination binary is symlinked..." + dirname="$(dirname "${binary}")" + binary="${dirname}/$(readlink "${binary}")" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Copies and strips a vendored dSYM +install_dsym() { + local source="$1" + warn_missing_arch=${2:-true} + if [ -r "$source" ]; then + # Copy the dSYM into the targets temp dir. + 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}\"" + 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}" + + local basename + basename="$(basename -s .dSYM "$source")" + binary_name="$(ls "$source/Contents/Resources/DWARF")" + binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then + strip_invalid_archs "$binary" "$warn_missing_arch" + fi + + if [[ $STRIP_BINARY_RETVAL == 1 ]]; then + # Move the stripped file into its final destination. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" + else + # 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. + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" + fi + fi +} + +# Copies the bcsymbolmap files of a vendored framework +install_bcsymbolmap() { + local bcsymbolmap_path="$1" + local destination="${BUILT_PRODUCTS_DIR}" + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identity + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" + + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + code_sign_cmd="$code_sign_cmd &" + fi + echo "$code_sign_cmd" + eval "$code_sign_cmd" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + warn_missing_arch=${2:-true} + # Get architectures for current target binary + binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" + # Intersect them with the architectures we are building for + intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" + # If there are no archs supported by this binary then warn the user + if [[ -z "$intersected_archs" ]]; then + if [[ "$warn_missing_arch" == "true" ]]; then + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." + fi + STRIP_BINARY_RETVAL=0 + return + fi + stripped="" + for arch in $binary_archs; do + if ! [[ "${ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi + STRIP_BINARY_RETVAL=1 +} + +install_artifact() { + artifact="$1" + base="$(basename "$artifact")" + case $base in + *.framework) + install_framework "$artifact" + ;; + *.dSYM) + # Suppress arch warnings since XCFrameworks will include many dSYM files + install_dsym "$artifact" "false" + ;; + *.bcsymbolmap) + install_bcsymbolmap "$artifact" + ;; + *) + echo "error: Unrecognized artifact "$artifact"" + ;; + esac +} + +copy_artifacts() { + file_list="$1" + while read artifact; do + install_artifact "$artifact" + done <$file_list +} + +ARTIFACT_LIST_FILE="${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt" +if [ -r "${ARTIFACT_LIST_FILE}" ]; then + copy_artifacts "${ARTIFACT_LIST_FILE}" +fi + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/WKJavaScriptBridge/WKJavaScriptBridge.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/WKJavaScriptBridge/WKJavaScriptBridge.framework" +fi +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-umbrella.h b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-umbrella.h new file mode 100644 index 0000000..2a3f78e --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double Pods_WKJavaScriptBridge_ExampleVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_WKJavaScriptBridge_ExampleVersionString[]; + diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.debug.xcconfig b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.debug.xcconfig new file mode 100644 index 0000000..4ae5683 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.debug.xcconfig @@ -0,0 +1,10 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge/WKJavaScriptBridge.framework/Headers" +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_LDFLAGS = $(inherited) -framework "WKJavaScriptBridge" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.modulemap b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.modulemap new file mode 100644 index 0000000..6733c2f --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.modulemap @@ -0,0 +1,6 @@ +framework module Pods_WKJavaScriptBridge_Example { + umbrella header "Pods-WKJavaScriptBridge_Example-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.release.xcconfig b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.release.xcconfig new file mode 100644 index 0000000..4ae5683 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.release.xcconfig @@ -0,0 +1,10 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge/WKJavaScriptBridge.framework/Headers" +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_LDFLAGS = $(inherited) -framework "WKJavaScriptBridge" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-Info.plist b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-acknowledgements.markdown similarity index 100% rename from WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-acknowledgements.markdown rename to Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-acknowledgements.markdown diff --git a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-acknowledgements.plist similarity index 100% rename from WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-acknowledgements.plist rename to Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-acknowledgements.plist diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-dummy.m b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-dummy.m new file mode 100644 index 0000000..6ca86e5 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_WKJavaScriptBridge_Tests : NSObject +@end +@implementation PodsDummy_Pods_WKJavaScriptBridge_Tests +@end diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-umbrella.h b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-umbrella.h new file mode 100644 index 0000000..7c8d75b --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double Pods_WKJavaScriptBridge_TestsVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_WKJavaScriptBridge_TestsVersionString[]; + diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.debug.xcconfig b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.debug.xcconfig new file mode 100644 index 0000000..11c6bc3 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.debug.xcconfig @@ -0,0 +1,9 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge/WKJavaScriptBridge.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "WKJavaScriptBridge" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.modulemap b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.modulemap new file mode 100644 index 0000000..b72485e --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.modulemap @@ -0,0 +1,6 @@ +framework module Pods_WKJavaScriptBridge_Tests { + umbrella header "Pods-WKJavaScriptBridge_Tests-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.release.xcconfig b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.release.xcconfig new file mode 100644 index 0000000..11c6bc3 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.release.xcconfig @@ -0,0 +1,9 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge/WKJavaScriptBridge.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "WKJavaScriptBridge" +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-Info.plist b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-Info.plist new file mode 100644 index 0000000..161a9d3 --- /dev/null +++ b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 0.1.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-dummy.m b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-dummy.m new file mode 100644 index 0000000..c7230f1 --- /dev/null +++ b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_WKJavaScriptBridge : NSObject +@end +@implementation PodsDummy_WKJavaScriptBridge +@end diff --git a/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-prefix.pch b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-prefix.pch new file mode 100644 index 0000000..beb2a24 --- /dev/null +++ b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-prefix.pch @@ -0,0 +1,12 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + diff --git a/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-umbrella.h b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-umbrella.h new file mode 100644 index 0000000..de3000a --- /dev/null +++ b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge-umbrella.h @@ -0,0 +1,29 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "WKJavaScriptMessageDispatcher.h" +#import "WKMsgCommand.h" +#import "WKBasePlugin.h" +#import "WKCommandImpl.h" +#import "WKCommandProtocol.h" +#import "WKPluginProtocol.h" +#import "WKPluginResult.h" +#import "WKJavaScriptBridgePluginAnnotation.h" +#import "WKPluginSecurityProtocol.h" +#import "NSString+BridgeJSONPrivate.h" +#import "WKWeakScriptMessageHandlerDelegate.h" +#import "WKJavaScriptBridge.h" +#import "WKJavaScriptBridgeProtocol.h" + +FOUNDATION_EXPORT double WKJavaScriptBridgeVersionNumber; +FOUNDATION_EXPORT const unsigned char WKJavaScriptBridgeVersionString[]; + diff --git a/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.debug.xcconfig b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.debug.xcconfig new file mode 100644 index 0000000..510b0b2 --- /dev/null +++ b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.debug.xcconfig @@ -0,0 +1,9 @@ +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.modulemap b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.modulemap new file mode 100644 index 0000000..369dc7a --- /dev/null +++ b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.modulemap @@ -0,0 +1,6 @@ +framework module WKJavaScriptBridge { + umbrella header "WKJavaScriptBridge-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.release.xcconfig b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.release.xcconfig new file mode 100644 index 0000000..510b0b2 --- /dev/null +++ b/Example/Pods/Target Support Files/WKJavaScriptBridge/WKJavaScriptBridge.release.xcconfig @@ -0,0 +1,9 @@ +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WKJavaScriptBridge +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Example/Tests/Tests-Info.plist b/Example/Tests/Tests-Info.plist new file mode 100644 index 0000000..169b6f7 --- /dev/null +++ b/Example/Tests/Tests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Example/Tests/Tests-Prefix.pch b/Example/Tests/Tests-Prefix.pch new file mode 100644 index 0000000..0bfb741 --- /dev/null +++ b/Example/Tests/Tests-Prefix.pch @@ -0,0 +1,7 @@ +// The contents of this file are implicitly included at the beginning of every test case source file. + +#ifdef __OBJC__ + + + +#endif diff --git a/Example/Tests/Tests.m b/Example/Tests/Tests.m new file mode 100644 index 0000000..6cafce3 --- /dev/null +++ b/Example/Tests/Tests.m @@ -0,0 +1,35 @@ +// +// WKJavaScriptBridgeTests.m +// WKJavaScriptBridgeTests +// +// Created by GitWangKai on 09/14/2020. +// Copyright (c) 2020 GitWangKai. All rights reserved. +// + +@import XCTest; + +@interface Tests : XCTestCase + +@end + +@implementation Tests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end + diff --git a/Example/Tests/en.lproj/InfoPlist.strings b/Example/Tests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Example/Tests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Example/WKJavaScriptBridge.xcodeproj/project.pbxproj b/Example/WKJavaScriptBridge.xcodeproj/project.pbxproj new file mode 100644 index 0000000..daed096 --- /dev/null +++ b/Example/WKJavaScriptBridge.xcodeproj/project.pbxproj @@ -0,0 +1,649 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1EDAA9BE5DCF363024F58224 /* Pods_WKJavaScriptBridge_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 86A22B218D3CFD606912451D /* Pods_WKJavaScriptBridge_Tests.framework */; }; + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; + 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; + 6003F59E195388D20070C39A /* WKAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* WKAppDelegate.m */; }; + 6003F5A7195388D20070C39A /* WKViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* WKViewController.m */; }; + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; + 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; + 631ECE893F6CFF6B28B3E7B1 /* Pods_WKJavaScriptBridge_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C81FD33F66658FB090696698 /* Pods_WKJavaScriptBridge_Example.framework */; }; + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; + 83F53EFD250EFFB3008B0321 /* TestSecurityPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 83F53EF7250EFFB3008B0321 /* TestSecurityPlugin.m */; }; + 83F53EFE250EFFB3008B0321 /* TestPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 83F53EFA250EFFB3008B0321 /* TestPlugin.m */; }; + 83F53EFF250EFFB3008B0321 /* WKCommonPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 83F53EFB250EFFB3008B0321 /* WKCommonPlugin.m */; }; + 83F53F01250EFFC5008B0321 /* index.html in Resources */ = {isa = PBXBuildFile; fileRef = 83F53F00250EFFC5008B0321 /* index.html */; }; + 83F53F03250F0136008B0321 /* WKJSBridge.js in Resources */ = {isa = PBXBuildFile; fileRef = 83F53F02250F0136008B0321 /* WKJSBridge.js */; }; + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6003F582195388D10070C39A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6003F589195388D20070C39A; + remoteInfo = WKJavaScriptBridge; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 03D8C67F75C319920C51C1F5 /* WKJavaScriptBridge.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = WKJavaScriptBridge.podspec; path = ../WKJavaScriptBridge.podspec; sourceTree = ""; }; + 1676BACDF544EC174D2EE1C3 /* Pods-WKJavaScriptBridge_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WKJavaScriptBridge_Tests.release.xcconfig"; path = "Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.release.xcconfig"; sourceTree = ""; }; + 3DE9B6B533B90FF6E2EEDC2F /* Pods-WKJavaScriptBridge_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WKJavaScriptBridge_Tests.debug.xcconfig"; path = "Target Support Files/Pods-WKJavaScriptBridge_Tests/Pods-WKJavaScriptBridge_Tests.debug.xcconfig"; sourceTree = ""; }; + 3FE1E5AD60555277E56091E2 /* Pods-WKJavaScriptBridge_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WKJavaScriptBridge_Example.release.xcconfig"; path = "Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.release.xcconfig"; sourceTree = ""; }; + 6003F58A195388D20070C39A /* WKJavaScriptBridge_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WKJavaScriptBridge_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 6003F595195388D20070C39A /* WKJavaScriptBridge-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "WKJavaScriptBridge-Info.plist"; sourceTree = ""; }; + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 6003F59B195388D20070C39A /* WKJavaScriptBridge-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WKJavaScriptBridge-Prefix.pch"; sourceTree = ""; }; + 6003F59C195388D20070C39A /* WKAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKAppDelegate.h; sourceTree = ""; }; + 6003F59D195388D20070C39A /* WKAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKAppDelegate.m; sourceTree = ""; }; + 6003F5A5195388D20070C39A /* WKViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKViewController.h; sourceTree = ""; }; + 6003F5A6195388D20070C39A /* WKViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKViewController.m; sourceTree = ""; }; + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 6003F5AE195388D20070C39A /* WKJavaScriptBridge_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WKJavaScriptBridge_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; + 61FCBE622911F16EAE21EEDC /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; + 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 83F53EF5250EFFB3008B0321 /* WKCommonPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKCommonPlugin.h; sourceTree = ""; }; + 83F53EF7250EFFB3008B0321 /* TestSecurityPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestSecurityPlugin.m; sourceTree = ""; }; + 83F53EF8250EFFB3008B0321 /* TestWebPluginSecurityConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestWebPluginSecurityConfig.h; sourceTree = ""; }; + 83F53EF9250EFFB3008B0321 /* TestSecurityPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestSecurityPlugin.h; sourceTree = ""; }; + 83F53EFA250EFFB3008B0321 /* TestPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestPlugin.m; sourceTree = ""; }; + 83F53EFB250EFFB3008B0321 /* WKCommonPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WKCommonPlugin.m; sourceTree = ""; }; + 83F53EFC250EFFB3008B0321 /* TestPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestPlugin.h; sourceTree = ""; }; + 83F53F00250EFFC5008B0321 /* index.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = index.html; sourceTree = ""; }; + 83F53F02250F0136008B0321 /* WKJSBridge.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = WKJSBridge.js; sourceTree = ""; }; + 86A22B218D3CFD606912451D /* Pods_WKJavaScriptBridge_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WKJavaScriptBridge_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 92142D68D116C7CE45F4713A /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + BC1335159DC9AD10901908FC /* Pods-WKJavaScriptBridge_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WKJavaScriptBridge_Example.debug.xcconfig"; path = "Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example.debug.xcconfig"; sourceTree = ""; }; + C81FD33F66658FB090696698 /* Pods_WKJavaScriptBridge_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WKJavaScriptBridge_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6003F587195388D20070C39A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, + 631ECE893F6CFF6B28B3E7B1 /* Pods_WKJavaScriptBridge_Example.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AB195388D20070C39A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, + 1EDAA9BE5DCF363024F58224 /* Pods_WKJavaScriptBridge_Tests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6003F581195388D10070C39A = { + isa = PBXGroup; + children = ( + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, + 6003F593195388D20070C39A /* Example for WKJavaScriptBridge */, + 6003F5B5195388D20070C39A /* Tests */, + 6003F58C195388D20070C39A /* Frameworks */, + 6003F58B195388D20070C39A /* Products */, + C74692C90E0E9C0B97DAA53D /* Pods */, + ); + sourceTree = ""; + }; + 6003F58B195388D20070C39A /* Products */ = { + isa = PBXGroup; + children = ( + 6003F58A195388D20070C39A /* WKJavaScriptBridge_Example.app */, + 6003F5AE195388D20070C39A /* WKJavaScriptBridge_Tests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 6003F58C195388D20070C39A /* Frameworks */ = { + isa = PBXGroup; + children = ( + 6003F58D195388D20070C39A /* Foundation.framework */, + 6003F58F195388D20070C39A /* CoreGraphics.framework */, + 6003F591195388D20070C39A /* UIKit.framework */, + 6003F5AF195388D20070C39A /* XCTest.framework */, + C81FD33F66658FB090696698 /* Pods_WKJavaScriptBridge_Example.framework */, + 86A22B218D3CFD606912451D /* Pods_WKJavaScriptBridge_Tests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 6003F593195388D20070C39A /* Example for WKJavaScriptBridge */ = { + isa = PBXGroup; + children = ( + 83F53EF4250EFFB3008B0321 /* NativePlugin */, + 6003F59C195388D20070C39A /* WKAppDelegate.h */, + 6003F59D195388D20070C39A /* WKAppDelegate.m */, + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, + 6003F5A5195388D20070C39A /* WKViewController.h */, + 6003F5A6195388D20070C39A /* WKViewController.m */, + 83F53F00250EFFC5008B0321 /* index.html */, + 83F53F02250F0136008B0321 /* WKJSBridge.js */, + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */, + 6003F5A8195388D20070C39A /* Images.xcassets */, + 6003F594195388D20070C39A /* Supporting Files */, + ); + name = "Example for WKJavaScriptBridge"; + path = WKJavaScriptBridge; + sourceTree = ""; + }; + 6003F594195388D20070C39A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6003F595195388D20070C39A /* WKJavaScriptBridge-Info.plist */, + 6003F596195388D20070C39A /* InfoPlist.strings */, + 6003F599195388D20070C39A /* main.m */, + 6003F59B195388D20070C39A /* WKJavaScriptBridge-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 6003F5B5195388D20070C39A /* Tests */ = { + isa = PBXGroup; + children = ( + 6003F5BB195388D20070C39A /* Tests.m */, + 6003F5B6195388D20070C39A /* Supporting Files */, + ); + path = Tests; + sourceTree = ""; + }; + 6003F5B6195388D20070C39A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6003F5B7195388D20070C39A /* Tests-Info.plist */, + 6003F5B8195388D20070C39A /* InfoPlist.strings */, + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { + isa = PBXGroup; + children = ( + 03D8C67F75C319920C51C1F5 /* WKJavaScriptBridge.podspec */, + 61FCBE622911F16EAE21EEDC /* README.md */, + 92142D68D116C7CE45F4713A /* LICENSE */, + ); + name = "Podspec Metadata"; + sourceTree = ""; + }; + 83F53EF4250EFFB3008B0321 /* NativePlugin */ = { + isa = PBXGroup; + children = ( + 83F53EF6250EFFB3008B0321 /* Security */, + 83F53EFA250EFFB3008B0321 /* TestPlugin.m */, + 83F53EFC250EFFB3008B0321 /* TestPlugin.h */, + 83F53EF5250EFFB3008B0321 /* WKCommonPlugin.h */, + 83F53EFB250EFFB3008B0321 /* WKCommonPlugin.m */, + ); + path = NativePlugin; + sourceTree = ""; + }; + 83F53EF6250EFFB3008B0321 /* Security */ = { + isa = PBXGroup; + children = ( + 83F53EF8250EFFB3008B0321 /* TestWebPluginSecurityConfig.h */, + 83F53EF7250EFFB3008B0321 /* TestSecurityPlugin.m */, + 83F53EF9250EFFB3008B0321 /* TestSecurityPlugin.h */, + ); + path = Security; + sourceTree = ""; + }; + C74692C90E0E9C0B97DAA53D /* Pods */ = { + isa = PBXGroup; + children = ( + BC1335159DC9AD10901908FC /* Pods-WKJavaScriptBridge_Example.debug.xcconfig */, + 3FE1E5AD60555277E56091E2 /* Pods-WKJavaScriptBridge_Example.release.xcconfig */, + 3DE9B6B533B90FF6E2EEDC2F /* Pods-WKJavaScriptBridge_Tests.debug.xcconfig */, + 1676BACDF544EC174D2EE1C3 /* Pods-WKJavaScriptBridge_Tests.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6003F589195388D20070C39A /* WKJavaScriptBridge_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "WKJavaScriptBridge_Example" */; + buildPhases = ( + 2A5D66C0B451A8F7B6EA9130 /* [CP] Check Pods Manifest.lock */, + 6003F586195388D20070C39A /* Sources */, + 6003F587195388D20070C39A /* Frameworks */, + 6003F588195388D20070C39A /* Resources */, + 0557EFF8257E8E021A35371A /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = WKJavaScriptBridge_Example; + productName = WKJavaScriptBridge; + productReference = 6003F58A195388D20070C39A /* WKJavaScriptBridge_Example.app */; + productType = "com.apple.product-type.application"; + }; + 6003F5AD195388D20070C39A /* WKJavaScriptBridge_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "WKJavaScriptBridge_Tests" */; + buildPhases = ( + 0657025DFA32CED84D3527AD /* [CP] Check Pods Manifest.lock */, + 6003F5AA195388D20070C39A /* Sources */, + 6003F5AB195388D20070C39A /* Frameworks */, + 6003F5AC195388D20070C39A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6003F5B4195388D20070C39A /* PBXTargetDependency */, + ); + name = WKJavaScriptBridge_Tests; + productName = WKJavaScriptBridgeTests; + productReference = 6003F5AE195388D20070C39A /* WKJavaScriptBridge_Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6003F582195388D10070C39A /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = WK; + LastUpgradeCheck = 0720; + ORGANIZATIONNAME = GitWangKai; + TargetAttributes = { + 6003F5AD195388D20070C39A = { + TestTargetID = 6003F589195388D20070C39A; + }; + }; + }; + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "WKJavaScriptBridge" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + English, + en, + Base, + ); + mainGroup = 6003F581195388D10070C39A; + productRefGroup = 6003F58B195388D20070C39A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6003F589195388D20070C39A /* WKJavaScriptBridge_Example */, + 6003F5AD195388D20070C39A /* WKJavaScriptBridge_Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6003F588195388D20070C39A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 83F53F03250F0136008B0321 /* WKJSBridge.js in Resources */, + 83F53F01250EFFC5008B0321 /* index.html in Resources */, + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */, + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AC195388D20070C39A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 0557EFF8257E8E021A35371A /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/WKJavaScriptBridge/WKJavaScriptBridge.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WKJavaScriptBridge.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-WKJavaScriptBridge_Example/Pods-WKJavaScriptBridge_Example-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 0657025DFA32CED84D3527AD /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-WKJavaScriptBridge_Tests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + 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"; + showEnvVarsInLog = 0; + }; + 2A5D66C0B451A8F7B6EA9130 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-WKJavaScriptBridge_Example-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + 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"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6003F586195388D20070C39A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F59E195388D20070C39A /* WKAppDelegate.m in Sources */, + 83F53EFF250EFFB3008B0321 /* WKCommonPlugin.m in Sources */, + 6003F5A7195388D20070C39A /* WKViewController.m in Sources */, + 83F53EFD250EFFB3008B0321 /* TestSecurityPlugin.m in Sources */, + 6003F59A195388D20070C39A /* main.m in Sources */, + 83F53EFE250EFFB3008B0321 /* TestPlugin.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AA195388D20070C39A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5BC195388D20070C39A /* Tests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6003F589195388D20070C39A /* WKJavaScriptBridge_Example */; + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 6003F596195388D20070C39A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 6003F597195388D20070C39A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 6003F5B9195388D20070C39A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 71719F9E1E33DC2100824A3D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 6003F5BD195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6003F5BE195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 6003F5C0195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = BC1335159DC9AD10901908FC /* Pods-WKJavaScriptBridge_Example.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "WKJavaScriptBridge/WKJavaScriptBridge-Prefix.pch"; + INFOPLIST_FILE = "WKJavaScriptBridge/WKJavaScriptBridge-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 6003F5C1195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3FE1E5AD60555277E56091E2 /* Pods-WKJavaScriptBridge_Example.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "WKJavaScriptBridge/WKJavaScriptBridge-Prefix.pch"; + INFOPLIST_FILE = "WKJavaScriptBridge/WKJavaScriptBridge-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 6003F5C3195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3DE9B6B533B90FF6E2EEDC2F /* Pods-WKJavaScriptBridge_Tests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = ( + "$(PLATFORM_DIR)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "Tests/Tests-Info.plist"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WKJavaScriptBridge_Example.app/WKJavaScriptBridge_Example"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 6003F5C4195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1676BACDF544EC174D2EE1C3 /* Pods-WKJavaScriptBridge_Tests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = ( + "$(PLATFORM_DIR)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; + INFOPLIST_FILE = "Tests/Tests-Info.plist"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WKJavaScriptBridge_Example.app/WKJavaScriptBridge_Example"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6003F585195388D10070C39A /* Build configuration list for PBXProject "WKJavaScriptBridge" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5BD195388D20070C39A /* Debug */, + 6003F5BE195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "WKJavaScriptBridge_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5C0195388D20070C39A /* Debug */, + 6003F5C1195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "WKJavaScriptBridge_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5C3195388D20070C39A /* Debug */, + 6003F5C4195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6003F582195388D10070C39A /* Project object */; +} diff --git a/Example/WKJavaScriptBridge.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/WKJavaScriptBridge.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..aac1f86 --- /dev/null +++ b/Example/WKJavaScriptBridge.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/WKJavaScriptBridge.xcodeproj/xcshareddata/xcschemes/WKJavaScriptBridge-Example.xcscheme b/Example/WKJavaScriptBridge.xcodeproj/xcshareddata/xcschemes/WKJavaScriptBridge-Example.xcscheme new file mode 100644 index 0000000..187b6e0 --- /dev/null +++ b/Example/WKJavaScriptBridge.xcodeproj/xcshareddata/xcschemes/WKJavaScriptBridge-Example.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/contents.xcworkspacedata b/Example/WKJavaScriptBridge.xcworkspace/contents.xcworkspacedata similarity index 75% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/contents.xcworkspacedata rename to Example/WKJavaScriptBridge.xcworkspace/contents.xcworkspacedata index ac5b3c9..c242482 100644 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/contents.xcworkspacedata +++ b/Example/WKJavaScriptBridge.xcworkspace/contents.xcworkspacedata @@ -2,7 +2,7 @@ + location = "group:WKJavaScriptBridge.xcodeproj"> diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/WKJavaScriptBridge.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to Example/WKJavaScriptBridge.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/Example/WKJavaScriptBridge.xcworkspace/xcuserdata/wangkai.xcuserdatad/UserInterfaceState.xcuserstate b/Example/WKJavaScriptBridge.xcworkspace/xcuserdata/wangkai.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..2b4ac02 Binary files /dev/null and b/Example/WKJavaScriptBridge.xcworkspace/xcuserdata/wangkai.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/kevin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Example/WKJavaScriptBridge.xcworkspace/xcuserdata/wangkai.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist similarity index 55% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/kevin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist rename to Example/WKJavaScriptBridge.xcworkspace/xcuserdata/wangkai.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index fe2b454..384cb5d 100644 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/kevin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/Example/WKJavaScriptBridge.xcworkspace/xcuserdata/wangkai.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -1,5 +1,6 @@ diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Base.lproj/LaunchScreen.storyboard b/Example/WKJavaScriptBridge/Base.lproj/LaunchScreen.storyboard similarity index 84% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Base.lproj/LaunchScreen.storyboard rename to Example/WKJavaScriptBridge/Base.lproj/LaunchScreen.storyboard index 0cf6fcd..fc810a6 100644 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Base.lproj/LaunchScreen.storyboard +++ b/Example/WKJavaScriptBridge/Base.lproj/LaunchScreen.storyboard @@ -1,11 +1,11 @@ - + - + @@ -14,8 +14,8 @@ - - + + diff --git a/Example/WKJavaScriptBridge/Base.lproj/Main.storyboard b/Example/WKJavaScriptBridge/Base.lproj/Main.storyboard new file mode 100644 index 0000000..1052423 --- /dev/null +++ b/Example/WKJavaScriptBridge/Base.lproj/Main.storyboard @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/WKJavaScriptBridge/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 99% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Example/WKJavaScriptBridge/Images.xcassets/AppIcon.appiconset/Contents.json index d8db8d6..b542ec2 100644 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/Example/WKJavaScriptBridge/Images.xcassets/AppIcon.appiconset/Contents.json @@ -95,4 +95,4 @@ "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/Security/TestSecurityPlugin.h b/Example/WKJavaScriptBridge/NativePlugin/Security/TestSecurityPlugin.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/Security/TestSecurityPlugin.h rename to Example/WKJavaScriptBridge/NativePlugin/Security/TestSecurityPlugin.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/Security/TestSecurityPlugin.m b/Example/WKJavaScriptBridge/NativePlugin/Security/TestSecurityPlugin.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/Security/TestSecurityPlugin.m rename to Example/WKJavaScriptBridge/NativePlugin/Security/TestSecurityPlugin.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/Security/TestWebPluginSecurityConfig.h b/Example/WKJavaScriptBridge/NativePlugin/Security/TestWebPluginSecurityConfig.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/Security/TestWebPluginSecurityConfig.h rename to Example/WKJavaScriptBridge/NativePlugin/Security/TestWebPluginSecurityConfig.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/TestPlugin.h b/Example/WKJavaScriptBridge/NativePlugin/TestPlugin.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/TestPlugin.h rename to Example/WKJavaScriptBridge/NativePlugin/TestPlugin.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/TestPlugin.m b/Example/WKJavaScriptBridge/NativePlugin/TestPlugin.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/TestPlugin.m rename to Example/WKJavaScriptBridge/NativePlugin/TestPlugin.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/WKCommonPlugin.h b/Example/WKJavaScriptBridge/NativePlugin/WKCommonPlugin.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/WKCommonPlugin.h rename to Example/WKJavaScriptBridge/NativePlugin/WKCommonPlugin.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/WKCommonPlugin.m b/Example/WKJavaScriptBridge/NativePlugin/WKCommonPlugin.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/NativePlugin/WKCommonPlugin.m rename to Example/WKJavaScriptBridge/NativePlugin/WKCommonPlugin.m diff --git a/Example/WKJavaScriptBridge/WKAppDelegate.h b/Example/WKJavaScriptBridge/WKAppDelegate.h new file mode 100644 index 0000000..077bc1c --- /dev/null +++ b/Example/WKJavaScriptBridge/WKAppDelegate.h @@ -0,0 +1,15 @@ +// +// WKAppDelegate.h +// WKJavaScriptBridge +// +// Created by GitWangKai on 09/14/2020. +// Copyright (c) 2020 GitWangKai. All rights reserved. +// + +@import UIKit; + +@interface WKAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/AppDelegate.m b/Example/WKJavaScriptBridge/WKAppDelegate.m similarity index 71% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/AppDelegate.m rename to Example/WKJavaScriptBridge/WKAppDelegate.m index 4bf735c..ca8fc0e 100644 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/AppDelegate.m +++ b/Example/WKJavaScriptBridge/WKAppDelegate.m @@ -1,51 +1,46 @@ // -// AppDelegate.m -// Hybrid-framework +// WKAppDelegate.m +// WKJavaScriptBridge // -// Created by 王凯 on 2018/12/5. -// Copyright © 2018 王凯. All rights reserved. +// Created by GitWangKai on 09/14/2020. +// Copyright (c) 2020 GitWangKai. All rights reserved. // -#import "AppDelegate.h" +#import "WKAppDelegate.h" -@interface AppDelegate () +@implementation WKAppDelegate -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ // Override point for customization after application launch. return YES; } - -- (void)applicationWillResignActive:(UIApplication *)application { +- (void)applicationWillResignActive:(UIApplication *)application +{ // 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. - // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + // 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. } - -- (void)applicationDidEnterBackground:(UIApplication *)application { +- (void)applicationDidEnterBackground:(UIApplication *)application +{ // 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. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // 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. } - -- (void)applicationDidBecomeActive:(UIApplication *)application { +- (void)applicationDidBecomeActive:(UIApplication *)application +{ // 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. } - -- (void)applicationWillTerminate:(UIApplication *)application { +- (void)applicationWillTerminate:(UIApplication *)application +{ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } - @end diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/WKJSBridge.js b/Example/WKJavaScriptBridge/WKJSBridge.js similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/WKJSBridge.js rename to Example/WKJavaScriptBridge/WKJSBridge.js diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Info.plist b/Example/WKJavaScriptBridge/WKJavaScriptBridge-Info.plist similarity index 82% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Info.plist rename to Example/WKJavaScriptBridge/WKJavaScriptBridge-Info.plist index 173fdf5..7576a0d 100644 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Info.plist +++ b/Example/WKJavaScriptBridge/WKJavaScriptBridge-Info.plist @@ -2,29 +2,26 @@ - NSAppTransportSecurity - - NSAllowsArbitraryLoadsInWebContent - - NSAllowsArbitraryLoads - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) + en + CFBundleDisplayName + ${PRODUCT_NAME} CFBundleExecutable - $(EXECUTABLE_NAME) + ${EXECUTABLE_NAME} CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName - $(PRODUCT_NAME) + ${PRODUCT_NAME} CFBundlePackageType APPL CFBundleShortVersionString 1.0 + CFBundleSignature + ???? CFBundleVersion - 1 + 1.0 LSRequiresIPhoneOS UILaunchStoryboardName diff --git a/Example/WKJavaScriptBridge/WKJavaScriptBridge-Prefix.pch b/Example/WKJavaScriptBridge/WKJavaScriptBridge-Prefix.pch new file mode 100644 index 0000000..7825372 --- /dev/null +++ b/Example/WKJavaScriptBridge/WKJavaScriptBridge-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + @import UIKit; + @import Foundation; +#endif diff --git a/Example/WKJavaScriptBridge/WKViewController.h b/Example/WKJavaScriptBridge/WKViewController.h new file mode 100644 index 0000000..da144ee --- /dev/null +++ b/Example/WKJavaScriptBridge/WKViewController.h @@ -0,0 +1,13 @@ +// +// WKViewController.h +// WKJavaScriptBridge +// +// Created by GitWangKai on 09/14/2020. +// Copyright (c) 2020 GitWangKai. All rights reserved. +// + +@import UIKit; + +@interface WKViewController : UIViewController + +@end diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestWKWebViewController.m b/Example/WKJavaScriptBridge/WKViewController.m similarity index 79% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestWKWebViewController.m rename to Example/WKJavaScriptBridge/WKViewController.m index 8423cc7..3430736 100644 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestWKWebViewController.m +++ b/Example/WKJavaScriptBridge/WKViewController.m @@ -1,27 +1,29 @@ // -// TestWKwebViewController.m -// Hybrid-framework +// WKViewController.m +// WKJavaScriptBridge // -// Created by Kevin on 2019/4/22. -// Copyright © 2019 王凯. All rights reserved. +// Created by GitWangKai on 09/14/2020. +// Copyright (c) 2020 GitWangKai. All rights reserved. // -#import "TestWKWebViewController.h" +#import "WKViewController.h" #import #import "WKJavaScriptBridge.h" -@interface TestWKWebViewController () +@interface WKViewController () @property (nonatomic, strong) WKJavaScriptBridge *bridge; @property (nonatomic, strong) WKWebView *webView; @property (nonatomic, strong) WKProcessPool *processPool; @property (nonatomic, assign, getter=loadFinished) BOOL isLoadFinished; @end -@implementation TestWKWebViewController +@implementation WKViewController -- (void)viewDidLoad { +- (void)viewDidLoad +{ [super viewDidLoad]; - // Do any additional setup after loading the view. + // Do any additional setup after loading the view, typically from a nib. + self.isLoadFinished = NO; /* 由于WKWebView在请求过程中用户可能退出界面销毁对象,当请求回调时由于接收处理对象不存在,造成Bad Access crash,所以可将WKProcessPool设为单例 @@ -42,7 +44,7 @@ - (void)viewDidLoad { WKWebView *webView = [[WKWebView alloc] initWithFrame:self.view.frame configuration:configuration]; self.webView = webView; webView.navigationDelegate = self; - [self addUserScript:webView]; +// [self addUserScript:webView]; /***/ self.bridge = [WKJavaScriptBridge bindBridgeWithWebView:webView]; /***/ @@ -79,21 +81,6 @@ - (void)viewDidAppear:(BOOL)animated { self.isLoadFinished = YES; } -#pragma mark - privite - -/** - 通过·document.cookie·设置cookie解决后续页面(同域)Ajax、iframe请求的cookie问题 - - @param webView wkwebview - */ -- (void)addUserScript:(WKWebView *)webView { -// NSString *js = [WKWebViewCookieMgr clientCookieScripts]; -// if (!js) return; -// WKUserScript *jsscript = [[WKUserScript alloc]initWithSource:js -// injectionTime:WKUserScriptInjectionTimeAtDocumentStart -// forMainFrameOnly:NO]; -// [webView.configuration.userContentController addUserScript:jsscript]; -} #pragma mark - WKNavigationDelegate diff --git a/Example/WKJavaScriptBridge/en.lproj/InfoPlist.strings b/Example/WKJavaScriptBridge/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Example/WKJavaScriptBridge/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/index.html b/Example/WKJavaScriptBridge/index.html similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/index.html rename to Example/WKJavaScriptBridge/index.html diff --git a/Example/WKJavaScriptBridge/main.m b/Example/WKJavaScriptBridge/main.m new file mode 100644 index 0000000..696e190 --- /dev/null +++ b/Example/WKJavaScriptBridge/main.m @@ -0,0 +1,17 @@ +// +// main.m +// WKJavaScriptBridge +// +// Created by GitWangKai on 09/14/2020. +// Copyright (c) 2020 GitWangKai. All rights reserved. +// + +@import UIKit; +#import "WKAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([WKAppDelegate class])); + } +} diff --git a/LICENSE b/LICENSE index 261eeb9..c6b608c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,201 +1,19 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Copyright (c) 2020 GitWangKai <18500052382@163.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index cc20aa9..0b2cb54 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ [《写一个易于维护使用方便性能可靠的Hybrid框架》](https://juejin.im/post/5c07d95ee51d451d930b04c7) +* v1.1.0 : 强化安全管理,增加安全插件,不配置不影响正常使用。配置方式参照DEMO。 + ## 特性 @@ -61,16 +63,10 @@ self.bridge = [WKJavaScriptBridge bindBridgeWithWebView:yourwebView]; ``` - 3、: -```objc -//开启白名单,默认关闭。若开启,插件需要进行注册`@WKRegisterWhiteList(你的模块类名)`,参照DEMO。 -[self.bridge openWhiteList:YES]; -``` -- 4、: - ```objc h5页面引入: ``` -- 5、: +- 4、: ```objc //H5调用Native: @@ -88,11 +84,7 @@ callbackId:H5传过来的回调ID ``` ## 延伸 -- 1、: -```objc -构建离线包 -``` -- 2、: + ```objc 构建小程序 ``` @@ -101,3 +93,4 @@ callbackId:H5传过来的回调ID WKJavaScriptBridge is available under the Apache License 2.0. See the [LICENSE](https://github.com/GitWangKai/WKJavaScriptBridge/blob/master/LICENSE) file for more info. + diff --git a/WKJavaScriptBridge-demo/Podfile b/WKJavaScriptBridge-demo/Podfile deleted file mode 100644 index d1a6c1f..0000000 --- a/WKJavaScriptBridge-demo/Podfile +++ /dev/null @@ -1,7 +0,0 @@ -# Uncomment the next line to define a global platform for your project - platform :ios, '8.0' - -target 'WKJavaScriptBridge-demo' do -# pod 'WKJavaScriptBridge' - -end diff --git a/WKJavaScriptBridge-demo/Podfile.lock b/WKJavaScriptBridge-demo/Podfile.lock deleted file mode 100644 index fa1d3fd..0000000 --- a/WKJavaScriptBridge-demo/Podfile.lock +++ /dev/null @@ -1,3 +0,0 @@ -PODFILE CHECKSUM: daae038c02c5239e8a8c75280f94ffe59b4c6886 - -COCOAPODS: 1.6.1 diff --git a/WKJavaScriptBridge-demo/Pods/Manifest.lock b/WKJavaScriptBridge-demo/Pods/Manifest.lock deleted file mode 100644 index fa1d3fd..0000000 --- a/WKJavaScriptBridge-demo/Pods/Manifest.lock +++ /dev/null @@ -1,3 +0,0 @@ -PODFILE CHECKSUM: daae038c02c5239e8a8c75280f94ffe59b4c6886 - -COCOAPODS: 1.6.1 diff --git a/WKJavaScriptBridge-demo/Pods/Pods.xcodeproj/project.pbxproj b/WKJavaScriptBridge-demo/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index 3e7e3c5..0000000 --- a/WKJavaScriptBridge-demo/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,339 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - AF2961BD438BA5FFD28B94B42C34F2B9 /* Pods-WKJavaScriptBridge-demo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E406C346583620BF061EAD06B4E8E6D /* Pods-WKJavaScriptBridge-demo-dummy.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 53C367029AA29477145A56561FD386C3 /* Pods-WKJavaScriptBridge-demo-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WKJavaScriptBridge-demo-acknowledgements.plist"; sourceTree = ""; }; - 6D080D3D8A5B7EAF386BA0694E59DCE1 /* libPods-WKJavaScriptBridge-demo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-WKJavaScriptBridge-demo.a"; path = "libPods-WKJavaScriptBridge-demo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7AD1600727BB580BAC0219952D8F8A7A /* Pods-WKJavaScriptBridge-demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WKJavaScriptBridge-demo.release.xcconfig"; sourceTree = ""; }; - 8E406C346583620BF061EAD06B4E8E6D /* Pods-WKJavaScriptBridge-demo-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WKJavaScriptBridge-demo-dummy.m"; sourceTree = ""; }; - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - BB35D1B0F5E5B98696111B3EB6D59CC0 /* Pods-WKJavaScriptBridge-demo-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WKJavaScriptBridge-demo-acknowledgements.markdown"; sourceTree = ""; }; - C194B1208F4DCFECE738EF083AE5BB6F /* Pods-WKJavaScriptBridge-demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WKJavaScriptBridge-demo.debug.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - A0D5DD0089E98240D636A646CA4ACF53 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 01C7CB5A90D9F06DA5C3EF48F4F2A3E9 /* Products */ = { - isa = PBXGroup; - children = ( - 6D080D3D8A5B7EAF386BA0694E59DCE1 /* libPods-WKJavaScriptBridge-demo.a */, - ); - name = Products; - sourceTree = ""; - }; - A61F024E86D179AA1756A9ED04F4A3CD /* Pods-WKJavaScriptBridge-demo */ = { - isa = PBXGroup; - children = ( - BB35D1B0F5E5B98696111B3EB6D59CC0 /* Pods-WKJavaScriptBridge-demo-acknowledgements.markdown */, - 53C367029AA29477145A56561FD386C3 /* Pods-WKJavaScriptBridge-demo-acknowledgements.plist */, - 8E406C346583620BF061EAD06B4E8E6D /* Pods-WKJavaScriptBridge-demo-dummy.m */, - C194B1208F4DCFECE738EF083AE5BB6F /* Pods-WKJavaScriptBridge-demo.debug.xcconfig */, - 7AD1600727BB580BAC0219952D8F8A7A /* Pods-WKJavaScriptBridge-demo.release.xcconfig */, - ); - name = "Pods-WKJavaScriptBridge-demo"; - path = "Target Support Files/Pods-WKJavaScriptBridge-demo"; - sourceTree = ""; - }; - B79833D723E78110D8B983CFD27C8C17 /* Targets Support Files */ = { - isa = PBXGroup; - children = ( - A61F024E86D179AA1756A9ED04F4A3CD /* Pods-WKJavaScriptBridge-demo */, - ); - name = "Targets Support Files"; - sourceTree = ""; - }; - CF1408CF629C7361332E53B88F7BD30C = { - isa = PBXGroup; - children = ( - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, - D89477F20FB1DE18A04690586D7808C4 /* Frameworks */, - 01C7CB5A90D9F06DA5C3EF48F4F2A3E9 /* Products */, - B79833D723E78110D8B983CFD27C8C17 /* Targets Support Files */, - ); - sourceTree = ""; - }; - D89477F20FB1DE18A04690586D7808C4 /* Frameworks */ = { - isa = PBXGroup; - children = ( - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - FA6B2F9957BEEE0D810C7847B870BFD0 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - B30352F5B8D45B1CE24298B4480DEC99 /* Pods-WKJavaScriptBridge-demo */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7417409D1A9A17FB884B95CCF56BB2CC /* Build configuration list for PBXNativeTarget "Pods-WKJavaScriptBridge-demo" */; - buildPhases = ( - FA6B2F9957BEEE0D810C7847B870BFD0 /* Headers */, - 7AB8B8B5DE29F93DF42A363F47EC9693 /* Sources */, - A0D5DD0089E98240D636A646CA4ACF53 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Pods-WKJavaScriptBridge-demo"; - productName = "Pods-WKJavaScriptBridge-demo"; - productReference = 6D080D3D8A5B7EAF386BA0694E59DCE1 /* libPods-WKJavaScriptBridge-demo.a */; - productType = "com.apple.product-type.library.static"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - BFDFE7DC352907FC980B868725387E98 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0930; - LastUpgradeCheck = 0930; - }; - buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = CF1408CF629C7361332E53B88F7BD30C; - productRefGroup = 01C7CB5A90D9F06DA5C3EF48F4F2A3E9 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - B30352F5B8D45B1CE24298B4480DEC99 /* Pods-WKJavaScriptBridge-demo */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - 7AB8B8B5DE29F93DF42A363F47EC9693 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AF2961BD438BA5FFD28B94B42C34F2B9 /* Pods-WKJavaScriptBridge-demo-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 05DF210AC65EBB0E593AAF976B2C2177 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_PREPROCESSOR_DEFINITIONS = ( - "POD_CONFIGURATION_RELEASE=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 4.2; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Release; - }; - 155B4CA3B9B19A89BD73795ABE70F626 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AD1600727BB580BAC0219952D8F8A7A /* Pods-WKJavaScriptBridge-demo.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MACH_O_TYPE = staticlib; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 40BD47788BD70DFAFAF98DA104659803 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C194B1208F4DCFECE738EF083AE5BB6F /* Pods-WKJavaScriptBridge-demo.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MACH_O_TYPE = staticlib; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 421ECB1396280A8D83853C3DDBED1700 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "POD_CONFIGURATION_DEBUG=1", - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.2; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Debug; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 421ECB1396280A8D83853C3DDBED1700 /* Debug */, - 05DF210AC65EBB0E593AAF976B2C2177 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7417409D1A9A17FB884B95CCF56BB2CC /* Build configuration list for PBXNativeTarget "Pods-WKJavaScriptBridge-demo" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 40BD47788BD70DFAFAF98DA104659803 /* Debug */, - 155B4CA3B9B19A89BD73795ABE70F626 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; -} diff --git a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-dummy.m b/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-dummy.m deleted file mode 100644 index 995a3c9..0000000 --- a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_WKJavaScriptBridge_demo : NSObject -@end -@implementation PodsDummy_Pods_WKJavaScriptBridge_demo -@end diff --git a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-resources.sh b/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-resources.sh deleted file mode 100755 index 8c3879b..0000000 --- a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo-resources.sh +++ /dev/null @@ -1,129 +0,0 @@ -#!/bin/sh -set -e -set -u -set -o pipefail - -function on_error { - echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" -} -trap 'on_error $LINENO' ERR - -if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then - # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy - # resources to, so exit 0 (signalling the script phase was successful). - exit 0 -fi - -mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -# This protects against multiple targets copying the same framework dependency at the same time. The solution -# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html -RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") - -case "${TARGETED_DEVICE_FAMILY:-}" in - 1,2) - TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" - ;; - 1) - TARGET_DEVICE_ARGS="--target-device iphone" - ;; - 2) - TARGET_DEVICE_ARGS="--target-device ipad" - ;; - 3) - TARGET_DEVICE_ARGS="--target-device tv" - ;; - 4) - TARGET_DEVICE_ARGS="--target-device watch" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; -esac - -install_resource() -{ - if [[ "$1" = /* ]] ; then - RESOURCE_PATH="$1" - else - RESOURCE_PATH="${PODS_ROOT}/$1" - fi - if [[ ! -e "$RESOURCE_PATH" ]] ; then - cat << EOM -error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. -EOM - exit 1 - fi - case $RESOURCE_PATH in - *.storyboard) - 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 - 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} - ;; - *.xib) - 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 - 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} - ;; - *.framework) - echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true - mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true - xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true - xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true - xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - *) - echo "$RESOURCE_PATH" || true - echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" - ;; - esac -} -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_resource "${PODS_ROOT}/WKJavaScriptBridge/WKJavaScriptBridge/WKJSBridge.js" -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_resource "${PODS_ROOT}/WKJavaScriptBridge/WKJavaScriptBridge/WKJSBridge.js" -fi - -mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then - mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi -rm -f "$RESOURCES_TO_COPY" - -if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] -then - # Find all other xcassets (this unfortunately includes those of path pods and other targets). - OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) - while read line; do - if [[ $line != "${PODS_ROOT}*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then - 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}" - else - 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" - fi -fi diff --git a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo.debug.xcconfig b/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo.debug.xcconfig deleted file mode 100644 index 729bac8..0000000 --- a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo.debug.xcconfig +++ /dev/null @@ -1,6 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -OTHER_LDFLAGS = $(inherited) -ObjC -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_PODFILE_DIR_PATH = ${SRCROOT}/. -PODS_ROOT = ${SRCROOT}/Pods diff --git a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo.release.xcconfig b/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo.release.xcconfig deleted file mode 100644 index 729bac8..0000000 --- a/WKJavaScriptBridge-demo/Pods/Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo.release.xcconfig +++ /dev/null @@ -1,6 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -OTHER_LDFLAGS = $(inherited) -ObjC -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_PODFILE_DIR_PATH = ${SRCROOT}/. -PODS_ROOT = ${SRCROOT}/Pods diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.pbxproj b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.pbxproj deleted file mode 100644 index 0d3da0c..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.pbxproj +++ /dev/null @@ -1,558 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 0A0EE1B1235F0E77002232BB /* WKJavaScriptBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1B0235F0E77002232BB /* WKJavaScriptBridge.m */; }; - 0A0EE1B8235F0F36002232BB /* WKJavaScriptMessageDispatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1B7235F0F36002232BB /* WKJavaScriptMessageDispatcher.m */; }; - 0A0EE1BB235F0F87002232BB /* WKMsgCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1BA235F0F87002232BB /* WKMsgCommand.m */; }; - 0A0EE1BF235F100B002232BB /* WKBasePlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1BE235F100B002232BB /* WKBasePlugin.m */; }; - 0A0EE1C2235F103E002232BB /* WKCommandImpl.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1C1235F103E002232BB /* WKCommandImpl.m */; }; - 0A0EE1C7235F10C4002232BB /* WKPluginResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1C6235F10C4002232BB /* WKPluginResult.m */; }; - 0A0EE1CD235F1152002232BB /* NSString+BridgeJSONPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1CC235F1152002232BB /* NSString+BridgeJSONPrivate.m */; }; - 0A0EE1D0235F117F002232BB /* WKWeakScriptMessageHandlerDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1CF235F117F002232BB /* WKWeakScriptMessageHandlerDelegate.m */; }; - 0A0EE1D7235F12A5002232BB /* WKCommonPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0EE1D6235F12A5002232BB /* WKCommonPlugin.m */; }; - 0A0EE1D9235F1BBC002232BB /* WKJSBridge.js in Resources */ = {isa = PBXBuildFile; fileRef = 0A0EE1D8235F1BBC002232BB /* WKJSBridge.js */; }; - 0A10882824861C0C00D7ECEE /* WKJavaScriptBridgePluginAnnotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A10882724861C0C00D7ECEE /* WKJavaScriptBridgePluginAnnotation.m */; }; - 0A10882E2486237A00D7ECEE /* TestSecurityPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A10882D2486237A00D7ECEE /* TestSecurityPlugin.m */; }; - 0A10883124862CA400D7ECEE /* TestPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A10883024862CA400D7ECEE /* TestPlugin.m */; }; - 0A9A3965226D940600D0DF43 /* TestWKWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A9A3962226D940600D0DF43 /* TestWKWebViewController.m */; }; - 0A9E4690225B2922003F6574 /* TestViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A9E468F225B2922003F6574 /* TestViewController.m */; }; - 832F7C8821B822510076D164 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 832F7C8721B822510076D164 /* AppDelegate.m */; }; - 832F7C8B21B822510076D164 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 832F7C8A21B822510076D164 /* ViewController.m */; }; - 832F7C8E21B822510076D164 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 832F7C8C21B822510076D164 /* Main.storyboard */; }; - 832F7C9021B822530076D164 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 832F7C8F21B822530076D164 /* Assets.xcassets */; }; - 832F7C9321B822530076D164 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 832F7C9121B822530076D164 /* LaunchScreen.storyboard */; }; - 832F7C9621B822530076D164 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 832F7C9521B822530076D164 /* main.m */; }; - 832F7CB221B8E6460076D164 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 832F7CB121B8E6460076D164 /* WebKit.framework */; }; - 832F7CB721B904C60076D164 /* index.html in Resources */ = {isa = PBXBuildFile; fileRef = 832F7CB621B904C50076D164 /* index.html */; }; - BAE91BDBD128B2356F07975D /* libPods-WKJavaScriptBridge-demo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E5973883F04EEF4EBBB3F713 /* libPods-WKJavaScriptBridge-demo.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 05DB13B25C25AB5F7DA35A90 /* Pods-WKJavaScriptBridge-demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WKJavaScriptBridge-demo.debug.xcconfig"; path = "Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo.debug.xcconfig"; sourceTree = ""; }; - 0A0EE1AF235F0E77002232BB /* WKJavaScriptBridge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKJavaScriptBridge.h; sourceTree = ""; }; - 0A0EE1B0235F0E77002232BB /* WKJavaScriptBridge.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKJavaScriptBridge.m; sourceTree = ""; }; - 0A0EE1B5235F0EFC002232BB /* WKJavaScriptBridgeProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKJavaScriptBridgeProtocol.h; sourceTree = ""; }; - 0A0EE1B6235F0F36002232BB /* WKJavaScriptMessageDispatcher.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKJavaScriptMessageDispatcher.h; sourceTree = ""; }; - 0A0EE1B7235F0F36002232BB /* WKJavaScriptMessageDispatcher.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKJavaScriptMessageDispatcher.m; sourceTree = ""; }; - 0A0EE1B9235F0F87002232BB /* WKMsgCommand.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKMsgCommand.h; sourceTree = ""; }; - 0A0EE1BA235F0F87002232BB /* WKMsgCommand.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKMsgCommand.m; sourceTree = ""; }; - 0A0EE1BD235F100B002232BB /* WKBasePlugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKBasePlugin.h; sourceTree = ""; }; - 0A0EE1BE235F100B002232BB /* WKBasePlugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKBasePlugin.m; sourceTree = ""; }; - 0A0EE1C0235F103E002232BB /* WKCommandImpl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKCommandImpl.h; sourceTree = ""; }; - 0A0EE1C1235F103E002232BB /* WKCommandImpl.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKCommandImpl.m; sourceTree = ""; }; - 0A0EE1C3235F1072002232BB /* WKCommandProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKCommandProtocol.h; sourceTree = ""; }; - 0A0EE1C4235F109E002232BB /* WKPluginProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKPluginProtocol.h; sourceTree = ""; }; - 0A0EE1C5235F10C4002232BB /* WKPluginResult.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKPluginResult.h; sourceTree = ""; }; - 0A0EE1C6235F10C4002232BB /* WKPluginResult.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKPluginResult.m; sourceTree = ""; }; - 0A0EE1CB235F1152002232BB /* NSString+BridgeJSONPrivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString+BridgeJSONPrivate.h"; sourceTree = ""; }; - 0A0EE1CC235F1152002232BB /* NSString+BridgeJSONPrivate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSString+BridgeJSONPrivate.m"; sourceTree = ""; }; - 0A0EE1CE235F117F002232BB /* WKWeakScriptMessageHandlerDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKWeakScriptMessageHandlerDelegate.h; sourceTree = ""; }; - 0A0EE1CF235F117F002232BB /* WKWeakScriptMessageHandlerDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKWeakScriptMessageHandlerDelegate.m; sourceTree = ""; }; - 0A0EE1D5235F12A5002232BB /* WKCommonPlugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKCommonPlugin.h; sourceTree = ""; }; - 0A0EE1D6235F12A5002232BB /* WKCommonPlugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WKCommonPlugin.m; sourceTree = ""; }; - 0A0EE1D8235F1BBC002232BB /* WKJSBridge.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = WKJSBridge.js; sourceTree = ""; }; - 0A10882624861C0C00D7ECEE /* WKJavaScriptBridgePluginAnnotation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKJavaScriptBridgePluginAnnotation.h; sourceTree = ""; }; - 0A10882724861C0C00D7ECEE /* WKJavaScriptBridgePluginAnnotation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WKJavaScriptBridgePluginAnnotation.m; sourceTree = ""; }; - 0A10882924861E1200D7ECEE /* WKPluginSecurityProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKPluginSecurityProtocol.h; sourceTree = ""; }; - 0A10882B2486221000D7ECEE /* TestWebPluginSecurityConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestWebPluginSecurityConfig.h; sourceTree = ""; }; - 0A10882C2486237A00D7ECEE /* TestSecurityPlugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestSecurityPlugin.h; sourceTree = ""; }; - 0A10882D2486237A00D7ECEE /* TestSecurityPlugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestSecurityPlugin.m; sourceTree = ""; }; - 0A10882F24862CA400D7ECEE /* TestPlugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestPlugin.h; sourceTree = ""; }; - 0A10883024862CA400D7ECEE /* TestPlugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestPlugin.m; sourceTree = ""; }; - 0A9A395F226D940500D0DF43 /* TestWKWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestWKWebViewController.h; sourceTree = ""; }; - 0A9A3962226D940600D0DF43 /* TestWKWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestWKWebViewController.m; sourceTree = ""; }; - 0A9E468E225B2922003F6574 /* TestViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestViewController.h; sourceTree = ""; }; - 0A9E468F225B2922003F6574 /* TestViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestViewController.m; sourceTree = ""; }; - 29E50CB97F5DD0FD75EBAF15 /* Pods-WKJavaScriptBridge-demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WKJavaScriptBridge-demo.release.xcconfig"; path = "Target Support Files/Pods-WKJavaScriptBridge-demo/Pods-WKJavaScriptBridge-demo.release.xcconfig"; sourceTree = ""; }; - 832F7C8321B822510076D164 /* WKJavaScriptBridge-demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "WKJavaScriptBridge-demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 832F7C8621B822510076D164 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 832F7C8721B822510076D164 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 832F7C8921B822510076D164 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 832F7C8A21B822510076D164 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 832F7C8D21B822510076D164 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 832F7C8F21B822530076D164 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 832F7C9221B822530076D164 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 832F7C9421B822530076D164 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 832F7C9521B822530076D164 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 832F7CB121B8E6460076D164 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; - 832F7CB621B904C50076D164 /* index.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = index.html; sourceTree = ""; }; - E5973883F04EEF4EBBB3F713 /* libPods-WKJavaScriptBridge-demo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-WKJavaScriptBridge-demo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 832F7C8021B822510076D164 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 832F7CB221B8E6460076D164 /* WebKit.framework in Frameworks */, - BAE91BDBD128B2356F07975D /* libPods-WKJavaScriptBridge-demo.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 0A0EE1BC235F0FFF002232BB /* Plugin */ = { - isa = PBXGroup; - children = ( - 0A0EE1BD235F100B002232BB /* WKBasePlugin.h */, - 0A0EE1BE235F100B002232BB /* WKBasePlugin.m */, - 0A0EE1C0235F103E002232BB /* WKCommandImpl.h */, - 0A0EE1C1235F103E002232BB /* WKCommandImpl.m */, - 0A0EE1C3235F1072002232BB /* WKCommandProtocol.h */, - 0A0EE1C4235F109E002232BB /* WKPluginProtocol.h */, - 0A0EE1C5235F10C4002232BB /* WKPluginResult.h */, - 0A0EE1C6235F10C4002232BB /* WKPluginResult.m */, - ); - path = Plugin; - sourceTree = ""; - }; - 0A0EE1D1235F122B002232BB /* NativePlugin */ = { - isa = PBXGroup; - children = ( - 0A10882A248621E900D7ECEE /* Security */, - 0A0EE1D5235F12A5002232BB /* WKCommonPlugin.h */, - 0A0EE1D6235F12A5002232BB /* WKCommonPlugin.m */, - 0A10882F24862CA400D7ECEE /* TestPlugin.h */, - 0A10883024862CA400D7ECEE /* TestPlugin.m */, - ); - path = NativePlugin; - sourceTree = ""; - }; - 0A10882524861BD400D7ECEE /* Security */ = { - isa = PBXGroup; - children = ( - 0A10882624861C0C00D7ECEE /* WKJavaScriptBridgePluginAnnotation.h */, - 0A10882724861C0C00D7ECEE /* WKJavaScriptBridgePluginAnnotation.m */, - 0A10882924861E1200D7ECEE /* WKPluginSecurityProtocol.h */, - ); - path = Security; - sourceTree = ""; - }; - 0A10882A248621E900D7ECEE /* Security */ = { - isa = PBXGroup; - children = ( - 0A10882B2486221000D7ECEE /* TestWebPluginSecurityConfig.h */, - 0A10882C2486237A00D7ECEE /* TestSecurityPlugin.h */, - 0A10882D2486237A00D7ECEE /* TestSecurityPlugin.m */, - ); - path = Security; - sourceTree = ""; - }; - 0AB7D4DB235437C00054719A /* Dispatcher */ = { - isa = PBXGroup; - children = ( - 0A0EE1B6235F0F36002232BB /* WKJavaScriptMessageDispatcher.h */, - 0A0EE1B7235F0F36002232BB /* WKJavaScriptMessageDispatcher.m */, - 0A0EE1B9235F0F87002232BB /* WKMsgCommand.h */, - 0A0EE1BA235F0F87002232BB /* WKMsgCommand.m */, - ); - path = Dispatcher; - sourceTree = ""; - }; - 0AB7D4EA235437C00054719A /* Util */ = { - isa = PBXGroup; - children = ( - 0A0EE1CB235F1152002232BB /* NSString+BridgeJSONPrivate.h */, - 0A0EE1CC235F1152002232BB /* NSString+BridgeJSONPrivate.m */, - 0A0EE1CE235F117F002232BB /* WKWeakScriptMessageHandlerDelegate.h */, - 0A0EE1CF235F117F002232BB /* WKWeakScriptMessageHandlerDelegate.m */, - ); - path = Util; - sourceTree = ""; - }; - 0AEB5C8422A529FD00B13C09 /* WKJavaScriptBridge */ = { - isa = PBXGroup; - children = ( - 0A10882524861BD400D7ECEE /* Security */, - 0AB7D4DB235437C00054719A /* Dispatcher */, - 0A0EE1BC235F0FFF002232BB /* Plugin */, - 0AB7D4EA235437C00054719A /* Util */, - 0A0EE1AF235F0E77002232BB /* WKJavaScriptBridge.h */, - 0A0EE1B0235F0E77002232BB /* WKJavaScriptBridge.m */, - 0A0EE1B5235F0EFC002232BB /* WKJavaScriptBridgeProtocol.h */, - 0A0EE1D8235F1BBC002232BB /* WKJSBridge.js */, - ); - path = WKJavaScriptBridge; - sourceTree = ""; - }; - 832F7C7A21B822510076D164 = { - isa = PBXGroup; - children = ( - 832F7C8521B822510076D164 /* WKJavaScriptBridge-demo */, - 832F7C8421B822510076D164 /* Products */, - 832F7CB021B8E6460076D164 /* Frameworks */, - EDC6E15DAEDCFEAB3060DBC2 /* Pods */, - ); - sourceTree = ""; - }; - 832F7C8421B822510076D164 /* Products */ = { - isa = PBXGroup; - children = ( - 832F7C8321B822510076D164 /* WKJavaScriptBridge-demo.app */, - ); - name = Products; - sourceTree = ""; - }; - 832F7C8521B822510076D164 /* WKJavaScriptBridge-demo */ = { - isa = PBXGroup; - children = ( - 0A0EE1D1235F122B002232BB /* NativePlugin */, - 832F7CB621B904C50076D164 /* index.html */, - 0AEB5C8422A529FD00B13C09 /* WKJavaScriptBridge */, - 832F7C8621B822510076D164 /* AppDelegate.h */, - 832F7C8721B822510076D164 /* AppDelegate.m */, - 832F7C8921B822510076D164 /* ViewController.h */, - 832F7C8A21B822510076D164 /* ViewController.m */, - 0A9A395F226D940500D0DF43 /* TestWKWebViewController.h */, - 0A9A3962226D940600D0DF43 /* TestWKWebViewController.m */, - 0A9E468E225B2922003F6574 /* TestViewController.h */, - 0A9E468F225B2922003F6574 /* TestViewController.m */, - 832F7C8C21B822510076D164 /* Main.storyboard */, - 832F7C8F21B822530076D164 /* Assets.xcassets */, - 832F7C9121B822530076D164 /* LaunchScreen.storyboard */, - 832F7C9421B822530076D164 /* Info.plist */, - 832F7C9521B822530076D164 /* main.m */, - ); - path = "WKJavaScriptBridge-demo"; - sourceTree = ""; - }; - 832F7CB021B8E6460076D164 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 832F7CB121B8E6460076D164 /* WebKit.framework */, - E5973883F04EEF4EBBB3F713 /* libPods-WKJavaScriptBridge-demo.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - EDC6E15DAEDCFEAB3060DBC2 /* Pods */ = { - isa = PBXGroup; - children = ( - 05DB13B25C25AB5F7DA35A90 /* Pods-WKJavaScriptBridge-demo.debug.xcconfig */, - 29E50CB97F5DD0FD75EBAF15 /* Pods-WKJavaScriptBridge-demo.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 832F7C8221B822510076D164 /* WKJavaScriptBridge-demo */ = { - isa = PBXNativeTarget; - buildConfigurationList = 832F7C9921B822530076D164 /* Build configuration list for PBXNativeTarget "WKJavaScriptBridge-demo" */; - buildPhases = ( - 5AB00C0120B7CA52F9DDB898 /* [CP] Check Pods Manifest.lock */, - 832F7C7F21B822510076D164 /* Sources */, - 832F7C8021B822510076D164 /* Frameworks */, - 832F7C8121B822510076D164 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "WKJavaScriptBridge-demo"; - productName = "Hybrid-framework"; - productReference = 832F7C8321B822510076D164 /* WKJavaScriptBridge-demo.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 832F7C7B21B822510076D164 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1000; - ORGANIZATIONNAME = "王凯"; - TargetAttributes = { - 832F7C8221B822510076D164 = { - CreatedOnToolsVersion = 10.0; - }; - }; - }; - buildConfigurationList = 832F7C7E21B822510076D164 /* Build configuration list for PBXProject "WKJavaScriptBridge-demo" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 832F7C7A21B822510076D164; - productRefGroup = 832F7C8421B822510076D164 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 832F7C8221B822510076D164 /* WKJavaScriptBridge-demo */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 832F7C8121B822510076D164 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0A0EE1D9235F1BBC002232BB /* WKJSBridge.js in Resources */, - 832F7C9321B822530076D164 /* LaunchScreen.storyboard in Resources */, - 832F7CB721B904C60076D164 /* index.html in Resources */, - 832F7C9021B822530076D164 /* Assets.xcassets in Resources */, - 832F7C8E21B822510076D164 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 5AB00C0120B7CA52F9DDB898 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-WKJavaScriptBridge-demo-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - 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"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 832F7C7F21B822510076D164 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0A9E4690225B2922003F6574 /* TestViewController.m in Sources */, - 832F7C8B21B822510076D164 /* ViewController.m in Sources */, - 0A0EE1C7235F10C4002232BB /* WKPluginResult.m in Sources */, - 0A0EE1B1235F0E77002232BB /* WKJavaScriptBridge.m in Sources */, - 0A0EE1D7235F12A5002232BB /* WKCommonPlugin.m in Sources */, - 0A0EE1BB235F0F87002232BB /* WKMsgCommand.m in Sources */, - 0A10882E2486237A00D7ECEE /* TestSecurityPlugin.m in Sources */, - 832F7C9621B822530076D164 /* main.m in Sources */, - 0A0EE1C2235F103E002232BB /* WKCommandImpl.m in Sources */, - 0A10882824861C0C00D7ECEE /* WKJavaScriptBridgePluginAnnotation.m in Sources */, - 0A9A3965226D940600D0DF43 /* TestWKWebViewController.m in Sources */, - 0A10883124862CA400D7ECEE /* TestPlugin.m in Sources */, - 832F7C8821B822510076D164 /* AppDelegate.m in Sources */, - 0A0EE1BF235F100B002232BB /* WKBasePlugin.m in Sources */, - 0A0EE1CD235F1152002232BB /* NSString+BridgeJSONPrivate.m in Sources */, - 0A0EE1D0235F117F002232BB /* WKWeakScriptMessageHandlerDelegate.m in Sources */, - 0A0EE1B8235F0F36002232BB /* WKJavaScriptMessageDispatcher.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 832F7C8C21B822510076D164 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 832F7C8D21B822510076D164 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 832F7C9121B822530076D164 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 832F7C9221B822530076D164 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 832F7C9721B822530076D164 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 832F7C9821B822530076D164 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 832F7C9A21B822530076D164 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 05DB13B25C25AB5F7DA35A90 /* Pods-WKJavaScriptBridge-demo.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 929467FPP6; - INFOPLIST_FILE = "WKJavaScriptBridge-demo/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.wangkai.responder.WKJavaScriptBridge-demo"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 832F7C9B21B822530076D164 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 29E50CB97F5DD0FD75EBAF15 /* Pods-WKJavaScriptBridge-demo.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 929467FPP6; - INFOPLIST_FILE = "WKJavaScriptBridge-demo/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.wangkai.responder.WKJavaScriptBridge-demo"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 832F7C7E21B822510076D164 /* Build configuration list for PBXProject "WKJavaScriptBridge-demo" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 832F7C9721B822530076D164 /* Debug */, - 832F7C9821B822530076D164 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 832F7C9921B822530076D164 /* Build configuration list for PBXNativeTarget "WKJavaScriptBridge-demo" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 832F7C9A21B822530076D164 /* Debug */, - 832F7C9B21B822530076D164 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 832F7C7B21B822510076D164 /* Project object */; -} diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 6d63d7a..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index 0c67376..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/kevin.xcuserdatad/UserInterfaceState.xcuserstate b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/kevin.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index bfcd5eb..0000000 Binary files a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/kevin.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/wangkai.xcuserdatad/UserInterfaceState.xcuserstate b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/wangkai.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 57e39a1..0000000 Binary files a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/wangkai.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/wangkai.xcuserdatad/WorkspaceSettings.xcsettings b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/wangkai.xcuserdatad/WorkspaceSettings.xcsettings deleted file mode 100644 index f25782d..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/project.xcworkspace/xcuserdata/wangkai.xcuserdatad/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,18 +0,0 @@ - - - - - BuildLocationStyle - UseAppPreferences - CustomBuildLocationType - RelativeToDerivedData - DerivedDataLocationStyle - Default - EnabledFullIndexStoreVisibility - - IssueFilterStyle - ShowActiveSchemeOnly - LiveSourceIssuesEnabled - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/kevin.xcuserdatad/xcschemes/xcschememanagement.plist b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/kevin.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 18770ab..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/kevin.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - SchemeUserState - - Hybrid-framework.xcscheme_^#shared#^_ - - orderHint - 0 - - SHRMJavaScriptBridge-demo.xcscheme_^#shared#^_ - - orderHint - 2 - - WKJavaScriptBridge-demo.xcscheme_^#shared#^_ - - orderHint - 1 - - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist deleted file mode 100644 index fe2b454..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/xcschememanagement.plist b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 276bb6d..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcodeproj/xcuserdata/wangkai.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,14 +0,0 @@ - - - - - SchemeUserState - - Hybrid-framework.xcscheme - - orderHint - 0 - - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcuserdata/kevin.xcuserdatad/UserInterfaceState.xcuserstate b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcuserdata/kevin.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 17b6a51..0000000 Binary files a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcuserdata/kevin.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcuserdata/kevin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcuserdata/kevin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist deleted file mode 100644 index 30fd1ff..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo.xcworkspace/xcuserdata/kevin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/AppDelegate.h b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/AppDelegate.h deleted file mode 100644 index c1d5b66..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/AppDelegate.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// Hybrid-framework -// -// Created by 王凯 on 2018/12/5. -// Copyright © 2018 王凯. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Assets.xcassets/Contents.json b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Base.lproj/Main.storyboard b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Base.lproj/Main.storyboard deleted file mode 100755 index bc18652..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/Base.lproj/Main.storyboard +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestViewController.h b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestViewController.h deleted file mode 100644 index 6ccdcca..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestViewController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// TestViewController.h -// Hybrid-framework -// -// Created by Kevin on 2019/4/8. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "ViewController.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface TestViewController : UIViewController - -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestViewController.m b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestViewController.m deleted file mode 100644 index 338f483..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestViewController.m +++ /dev/null @@ -1,33 +0,0 @@ -// -// TestViewController.m -// Hybrid-framework -// -// Created by Kevin on 2019/4/8. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "TestViewController.h" - -@interface TestViewController () - -@end - -@implementation TestViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - // Do any additional setup after loading the view. - self.view.backgroundColor = [UIColor whiteColor]; -} - -/* -#pragma mark - Navigation - -// In a storyboard-based application, you will often want to do a little preparation before navigation -- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { - // Get the new view controller using [segue destinationViewController]. - // Pass the selected object to the new view controller. -} -*/ - -@end diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestWKWebViewController.h b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestWKWebViewController.h deleted file mode 100644 index 89478e5..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/TestWKWebViewController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// TestWKwebViewController.h -// Hybrid-framework -// -// Created by Kevin on 2019/4/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface TestWKWebViewController : UIViewController - -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/ViewController.h b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/ViewController.h deleted file mode 100755 index a7c2884..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/ViewController.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// Hybrid-framework -// -// Created by 王凯 on 2018/12/5. -// Copyright © 2018 王凯. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/ViewController.m b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/ViewController.m deleted file mode 100755 index 6401b18..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/ViewController.m +++ /dev/null @@ -1,30 +0,0 @@ -// -// ViewController.m -// Hybrid-framework -// -// Created by 王凯 on 2018/12/5. -// Copyright © 2018 王凯. All rights reserved. -// - -#import "ViewController.h" -#import "TestWKWebViewController.h" - -@interface ViewController () - -@end - -@implementation ViewController - -- (void)viewDidLoad { - [super viewDidLoad]; -// NSMutableURLRequest *reqeust = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://www.baidu.com"]]; -// [SHRMWebViewCookieMgr syncRequestCookie:reqeust]; -// [self.webView loadRequest:reqeust]; -} - -- (IBAction)goWKWebView:(id)sender { - TestWKWebViewController *wkVC = [[TestWKWebViewController alloc] init]; - [self.navigationController pushViewController:wkVC animated:YES]; -} - -@end diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/main.m b/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/main.m deleted file mode 100644 index 4c67f09..0000000 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/main.m +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// Hybrid-framework -// -// Created by 王凯 on 2018/12/5. -// Copyright © 2018 王凯. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/WKJavaScriptBridge.podspec b/WKJavaScriptBridge.podspec index 2f9490f..5c4d38b 100644 --- a/WKJavaScriptBridge.podspec +++ b/WKJavaScriptBridge.podspec @@ -1,10 +1,6 @@ - - Pod::Spec.new do |spec| - - spec.name = "WKJavaScriptBridge" - spec.version = "1.1.0" + spec.version = "1.1.1" spec.summary = "基于WKWebView构建的JSBridge,支持iOS8+。" spec.homepage = "https://github.com/GitWangKai/WKJavaScriptBridge" spec.license = { :type => "Apache License 2.0", :file => "LICENSE" } diff --git a/WKJavaScriptBridge/Assets/.gitkeep b/WKJavaScriptBridge/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/WKJavaScriptBridge/Classes/.gitkeep b/WKJavaScriptBridge/Classes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.h b/WKJavaScriptBridge/Classes/Dispatcher/WKJavaScriptMessageDispatcher.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.h rename to WKJavaScriptBridge/Classes/Dispatcher/WKJavaScriptMessageDispatcher.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.m b/WKJavaScriptBridge/Classes/Dispatcher/WKJavaScriptMessageDispatcher.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.m rename to WKJavaScriptBridge/Classes/Dispatcher/WKJavaScriptMessageDispatcher.m index 1cf2aad..95bf680 100755 --- a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.m +++ b/WKJavaScriptBridge/Classes/Dispatcher/WKJavaScriptMessageDispatcher.m @@ -37,7 +37,6 @@ - (void)handleMsgCommand:(NSString *)arguments { - (void)handleCommand:(NSString *)commandJson { if (commandJson.length > 0) { [self fetchCommands:commandJson]; - [self executePending]; } } @@ -45,6 +44,7 @@ - (void)fetchCommands:(NSString *)command { if ([command length] < JSON_SIZE_FOR_MAIN_THREAD) { _commandDictionary = [command bridge_JSONObject]; + [self executePending]; } else { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^() { self->_commandDictionary = [command bridge_JSONObject]; diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKMsgCommand.h b/WKJavaScriptBridge/Classes/Dispatcher/WKMsgCommand.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKMsgCommand.h rename to WKJavaScriptBridge/Classes/Dispatcher/WKMsgCommand.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKMsgCommand.m b/WKJavaScriptBridge/Classes/Dispatcher/WKMsgCommand.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Dispatcher/WKMsgCommand.m rename to WKJavaScriptBridge/Classes/Dispatcher/WKMsgCommand.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKBasePlugin.h b/WKJavaScriptBridge/Classes/Plugin/WKBasePlugin.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKBasePlugin.h rename to WKJavaScriptBridge/Classes/Plugin/WKBasePlugin.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKBasePlugin.m b/WKJavaScriptBridge/Classes/Plugin/WKBasePlugin.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKBasePlugin.m rename to WKJavaScriptBridge/Classes/Plugin/WKBasePlugin.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKCommandImpl.h b/WKJavaScriptBridge/Classes/Plugin/WKCommandImpl.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKCommandImpl.h rename to WKJavaScriptBridge/Classes/Plugin/WKCommandImpl.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKCommandImpl.m b/WKJavaScriptBridge/Classes/Plugin/WKCommandImpl.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKCommandImpl.m rename to WKJavaScriptBridge/Classes/Plugin/WKCommandImpl.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKCommandProtocol.h b/WKJavaScriptBridge/Classes/Plugin/WKCommandProtocol.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKCommandProtocol.h rename to WKJavaScriptBridge/Classes/Plugin/WKCommandProtocol.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKPluginProtocol.h b/WKJavaScriptBridge/Classes/Plugin/WKPluginProtocol.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKPluginProtocol.h rename to WKJavaScriptBridge/Classes/Plugin/WKPluginProtocol.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKPluginResult.h b/WKJavaScriptBridge/Classes/Plugin/WKPluginResult.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKPluginResult.h rename to WKJavaScriptBridge/Classes/Plugin/WKPluginResult.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKPluginResult.m b/WKJavaScriptBridge/Classes/Plugin/WKPluginResult.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Plugin/WKPluginResult.m rename to WKJavaScriptBridge/Classes/Plugin/WKPluginResult.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Security/WKJavaScriptBridgePluginAnnotation.h b/WKJavaScriptBridge/Classes/Security/WKJavaScriptBridgePluginAnnotation.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Security/WKJavaScriptBridgePluginAnnotation.h rename to WKJavaScriptBridge/Classes/Security/WKJavaScriptBridgePluginAnnotation.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Security/WKJavaScriptBridgePluginAnnotation.m b/WKJavaScriptBridge/Classes/Security/WKJavaScriptBridgePluginAnnotation.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Security/WKJavaScriptBridgePluginAnnotation.m rename to WKJavaScriptBridge/Classes/Security/WKJavaScriptBridgePluginAnnotation.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Security/WKPluginSecurityProtocol.h b/WKJavaScriptBridge/Classes/Security/WKPluginSecurityProtocol.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Security/WKPluginSecurityProtocol.h rename to WKJavaScriptBridge/Classes/Security/WKPluginSecurityProtocol.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.h b/WKJavaScriptBridge/Classes/Util/NSString+BridgeJSONPrivate.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.h rename to WKJavaScriptBridge/Classes/Util/NSString+BridgeJSONPrivate.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.m b/WKJavaScriptBridge/Classes/Util/NSString+BridgeJSONPrivate.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.m rename to WKJavaScriptBridge/Classes/Util/NSString+BridgeJSONPrivate.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.h b/WKJavaScriptBridge/Classes/Util/WKWeakScriptMessageHandlerDelegate.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.h rename to WKJavaScriptBridge/Classes/Util/WKWeakScriptMessageHandlerDelegate.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.m b/WKJavaScriptBridge/Classes/Util/WKWeakScriptMessageHandlerDelegate.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.m rename to WKJavaScriptBridge/Classes/Util/WKWeakScriptMessageHandlerDelegate.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/WKJavaScriptBridge.h b/WKJavaScriptBridge/Classes/WKJavaScriptBridge.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/WKJavaScriptBridge.h rename to WKJavaScriptBridge/Classes/WKJavaScriptBridge.h diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/WKJavaScriptBridge.m b/WKJavaScriptBridge/Classes/WKJavaScriptBridge.m similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/WKJavaScriptBridge.m rename to WKJavaScriptBridge/Classes/WKJavaScriptBridge.m diff --git a/WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/WKJavaScriptBridgeProtocol.h b/WKJavaScriptBridge/Classes/WKJavaScriptBridgeProtocol.h similarity index 100% rename from WKJavaScriptBridge-demo/WKJavaScriptBridge-demo/WKJavaScriptBridge/WKJavaScriptBridgeProtocol.h rename to WKJavaScriptBridge/Classes/WKJavaScriptBridgeProtocol.h diff --git a/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.h b/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.h deleted file mode 100755 index 1d06b00..0000000 --- a/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// WKJavaScriptMessageDispatcher.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@class WKJavaScriptBridge; - -@interface WKJavaScriptMessageDispatcher : NSObject -- (void)handleMsgCommand:(NSString *)arguments; -- (instancetype)initWithBridge:(WKJavaScriptBridge *)bridge; -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.m b/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.m deleted file mode 100755 index 119a32e..0000000 --- a/WKJavaScriptBridge/Dispatcher/WKJavaScriptMessageDispatcher.m +++ /dev/null @@ -1,118 +0,0 @@ -// -// WKJavaScriptMessageDispatcher.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "WKJavaScriptMessageDispatcher.h" -#import "WKMsgCommand.h" -#import "WKJavaScriptBridge.h" -#import "WKBasePlugin.h" -#import "NSString+BridgeJSONPrivate.h" -#import - -static const NSInteger JSON_SIZE_FOR_MAIN_THREAD = 4 * 1024; // Chosen arbitrarily. - -@implementation WKJavaScriptMessageDispatcher { - __weak WKJavaScriptBridge *_bridge; - NSDictionary *_commandDictionary; -} - -- (instancetype)initWithBridge:(WKJavaScriptBridge *)bridge { - if (self = [super init]) { - _bridge = bridge; - _commandDictionary = [NSDictionary dictionary]; - } - return self; -} - -- (void)handleMsgCommand:(NSString *)arguments { - [self handleCommand:arguments]; -} - -#pragma mark - handle - -- (void)handleCommand:(NSString *)commandJson { - if (commandJson.length > 0) { - [self fetchCommands:commandJson]; - [self executePending]; - } -} - -- (void)fetchCommands:(NSString *)command { - - if ([command length] < JSON_SIZE_FOR_MAIN_THREAD) { - _commandDictionary = [command bridge_JSONObject]; - } else { - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^() { - self->_commandDictionary = [command bridge_JSONObject]; - [self performSelectorOnMainThread:@selector(executePending) withObject:nil waitUntilDone:NO]; - }); - } -} - -- (void)executePending { - if (_commandDictionary.allKeys.count > 0) { - WKMsgCommand *msgCommand = [WKMsgCommand commandFromJson:_commandDictionary]; -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge(%@): Calling %@.%@", msgCommand.callbackId, msgCommand.className, msgCommand.methodName); -#endif - if (![self execute:msgCommand]) { -#ifdef DEBUG - NSString *commandJson = [NSString stringWithFormat:@"%@",_commandDictionary]; - static NSUInteger maxLogLength = 1024; - NSString *commandString = ([commandJson length] > maxLogLength) ? - [NSString stringWithFormat : @"%@[...]", [commandJson substringToIndex:maxLogLength]] : - commandJson; - - NSLog(@"WKJavaScriptBridge Error : FAILED pluginJSON = %@", commandString); -#endif - } - } -} - -- (BOOL)execute:(WKMsgCommand *)command { - if (command.className == nil || command.methodName == nil) { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 调用的类名或方法名不存在。"); -#endif - return NO; - } - - BOOL retVal = YES; - double started = [[NSDate date] timeIntervalSince1970] * 1000.0; - - WKBasePlugin *instance = [_bridge getCommandInstance:command.className]; - - if (!([instance isKindOfClass:[WKBasePlugin class]])) { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 模块 '%@' 异常, 检查此模块是否继承于(WKBasePlugin)", command.className); -#endif - return NO; - } - - NSString* methodName = [NSString stringWithFormat:@"%@:", command.methodName]; - SEL normalSelector = NSSelectorFromString(methodName); - if ([instance respondsToSelector:normalSelector]) { - ((void (*)(id, SEL, id))objc_msgSend)(instance, normalSelector, command); - } else { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 函数 '%@' 在类 '%@' 中没有找到。", methodName, command.className); -#endif - retVal = NO; - } - double elapsed = [[NSDate date] timeIntervalSince1970] * 1000.0 - started; - if (elapsed > 10) { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge THREAD WARNING: ['%@'] 占用了 '%f' ms。请使用(runInBackground:)将此插件放到后台执行。", command.className, elapsed); -#endif - } - return retVal; -} - -- (void)dealloc { - _bridge = nil; -} -@end diff --git a/WKJavaScriptBridge/Dispatcher/WKMsgCommand.h b/WKJavaScriptBridge/Dispatcher/WKMsgCommand.h deleted file mode 100755 index e536855..0000000 --- a/WKJavaScriptBridge/Dispatcher/WKMsgCommand.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// WKMsgCommand.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import -#import "WKJavaScriptBridgePluginAnnotation.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface WKMsgCommand : NSObject -@property (nonatomic, readonly) NSDictionary *arguments; -@property (nonatomic, readonly) NSString *callbackId; -@property (nonatomic, readonly) NSString *className; -@property (nonatomic, readonly) NSString *methodName; -+ (WKMsgCommand *)commandFromJson:(NSDictionary *)jsonEntry; -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Dispatcher/WKMsgCommand.m b/WKJavaScriptBridge/Dispatcher/WKMsgCommand.m deleted file mode 100755 index 5be98f1..0000000 --- a/WKJavaScriptBridge/Dispatcher/WKMsgCommand.m +++ /dev/null @@ -1,57 +0,0 @@ -// -// WKMsgCommand.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "WKMsgCommand.h" - -static const NSString const * kMessageCallbackId = @"callbackId"; -static const NSString const * kMessageService = @"service"; -static const NSString const * kMessageAction = @"action"; -static const NSString const * kMessageActionArgs = @"actionArgs"; - -@interface WKMsgCommand () -@property (nonatomic, readwrite) NSDictionary* arguments; -@property (nonatomic, readwrite) NSString* callbackId; -@property (nonatomic, readwrite) NSString* className; -@property (nonatomic, readwrite) NSString* methodName; -@end - -@implementation WKMsgCommand - -+ (WKMsgCommand *)commandFromJson:(NSDictionary *)jsonEntry { - return [[WKMsgCommand alloc] initFromJson:jsonEntry]; -} - -- (id)initFromJson:(NSDictionary *)jsonEntry { - - id tmp = [jsonEntry objectForKey:kMessageCallbackId]; - NSString *callbackId = tmp == [NSNull null] ? nil : tmp; - NSString *className = [jsonEntry objectForKey:kMessageService]; - NSString *methodName = [jsonEntry objectForKey:kMessageAction]; - NSDictionary *arguments = [jsonEntry objectForKey:kMessageActionArgs]; - - return [self initWithArguments:arguments - callbackId:callbackId - className:className - methodName:methodName]; -} - -- (id)initWithArguments:(NSDictionary *)arguments - callbackId:(NSString *)callbackId - className:(NSString *)className - methodName:(NSString *)methodName { - self = [super init]; - if (self != nil) { - _arguments = arguments; - _callbackId = callbackId; - _className = className; - _methodName = methodName; - } - return self; -} - -@end diff --git a/WKJavaScriptBridge/Plugin/WKBasePlugin.h b/WKJavaScriptBridge/Plugin/WKBasePlugin.h deleted file mode 100644 index 1eb95ec..0000000 --- a/WKJavaScriptBridge/Plugin/WKBasePlugin.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// WKBasePlugin.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import -#import -#import "WKCommandProtocol.h" -#import "WKPluginProtocol.h" -#import "WKMsgCommand.h" -#import "WKJavaScriptBridgePluginAnnotation.h" - -NS_ASSUME_NONNULL_BEGIN - -@class WKJavaScriptBridge; - -@interface WKBasePlugin : NSObject - -@property (nonatomic, weak) id commandDelegate; - -/** - 插件实例化调用 - */ -- (void)pluginInitialize; - -/** - APP 应用终止调用 - */ -- (void)onAppTerminate; - -/** - APP 内存警告调用 - */ -- (void)onMemoryWarning; - -/** - 插件销毁,bridge生命周期结束调用 - */ -- (void)dispose; - -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Plugin/WKBasePlugin.m b/WKJavaScriptBridge/Plugin/WKBasePlugin.m deleted file mode 100644 index f5c59d4..0000000 --- a/WKJavaScriptBridge/Plugin/WKBasePlugin.m +++ /dev/null @@ -1,51 +0,0 @@ -// -// WKBasePlugin.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "WKBasePlugin.h" - -@implementation WKBasePlugin - -#pragma mark - Override - -- (instancetype)init { - if (self = [super init]) { - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onAppTerminate) name:UIApplicationWillTerminateNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onMemoryWarning) name:UIApplicationDidReceiveMemoryWarningNotification object:nil]; - } - return self; -} - -- (void)dealloc { - [[NSNotificationCenter defaultCenter] removeObserver:self]; -} - -#pragma mark - Public - -- (void)pluginInitialize { - -} - -- (void)onAppTerminate { - -} - -- (void)onMemoryWarning { - -} - -- (void)dispose { - -} - -#pragma mark - WKPluginProtocol - -+ (BOOL)shouldCache { - return YES; -} - -@end diff --git a/WKJavaScriptBridge/Plugin/WKCommandImpl.h b/WKJavaScriptBridge/Plugin/WKCommandImpl.h deleted file mode 100644 index 2321314..0000000 --- a/WKJavaScriptBridge/Plugin/WKCommandImpl.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// WKCommandImpl.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import -#import "WKCommandProtocol.h" - -NS_ASSUME_NONNULL_BEGIN - -@class WKJavaScriptBridge; - -@interface WKCommandImpl : NSObject -- (instancetype)initWithBridge:(WKJavaScriptBridge *)bridge; -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Plugin/WKCommandImpl.m b/WKJavaScriptBridge/Plugin/WKCommandImpl.m deleted file mode 100644 index 80248ae..0000000 --- a/WKJavaScriptBridge/Plugin/WKCommandImpl.m +++ /dev/null @@ -1,103 +0,0 @@ -// -// WKCommandImpl.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "WKCommandImpl.h" -#import "WKJavaScriptBridge.h" -#import "WKPluginResult.h" - -@implementation WKCommandImpl { - __weak WKJavaScriptBridge *_bridge; - NSRegularExpression* _callbackIdPattern; -} - -- (instancetype)initWithBridge:(WKJavaScriptBridge *)bridge { - if (self = [super init]) { - _bridge = bridge; - NSError* err = nil; - - _callbackIdPattern = [NSRegularExpression regularExpressionWithPattern:@"[^A-Za-z0-9._-]" options:0 error:&err]; - if (err != nil) { - // Couldn't initialize Regex -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : Couldn't initialize regex"); -#endif - _callbackIdPattern = nil; - } - } - return self; -} - -- (void)evalJs:(NSString *)js { - [_bridge evaluateJavaScript:js completionHandler:^(id obj, NSError * error) { - if (error) { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 调用JS函数报错 : %@",error.localizedDescription); -#endif - } - }]; -} - -- (id)getCommandInstance:(NSString*)pluginName { - return [_bridge getCommandInstance:pluginName]; -} - -- (BOOL)isValidCallbackId:(NSString*)callbackId { - if ((callbackId == nil) || (_callbackIdPattern == nil)) { - return NO; - } - - // 如果太长或发现任何无效字符,则禁用 - if (([callbackId length] > 100) || [_callbackIdPattern firstMatchInString:callbackId options:0 range:NSMakeRange(0, [callbackId length])]) { - return NO; - } - return YES; -} - -#pragma mark - WKCommandProtocol - -- (void)sendPluginResult:(WKPluginResult *)result callbackId:(NSString*)callbackId { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge (%@): Sending result. Status=%@", callbackId, result.status); -#endif - // 当本次交互JS侧没有回调时 - if ([@"INVALID" isEqualToString:callbackId]) { - return; - } - // 回调id格式不正确 - if (![self isValidCallbackId:callbackId]) { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 通信ID格式不正确,去除无效字符,或检查ID是否过长,限制不得超过100字符。"); -#endif - return; - } - - NSMutableDictionary *messageDict = [NSMutableDictionary dictionary]; - messageDict[@"status"] = result.status; - messageDict[@"callbackId"] = callbackId; - messageDict[@"data"] = result.message; - - NSString* argumentsAsJSON = [WKPluginResult jsSerializeWithJson:messageDict]; - NSString* js = [NSString stringWithFormat:@"window.WKJSBridge._handleMessageFromNative('%@')", argumentsAsJSON]; - - if (![NSThread isMainThread]) { - //不使用GCD是防止js页面死锁产生卡死 - [self performSelectorOnMainThread:@selector(evalJs:) withObject:js waitUntilDone:NO]; - } else { - [self evalJs:js]; - } -} - -- (void)runInBackground:(void (^)(void))block { - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), block); -} - -- (WKWebView *)webView { - return _bridge.webView; -} - -@end diff --git a/WKJavaScriptBridge/Plugin/WKCommandProtocol.h b/WKJavaScriptBridge/Plugin/WKCommandProtocol.h deleted file mode 100644 index 131919b..0000000 --- a/WKJavaScriptBridge/Plugin/WKCommandProtocol.h +++ /dev/null @@ -1,41 +0,0 @@ -// -// WKCommandProtocol.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import -#import -#import "WKPluginResult.h" - -NS_ASSUME_NONNULL_BEGIN - -@protocol WKCommandProtocol - -/** - 原生模块回调js - - @param result simulate data - @param callbackId callbackId - */ -- (void)sendPluginResult:(WKPluginResult *)result callbackId:(NSString*)callbackId; - -/** - 原生模块执行耗时操作 - - @param block long running - */ -- (void)runInBackground:(void (^)(void))block; - -/** - 和Bridge绑定的webView - - @return WKWebView - */ -- (WKWebView *)webView; - -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Plugin/WKPluginProtocol.h b/WKJavaScriptBridge/Plugin/WKPluginProtocol.h deleted file mode 100644 index 41396d9..0000000 --- a/WKJavaScriptBridge/Plugin/WKPluginProtocol.h +++ /dev/null @@ -1,40 +0,0 @@ -// -// WKPluginProtocol.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@protocol WKPluginProtocol - -@optional - -/** - 设置插件为多例 - - @return 默认YES - */ -+ (BOOL)singleton; - -/** - 设置插件为单例 - - @return 默认NO - */ -+ (id)shareInstance; - -/** - 设置插件缓存 - - @return 默认YES,为YES时生命周期跟随Bridge - */ -+ (BOOL)shouldCache; - -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Plugin/WKPluginResult.h b/WKJavaScriptBridge/Plugin/WKPluginResult.h deleted file mode 100644 index ed980c8..0000000 --- a/WKJavaScriptBridge/Plugin/WKPluginResult.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// WKPluginResult.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -typedef NS_ENUM(NSInteger, WKJavaScriptBridgeCommandStatus) { - WKJavaScriptBridgeCommandStatus_NO_RESULT = 0, - WKJavaScriptBridgeCommandStatus_ERROR = 1, - WKJavaScriptBridgeCommandStatus_OK = 2 -}; - -@interface WKPluginResult : NSObject - -@property (nonatomic, strong, readonly) NSNumber* status; -@property (nonatomic, strong, readonly) id message; - -+ (WKPluginResult*)resultWithStatus:(WKJavaScriptBridgeCommandStatus)statusOrdinal messageAsDictionary:(NSDictionary*)theMessage; - -+ (WKPluginResult *)resultWithStatus:(WKJavaScriptBridgeCommandStatus)statusOrdinal messageAsString:(NSString *)theMessage; - -+ (NSString *)jsSerializeWithJson:(NSDictionary * _Nullable)json; - -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Plugin/WKPluginResult.m b/WKJavaScriptBridge/Plugin/WKPluginResult.m deleted file mode 100644 index 3499aec..0000000 --- a/WKJavaScriptBridge/Plugin/WKPluginResult.m +++ /dev/null @@ -1,64 +0,0 @@ -// -// WKPluginResult.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "WKPluginResult.h" - -@interface WKPluginResult () - -@property (nonatomic, strong, readwrite) NSNumber* status; -@property (nonatomic, strong, readwrite) id message; - -@end - -@implementation WKPluginResult - -+ (WKPluginResult *)resultWithStatus:(WKJavaScriptBridgeCommandStatus)statusOrdinal messageAsDictionary:(NSDictionary *)theMessage { - return [[self alloc] initWithStatus:statusOrdinal message:theMessage]; -} - -+ (WKPluginResult *)resultWithStatus:(WKJavaScriptBridgeCommandStatus)statusOrdinal messageAsString:(NSString *)theMessage { - return [[self alloc] initWithStatus:statusOrdinal message:theMessage]; -} - -- (WKPluginResult*)initWithStatus:(WKJavaScriptBridgeCommandStatus)statusOrdinal message:(id)theMessage { - self = [super init]; - if (self) { - self.status = [NSNumber numberWithInt:statusOrdinal]; - self.message = theMessage; - } - return self; -} - -+ (NSString *)jsSerializeWithJson:(NSDictionary * _Nullable)json { - NSString *messageJSON = [self serializeWithJson:json ? json : @{} pretty:NO]; - messageJSON = [messageJSON stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"]; - messageJSON = [messageJSON stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""]; - messageJSON = [messageJSON stringByReplacingOccurrencesOfString:@"\'" withString:@"\\\'"]; - messageJSON = [messageJSON stringByReplacingOccurrencesOfString:@"\n" withString:@"\\n"]; - messageJSON = [messageJSON stringByReplacingOccurrencesOfString:@"\r" withString:@"\\r"]; - messageJSON = [messageJSON stringByReplacingOccurrencesOfString:@"\f" withString:@"\\f"]; - messageJSON = [messageJSON stringByReplacingOccurrencesOfString:@"\u2028" withString:@"\\u2028"]; - messageJSON = [messageJSON stringByReplacingOccurrencesOfString:@"\u2029" withString:@"\\u2029"]; - - return messageJSON; -} - -+ (NSString *)serializeWithJson:(NSDictionary * _Nullable)json pretty:(BOOL)pretty { - NSError *error = nil; - NSString *str = [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:json ? json : @{} options:(NSJSONWritingOptions)(pretty ? NSJSONWritingPrettyPrinted : 0) error:&error] encoding:NSUTF8StringEncoding]; -#ifdef DEBUG - if (error) { - NSLog(@"WKJSBridge Error: format json error %@", error.localizedDescription); - } -#endif - - return str ? str : @""; -} - -@end - diff --git a/WKJavaScriptBridge/Rigister/WKJavaScriptBridgePluginAnnotation.h b/WKJavaScriptBridge/Rigister/WKJavaScriptBridgePluginAnnotation.h deleted file mode 100644 index 571c62b..0000000 --- a/WKJavaScriptBridge/Rigister/WKJavaScriptBridgePluginAnnotation.h +++ /dev/null @@ -1,28 +0,0 @@ -// -// WKJavaScriptBridgePluginAnnotation.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import - -@class WKJavaScriptBridge; - -#define WKWebPlugins "WKWebPlugins" - -#define WKWebPluginDATA(sectname) __attribute((used, section("__DATA,"#sectname" "))) -#define WKRegisterWhiteList(name) \ -class WKJavaScriptBridge; char * k##name##_mod WKWebPluginDATA(WKWebPlugins) = ""#name""; - - - -NS_ASSUME_NONNULL_BEGIN - -@interface WKJavaScriptBridgePluginAnnotation : NSObject -- (instancetype)initWithBridge:(WKJavaScriptBridge *)bridge; -- (void)getAllRegisterPluginName; -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Rigister/WKJavaScriptBridgePluginAnnotation.m b/WKJavaScriptBridge/Rigister/WKJavaScriptBridgePluginAnnotation.m deleted file mode 100644 index b6175bd..0000000 --- a/WKJavaScriptBridge/Rigister/WKJavaScriptBridgePluginAnnotation.m +++ /dev/null @@ -1,85 +0,0 @@ -// -// WKJavaScriptBridgePluginAnnotation.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "WKJavaScriptBridgePluginAnnotation.h" -#import "WKJavaScriptBridge.h" -#include -#include -#include -#include -#import -#import -#include - -@interface WKJavaScriptBridgePluginAnnotation () - -@property (nonatomic, weak) WKJavaScriptBridge *bridge; - -@end - -@implementation WKJavaScriptBridgePluginAnnotation - -- (instancetype)initWithBridge:(WKJavaScriptBridge *)bridge { - if (self = [super init]) { - self.bridge = bridge; - } - return self; -} - -- (void)getAllRegisterPluginName { - [self registedAnnotationModules]; -} - -- (void)registedAnnotationModules { - NSArray*services = [WKJavaScriptBridgePluginAnnotation AnnotationModules]; - for (NSString *pluginName in services) { - if (pluginName) { - [self.bridge addWhiteList:pluginName]; - } - } -} - -+ (NSArray *)AnnotationModules { - static NSArray *mods = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - mods = BHReadConfiguration(WKWebPlugins); - }); - return mods; -} - -static NSArray* BHReadConfiguration(char *section) { - NSMutableArray *configs = [NSMutableArray array]; - - Dl_info info; - dladdr(BHReadConfiguration, &info); - -#ifndef __LP64__ - const struct mach_header *mhp = (struct mach_header*)info.dli_fbase; - unsigned long size = 0; - uint32_t *memory = (uint32_t*)getsectiondata(mhp, "__DATA", section, & size); -#else /* defined(__LP64__) */ - const struct mach_header_64 *mhp = (struct mach_header_64*)info.dli_fbase; - unsigned long size = 0; - uint64_t *memory = (uint64_t*)getsectiondata(mhp, "__DATA", section, & size); -#endif /* defined(__LP64__) */ - for(int idx = 0; idx < size/sizeof(void*); ++idx){ - char *string = (char*)memory[idx]; - - NSString *str = [NSString stringWithUTF8String:string]; - if(!str)continue; -#ifdef DEBUG - NSLog(@"config = %@", str); -#endif - if(str) [configs addObject:str]; - } - - return configs; -} - -@end diff --git a/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.h b/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.h deleted file mode 100644 index 70a103e..0000000 --- a/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// NSString+BridgeJSONPrivate.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface NSString (BridgeJSONPrivate) -- (id)bridge_JSONObject; -- (id)bridge_JSONFragment; -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.m b/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.m deleted file mode 100644 index 62639b5..0000000 --- a/WKJavaScriptBridge/Util/NSString+BridgeJSONPrivate.m +++ /dev/null @@ -1,41 +0,0 @@ -// -// NSString+BridgeJSONPrivate.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "NSString+BridgeJSONPrivate.h" - -@implementation NSString (BridgeJSONPrivate) - -- (id)bridge_JSONObject { - @autoreleasepool { - NSError* error = nil; - id object = [NSJSONSerialization JSONObjectWithData:[self dataUsingEncoding:NSUTF8StringEncoding] - options:NSJSONReadingMutableContainers - error:&error]; - - if (error != nil) { - NSLog(@"NSString JSONObject error: %@, Malformed Data: %@", [error localizedDescription], self); - } - return object; - } -} - -- (id)bridge_JSONFragment { - @autoreleasepool { - NSError* error = nil; - id object = [NSJSONSerialization JSONObjectWithData:[self dataUsingEncoding:NSUTF8StringEncoding] - options:NSJSONReadingAllowFragments - error:&error]; - - if (error != nil) { - NSLog(@"NSString JSONObject error: %@", [error localizedDescription]); - } - return object; - } -} - -@end diff --git a/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.h b/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.h deleted file mode 100644 index 0886f02..0000000 --- a/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// WKWeakScriptMessageHandlerDelegate.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface WKWeakScriptMessageHandlerDelegate : NSObject - -@property (nonatomic, weak, readonly) id scriptDelegate; - -- (instancetype)initWithDelegate:(id)scriptDelegate; - -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.m b/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.m deleted file mode 100644 index f121a05..0000000 --- a/WKJavaScriptBridge/Util/WKWeakScriptMessageHandlerDelegate.m +++ /dev/null @@ -1,31 +0,0 @@ -// -// WKWeakScriptMessageHandlerDelegate.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "WKWeakScriptMessageHandlerDelegate.h" - -@interface WKWeakScriptMessageHandlerDelegate () - -@property (nonatomic, weak, readwrite) id scriptDelegate; - -@end - -@implementation WKWeakScriptMessageHandlerDelegate - -- (instancetype)initWithDelegate:(id)scriptDelegate { - self = [super init]; - if (self) { - _scriptDelegate = scriptDelegate; - } - return self; -} - -- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message { - [self.scriptDelegate userContentController:userContentController didReceiveScriptMessage:message]; -} - -@end diff --git a/WKJavaScriptBridge/WKJSBridge.js b/WKJavaScriptBridge/WKJSBridge.js deleted file mode 100755 index ee4b0fd..0000000 --- a/WKJavaScriptBridge/WKJSBridge.js +++ /dev/null @@ -1,57 +0,0 @@ -; -(function (window) { - ; - var WKJSBridge = /** @class */ (function () { - function WKJSBridge() { - this.uniqueId = 1; - this.callbackCache = {}; - this.eventCallbackCache = {}; - } - /** - * 调用 Natvie 方法 - * @param service 模块 - * @param action 方法 - * @param actionArgs 数据 - * @param callback 调用回调 - */ - WKJSBridge.prototype.callNative = function (service, action, actionArgs, successCallback, failCallback) { - var message = { - service: service || 'default', - action: action, - actionArgs: actionArgs, - callbackId: null - }; - if (successCallback || failCallback) { - // 拼装 callbackId - var callbackId = 'cb_' + message.service + '_' + action + '_' + (this.uniqueId++) + '_' + new Date().getTime(); // 缓存 callback,用于在 Native 处理完消息后,通知 H5 - this.callbackCache[callbackId] = {success:successCallback, fail:failCallback};; - // 追加 callbackId 属性 - message.callbackId = callbackId; - } - // 发送消息给 Native - window.webkit.messageHandlers.WKJSBridgeMessageName.postMessage(JSON.stringify(message)); - }; - /** - * 用于处理来自 Native 的消息 - * @param callbackMessage 回调消息 - */ - WKJSBridge.prototype._handleMessageFromNative = function (messageString) { - var callbackMessage = JSON.parse(messageString); - var status = messageString.status; - var callback = this.callbackCache[callbackMessage.callbackId]; - if (callback) { // 执行 callback 回调,并删除缓存的 callback - if (status = '0') {//失败回调 - callback.fail(callbackMessage.data); - }else {//成功回调 - callback.success(callbackMessage.data); - } - this.callbackCache[callbackMessage.callbackId] = null; - delete this.callbackCache[callbackMessage.callbackId]; - } - - }; - return WKJSBridge; - }()); - // 初始化 KKJSBridge - window.WKJSBridge = new WKJSBridge(); // 设置新的 JSBridge 作为全局对象 -})(window); diff --git a/WKJavaScriptBridge/WKJavaScriptBridge.h b/WKJavaScriptBridge/WKJavaScriptBridge.h deleted file mode 100644 index 8a1c958..0000000 --- a/WKJavaScriptBridge/WKJavaScriptBridge.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// WKJavaScriptBridge.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import -#import -#import "WKJavaScriptBridgeProtocol.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface WKJavaScriptBridge : NSObject - -/** 外部提供的webView,只读 */ -@property (nonatomic, readonly, weak) WKWebView *webView; - -/** - 初始化绑定方法 - - @param webView webView - @return bridge - */ -+ (instancetype)bindBridgeWithWebView:(WKWebView *)webView; - -/** - 是否开启插件白名单,默认关闭 - - @param openning 开关 - */ -- (void)openWhiteList:(BOOL)openning; - -@end - -NS_ASSUME_NONNULL_END diff --git a/WKJavaScriptBridge/WKJavaScriptBridge.m b/WKJavaScriptBridge/WKJavaScriptBridge.m deleted file mode 100644 index d51f53f..0000000 --- a/WKJavaScriptBridge/WKJavaScriptBridge.m +++ /dev/null @@ -1,244 +0,0 @@ -// -// WKJavaScriptBridge.m -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import "WKJavaScriptBridge.h" -#import "WKCommandImpl.h" -#import "WKWeakScriptMessageHandlerDelegate.h" -#import "WKJavaScriptMessageDispatcher.h" -#import "WKJavaScriptBridgePluginAnnotation.h" -#import "WKBasePlugin.h" -#import "WKCommandProtocol.h" - -static NSString * const WKJSBridge = @"WKJSBridgeMessageName"; - -@interface WKJavaScriptBridge () - -@property (nonatomic, strong) WKJavaScriptBridgePluginAnnotation *annotation;//模块注册白名单 -@property (nonatomic, strong) WKJavaScriptMessageDispatcher *dispatcher;//插件模块派发 -@property (nonatomic, strong) WKCommandImpl *commandDelegate;//插件模块可执行函数实现 -@property (nonatomic, strong) NSMutableDictionary *whiteList;//白名单列表 -@property (nonatomic, assign, getter=isOpenWhiteList) BOOL openWhiteList;//是否开启白名单 -@property (nonatomic, strong) NSMutableDictionary *pluginsByName;//插件模块实例对象 -@property (nonatomic, weak, readwrite) WKWebView *webView; -@property (nonatomic, strong) NSRecursiveLock *lock; - -@end - -@implementation WKJavaScriptBridge - -- (void)dealloc { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge dealloc"); -#endif - WKWebView *webView = (WKWebView *)self.webView; - [webView.configuration.userContentController removeScriptMessageHandlerForName:WKJSBridge]; - [[self.pluginsByName allValues] makeObjectsPerformSelector:@selector(dispose)]; - [self.pluginsByName removeAllObjects]; -} - -#pragma mark - Public - -+ (instancetype)bindBridgeWithWebView:(WKWebView *)webView { - if ([webView isKindOfClass:[WKWebView class]]) { - WKJavaScriptBridge *bridge = [[self alloc] initBridgeWithWebView:webView]; - return bridge; - } - [NSException raise:@"BadWebView" format:@"Unknown web view."]; - return nil; -} - -- (void)openWhiteList:(BOOL)openning { - self.openWhiteList = openning; -} - -#pragma mark - Init - -- (instancetype)initBridgeWithWebView:(WKWebView *)webView { - if (self = [super init]) { - self.webView = webView; - [self commonInit]; - [self setup]; - } - return self; -} - -- (void)commonInit { - self.dispatcher = [[WKJavaScriptMessageDispatcher alloc] initWithBridge:self]; - self.annotation = [[WKJavaScriptBridgePluginAnnotation alloc] initWithBridge:self]; - self.commandDelegate = [[WKCommandImpl alloc] initWithBridge:self]; -} - -#pragma mark - Privite - -- (void)setup { - [self setupJSBridge]; - [self setupPlugin]; -} - -- (void)setupJSBridge { - WKWebViewConfiguration *webViewConfiguration = self.webView.configuration; - if (webViewConfiguration && !webViewConfiguration.userContentController) { - self.webView.configuration.userContentController = [WKUserContentController new]; - } - // 防止内存泄露 - [self.webView.configuration.userContentController addScriptMessageHandler:[[WKWeakScriptMessageHandlerDelegate alloc] initWithDelegate:self] name:WKJSBridge]; -} - -- (void)setupPlugin { - [self.annotation getAllRegisterPluginName]; -} - -- (void)registerPlugin:(WKBasePlugin *)plugin { - if ([plugin respondsToSelector:@selector(setCommandDelegate:)]) { - [plugin setCommandDelegate:_commandDelegate]; - } -} - -- (Class)pluginImplClass:(NSString *)pluginName { - if (pluginName.length > 0) { - return NSClassFromString(pluginName); - } - return nil; -} - -- (BOOL)pluginShouldCache:(Class)implClass { - BOOL shouldCache = NO; - if ([[implClass class] respondsToSelector:@selector(shouldCache)]) { - if ([[implClass class] shouldCache]) { - shouldCache = YES; - } - } - return shouldCache; -} - -- (void)pluginInstall:(WKBasePlugin *)plugin { - [plugin pluginInitialize]; - [self registerPlugin:plugin]; -} - -#pragma mark - WKJavaScriptBridgeProtocol - -- (void)addWhiteList:(NSString *)pluginName { - [self.lock lock]; - [self.whiteList setValue:pluginName forKey:[pluginName lowercaseString]]; - [self.lock unlock]; -} - -- (id)getCommandInstance:(NSString*)pluginName { - NSString* className; - if (self.isOpenWhiteList) {//校验白名单 - [self.lock lock]; - className = [self.whiteList objectForKey:[pluginName lowercaseString]]; - [self.lock unlock]; - if (className == nil) { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 模块: (%@) 没有注册白名单。请关闭白名单或者或者使用(@WKRegisterWhiteList)注册。", pluginName); -#endif - return nil; - } - }else { - className = pluginName; - } - - WKBasePlugin *plugin = nil; - Class implClass = [self pluginImplClass:pluginName]; - - BOOL shouldCache = [self pluginShouldCache:implClass]; - if (shouldCache) { - plugin = [self.pluginsByName objectForKey:className]; - if (plugin) { - return plugin; - } - } - - if ([[implClass class] respondsToSelector:@selector(singleton)]) { - if ([[implClass class] singleton]) { - if ([[implClass class] respondsToSelector:@selector(shareInstance)]) - plugin = [[implClass class] shareInstance]; - else - plugin = [[implClass alloc] init]; - - if (plugin) { - [self pluginInstall:plugin]; - if (shouldCache) { - [self.pluginsByName setObject:plugin forKey:className]; - } - }else { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 模块: (%@) 不存在。", pluginName); -#endif - } - return plugin; - } - } - - plugin = [[implClass alloc] init]; - if (plugin) { - [self pluginInstall:plugin]; - if (shouldCache) { - [self.pluginsByName setObject:plugin forKey:className]; - } - }else { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 模块: (%@) 不存在。", pluginName); -#endif - } - return plugin; -} - -- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^)(id , NSError *))completionHandler { - WKWebView *webView = (WKWebView *)self.webView; - [webView evaluateJavaScript:javaScriptString completionHandler:^(id obj, NSError * _Nullable error) { - if (completionHandler) { - completionHandler(obj, error); - } - }]; -} - -#pragma mark - WKScriptMessageHandler - -- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message { - if ([message.name isEqualToString:WKJSBridge]) { - if ([message.body isKindOfClass:[NSString class]]) { - [self.dispatcher handleMsgCommand:message.body]; - }else { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 通信参数不合法,请将JS侧参数转为字符串通信。"); -#endif - } - }else { -#ifdef DEBUG - NSLog(@"WKJavaScriptBridge Error : 本次调用所使用的JS函数非(WKJavaScriptBridge)注入。请使用(%@)",WKJSBridge); -#endif - } -} - -#pragma mark - Set or Get - -- (NSRecursiveLock *)lock { - if (!_lock) { - _lock = [[NSRecursiveLock alloc] init]; - } - return _lock; -} - -- (NSMutableDictionary *)whiteList { - if (!_whiteList) { - _whiteList = [[NSMutableDictionary alloc] initWithCapacity:1]; - } - return _whiteList; -} - -- (NSMutableDictionary *)pluginsByName { - if (!_pluginsByName) { - _pluginsByName = [[NSMutableDictionary alloc] initWithCapacity:1]; - } - return _pluginsByName; -} - -@end diff --git a/WKJavaScriptBridge/WKJavaScriptBridgeProtocol.h b/WKJavaScriptBridge/WKJavaScriptBridgeProtocol.h deleted file mode 100644 index d9d701e..0000000 --- a/WKJavaScriptBridge/WKJavaScriptBridgeProtocol.h +++ /dev/null @@ -1,40 +0,0 @@ -// -// WKJavaScriptBridgeProtocol.h -// WKJavaScriptBridge-demo -// -// Created by Kevin on 2019/10/22. -// Copyright © 2019 王凯. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@protocol WKJavaScriptBridgeProtocol - -/** - 模块加载 - - @param pluginName 模块名称 - */ -- (void)addWhiteList:(NSString *)pluginName; - -/** - 获取模块实例 - - @param pluginName 模块名称 - @return 模块实例 - */ -- (id)getCommandInstance:(NSString*)pluginName; - -/** - 执行JavaScript - - @param javaScriptString JS函数 - @param completionHandler 结果回调 - */ -- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^)(id, NSError *))completionHandler; - -@end - -NS_ASSUME_NONNULL_END diff --git a/_Pods.xcodeproj b/_Pods.xcodeproj new file mode 120000 index 0000000..3c5a8e7 --- /dev/null +++ b/_Pods.xcodeproj @@ -0,0 +1 @@ +Example/Pods/Pods.xcodeproj \ No newline at end of file