rhymelph / r_scan

📷🖨Flutter二维码&条形码扫描插件,支持相机、文件、链接、Uint8List类型扫描
https://juejin.im/post/5dd8efb1e51d452314438515
BSD 3-Clause "New" or "Revised" License
119 stars 79 forks source link

UIWebView适配问题 #21

Closed xuzhenhao closed 3 years ago

xuzhenhao commented 4 years ago

扫描时发现ZBarSDK含有UIWebview

./Pods/ZBarSDK/iphone/include/ZBarSDK/ZBarHelpController.h: < UIWebViewDelegate, ./Pods/ZBarSDK/iphone/include/ZBarSDK/ZBarHelpController.h: UIWebView webView; ./Pods/ZBarSDK/iphone/ZBarHelpController.m: webView = [[UIWebView alloc] ./Pods/ZBarSDK/iphone/ZBarHelpController.m:- (void) webViewDidFinishLoad: (UIWebView) view ./Pods/ZBarSDK/iphone/ZBarHelpController.m:- (BOOL) webView: (UIWebView*) view ./Pods/ZBarSDK/iphone/ZBarHelpController.m: navigationType: (UIWebViewNavigationType) nav

masewo commented 4 years ago

You can override the dependency used by r_scan by adding this to your podfile:

target 'Runner' do
  # temporary solution because official ZBarSDK did not switch from UIWebView to WKWebView yet
  pod "ZBarSDK", :git => "https://github.com/phucdanghuu/ZBar.git", :commit => "b82be9cf11ec7045472e69b033461de438c1aa35"

  ...
end
rhymelph commented 3 years ago

v0.1.6