Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 527e76f

Browse files
committed
feat: add 2.x proto support for matte.
1 parent 0318580 commit 527e76f

File tree

6 files changed

+985
-956
lines changed

6 files changed

+985
-956
lines changed

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ SPEC CHECKSUMS:
6464

6565
PODFILE CHECKSUM: 7f6714245d47e69d2933463289e4c4d6de65b831
6666

67-
COCOAPODS: 1.6.0.beta.2
67+
COCOAPODS: 1.6.1

SVGAPlayer.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
63712E6821787A45001AE014 /* SVGAAudioEntity.m in Sources */ = {isa = PBXBuildFile; fileRef = 63712E6721787A45001AE014 /* SVGAAudioEntity.m */; };
1313
63E817012178809D001D2D62 /* SVGAAudioLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 63E817002178809D001D2D62 /* SVGAAudioLayer.m */; };
1414
71418C93225E6F710029C69E /* mutiMatte.svga in Resources */ = {isa = PBXBuildFile; fileRef = 71418C92225E6F710029C69E /* mutiMatte.svga */; };
15+
716E430322A56EFD007E5871 /* matte.svga in Resources */ = {isa = PBXBuildFile; fileRef = 716E430222A56EFD007E5871 /* matte.svga */; };
1516
80D4C7254846B96B9C6EED83 /* libPods-SVGAPlayer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DDA5FF396660C7C932DF9B8 /* libPods-SVGAPlayer.a */; };
1617
904D41F81D223DD20085A21A /* SVGABezierPath.m in Sources */ = {isa = PBXBuildFile; fileRef = 904D41F71D223DD20085A21A /* SVGABezierPath.m */; };
1718
9052FC631E6EB8D4007BC925 /* SVGAExporter.m in Sources */ = {isa = PBXBuildFile; fileRef = 9052FC621E6EB8D4007BC925 /* SVGAExporter.m */; };
@@ -65,6 +66,7 @@
6566
63E816FF2178809D001D2D62 /* SVGAAudioLayer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SVGAAudioLayer.h; sourceTree = "<group>"; };
6667
63E817002178809D001D2D62 /* SVGAAudioLayer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SVGAAudioLayer.m; sourceTree = "<group>"; };
6768
71418C92225E6F710029C69E /* mutiMatte.svga */ = {isa = PBXFileReference; lastKnownFileType = file; path = mutiMatte.svga; sourceTree = "<group>"; };
69+
716E430222A56EFD007E5871 /* matte.svga */ = {isa = PBXFileReference; lastKnownFileType = file; path = matte.svga; sourceTree = "<group>"; };
6870
8AD65028FA2D122A34DC4A63 /* Pods-SVGAPlayer.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SVGAPlayer.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SVGAPlayer/Pods-SVGAPlayer.debug.xcconfig"; sourceTree = "<group>"; };
6971
904D41F61D223DD20085A21A /* SVGABezierPath.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGABezierPath.h; sourceTree = "<group>"; };
7072
904D41F71D223DD20085A21A /* SVGABezierPath.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SVGABezierPath.m; sourceTree = "<group>"; };
@@ -241,6 +243,7 @@
241243
90D7C9FA1F7E2AA3006E74F0 /* Samples */ = {
242244
isa = PBXGroup;
243245
children = (
246+
716E430222A56EFD007E5871 /* matte.svga */,
244247
71418C92225E6F710029C69E /* mutiMatte.svga */,
245248
63712E6421787950001AE014 /* heartbeat.svga */,
246249
90D7CA1A1F7FB114006E74F0 /* rose_1.5.0.svga */,
@@ -358,6 +361,7 @@
358361
90CB64F91EF297E800DAA382 /* SVGAPlayer React-Info.plist in Resources */,
359362
90D7CA1C1F7FB114006E74F0 /* rose_1.5.0.svga in Resources */,
360363
90D7CA1B1F7FB114006E74F0 /* rose_2.0.0.svga in Resources */,
364+
716E430322A56EFD007E5871 /* matte.svga in Resources */,
361365
);
362366
runOnlyForDeploymentPostprocessing = 0;
363367
};

SVGAPlayer/Samples/matte.svga

738 Bytes
Binary file not shown.

SVGAPlayer/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ - (void)viewDidLoad {
3030
}
3131

3232
- (IBAction)onChange:(id)sender {
33-
[parser parseWithNamed:@"mutiMatte"
33+
[parser parseWithNamed:@"matte"
3434
inBundle:[NSBundle mainBundle] completionBlock:^(SVGAVideoEntity * _Nonnull videoItem) {
3535
if (videoItem != nil) {
3636
self.aPlayer.videoItem = videoItem;

Source/pbobjc/Svga.pbobjc.h

Lines changed: 109 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)