feat:iOS support webp image
This commit is contained in:
parent
83d71e1703
commit
06c6b5f5a5
@ -29,6 +29,18 @@ class ImageDemo extends Panel {
|
|||||||
loadCallback: (ret) => {
|
loadCallback: (ret) => {
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
label('Animated WebP'),
|
||||||
|
image({
|
||||||
|
imageUrl: "https://p.upyun.com/demo/webp/webp/animated-gif-0.webp",
|
||||||
|
loadCallback: (ret) => {
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
label('WebP'),
|
||||||
|
image({
|
||||||
|
imageUrl: "https://p.upyun.com/demo/webp/webp/jpg-0.webp",
|
||||||
|
loadCallback: (ret) => {
|
||||||
|
}
|
||||||
|
}),
|
||||||
label('ScaleToFill'),
|
label('ScaleToFill'),
|
||||||
image({
|
image({
|
||||||
imageUrl,
|
imageUrl,
|
||||||
|
@ -39,7 +39,8 @@ TODO: Add long description of the pod here.
|
|||||||
s.public_header_files = 'Pod/Classes/**/*.h'
|
s.public_header_files = 'Pod/Classes/**/*.h'
|
||||||
# s.frameworks = 'UIKit', 'MapKit'
|
# s.frameworks = 'UIKit', 'MapKit'
|
||||||
# s.dependency 'AFNetworking', '~> 2.3'
|
# s.dependency 'AFNetworking', '~> 2.3'
|
||||||
s.dependency 'SDWebImage', '~> 5.0'
|
s.dependency 'SDWebImage', '~>4.4.7'
|
||||||
|
s.dependency 'SDWebImage/WebP'
|
||||||
s.dependency 'SocketRocket', '~> 0.5.1'
|
s.dependency 'SocketRocket', '~> 0.5.1'
|
||||||
s.dependency 'GCDWebServer', '~> 3.0'
|
s.dependency 'GCDWebServer', '~> 3.0'
|
||||||
end
|
end
|
||||||
|
@ -1,14 +1,27 @@
|
|||||||
PODS:
|
PODS:
|
||||||
- Doric (0.1.0):
|
- Doric (0.1.0):
|
||||||
- GCDWebServer (~> 3.0)
|
- GCDWebServer (~> 3.0)
|
||||||
- SDWebImage (~> 5.0)
|
- SDWebImage (~> 4.4.7)
|
||||||
|
- SDWebImage/WebP
|
||||||
- SocketRocket (~> 0.5.1)
|
- SocketRocket (~> 0.5.1)
|
||||||
- GCDWebServer (3.5.2):
|
- GCDWebServer (3.5.3):
|
||||||
- GCDWebServer/Core (= 3.5.2)
|
- GCDWebServer/Core (= 3.5.3)
|
||||||
- GCDWebServer/Core (3.5.2)
|
- GCDWebServer/Core (3.5.3)
|
||||||
- SDWebImage (5.0.6):
|
- libwebp (1.0.3):
|
||||||
- SDWebImage/Core (= 5.0.6)
|
- libwebp/demux (= 1.0.3)
|
||||||
- SDWebImage/Core (5.0.6)
|
- libwebp/mux (= 1.0.3)
|
||||||
|
- libwebp/webp (= 1.0.3)
|
||||||
|
- libwebp/demux (1.0.3):
|
||||||
|
- libwebp/webp
|
||||||
|
- libwebp/mux (1.0.3):
|
||||||
|
- libwebp/demux
|
||||||
|
- libwebp/webp (1.0.3)
|
||||||
|
- SDWebImage (4.4.7):
|
||||||
|
- SDWebImage/Core (= 4.4.7)
|
||||||
|
- SDWebImage/Core (4.4.7)
|
||||||
|
- SDWebImage/WebP (4.4.7):
|
||||||
|
- libwebp (< 2.0, >= 0.5)
|
||||||
|
- SDWebImage/Core
|
||||||
- SocketRocket (0.5.1)
|
- SocketRocket (0.5.1)
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
@ -17,6 +30,7 @@ DEPENDENCIES:
|
|||||||
SPEC REPOS:
|
SPEC REPOS:
|
||||||
https://github.com/cocoapods/specs.git:
|
https://github.com/cocoapods/specs.git:
|
||||||
- GCDWebServer
|
- GCDWebServer
|
||||||
|
- libwebp
|
||||||
- SDWebImage
|
- SDWebImage
|
||||||
- SocketRocket
|
- SocketRocket
|
||||||
|
|
||||||
@ -25,9 +39,10 @@ EXTERNAL SOURCES:
|
|||||||
:path: "../"
|
:path: "../"
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
Doric: f96b77d435e836e88cf02319e3c9ebc08cab65f6
|
Doric: 4632b549eb47400496b4aa3307234b883092a77d
|
||||||
GCDWebServer: ead88cd14596dd4eae4f5830b8877c87c8728990
|
GCDWebServer: c0ab22c73e1b84f358d1e2f74bf6afd1c60829f2
|
||||||
SDWebImage: 920f1a2ff1ca8296ad34f6e0510a1ef1d70ac965
|
libwebp: 057912d6d0abfb6357d8bb05c0ea470301f5d61e
|
||||||
|
SDWebImage: c10d14a8883ebd89664f02a422006f66a85c0c5d
|
||||||
SocketRocket: d57c7159b83c3c6655745cd15302aa24b6bae531
|
SocketRocket: d57c7159b83c3c6655745cd15302aa24b6bae531
|
||||||
|
|
||||||
PODFILE CHECKSUM: 012563d71439e7e33e976dca3b59664ed56cee39
|
PODFILE CHECKSUM: 012563d71439e7e33e976dca3b59664ed56cee39
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#import "DoricImageNode.h"
|
#import "DoricImageNode.h"
|
||||||
#import "Doric.h"
|
#import "Doric.h"
|
||||||
#import <SDWebImage/SDWebImage.h>
|
#import <SDWebImage/UIImageView+WebCache.h>
|
||||||
|
|
||||||
@interface DoricImageNode ()
|
@interface DoricImageNode ()
|
||||||
@property(nonatomic, copy) NSString *loadCallbackId;
|
@property(nonatomic, copy) NSString *loadCallbackId;
|
||||||
|
Reference in New Issue
Block a user