Authored by ZhangTonghai

增加webp条件判断

YohoExplorerDemo/Pods
xcschememanagement.plist
*.xccheckout
*.xcuserstate
*.xcscheme
YohoExplorerDemo.xcscheme
Breakpoints_v2.xcbkptlist
... ...
Pod::Spec.new do |s|
s.name = "YHExplorer"
s.version = "1.4.0"
s.version = "1.5.0"
s.summary = "Integrated WebView with Cordova"
s.description = <<-DESC
An WebView Kit integrated Cordova.
... ...
... ... @@ -27,7 +27,10 @@
NSString* const requestFiletype = [[[request URL] pathExtension] lowercaseString];
return [@"webp" isEqualToString:requestFiletype];
BOOL webpEnable = [[[[request URL] absoluteString] lowercaseString] containsString:@"/format/webp"];
return [@"webp" isEqualToString:requestFiletype] || webpEnable;
}
+ (NSURLRequest *)canonicalRequestForRequest:(NSURLRequest *)request {
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
... ...