├── SDWebImageSVGKitPlugin
├── Classes
│ ├── .gitkeep
│ ├── SDImageSVGKCoder.h
│ ├── SDSVGKImage.h
│ ├── SDWebImageSVGKitDefine.h
│ ├── SDImageSVGKCoder.m
│ ├── SDSVGKImage.m
│ ├── SVGKImageView+WebCache.m
│ ├── SDWebImageSVGKitDefine.m
│ └── SVGKImageView+WebCache.h
└── Module
│ ├── SDWebImageSVGKitPlugin.modulemap
│ ├── SDWebImageSVGKitPlugin.h
│ └── Info.plist
├── _Pods.xcodeproj
├── Cartfile
├── Example
├── Tests
│ ├── en.lproj
│ │ └── InfoPlist.strings
│ ├── Tests-Prefix.pch
│ ├── Tests-Info.plist
│ └── Tests.m
├── SDWebImageSVGKitPlugin
│ ├── en.lproj
│ │ └── InfoPlist.strings
│ ├── SDViewController.h
│ ├── SDAppDelegate.h
│ ├── SDWebImageSVGKitPlugin-Prefix.pch
│ ├── main.m
│ ├── SDWebImageSVGKitPlugin-Info.plist
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Images.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── SDAppDelegate.m
│ └── SDViewController.m
├── Screenshot
│ ├── SVGDemo.png
│ └── SVGDemo-macOS.png
├── SDWebImageSVGKitPlugin_Example macOS
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── ViewController.h
│ ├── AppDelegate.h
│ ├── main.m
│ ├── SDWebImageSVGKitPlugin_Example_macOS.entitlements
│ ├── AppDelegate.m
│ ├── Info.plist
│ └── ViewController.m
├── SDWebImageSVGKitPlugin.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── SDWebImageSVGKitPlugin-Example macOS.xcscheme
│ │ │ └── SDWebImageSVGKitPlugin-Example.xcscheme
│ └── project.pbxproj
├── SDWebImageSVGKitPlugin.xcworkspace
│ └── contents.xcworkspacedata
└── Podfile
├── Cartfile.resolved
├── SDWebImageSVGKitPlugin.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcshareddata
│ └── xcschemes
│ │ ├── SDWebImageSVGKitPlugin iOS.xcscheme
│ │ ├── SDWebImageSVGKitPlugin macOS.xcscheme
│ │ └── SDWebImageSVGKitPlugin tvOS.xcscheme
└── project.pbxproj
├── .gitignore
├── LICENSE
├── Package.resolved
├── Package.swift
├── SDWebImageSVGKitPlugin.podspec
├── .travis.yml
└── README.md
/SDWebImageSVGKitPlugin/Classes/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/_Pods.xcodeproj:
--------------------------------------------------------------------------------
1 | Example/Pods/Pods.xcodeproj
--------------------------------------------------------------------------------
/Cartfile:
--------------------------------------------------------------------------------
1 | github "SDWebImage/SDWebImage" ~> 5.10
2 | github "SVGKit/SVGKit" ~> 3.0
--------------------------------------------------------------------------------
/Example/Tests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/Example/Screenshot/SVGDemo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGKitPlugin/HEAD/Example/Screenshot/SVGDemo.png
--------------------------------------------------------------------------------
/Example/Screenshot/SVGDemo-macOS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGKitPlugin/HEAD/Example/Screenshot/SVGDemo-macOS.png
--------------------------------------------------------------------------------
/Cartfile.resolved:
--------------------------------------------------------------------------------
1 | github "CocoaLumberjack/CocoaLumberjack" "3.6.1"
2 | github "SDWebImage/SDWebImage" "5.6.0"
3 | github "SVGKit/SVGKit" "2.1.0"
4 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Example/Tests/Tests-Prefix.pch:
--------------------------------------------------------------------------------
1 | // The contents of this file are implicitly included at the beginning of every test case source file.
2 |
3 | #ifdef __OBJC__
4 |
5 |
6 |
7 | #endif
8 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Module/SDWebImageSVGKitPlugin.modulemap:
--------------------------------------------------------------------------------
1 | framework module SDWebImageSVGKitPlugin {
2 | umbrella header "SDWebImageSVGKitPlugin.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/SDViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // SDViewController.h
3 | // SDWebImageSVGKitPlugin
4 | //
5 | // Created by lizhuoli1126@126.com on 11/12/2019.
6 | // Copyright (c) 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | @import UIKit;
10 |
11 | @interface SDViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // SDWebImageSVGKitPlugin_Example macOS
4 | //
5 | // Created by 李卓立 on 2019/11/13.
6 | // Copyright © 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : NSViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // SDWebImageSVGKitPlugin_Example macOS
4 | //
5 | // Created by 李卓立 on 2019/11/13.
6 | // Copyright © 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : NSObject
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/SDAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // SDAppDelegate.h
3 | // SDWebImageSVGKitPlugin
4 | //
5 | // Created by lizhuoli1126@126.com on 11/12/2019.
6 | // Copyright (c) 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | @import UIKit;
10 |
11 | @interface SDAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/SDWebImageSVGKitPlugin-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #import
8 |
9 | #ifndef __IPHONE_5_0
10 | #warning "This project uses features only available in iOS SDK 5.0 and later."
11 | #endif
12 |
13 | #ifdef __OBJC__
14 | @import UIKit;
15 | @import Foundation;
16 | #endif
17 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // SDWebImageSVGKitPlugin
4 | //
5 | // Created by lizhuoli1126@126.com on 11/12/2019.
6 | // Copyright (c) 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | @import UIKit;
10 | #import "SDAppDelegate.h"
11 |
12 | int main(int argc, char * argv[])
13 | {
14 | @autoreleasepool {
15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([SDAppDelegate class]));
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Example/Podfile:
--------------------------------------------------------------------------------
1 | use_frameworks!
2 |
3 | target 'SDWebImageSVGKitPlugin_Example' do
4 | platform :ios, '9.3'
5 | pod 'SDWebImageSVGKitPlugin', :path => '../'
6 | pod 'SVGKit', :git => 'https://github.com/SVGKit/SVGKit.git', :branch => '3.x'
7 | end
8 |
9 | target 'SDWebImageSVGKitPlugin_Example macOS' do
10 | platform :osx, '10.13'
11 | pod 'SDWebImageSVGKitPlugin', :path => '../'
12 | pod 'SVGKit', :git => 'https://github.com/SVGKit/SVGKit.git', :branch => '3.x'
13 | end
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // SDWebImageSVGKitPlugin_Example macOS
4 | //
5 | // Created by 李卓立 on 2019/11/13.
6 | // Copyright © 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | int main(int argc, const char * argv[]) {
12 | @autoreleasepool {
13 | // Setup code that might create autoreleased objects goes here.
14 | }
15 | return NSApplicationMain(argc, argv);
16 | }
17 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/SDWebImageSVGKitPlugin_Example_macOS.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.files.user-selected.read-only
8 |
9 | com.apple.security.network.client
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Module/SDWebImageSVGKitPlugin.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #else
3 | #ifndef FOUNDATION_EXPORT
4 | #if defined(__cplusplus)
5 | #define FOUNDATION_EXPORT extern "C"
6 | #else
7 | #define FOUNDATION_EXPORT extern
8 | #endif
9 | #endif
10 | #endif
11 |
12 | #import
13 | #import
14 | #import
15 | #import
16 |
17 | FOUNDATION_EXPORT double SDWebImageSVGKitPluginVersionNumber;
18 | FOUNDATION_EXPORT const unsigned char SDWebImageSVGKitPluginVersionString[];
19 |
20 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // SDWebImageSVGKitPlugin_Example macOS
4 | //
5 | // Created by 李卓立 on 2019/11/13.
6 | // Copyright © 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
18 | // Insert code here to initialize your application
19 | }
20 |
21 |
22 | - (void)applicationWillTerminate:(NSNotification *)aNotification {
23 | // Insert code here to tear down your application
24 | }
25 |
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Classes/SDImageSVGKCoder.h:
--------------------------------------------------------------------------------
1 | //
2 | // SDImageSVGKCoder.h
3 | // SDWebImageSVGPlugin
4 | //
5 | // Created by DreamPiggy on 2018/9/27.
6 | //
7 |
8 | #if __has_include()
9 | #import
10 | #else
11 | @import SDWebImage;
12 | #endif
13 |
14 | NS_ASSUME_NONNULL_BEGIN
15 |
16 | /**
17 | SDImageSVGKCoder is a SVG image coder, which use the SVGKit for SVG rendering. It support a subset of SVG 1.1 spec. For anything related to SVG rendering, please report issue to https://github.com/SVGKit/SVGKit/.
18 | */
19 | @interface SDImageSVGKCoder : NSObject
20 |
21 | @property (nonatomic, class, readonly) SDImageSVGKCoder *sharedCoder;
22 |
23 | @end
24 |
25 | NS_ASSUME_NONNULL_END
26 |
--------------------------------------------------------------------------------
/Example/Tests/Tests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Module/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.4.0
19 | CFBundleVersion
20 | 1.4.0
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Example/Tests/Tests.m:
--------------------------------------------------------------------------------
1 | //
2 | // SDWebImageSVGKitPluginTests.m
3 | // SDWebImageSVGKitPluginTests
4 | //
5 | // Created by lizhuoli1126@126.com on 11/12/2019.
6 | // Copyright (c) 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | @import XCTest;
10 |
11 | @interface Tests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation Tests
16 |
17 | - (void)setUp
18 | {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown
24 | {
25 | // Put teardown code here. This method is called after the invocation of each test method in the class.
26 | [super tearDown];
27 | }
28 |
29 | - (void)testExample
30 | {
31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32 | }
33 |
34 | @end
35 |
36 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OS X
2 | .DS_Store
3 |
4 | # Xcode
5 | build/
6 | *.pbxuser
7 | !default.pbxuser
8 | *.mode1v3
9 | !default.mode1v3
10 | *.mode2v3
11 | !default.mode2v3
12 | *.perspectivev3
13 | !default.perspectivev3
14 | xcuserdata/
15 | *.xccheckout
16 | profile
17 | *.moved-aside
18 | DerivedData
19 | *.hmap
20 | *.ipa
21 |
22 | # SPM
23 | .swiftpm/
24 |
25 | # Bundler
26 | .bundle
27 |
28 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
29 | Carthage/Checkouts
30 | Carthage/Build
31 |
32 | # We recommend against adding the Pods directory to your .gitignore. However
33 | # you should judge for yourself, the pros and cons are mentioned at:
34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
35 | #
36 | # Note: if you ignore the Pods directory, make sure to uncomment
37 | # `pod install` in .travis.yml
38 | #
39 | Example/Pods
40 | Podfile.lock
41 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2019 lizhuoli1126@126.com
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "mac",
5 | "size" : "16x16",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "mac",
10 | "size" : "16x16",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "mac",
15 | "size" : "32x32",
16 | "scale" : "1x"
17 | },
18 | {
19 | "idiom" : "mac",
20 | "size" : "32x32",
21 | "scale" : "2x"
22 | },
23 | {
24 | "idiom" : "mac",
25 | "size" : "128x128",
26 | "scale" : "1x"
27 | },
28 | {
29 | "idiom" : "mac",
30 | "size" : "128x128",
31 | "scale" : "2x"
32 | },
33 | {
34 | "idiom" : "mac",
35 | "size" : "256x256",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "mac",
40 | "size" : "256x256",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "mac",
45 | "size" : "512x512",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "mac",
50 | "size" : "512x512",
51 | "scale" : "2x"
52 | }
53 | ],
54 | "info" : {
55 | "version" : 1,
56 | "author" : "xcode"
57 | }
58 | }
--------------------------------------------------------------------------------
/Package.resolved:
--------------------------------------------------------------------------------
1 | {
2 | "object": {
3 | "pins": [
4 | {
5 | "package": "CocoaLumberjack",
6 | "repositoryURL": "https://github.com/CocoaLumberjack/CocoaLumberjack.git",
7 | "state": {
8 | "branch": null,
9 | "revision": "e518eb6e362df327574ba5e04269cd6d29f40aec",
10 | "version": "3.7.2"
11 | }
12 | },
13 | {
14 | "package": "SDWebImage",
15 | "repositoryURL": "https://github.com/SDWebImage/SDWebImage.git",
16 | "state": {
17 | "branch": null,
18 | "revision": "a72df4849408da7e5d3c1b586797b7c601c41d1b",
19 | "version": "5.12.1"
20 | }
21 | },
22 | {
23 | "package": "SVGKit",
24 | "repositoryURL": "https://github.com/SVGKit/SVGKit.git",
25 | "state": {
26 | "branch": null,
27 | "revision": "58152b9f7c85eab239160b36ffdfd364aa43d666",
28 | "version": "3.0.0"
29 | }
30 | },
31 | {
32 | "package": "swift-log",
33 | "repositoryURL": "https://github.com/apple/swift-log.git",
34 | "state": {
35 | "branch": null,
36 | "revision": "5d66f7ba25daf4f94100e7022febf3c75e37a6c7",
37 | "version": "1.4.2"
38 | }
39 | }
40 | ]
41 | },
42 | "version": 1
43 | }
44 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | Copyright © 2019 lizhuoli1126@126.com. All rights reserved.
27 | NSMainStoryboardFile
28 | Main
29 | NSPrincipalClass
30 | NSApplication
31 | NSSupportsAutomaticTermination
32 |
33 | NSSupportsSuddenTermination
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/Package.swift:
--------------------------------------------------------------------------------
1 | // swift-tools-version:5.1
2 | // The swift-tools-version declares the minimum version of Swift required to build this package.
3 | import PackageDescription
4 |
5 | let package = Package(
6 | name: "SDWebImageSVGKitPlugin",
7 | platforms: [
8 | .macOS(.v10_11), .iOS(.v9), .tvOS(.v9)
9 | ],
10 | products: [
11 | // Products define the executables and libraries produced by a package, and make them visible to other packages.
12 | .library(
13 | name: "SDWebImageSVGKitPlugin",
14 | targets: ["SDWebImageSVGKitPlugin"]),
15 | ],
16 | dependencies: [
17 | // Dependencies declare other packages that this package depends on.
18 | // .package(url: /* package url */, from: "1.0.0"),
19 | .package(url: "https://github.com/SDWebImage/SDWebImage.git", from: "5.10.0"),
20 | .package(url: "https://github.com/SVGKit/SVGKit.git", from: "3.0.0")
21 | ],
22 | targets: [
23 | // Targets are the basic building blocks of a package. A target can define a module or a test suite.
24 | // Targets can depend on other targets in this package, and on products in packages which this package depends on.
25 | .target(
26 | name: "SDWebImageSVGKitPlugin",
27 | dependencies: ["SDWebImage", "SVGKit"],
28 | path: ".",
29 | sources: ["SDWebImageSVGKitPlugin/Classes"],
30 | publicHeadersPath: "SDWebImageSVGKitPlugin/Classes"
31 | )
32 | ]
33 | )
34 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Classes/SDSVGKImage.h:
--------------------------------------------------------------------------------
1 | //
2 | // SDSVGKImage.h
3 | // SDWebImageSVGPlugin
4 | //
5 | // Created by DreamPiggy on 2018/10/10.
6 | //
7 |
8 | #if __has_include()
9 | #import
10 | #else
11 | @import SDWebImage;
12 | #endif
13 | #if __has_include()
14 | #import
15 | #else
16 | @import SVGKit;
17 | #endif
18 |
19 | NS_ASSUME_NONNULL_BEGIN
20 |
21 | @interface SDSVGKImage : UIImage
22 |
23 | @property (nonatomic, strong, nullable, readonly) SVGKImage *SVGKImage;
24 |
25 | /**
26 | Create the wrapper with specify `SVGKImage` instance. The instance should be nonnull.
27 | This is a convenience method for some use cases, for example, create a placeholder with `SVGKImage`.
28 |
29 | @param image The `SVGKImage` instance
30 | @return An initialized object
31 | */
32 | - (nonnull instancetype)initWithSVGKImage:(nonnull SVGKImage *)image;
33 |
34 | // This class override these methods from UIImage
35 | // You should use these methods to create a new SVG image. Use other methods just call super instead.
36 | + (nullable instancetype)imageWithContentsOfFile:(nonnull NSString *)path;
37 | + (nullable instancetype)imageWithData:(nonnull NSData *)data;
38 | + (nullable instancetype)imageWithData:(nonnull NSData *)data scale:(CGFloat)scale;
39 | - (nullable instancetype)initWithContentsOfFile:(nonnull NSString *)path;
40 | - (nullable instancetype)initWithData:(nonnull NSData *)data;
41 | - (nullable instancetype)initWithData:(nonnull NSData *)data scale:(CGFloat)scale;
42 |
43 | @end
44 |
45 | NS_ASSUME_NONNULL_END
46 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # Be sure to run `pod lib lint SDWebImageSVGKitPlugin.podspec' to ensure this is a
3 | # valid spec before submitting.
4 | #
5 | # Any lines starting with a # are optional, but their use is encouraged
6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
7 | #
8 |
9 | Pod::Spec.new do |s|
10 | s.name = 'SDWebImageSVGKitPlugin'
11 | s.version = '1.4.0'
12 | s.summary = 'A SVG coder plugin for SDWebImage, using SVGKit.'
13 |
14 | # This description is used to generate tags and improve search results.
15 | # * Think: What does it do? Why did you write it? What is the focus?
16 | # * Try to keep it short, snappy and to the point.
17 | # * Write the description between the DESC delimiters below.
18 | # * Finally, don't worry about the indent, CocoaPods strips it!
19 |
20 | s.description = <<-DESC
21 | TODO: Add long description of the pod here.
22 | DESC
23 |
24 | s.homepage = 'https://github.com/SDWebImage/SDWebImageSVGKitPlugin'
25 | s.license = { :type => 'MIT', :file => 'LICENSE' }
26 | s.author = { 'DreamPiggy' => 'lizhuoli1126@126.com' }
27 | s.source = { :git => 'https://github.com/SDWebImage/SDWebImageSVGKitPlugin.git', :tag => s.version.to_s }
28 |
29 | s.ios.deployment_target = '9.0'
30 | s.tvos.deployment_target = '9.0'
31 | s.osx.deployment_target = '10.11'
32 |
33 | s.source_files = 'SDWebImageSVGKitPlugin/Classes/**/*', 'SDWebImageSVGKitPlugin/Module/SDWebImageSVGKitPlugin.h'
34 | s.module_map = 'SDWebImageSVGKitPlugin/Module/SDWebImageSVGKitPlugin.modulemap'
35 |
36 | s.dependency 'SDWebImage/Core', '~> 5.10'
37 | s.dependency 'SVGKit', '~> 3.0'
38 | end
39 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: objective-c
2 | osx_image: xcode11
3 |
4 | addons:
5 | homebrew:
6 | packages:
7 | - carthage
8 | update: true
9 |
10 | env:
11 | global:
12 | - LC_CTYPE=en_US.UTF-8
13 | - LANG=en_US.UTF-8
14 |
15 | addons:
16 | ssh_known_hosts: github.com
17 |
18 | notifications:
19 | email: false
20 |
21 | before_install:
22 | - env
23 | - locale
24 | - gem install cocoapods --no-document --quiet
25 | - gem install xcpretty --no-document --quiet
26 | - pod --version
27 | - pod setup --silent > /dev/null
28 | - pod repo update --silent
29 | - xcpretty --version
30 | - xcodebuild -version
31 | - xcodebuild -showsdks
32 |
33 | script:
34 | - set -o pipefail
35 |
36 | - echo Check if the library described by the podspec can be built
37 | - pod lib lint --allow-warnings
38 |
39 | - echo Build as dynamic frameworks
40 | - carthage update --configuration DEBUG
41 | - xcodebuild build clean -project SDWebImageSVGKitPlugin.xcodeproj -scheme 'SDWebImageSVGKitPlugin iOS' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
42 | - xcodebuild build clean -project SDWebImageSVGKitPlugin.xcodeproj -scheme 'SDWebImageSVGKitPlugin tvOS' -sdk appletvsimulator -configuration Debug | xcpretty -c
43 | - xcodebuild build clean -project SDWebImageSVGKitPlugin.xcodeproj -scheme 'SDWebImageSVGKitPlugin macOS' -sdk macosx -configuration Debug | xcpretty -c
44 |
45 | - echo Build example
46 | - pod install --project-directory=Example
47 | - xcodebuild build -workspace Example/SDWebImageSVGKitPlugin.xcworkspace -scheme 'SDWebImageSVGKitPlugin-Example' -destination 'name=iPhone 8' -configuration Debug | xcpretty -c
48 | - xcodebuild build -workspace Example/SDWebImageSVGKitPlugin.xcworkspace -scheme 'SDWebImageSVGKitPlugin-Example macOS' -destination 'platform=macOS,arch=x86_64' -configuration Debug | xcpretty -c
49 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/SDWebImageSVGKitPlugin-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1.0
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeLeft
39 | UIInterfaceOrientationLandscapeRight
40 |
41 | UISupportedInterfaceOrientations~ipad
42 |
43 | UIInterfaceOrientationPortrait
44 | UIInterfaceOrientationPortraitUpsideDown
45 | UIInterfaceOrientationLandscapeLeft
46 | UIInterfaceOrientationLandscapeRight
47 |
48 | NSAppTransportSecurity
49 |
50 | NSAllowsArbitraryLoads
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/SDAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // SDAppDelegate.m
3 | // SDWebImageSVGKitPlugin
4 | //
5 | // Created by lizhuoli1126@126.com on 11/12/2019.
6 | // Copyright (c) 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | #import "SDAppDelegate.h"
10 |
11 | @implementation SDAppDelegate
12 |
13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14 | {
15 | // Override point for customization after application launch.
16 | return YES;
17 | }
18 |
19 | - (void)applicationWillResignActive:(UIApplication *)application
20 | {
21 | // 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.
22 | // 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.
23 | }
24 |
25 | - (void)applicationDidEnterBackground:(UIApplication *)application
26 | {
27 | // 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.
28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
29 | }
30 |
31 | - (void)applicationWillEnterForeground:(UIApplication *)application
32 | {
33 | // 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.
34 | }
35 |
36 | - (void)applicationDidBecomeActive:(UIApplication *)application
37 | {
38 | // 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.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application
42 | {
43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
44 | }
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Classes/SDWebImageSVGKitDefine.h:
--------------------------------------------------------------------------------
1 | //
2 | // SDWebImageSVGKitDefine.h
3 | // SDWebImageSVGPlugin
4 | //
5 | // Created by DreamPiggy on 2018/10/11.
6 | //
7 |
8 | #if __has_include()
9 | #import
10 | #else
11 | @import SDWebImage;
12 | #endif
13 |
14 | @class SVGKImage;
15 |
16 | #if SD_UIKIT
17 | /**
18 | Adjust `SVGKImage`'s viewPort && viewBox to match the specify `contentMode` of view size.
19 | @note Though this util method can be used outside this framework. For simple SVG image loading, it's recommaned to use `sd_adjustContentMode` property on `SVGKImageView+WebCache`.
20 |
21 | @param image `SVGKImage` instance, should not be nil.
22 | @param contentMode The contentMode to be applied. All possible contentMode are supported.
23 | @param viewSize Target view size, typically specify the `view.bounds.size`.
24 | */
25 | FOUNDATION_EXPORT void SDAdjustSVGContentMode(SVGKImage * __nonnull image, UIViewContentMode contentMode, CGSize viewSize);
26 | #endif
27 |
28 | /**
29 | A CGSize raw value which specify the desired SVG image size during image loading. Because vector image like SVG format, may not contains a fixed size, or you want to get a larger size bitmap representation UIImage. (NSValue)
30 | If you don't provide this value, use viewBox size of SVG for default value;
31 | */
32 | FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSVGKImageSize __attribute__((deprecated("Use the new context option (for WebCache category), or coder option (for SDImageCoder protocol) instead", "SDWebImageContextImageThumbnailPixelSize")));
33 |
34 | /**
35 | A BOOL value which specify the whether SVG image should keep aspect ratio during image loading. Because when you specify image size via `SDWebImageContextSVGKImageSize`, we need to know whether to keep aspect ratio or not when image size aspect ratio is not equal to SVG viewBox size aspect ratio. (NSNumber)
36 | If you don't provide this value, use YES for default value.
37 | */
38 | FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSVGKImagePreserveAspectRatio __attribute__((deprecated("Use the new context option (for WebCache category), or coder option (for SDImageCoder protocol) instead", "SDWebImageContextImagePreserveAspectRatio")));
39 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGKitPlugin iOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
44 |
50 |
51 |
57 |
58 |
59 |
60 |
62 |
63 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGKitPlugin macOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
44 |
50 |
51 |
57 |
58 |
59 |
60 |
62 |
63 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGKitPlugin tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
44 |
50 |
51 |
57 |
58 |
59 |
60 |
62 |
63 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin_Example macOS/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // SDWebImageSVGKitPlugin_Example macOS
4 | //
5 | // Created by 李卓立 on 2019/11/13.
6 | // Copyright © 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import
11 | #import
12 |
13 | @implementation ViewController
14 |
15 | - (void)viewDidLoad {
16 | [super viewDidLoad];
17 |
18 | // Do any additional setup after loading the view.
19 | SDImageSVGKCoder *SVGCoder = [SDImageSVGKCoder sharedCoder];
20 | [[SDImageCodersManager sharedManager] addCoder:SVGCoder];
21 | NSURL *SVGURL = [NSURL URLWithString:@"https://upload.wikimedia.org/wikipedia/commons/1/14/Mahuri.svg"];
22 | NSURL *SVGURL2 = [NSURL URLWithString:@"https://upload.wikimedia.org/wikipedia/commons/6/67/Firefox_Logo%2C_2017.svg"];
23 |
24 | CGSize screenSize = self.view.bounds.size;
25 |
26 | SVGKImageView *imageView1 = [[SVGKFastImageView alloc] initWithSVGKImage:nil];
27 | imageView1.frame = CGRectMake(0, 0, screenSize.width / 2, screenSize.height);
28 |
29 | SVGKImageView *imageView2 = [[SVGKLayeredImageView alloc] initWithSVGKImage:nil];
30 | imageView2.frame = CGRectMake(screenSize.width / 2, 0, screenSize.width / 2, screenSize.height);
31 |
32 | [self.view addSubview:imageView1];
33 | [self.view addSubview:imageView2];
34 |
35 | [imageView1 sd_setImageWithURL:SVGURL placeholderImage:nil options:SDWebImageRetryFailed completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
36 | if (image) {
37 | NSLog(@"SVG load success");
38 | NSData *svgData = [image sd_imageDataAsFormat:SDImageFormatSVG];
39 | NSAssert(svgData.length > 0, @"SVG Data should exist");
40 | }
41 | }];
42 | [imageView2 sd_setImageWithURL:SVGURL2 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextImageThumbnailPixelSize : @(imageView2.bounds.size)} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
43 | if (image) {
44 | NSLog(@"SVG load animation success");
45 | [NSAnimationContext runAnimationGroup:^(NSAnimationContext * _Nonnull context) {
46 | NSAnimationContext *currentContext = [NSAnimationContext currentContext];
47 | currentContext.duration = 2;
48 | imageView2.animator.bounds = CGRectMake(0, 0, screenSize.width / 4, screenSize.height / 2);
49 | } completionHandler:^{
50 | [NSAnimationContext runAnimationGroup:^(NSAnimationContext * _Nonnull context) {
51 | NSAnimationContext *currentContext = [NSAnimationContext currentContext];
52 | currentContext.duration = 2;
53 | imageView2.animator.bounds = CGRectMake(0, 0, screenSize.width / 2, screenSize.height);
54 | } completionHandler:nil];
55 | }];
56 | }
57 | }];
58 | }
59 |
60 |
61 | - (void)setRepresentedObject:(id)representedObject {
62 | [super setRepresentedObject:representedObject];
63 |
64 | // Update the view, if already loaded.
65 | }
66 |
67 |
68 | @end
69 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGKitPlugin-Example macOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
45 |
51 |
52 |
53 |
54 |
60 |
62 |
68 |
69 |
70 |
71 |
73 |
74 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin/SDViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // SDViewController.m
3 | // SDWebImageSVGKitPlugin
4 | //
5 | // Created by lizhuoli1126@126.com on 11/12/2019.
6 | // Copyright (c) 2019 lizhuoli1126@126.com. All rights reserved.
7 | //
8 |
9 | #import "SDViewController.h"
10 | #import
11 | #import
12 |
13 | @interface SDViewController ()
14 |
15 | @end
16 |
17 | @implementation SDViewController
18 |
19 | - (void)viewDidLoad
20 | {
21 | [super viewDidLoad];
22 | // Do any additional setup after loading the view, typically from a nib.
23 |
24 | SDImageSVGKCoder *SVGCoder = [SDImageSVGKCoder sharedCoder];
25 | [[SDImageCodersManager sharedManager] addCoder:SVGCoder];
26 | NSURL *svgURL = [NSURL URLWithString:@"https://upload.wikimedia.org/wikipedia/commons/1/14/Mahuri.svg"];
27 | NSURL *svgURL2 = [NSURL URLWithString:@"https://upload.wikimedia.org/wikipedia/commons/2/2d/Sample_SVG_file%2C_signature.svg"];
28 | NSURL *svgURL3 = [NSURL URLWithString:@"https://simpleicons.org/icons/github.svg"];
29 |
30 | CGSize screenSize = [UIScreen mainScreen].bounds.size;
31 |
32 | // `SVGKLayeredImageView`, best on performance and do actually vector image rendering (translate SVG to CALayer tree).
33 | SVGKImageView *imageView1 = [[SVGKLayeredImageView alloc] initWithSVGKImage:nil];
34 | imageView1.frame = CGRectMake(0, 0, screenSize.width, screenSize.height / 2);
35 | imageView1.sd_adjustContentMode = YES; // make `contentMode` works
36 | imageView1.contentMode = UIViewContentModeScaleAspectFill;
37 | imageView1.clipsToBounds = YES;
38 |
39 | // `SVGKFastImageView`, draw SVG as bitmap dynamically when size changed.
40 | SVGKImageView *imageView2 = [[SVGKFastImageView alloc] initWithSVGKImage:nil];
41 | imageView2.frame = CGRectMake(0, screenSize.height / 2, screenSize.width, screenSize.height / 2);
42 | imageView2.clipsToBounds = YES;
43 |
44 | // `UIImageView`, draw SVG as bitmap image with fixed size, like PNG.
45 | UIImageView *imageView3 = [[UIImageView alloc] initWithFrame:CGRectMake(screenSize.width - 100, screenSize.height - 100, 100, 100)];
46 |
47 | [self.view addSubview:imageView1];
48 | [self.view addSubview:imageView2];
49 | [self.view addSubview:imageView3];
50 |
51 | [imageView1 sd_setImageWithURL:svgURL placeholderImage:nil options:SDWebImageRetryFailed completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
52 | if (image) {
53 | NSLog(@"SVGKLayeredImageView SVG load success");
54 | NSData *svgData = [image sd_imageDataAsFormat:SDImageFormatSVG];
55 | NSAssert(svgData.length > 0, @"SVG Data should exist");
56 | }
57 | }];
58 | [imageView2 sd_setImageWithURL:svgURL2 placeholderImage:nil options:SDWebImageRetryFailed completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
59 | if (image) {
60 | NSLog(@"SVGKFastImageView SVG load success");
61 | }
62 | }];
63 | // For `UIImageView`, you can specify a desired SVG size instead of original SVG viewport (which may be small)
64 | [imageView3 sd_setImageWithURL:svgURL3 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextImageThumbnailPixelSize : @(CGSizeMake(100, 100))} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
65 | if (image) {
66 | NSLog(@"UIImageView SVG load success");
67 | }
68 | }];
69 | }
70 |
71 | - (void)didReceiveMemoryWarning
72 | {
73 | [super didReceiveMemoryWarning];
74 | // Dispose of any resources that can be recreated.
75 | }
76 |
77 |
78 | @end
79 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Classes/SDImageSVGKCoder.m:
--------------------------------------------------------------------------------
1 | //
2 | // SDImageSVGKCoder.m
3 | // SDWebImageSVGPlugin
4 | //
5 | // Created by DreamPiggy on 2018/9/27.
6 | //
7 |
8 | #import "SDImageSVGKCoder.h"
9 | #import "SDSVGKImage.h"
10 | #import "SDWebImageSVGKitDefine.h"
11 | #if __has_include()
12 | #import
13 | #else
14 | @import SVGKit;
15 | #endif
16 | #define kSVGTagEnd @""
17 |
18 | @implementation SDImageSVGKCoder
19 |
20 | + (SDImageSVGKCoder *)sharedCoder {
21 | static dispatch_once_t onceToken;
22 | static SDImageSVGKCoder *coder;
23 | dispatch_once(&onceToken, ^{
24 | coder = [[SDImageSVGKCoder alloc] init];
25 | });
26 | return coder;
27 | }
28 |
29 | #pragma mark - Decode
30 |
31 | - (BOOL)canDecodeFromData:(NSData *)data {
32 | return [self.class isSVGFormatForData:data];
33 | }
34 |
35 | - (UIImage *)decodedImageWithData:(NSData *)data options:(SDImageCoderOptions *)options {
36 | if (!data) {
37 | return nil;
38 | }
39 | // Parse SVG
40 | SVGKImage *svgImage = [[SVGKImage alloc] initWithData:data];
41 | if (!svgImage) {
42 | return nil;
43 | }
44 |
45 | CGSize imageSize = CGSizeZero;
46 | BOOL preserveAspectRatio = YES;
47 |
48 | #pragma clang diagnostic push
49 | #pragma clang diagnostic ignored "-Wdeprecated-declarations"
50 | // Parse args
51 | SDWebImageContext *context = options[SDImageCoderWebImageContext];
52 | if (context[SDWebImageContextSVGKImageSize]) {
53 | NSValue *sizeValue = context[SDWebImageContextSVGKImageSize];
54 | #if SD_UIKIT
55 | imageSize = sizeValue.CGSizeValue;
56 | #else
57 | imageSize = sizeValue.sizeValue;
58 | #endif
59 | } else if (options[SDImageCoderDecodeThumbnailPixelSize]) {
60 | NSValue *sizeValue = options[SDImageCoderDecodeThumbnailPixelSize];
61 | #if SD_UIKIT
62 | imageSize = sizeValue.CGSizeValue;
63 | #else
64 | imageSize = sizeValue.sizeValue;
65 | #endif
66 | }
67 | if (context[SDWebImageContextSVGKImagePreserveAspectRatio]) {
68 | preserveAspectRatio = [context[SDWebImageContextSVGKImagePreserveAspectRatio] boolValue];
69 | } else if (options[SDImageCoderDecodePreserveAspectRatio]) {
70 | preserveAspectRatio = [options[SDImageCoderDecodePreserveAspectRatio] boolValue];
71 | }
72 | #pragma clang diagnostic pop
73 |
74 | if (!CGSizeEqualToSize(imageSize, CGSizeZero)) {
75 | if (preserveAspectRatio) {
76 | [svgImage scaleToFitInside:imageSize];
77 | } else {
78 | svgImage.size = imageSize;
79 | }
80 | }
81 |
82 | UIImage *image = svgImage.UIImage;
83 | if (!image) {
84 | return nil;
85 | }
86 |
87 | // SVG is vector image, so no need scale factor
88 | image.sd_imageFormat = SDImageFormatSVG;
89 |
90 | return image;
91 | }
92 |
93 | #pragma mark - Encode
94 |
95 | - (BOOL)canEncodeToFormat:(SDImageFormat)format {
96 | return format == SDImageFormatSVG;
97 | }
98 |
99 | - (NSData *)encodedDataWithImage:(UIImage *)image format:(SDImageFormat)format options:(SDImageCoderOptions *)options {
100 | // Only support SVGKImage wrapper
101 | if (![image isKindOfClass:SDSVGKImage.class]) {
102 | return nil;
103 | }
104 | SVGKImage *svgImage = ((SDSVGKImage *)image).SVGKImage;
105 | if (!svgImage) {
106 | return nil;
107 | }
108 | SVGKSource *source = svgImage.source;
109 | // Should be NSData type source
110 | if (![source isKindOfClass:SVGKSourceNSData.class]) {
111 | return nil;
112 | }
113 | return ((SVGKSourceNSData *)source).rawData;
114 | }
115 |
116 | #pragma mark - Helper
117 |
118 | + (BOOL)isSVGFormatForData:(NSData *)data {
119 | if (!data) {
120 | return NO;
121 | }
122 | if (data.length <= 100) {
123 | return NO;
124 | }
125 | // Check end with SVG tag
126 | NSString *testString = [[NSString alloc] initWithData:[data subdataWithRange:NSMakeRange(data.length - 100, 100)] encoding:NSASCIIStringEncoding];
127 | if (![testString containsString:kSVGTagEnd]) {
128 | return NO;
129 | }
130 | return YES;
131 | }
132 |
133 | @end
134 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Classes/SDSVGKImage.m:
--------------------------------------------------------------------------------
1 | //
2 | // SDSVGKImage.m
3 | // SDWebImageSVGPlugin
4 | //
5 | // Created by DreamPiggy on 2018/10/10.
6 | //
7 |
8 | #import "SDSVGKImage.h"
9 | #import "SDWebImageSVGKitDefine.h"
10 |
11 | @interface SDSVGKImage ()
12 |
13 | @property (nonatomic, strong, nullable) SVGKImage *SVGKImage;
14 |
15 | @end
16 |
17 | @implementation SDSVGKImage
18 |
19 | - (instancetype)initWithSVGKImage:(SVGKImage *)image {
20 | NSParameterAssert(image);
21 | UIImage *posterImage = image.UIImage;
22 | #if SD_UIKIT
23 | UIImageOrientation imageOrientation = posterImage.imageOrientation;
24 | #else
25 | CGImagePropertyOrientation imageOrientation = kCGImagePropertyOrientationUp;
26 | #endif
27 | self = [super initWithCGImage:posterImage.CGImage scale:posterImage.scale orientation:imageOrientation];
28 | if (self) {
29 | self.SVGKImage = image;
30 | }
31 | return self;
32 | }
33 |
34 | + (instancetype)imageWithContentsOfFile:(NSString *)path {
35 | return [[self alloc] initWithContentsOfFile:path];
36 | }
37 |
38 | + (instancetype)imageWithData:(NSData *)data {
39 | return [[self alloc] initWithData:data];
40 | }
41 |
42 | + (instancetype)imageWithData:(NSData *)data scale:(CGFloat)scale {
43 | return [[self alloc] initWithData:data scale:scale];
44 | }
45 |
46 | - (instancetype)initWithData:(NSData *)data {
47 | return [self initWithData:data scale:1];
48 | }
49 |
50 | - (instancetype)initWithContentsOfFile:(NSString *)path {
51 | NSData *data = [NSData dataWithContentsOfFile:path];
52 | return [self initWithData:data];
53 | }
54 |
55 | - (instancetype)initWithData:(NSData *)data scale:(CGFloat)scale {
56 | return [self initWithData:data scale:scale options:nil];
57 | }
58 |
59 | - (instancetype)initWithData:(NSData *)data scale:(CGFloat)scale options:(SDImageCoderOptions *)options {
60 | SVGKImage *svgImage = [[SVGKImage alloc] initWithData:data];
61 | if (!svgImage) {
62 | return nil;
63 | }
64 | CGSize imageSize = CGSizeZero;
65 |
66 | // Check specified image size
67 | SDWebImageContext *context = options[SDImageCoderWebImageContext];
68 | #pragma clang diagnostic push
69 | #pragma clang diagnostic ignored "-Wdeprecated-declarations"
70 | if (context[SDWebImageContextSVGKImageSize]) {
71 | NSValue *sizeValue = context[SDWebImageContextSVGKImageSize];
72 | #if SD_UIKIT
73 | imageSize = sizeValue.CGSizeValue;
74 | #else
75 | imageSize = sizeValue.sizeValue;
76 | #endif
77 | } else if (options[SDImageCoderDecodeThumbnailPixelSize]) {
78 | NSValue *sizeValue = options[SDImageCoderDecodeThumbnailPixelSize];
79 | #if SD_UIKIT
80 | imageSize = sizeValue.CGSizeValue;
81 | #else
82 | imageSize = sizeValue.sizeValue;
83 | #endif
84 | }
85 | if (!CGSizeEqualToSize(imageSize, CGSizeZero)) {
86 | svgImage.size = imageSize;
87 | }
88 | return [self initWithSVGKImage:svgImage];
89 | }
90 |
91 | - (instancetype)initWithAnimatedCoder:(id)animatedCoder scale:(CGFloat)scale {
92 | // Does not support progressive load for SVG images at all
93 | return nil;
94 | }
95 |
96 | #pragma mark - SDAnimatedImageProvider
97 |
98 | - (nullable NSData *)animatedImageData {
99 | return nil;
100 | }
101 |
102 | - (NSTimeInterval)animatedImageDurationAtIndex:(NSUInteger)index {
103 | return 0;
104 | }
105 |
106 | - (nullable UIImage *)animatedImageFrameAtIndex:(NSUInteger)index {
107 | return nil;
108 | }
109 |
110 | - (NSUInteger)animatedImageFrameCount {
111 | return 0;
112 | }
113 |
114 | - (NSUInteger)animatedImageLoopCount {
115 | return 0;
116 | }
117 |
118 | @end
119 |
120 | @implementation SDSVGKImage (Metadata)
121 |
122 | - (BOOL)sd_isAnimated {
123 | return NO;
124 | }
125 |
126 | - (NSUInteger)sd_imageLoopCount {
127 | return self.animatedImageLoopCount;
128 | }
129 |
130 | - (void)setSd_imageLoopCount:(NSUInteger)sd_imageLoopCount {
131 | return;
132 | }
133 |
134 | - (SDImageFormat)sd_imageFormat {
135 | return SDImageFormatSVG;
136 | }
137 |
138 | - (void)setSd_imageFormat:(SDImageFormat)sd_imageFormat {
139 | return;
140 | }
141 |
142 | - (BOOL)sd_isVector {
143 | return YES;
144 | }
145 |
146 | @end
147 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGKitPlugin-Example.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
53 |
54 |
64 |
66 |
72 |
73 |
74 |
75 |
76 |
77 |
83 |
85 |
91 |
92 |
93 |
94 |
96 |
97 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Classes/SVGKImageView+WebCache.m:
--------------------------------------------------------------------------------
1 | //
2 | // SVGKImageView+WebCache.m
3 | // SDWebImageSVGPlugin
4 | //
5 | // Created by DreamPiggy on 2018/10/10.
6 | //
7 |
8 | #import "SVGKImageView+WebCache.h"
9 | #import "SDSVGKImage.h"
10 | #import
11 |
12 | @implementation SVGKImageView (WebCache)
13 |
14 | - (void)setSd_adjustContentMode:(BOOL)sd_adjustContentMode {
15 | objc_setAssociatedObject(self, @selector(sd_adjustContentMode), @(sd_adjustContentMode), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
16 | }
17 |
18 | - (BOOL)sd_adjustContentMode {
19 | NSNumber *value = objc_getAssociatedObject(self, @selector(sd_adjustContentMode));
20 | return value.boolValue;
21 | }
22 |
23 | - (void)sd_setImageWithURL:(nullable NSURL *)url {
24 | [self sd_setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:nil];
25 | }
26 |
27 | - (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder {
28 | [self sd_setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:nil];
29 | }
30 |
31 | - (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options {
32 | [self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:nil];
33 | }
34 |
35 | - (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options context:(nullable SDWebImageContext *)context {
36 | [self sd_setImageWithURL:url placeholderImage:placeholder options:options context:context progress:nil completed:nil];
37 | }
38 |
39 | - (void)sd_setImageWithURL:(nullable NSURL *)url completed:(nullable SDExternalCompletionBlock)completedBlock {
40 | [self sd_setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:completedBlock];
41 | }
42 |
43 | - (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder completed:(nullable SDExternalCompletionBlock)completedBlock {
44 | [self sd_setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:completedBlock];
45 | }
46 |
47 | - (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options completed:(nullable SDExternalCompletionBlock)completedBlock {
48 | [self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:completedBlock];
49 | }
50 |
51 | - (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options progress:(nullable SDImageLoaderProgressBlock)progressBlock completed:(nullable SDExternalCompletionBlock)completedBlock {
52 | [self sd_setImageWithURL:url placeholderImage:placeholder options:options context:nil progress:progressBlock completed:completedBlock];
53 | }
54 |
55 | - (void)sd_setImageWithURL:(nullable NSURL *)url
56 | placeholderImage:(nullable UIImage *)placeholder
57 | options:(SDWebImageOptions)options
58 | context:(nullable SDWebImageContext *)context
59 | progress:(nullable SDImageLoaderProgressBlock)progressBlock
60 | completed:(nullable SDExternalCompletionBlock)completedBlock {
61 | Class imageClass = [SDSVGKImage class];
62 | SDWebImageMutableContext *mutableContext;
63 | if (context) {
64 | mutableContext = [context mutableCopy];
65 | } else {
66 | mutableContext = [NSMutableDictionary dictionary];
67 | }
68 | mutableContext[SDWebImageContextAnimatedImageClass] = imageClass;
69 | __weak typeof(self)weakSelf = self;
70 | [self sd_internalSetImageWithURL:url
71 | placeholderImage:placeholder
72 | options:options
73 | context:mutableContext
74 | setImageBlock:^(UIImage * _Nullable image, NSData * _Nullable imageData, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
75 | __strong typeof(weakSelf)strongSelf = weakSelf;
76 | if (!strongSelf) {
77 | return;
78 | }
79 | SVGKImage *svgImage;
80 | if ([image isKindOfClass:[SDSVGKImage class]]) {
81 | svgImage = ((SDSVGKImage *)image).SVGKImage;
82 | }
83 | if (svgImage) {
84 | #if SD_UIKIT
85 | if (self.sd_adjustContentMode) {
86 | SDAdjustSVGContentMode(svgImage, strongSelf.contentMode, strongSelf.bounds.size);
87 | }
88 | #endif
89 | strongSelf.image = svgImage;
90 | } else {
91 | strongSelf.image = nil;
92 | }
93 | }
94 | progress:progressBlock
95 | completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
96 | if (completedBlock) {
97 | completedBlock(image, error, cacheType, imageURL);
98 | }
99 | }];
100 | }
101 |
102 | @end
103 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Classes/SDWebImageSVGKitDefine.m:
--------------------------------------------------------------------------------
1 | //
2 | // SDWebImageSVGKitDefine.m
3 | // SDWebImageSVGPlugin
4 | //
5 | // Created by DreamPiggy on 2018/10/11.
6 | //
7 |
8 | #import "SDWebImageSVGKitDefine.h"
9 | #if __has_include()
10 | #import
11 | #else
12 | @import SVGKit;
13 | #endif
14 | #if SD_UIKIT
15 | void SDAdjustSVGContentMode(SVGKImage * svgImage, UIViewContentMode contentMode, CGSize viewSize) {
16 | NSCParameterAssert(svgImage);
17 | if (!svgImage.hasSize) {
18 | // `SVGKImage` does not has size, specify the content size, earily return
19 | svgImage.size = viewSize;
20 | return;
21 | }
22 | CGSize imageSize = svgImage.size;
23 | if (imageSize.height == 0 || viewSize.height == 0) {
24 | return;
25 | }
26 | CGFloat wScale = viewSize.width / imageSize.width;
27 | CGFloat hScale = viewSize.height / imageSize.height;
28 | CGFloat imageAspect = imageSize.width / imageSize.height;
29 | CGFloat viewAspect = viewSize.width / viewSize.height;
30 | CGFloat xPosition;
31 | CGFloat yPosition;
32 |
33 | // Geometry calculation
34 | switch (contentMode) {
35 | case UIViewContentModeScaleToFill: {
36 | svgImage.size = viewSize;
37 | }
38 | break;
39 | case UIViewContentModeScaleAspectFit: {
40 | CGFloat scale;
41 | if (imageAspect > viewAspect) {
42 | // scale width
43 | scale = wScale;
44 | } else {
45 | // scale height
46 | scale = hScale;
47 | }
48 | CGSize targetSize = CGSizeApplyAffineTransform(imageSize, CGAffineTransformMakeScale(scale, scale));
49 | if (imageAspect > viewAspect) {
50 | // need center y as well
51 | xPosition = 0;
52 | yPosition = ABS(targetSize.height - viewSize.height) / 2;
53 | } else {
54 | // need center x as well
55 | xPosition = ABS(targetSize.width - viewSize.width) / 2;
56 | yPosition = 0;
57 | }
58 | svgImage.size = targetSize;
59 | svgImage.DOMTree.viewport = SVGRectMake(xPosition, yPosition, targetSize.width, targetSize.height);
60 | // masksToBounds to clip the sublayer which beyond the viewport to match `UIImageView` behavior
61 | svgImage.CALayerTree.masksToBounds = YES;
62 | }
63 | break;
64 | case UIViewContentModeScaleAspectFill: {
65 | CGFloat scale;
66 | if (imageAspect < viewAspect) {
67 | // scale width
68 | scale = wScale;
69 | } else {
70 | // scale height
71 | scale = hScale;
72 | }
73 | CGSize targetSize = CGSizeApplyAffineTransform(imageSize, CGAffineTransformMakeScale(scale, scale));
74 | if (imageAspect < viewAspect) {
75 | // need center y as well
76 | xPosition = 0;
77 | yPosition = ABS(targetSize.height - viewSize.height) / 2;
78 | } else {
79 | // need center x as well
80 | xPosition = ABS(targetSize.width - viewSize.width) / 2;
81 | yPosition = 0;
82 | }
83 | svgImage.size = targetSize;
84 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
85 | }
86 | break;
87 | case UIViewContentModeTop: {
88 | xPosition = (imageSize.width - viewSize.width) / 2;
89 | yPosition = 0;
90 | svgImage.size = imageSize;
91 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
92 | }
93 | break;
94 | case UIViewContentModeTopLeft: {
95 | xPosition = 0;
96 | yPosition = 0;
97 | svgImage.size = imageSize;
98 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
99 | }
100 | break;
101 | case UIViewContentModeTopRight: {
102 | xPosition = imageSize.width - viewSize.width;
103 | yPosition = 0;
104 | svgImage.size = imageSize;
105 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
106 | }
107 | break;
108 | case UIViewContentModeCenter: {
109 | xPosition = (imageSize.width - viewSize.width) / 2;
110 | yPosition = (imageSize.height - viewSize.height) / 2;
111 | svgImage.size = imageSize;
112 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
113 | }
114 | break;
115 | case UIViewContentModeLeft: {
116 | xPosition = 0;
117 | yPosition = (imageSize.height - viewSize.height) / 2;
118 | svgImage.size = imageSize;
119 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
120 | }
121 | break;
122 | case UIViewContentModeRight: {
123 | xPosition = imageSize.width - viewSize.width;
124 | yPosition = (imageSize.height - viewSize.height) / 2;
125 | svgImage.size = imageSize;
126 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
127 | }
128 | break;
129 | case UIViewContentModeBottom: {
130 | xPosition = (imageSize.width - viewSize.width) / 2;
131 | yPosition = imageSize.height - viewSize.height;
132 | svgImage.size = imageSize;
133 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
134 | }
135 | break;
136 | case UIViewContentModeBottomLeft: {
137 | xPosition = 0;
138 | yPosition = imageSize.height - viewSize.height;
139 | svgImage.size = imageSize;
140 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
141 | }
142 | break;
143 | case UIViewContentModeBottomRight: {
144 | xPosition = imageSize.width - viewSize.width;
145 | yPosition = imageSize.height - viewSize.height;
146 | svgImage.size = imageSize;
147 | svgImage.DOMTree.viewBox = SVGRectMake(xPosition, yPosition, imageSize.width, imageSize.height);
148 | }
149 | break;
150 | case UIViewContentModeRedraw: {
151 | svgImage.CALayerTree.needsDisplayOnBoundsChange = YES;
152 | }
153 | break;
154 | }
155 | }
156 | #endif
157 |
158 | SDWebImageContextOption _Nonnull const SDWebImageContextSVGKImageSize = @"svgkImageSize";
159 | SDWebImageContextOption _Nonnull const SDWebImageContextSVGKImagePreserveAspectRatio = @"svgkImagePreserveAspectRatio";
160 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SDWebImageSVGKitPlugin
2 |
3 | [](https://travis-ci.org/SDWebImage/SDWebImageSVGKitPlugin)
4 | [](https://cocoapods.org/pods/SDWebImageSVGKitPlugin)
5 | [](https://cocoapods.org/pods/SDWebImageSVGKitPlugin)
6 | [](https://cocoapods.org/pods/SDWebImageSVGKitPlugin)
7 | [](https://github.com/SDWebImage/SDWebImageSVGKitPlugin)
8 |
9 | ## Background
10 |
11 | Currently SDWebImage org provide 3 kinds of SVG Coder Plugin support, here is comparison:
12 |
13 | | Plugin Name| Vector Image | Bitmap Image | Platform | Compatibility | Dependency |
14 | |---|---|---|---|---|---|
15 | | [SVGNativeCoder](https://github.com/SDWebImage/SDWebImageSVGNativeCoder) | NO | YES | iOS 9+ | Best and W3C standard | adobe/svg-native-viewer |
16 | | [SVGCoder](https://github.com/SDWebImage/SDWebImageSVGCoder) | YES | YES | iOS 13+ | OK but buggy on some SVG | Apple CoreSVG(Private) |
17 | | [SVGKitPlugin](https://github.com/SDWebImage/SDWebImageSVGKitPlugin) | YES | NO | iOS 9+ | Worst, no longer maintain | SVGKit/SVGKit
18 |
19 | ## What's for
20 | SDWebImageSVGKitPlugin is a SVG coder plugin for [SDWebImage](https://github.com/rs/SDWebImage/) framework, which provide the image loading support for [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics) using [SVGKit](https://github.com/SVGKit/SVGKit) SVG engine.
21 |
22 | Note: iOS 13+/macOS 10.15+ supports native SVG rendering (called [Symbol Image](https://developer.apple.com/documentation/uikit/uiimage/configuring_and_displaying_symbol_images_in_your_ui/)), with system framework to load SVG. Check [SDWebImageSVGCoder](https://github.com/SDWebImage/SDWebImageSVGCoder) for more information.
23 |
24 | ## Example
25 |
26 | To run the example project, clone the repo, and run `pod install` from the Example directory first.
27 |
28 | You can modify the code or use some other SVG files to check the compatibility.
29 |
30 | ## Requirements
31 |
32 | + iOS 9+
33 | + tvOS 9+
34 | + macOS 10.11+
35 | + Xcode 11+
36 |
37 | ## Installation
38 |
39 | #### CocoaPods
40 |
41 | SDWebImageSVGKitPlugin is available through [CocoaPods](https://cocoapods.org). To install
42 | it, simply add the following line to your Podfile:
43 |
44 | ```ruby
45 | pod 'SDWebImageSVGKitPlugin'
46 | ```
47 |
48 | #### Swift Package Manager (Xcode 11+)
49 |
50 | SDWebImagePhotosPlugin is available through [Swift Package Manager](https://swift.org/package-manager).
51 |
52 | ```swift
53 | let package = Package(
54 | dependencies: [
55 | .package(url: "https://github.com/SDWebImage/SDWebImageSVGKitPlugin.git", from: "1.4")
56 | ]
57 | )
58 | ```
59 |
60 | #### Carthage
61 |
62 | SDWebImageSVGKitPlugin is available through [Carthage](https://github.com/Carthage/Carthage).
63 |
64 | ```
65 | github "SDWebImage/SDWebImageSVGKitPlugin"
66 | ```
67 |
68 | ## Usage
69 |
70 | ### Use UIImageView (render SVG as bitmap image)
71 |
72 | To use SVG coder, you should firstly add the `SDImageSVGKCoder` to the coders manager. Then you can call the View Category method to start load SVG images.
73 |
74 | Because SVG is a [vector image](https://en.wikipedia.org/wiki/Vector_graphics) format, which means it does not have a fixed bitmap size. However, `UIImage` or `CGImage` are all [bitmap image](https://en.wikipedia.org/wiki/Raster_graphics). For `UIImageView`, we will only parse SVG with a fixed image size (from the SVG viewPort information). But we also support you to specify a desired size during image loading using `SDWebImageContextThumbnailPixelSize` context option. And you can specify whether or not to keep aspect ratio during scale using `SDWebImageContextImagePreserveAspectRatio` context option.
75 |
76 | + Objective-C
77 |
78 | ```objectivec
79 | SDImageSVGKCoder *svgCoder = [SDImageSVGKCoder sharedCoder];
80 | [[SDImageCodersManager sharedManager] addCoder:svgCoder];
81 | UIImageView *imageView;
82 | // this arg is optional, if don't provide, use the viewport size instead
83 | CGSize svgImageSize = CGSizeMake(100, 100);
84 | [imageView sd_setImageWithURL:url placeholderImage:nil options:0 context:@{SDWebImageContextThumbnailPixelSize : @(svgImageSize)];
85 | ```
86 |
87 | + Swift
88 |
89 | ```swift
90 | let svgCoder = SDImageSVGKCoder.shared
91 | SDImageCodersManager.shared.addCoder(svgCoder)
92 | let imageView: UIImageView
93 | imageView.sd_setImage(with: url)
94 | // this arg is optional, if don't provide, use the viewport size instead
95 | let svgImageSize = CGSize(width: 100, height: 100)
96 | imageView.sd_setImage(with: url, placeholderImage: nil, options: [], context: [.imageThumbnailPixelSize : svgImageSize])
97 | ```
98 |
99 | ### Use SVGKImageView (render SVG as vector image)
100 |
101 | [SVGKit](https://github.com/SVGKit/SVGKit) also provide some built-in image view class for vector image loading (scale to any size without losing detail). The `SVGKLayeredImageView` && `SVGKFastImageView` are the subclass of `SVGKImageView` base class. We supports these image view class as well. You can just use the same API like normal `UIImageView`.
102 |
103 | For the documentation about `SVGKLayeredImageView`, `SVGKFastImageView` or `SVGKImageView`, check [SVGKit](https://github.com/SVGKit/SVGKit) repo for more information.
104 |
105 | **Note**: If you only use these image view class and don't use SVG on `UIImageView`, you don't need to register the SVG coder to coders manager. These image view loading was using the [Custom Image Class](https://github.com/rs/SDWebImage/wiki/Advanced-Usage#customization) feature of SDWebImage.
106 |
107 | **Attention**: These built-in image view class does not works well on `UIView.contentMode` property, you need to re-scale the layer tree after image was loaded. We provide a simple out-of-box solution to support it. Set the `sd_adjustContentMode` property to `YES` then all things done.
108 |
109 | + Objective-C
110 |
111 | ```objectivec
112 | SVGKImageView *imageView; // can be either `SVGKLayeredImageView` or `SVGKFastImageView`
113 | imageView.contentMode = UIViewContentModeScaleAspectFill;
114 | imageView.sd_adjustContentMode = YES; // make `contentMode` works
115 | [imageView sd_setImageWithURL:url];
116 | ```
117 |
118 | + Swift:
119 |
120 | ```swift
121 | let imageView: SVGKImageView // can be either `SVGKLayeredImageView` or `SVGKFastImageView`
122 | imageView.contentMode = .aspectFill
123 | imageView.sd_adjustContentMode = true // make `contentMode` works
124 | imageView.sd_setImage(with: url)
125 | ```
126 |
127 | ## Export SVG data
128 |
129 | `SDWebImageSVGKitPlugin` provide an easy way to export the SVG image generated from framework, to the original SVG data.
130 |
131 | + Objective-C
132 |
133 | ```objectivec
134 | UIImage *image; // Image generated from SDWebImage framework, actually a `SDSVGKImage` instance.
135 | NSData *imageData = [image sd_imageDataAsFormat:SDImageFormatSVG];
136 | ```
137 |
138 | + Swift
139 |
140 | ```swift
141 | let image: UIImage // Image generated from SDWebImage framework, actually a `SDSVGKImage` instance.
142 | let imageData = image.sd_imageData(as: .SVG)
143 | ```
144 |
145 | ## Screenshot
146 |
147 |
148 |
149 |
150 | These SVG images are from [wikimedia](https://commons.wikimedia.org/wiki/Main_Page), you can try the demo with your own SVG image as well.
151 |
152 | ## Author
153 |
154 | DreamPiggy
155 |
156 | ## License
157 |
158 | SDWebImageSVGKitPlugin is available under the MIT license. See the LICENSE file for more info.
159 |
160 |
161 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin/Classes/SVGKImageView+WebCache.h:
--------------------------------------------------------------------------------
1 | //
2 | // SVGKImageView+WebCache.h
3 | // SDWebImageSVGPlugin
4 | //
5 | // Created by DreamPiggy on 2018/10/10.
6 | //
7 |
8 | #if __has_include()
9 | #import
10 | #else
11 | @import SVGKit;
12 | #endif
13 | #import "SDWebImageSVGKitDefine.h"
14 |
15 | NS_ASSUME_NONNULL_BEGIN
16 |
17 | @interface SVGKImageView (WebCache)
18 |
19 | /**
20 | * Unlike `UIView`, `SVGKImageView`'s subclass does not follows `UIView.contentMode` property, the position of SVG vector image is controled by `SVGKImage` instance with SVG's viewport && viewbox information. You can adjust it after image was loading, however it's not so convenient.
21 | * So we provide a simple solution. If you want the same behavior like UIImageView to use `contentMode` property to position SVG images, set this value to YES and we'll resize the SVG image to correspond `contentMode` of `SVGKImageView` during image loading.
22 | */
23 | @property (nonatomic, assign) BOOL sd_adjustContentMode API_UNAVAILABLE(macos);
24 |
25 | /**
26 | * Set the imageView `image` with an `url`.
27 | *
28 | * The download is asynchronous and cached.
29 | *
30 | * @param url The url for the image.
31 | */
32 | - (void)sd_setImageWithURL:(nullable NSURL *)url NS_REFINED_FOR_SWIFT;
33 |
34 | /**
35 | * Set the imageView `image` with an `url` and a placeholder.
36 | *
37 | * The download is asynchronous and cached.
38 | *
39 | * @param url The url for the image.
40 | * @param placeholder The image to be set initially, until the image request finishes.
41 | * @see sd_setImageWithURL:placeholderImage:options:
42 | */
43 | - (void)sd_setImageWithURL:(nullable NSURL *)url
44 | placeholderImage:(nullable UIImage *)placeholder NS_REFINED_FOR_SWIFT;
45 |
46 | /**
47 | * Set the imageView `image` with an `url`, placeholder and custom options.
48 | *
49 | * The download is asynchronous and cached.
50 | *
51 | * @param url The url for the image.
52 | * @param placeholder The image to be set initially, until the image request finishes.
53 | * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
54 | */
55 | - (void)sd_setImageWithURL:(nullable NSURL *)url
56 | placeholderImage:(nullable UIImage *)placeholder
57 | options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT;
58 |
59 | /**
60 | * Set the imageView `image` with an `url`, placeholder, custom options and context.
61 | *
62 | * The download is asynchronous and cached.
63 | *
64 | * @param url The url for the image.
65 | * @param placeholder The image to be set initially, until the image request finishes.
66 | * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
67 | * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold.
68 | */
69 | - (void)sd_setImageWithURL:(nullable NSURL *)url
70 | placeholderImage:(nullable UIImage *)placeholder
71 | options:(SDWebImageOptions)options
72 | context:(nullable SDWebImageContext *)context;
73 |
74 | /**
75 | * Set the imageView `image` with an `url`.
76 | *
77 | * The download is asynchronous and cached.
78 | *
79 | * @param url The url for the image.
80 | * @param completedBlock A block called when operation has been completed. This block has no return value
81 | * and takes the requested UIImage as first parameter. In case of error the image parameter
82 | * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
83 | * indicating if the image was retrieved from the local cache or from the network.
84 | * The fourth parameter is the original image url.
85 | */
86 | - (void)sd_setImageWithURL:(nullable NSURL *)url
87 | completed:(nullable SDExternalCompletionBlock)completedBlock;
88 |
89 | /**
90 | * Set the imageView `image` with an `url`, placeholder.
91 | *
92 | * The download is asynchronous and cached.
93 | *
94 | * @param url The url for the image.
95 | * @param placeholder The image to be set initially, until the image request finishes.
96 | * @param completedBlock A block called when operation has been completed. This block has no return value
97 | * and takes the requested UIImage as first parameter. In case of error the image parameter
98 | * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
99 | * indicating if the image was retrieved from the local cache or from the network.
100 | * The fourth parameter is the original image url.
101 | */
102 | - (void)sd_setImageWithURL:(nullable NSURL *)url
103 | placeholderImage:(nullable UIImage *)placeholder
104 | completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT;
105 |
106 | /**
107 | * Set the imageView `image` with an `url`, placeholder and custom options.
108 | *
109 | * The download is asynchronous and cached.
110 | *
111 | * @param url The url for the image.
112 | * @param placeholder The image to be set initially, until the image request finishes.
113 | * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
114 | * @param completedBlock A block called when operation has been completed. This block has no return value
115 | * and takes the requested UIImage as first parameter. In case of error the image parameter
116 | * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
117 | * indicating if the image was retrieved from the local cache or from the network.
118 | * The fourth parameter is the original image url.
119 | */
120 | - (void)sd_setImageWithURL:(nullable NSURL *)url
121 | placeholderImage:(nullable UIImage *)placeholder
122 | options:(SDWebImageOptions)options
123 | completed:(nullable SDExternalCompletionBlock)completedBlock;
124 |
125 | /**
126 | * Set the imageView `image` with an `url`, placeholder and custom options.
127 | *
128 | * The download is asynchronous and cached.
129 | *
130 | * @param url The url for the image.
131 | * @param placeholder The image to be set initially, until the image request finishes.
132 | * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
133 | * @param progressBlock A block called while image is downloading
134 | * @note the progress block is executed on a background queue
135 | * @param completedBlock A block called when operation has been completed. This block has no return value
136 | * and takes the requested UIImage as first parameter. In case of error the image parameter
137 | * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
138 | * indicating if the image was retrieved from the local cache or from the network.
139 | * The fourth parameter is the original image url.
140 | */
141 | - (void)sd_setImageWithURL:(nullable NSURL *)url
142 | placeholderImage:(nullable UIImage *)placeholder
143 | options:(SDWebImageOptions)options
144 | progress:(nullable SDImageLoaderProgressBlock)progressBlock
145 | completed:(nullable SDExternalCompletionBlock)completedBlock;
146 |
147 | /**
148 | * Set the imageView `image` with an `url`, placeholder, custom options and context.
149 | *
150 | * The download is asynchronous and cached.
151 | *
152 | * @param url The url for the image.
153 | * @param placeholder The image to be set initially, until the image request finishes.
154 | * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
155 | * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold.
156 | * @param progressBlock A block called while image is downloading
157 | * @note the progress block is executed on a background queue
158 | * @param completedBlock A block called when operation has been completed. This block has no return value
159 | * and takes the requested UIImage as first parameter. In case of error the image parameter
160 | * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
161 | * indicating if the image was retrieved from the local cache or from the network.
162 | * The fourth parameter is the original image url.
163 | */
164 | - (void)sd_setImageWithURL:(nullable NSURL *)url
165 | placeholderImage:(nullable UIImage *)placeholder
166 | options:(SDWebImageOptions)options
167 | context:(nullable SDWebImageContext *)context
168 | progress:(nullable SDImageLoaderProgressBlock)progressBlock
169 | completed:(nullable SDExternalCompletionBlock)completedBlock;
170 |
171 | @end
172 |
173 | NS_ASSUME_NONNULL_END
174 |
--------------------------------------------------------------------------------
/SDWebImageSVGKitPlugin.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 3212D8A4237BE8A500F6C7DA /* SDSVGKImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D895237BE8A500F6C7DA /* SDSVGKImage.h */; settings = {ATTRIBUTES = (Public, ); }; };
11 | 3212D8A6237BE8A500F6C7DA /* SVGKImageView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D897237BE8A500F6C7DA /* SVGKImageView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; };
12 | 3212D8A7237BE8A500F6C7DA /* SDWebImageSVGKitDefine.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D898237BE8A500F6C7DA /* SDWebImageSVGKitDefine.m */; };
13 | 3212D8A8237BE8A500F6C7DA /* SDImageSVGKCoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D899237BE8A500F6C7DA /* SDImageSVGKCoder.m */; };
14 | 3212D8A9237BE8A500F6C7DA /* SDSVGKImage.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D89A237BE8A500F6C7DA /* SDSVGKImage.m */; };
15 | 3212D8AA237BE8A500F6C7DA /* SDImageSVGKCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89B237BE8A500F6C7DA /* SDImageSVGKCoder.h */; settings = {ATTRIBUTES = (Public, ); }; };
16 | 3212D8AB237BE8A500F6C7DA /* SDWebImageSVGKitDefine.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89C237BE8A500F6C7DA /* SDWebImageSVGKitDefine.h */; settings = {ATTRIBUTES = (Public, ); }; };
17 | 3212D8AC237BE8A500F6C7DA /* SVGKImageView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D89D237BE8A500F6C7DA /* SVGKImageView+WebCache.m */; };
18 | 3212D8AD237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89F237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
19 | 3212D8CA237BEE0600F6C7DA /* SDImageSVGKCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89B237BE8A500F6C7DA /* SDImageSVGKCoder.h */; settings = {ATTRIBUTES = (Public, ); }; };
20 | 3212D8CB237BEE0600F6C7DA /* SDImageSVGKCoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D899237BE8A500F6C7DA /* SDImageSVGKCoder.m */; };
21 | 3212D8CC237BEE0600F6C7DA /* SDSVGKImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D895237BE8A500F6C7DA /* SDSVGKImage.h */; settings = {ATTRIBUTES = (Public, ); }; };
22 | 3212D8CD237BEE0600F6C7DA /* SDSVGKImage.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D89A237BE8A500F6C7DA /* SDSVGKImage.m */; };
23 | 3212D8CE237BEE0600F6C7DA /* SDWebImageSVGKitDefine.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89C237BE8A500F6C7DA /* SDWebImageSVGKitDefine.h */; settings = {ATTRIBUTES = (Public, ); }; };
24 | 3212D8CF237BEE0600F6C7DA /* SDWebImageSVGKitDefine.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D898237BE8A500F6C7DA /* SDWebImageSVGKitDefine.m */; };
25 | 3212D8D0237BEE0600F6C7DA /* SVGKImageView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D897237BE8A500F6C7DA /* SVGKImageView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; };
26 | 3212D8D1237BEE0600F6C7DA /* SVGKImageView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D89D237BE8A500F6C7DA /* SVGKImageView+WebCache.m */; };
27 | 3212D8D2237BEE0600F6C7DA /* SDImageSVGKCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89B237BE8A500F6C7DA /* SDImageSVGKCoder.h */; settings = {ATTRIBUTES = (Public, ); }; };
28 | 3212D8D3237BEE0600F6C7DA /* SDImageSVGKCoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D899237BE8A500F6C7DA /* SDImageSVGKCoder.m */; };
29 | 3212D8D4237BEE0600F6C7DA /* SDSVGKImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D895237BE8A500F6C7DA /* SDSVGKImage.h */; settings = {ATTRIBUTES = (Public, ); }; };
30 | 3212D8D5237BEE0600F6C7DA /* SDSVGKImage.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D89A237BE8A500F6C7DA /* SDSVGKImage.m */; };
31 | 3212D8D6237BEE0600F6C7DA /* SDWebImageSVGKitDefine.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89C237BE8A500F6C7DA /* SDWebImageSVGKitDefine.h */; settings = {ATTRIBUTES = (Public, ); }; };
32 | 3212D8D7237BEE0600F6C7DA /* SDWebImageSVGKitDefine.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D898237BE8A500F6C7DA /* SDWebImageSVGKitDefine.m */; };
33 | 3212D8D8237BEE0600F6C7DA /* SVGKImageView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D897237BE8A500F6C7DA /* SVGKImageView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; };
34 | 3212D8D9237BEE0600F6C7DA /* SVGKImageView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D89D237BE8A500F6C7DA /* SVGKImageView+WebCache.m */; };
35 | 3212D8DA237BEE0900F6C7DA /* SDWebImageSVGKitPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89F237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
36 | 3212D8DB237BEE0900F6C7DA /* SDWebImageSVGKitPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 3212D89F237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
37 | 3212D8E4237BEE6100F6C7DA /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212D8DD237BEE3100F6C7DA /* SDWebImage.framework */; };
38 | 3212D8E6237BEE6100F6C7DA /* SVGKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212D8E1237BEE3B00F6C7DA /* SVGKit.framework */; };
39 | 3212D8EB237BEE7E00F6C7DA /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212D8E9237BEE7E00F6C7DA /* SDWebImage.framework */; };
40 | 3212D8ED237BEE7E00F6C7DA /* SVGKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212D8EA237BEE7E00F6C7DA /* SVGKit.framework */; };
41 | 3212D8F2237BEE9000F6C7DA /* SVGKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212D8F0237BEE9000F6C7DA /* SVGKit.framework */; };
42 | 3212D8F4237BEE9000F6C7DA /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212D8F1237BEE9000F6C7DA /* SDWebImage.framework */; };
43 | /* End PBXBuildFile section */
44 |
45 | /* Begin PBXFileReference section */
46 | 3212D888237BE87500F6C7DA /* SDWebImageSVGKitPlugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImageSVGKitPlugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
47 | 3212D895237BE8A500F6C7DA /* SDSVGKImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDSVGKImage.h; sourceTree = ""; };
48 | 3212D897237BE8A500F6C7DA /* SVGKImageView+WebCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "SVGKImageView+WebCache.h"; sourceTree = ""; };
49 | 3212D898237BE8A500F6C7DA /* SDWebImageSVGKitDefine.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDWebImageSVGKitDefine.m; sourceTree = ""; };
50 | 3212D899237BE8A500F6C7DA /* SDImageSVGKCoder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDImageSVGKCoder.m; sourceTree = ""; };
51 | 3212D89A237BE8A500F6C7DA /* SDSVGKImage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDSVGKImage.m; sourceTree = ""; };
52 | 3212D89B237BE8A500F6C7DA /* SDImageSVGKCoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDImageSVGKCoder.h; sourceTree = ""; };
53 | 3212D89C237BE8A500F6C7DA /* SDWebImageSVGKitDefine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDWebImageSVGKitDefine.h; sourceTree = ""; };
54 | 3212D89D237BE8A500F6C7DA /* SVGKImageView+WebCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "SVGKImageView+WebCache.m"; sourceTree = ""; };
55 | 3212D89F237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDWebImageSVGKitPlugin.h; sourceTree = ""; };
56 | 3212D8A0237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.modulemap */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = "sourcecode.module-map"; path = SDWebImageSVGKitPlugin.modulemap; sourceTree = ""; };
57 | 3212D8A1237BE8A500F6C7DA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
58 | 3212D8B5237BED7800F6C7DA /* SDWebImageSVGKitPlugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImageSVGKitPlugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 3212D8C2237BEDA800F6C7DA /* SDWebImageSVGKitPlugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImageSVGKitPlugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
60 | 3212D8DD237BEE3100F6C7DA /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Carthage/Build/iOS/SDWebImage.framework; sourceTree = ""; };
61 | 3212D8E1237BEE3B00F6C7DA /* SVGKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SVGKit.framework; path = Carthage/Build/iOS/SVGKit.framework; sourceTree = ""; };
62 | 3212D8E9237BEE7E00F6C7DA /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Carthage/Build/Mac/SDWebImage.framework; sourceTree = ""; };
63 | 3212D8EA237BEE7E00F6C7DA /* SVGKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SVGKit.framework; path = Carthage/Build/Mac/SVGKit.framework; sourceTree = ""; };
64 | 3212D8F0237BEE9000F6C7DA /* SVGKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SVGKit.framework; path = Carthage/Build/tvOS/SVGKit.framework; sourceTree = ""; };
65 | 3212D8F1237BEE9000F6C7DA /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Carthage/Build/tvOS/SDWebImage.framework; sourceTree = ""; };
66 | /* End PBXFileReference section */
67 |
68 | /* Begin PBXFrameworksBuildPhase section */
69 | 3212D885237BE87500F6C7DA /* Frameworks */ = {
70 | isa = PBXFrameworksBuildPhase;
71 | buildActionMask = 2147483647;
72 | files = (
73 | 3212D8E6237BEE6100F6C7DA /* SVGKit.framework in Frameworks */,
74 | 3212D8E4237BEE6100F6C7DA /* SDWebImage.framework in Frameworks */,
75 | );
76 | runOnlyForDeploymentPostprocessing = 0;
77 | };
78 | 3212D8B2237BED7800F6C7DA /* Frameworks */ = {
79 | isa = PBXFrameworksBuildPhase;
80 | buildActionMask = 2147483647;
81 | files = (
82 | 3212D8ED237BEE7E00F6C7DA /* SVGKit.framework in Frameworks */,
83 | 3212D8EB237BEE7E00F6C7DA /* SDWebImage.framework in Frameworks */,
84 | );
85 | runOnlyForDeploymentPostprocessing = 0;
86 | };
87 | 3212D8BF237BEDA800F6C7DA /* Frameworks */ = {
88 | isa = PBXFrameworksBuildPhase;
89 | buildActionMask = 2147483647;
90 | files = (
91 | 3212D8F4237BEE9000F6C7DA /* SDWebImage.framework in Frameworks */,
92 | 3212D8F2237BEE9000F6C7DA /* SVGKit.framework in Frameworks */,
93 | );
94 | runOnlyForDeploymentPostprocessing = 0;
95 | };
96 | /* End PBXFrameworksBuildPhase section */
97 |
98 | /* Begin PBXGroup section */
99 | 3212D87E237BE87500F6C7DA = {
100 | isa = PBXGroup;
101 | children = (
102 | 3212D893237BE8A500F6C7DA /* SDWebImageSVGKitPlugin */,
103 | 3212D889237BE87500F6C7DA /* Products */,
104 | 3212D8DC237BEE3100F6C7DA /* Frameworks */,
105 | );
106 | sourceTree = "";
107 | };
108 | 3212D889237BE87500F6C7DA /* Products */ = {
109 | isa = PBXGroup;
110 | children = (
111 | 3212D888237BE87500F6C7DA /* SDWebImageSVGKitPlugin.framework */,
112 | 3212D8B5237BED7800F6C7DA /* SDWebImageSVGKitPlugin.framework */,
113 | 3212D8C2237BEDA800F6C7DA /* SDWebImageSVGKitPlugin.framework */,
114 | );
115 | name = Products;
116 | sourceTree = "";
117 | };
118 | 3212D893237BE8A500F6C7DA /* SDWebImageSVGKitPlugin */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 3212D894237BE8A500F6C7DA /* Classes */,
122 | 3212D89E237BE8A500F6C7DA /* Module */,
123 | );
124 | path = SDWebImageSVGKitPlugin;
125 | sourceTree = "";
126 | };
127 | 3212D894237BE8A500F6C7DA /* Classes */ = {
128 | isa = PBXGroup;
129 | children = (
130 | 3212D89B237BE8A500F6C7DA /* SDImageSVGKCoder.h */,
131 | 3212D899237BE8A500F6C7DA /* SDImageSVGKCoder.m */,
132 | 3212D895237BE8A500F6C7DA /* SDSVGKImage.h */,
133 | 3212D89A237BE8A500F6C7DA /* SDSVGKImage.m */,
134 | 3212D89C237BE8A500F6C7DA /* SDWebImageSVGKitDefine.h */,
135 | 3212D898237BE8A500F6C7DA /* SDWebImageSVGKitDefine.m */,
136 | 3212D897237BE8A500F6C7DA /* SVGKImageView+WebCache.h */,
137 | 3212D89D237BE8A500F6C7DA /* SVGKImageView+WebCache.m */,
138 | );
139 | path = Classes;
140 | sourceTree = "";
141 | };
142 | 3212D89E237BE8A500F6C7DA /* Module */ = {
143 | isa = PBXGroup;
144 | children = (
145 | 3212D8A1237BE8A500F6C7DA /* Info.plist */,
146 | 3212D89F237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.h */,
147 | 3212D8A0237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.modulemap */,
148 | );
149 | path = Module;
150 | sourceTree = "";
151 | };
152 | 3212D8DC237BEE3100F6C7DA /* Frameworks */ = {
153 | isa = PBXGroup;
154 | children = (
155 | 3212D8F1237BEE9000F6C7DA /* SDWebImage.framework */,
156 | 3212D8F0237BEE9000F6C7DA /* SVGKit.framework */,
157 | 3212D8E9237BEE7E00F6C7DA /* SDWebImage.framework */,
158 | 3212D8EA237BEE7E00F6C7DA /* SVGKit.framework */,
159 | 3212D8E1237BEE3B00F6C7DA /* SVGKit.framework */,
160 | 3212D8DD237BEE3100F6C7DA /* SDWebImage.framework */,
161 | );
162 | name = Frameworks;
163 | sourceTree = "";
164 | };
165 | /* End PBXGroup section */
166 |
167 | /* Begin PBXHeadersBuildPhase section */
168 | 3212D883237BE87500F6C7DA /* Headers */ = {
169 | isa = PBXHeadersBuildPhase;
170 | buildActionMask = 2147483647;
171 | files = (
172 | 3212D8A6237BE8A500F6C7DA /* SVGKImageView+WebCache.h in Headers */,
173 | 3212D8AD237BE8A500F6C7DA /* SDWebImageSVGKitPlugin.h in Headers */,
174 | 3212D8AB237BE8A500F6C7DA /* SDWebImageSVGKitDefine.h in Headers */,
175 | 3212D8A4237BE8A500F6C7DA /* SDSVGKImage.h in Headers */,
176 | 3212D8AA237BE8A500F6C7DA /* SDImageSVGKCoder.h in Headers */,
177 | );
178 | runOnlyForDeploymentPostprocessing = 0;
179 | };
180 | 3212D8B0237BED7800F6C7DA /* Headers */ = {
181 | isa = PBXHeadersBuildPhase;
182 | buildActionMask = 2147483647;
183 | files = (
184 | 3212D8D0237BEE0600F6C7DA /* SVGKImageView+WebCache.h in Headers */,
185 | 3212D8DA237BEE0900F6C7DA /* SDWebImageSVGKitPlugin.h in Headers */,
186 | 3212D8CE237BEE0600F6C7DA /* SDWebImageSVGKitDefine.h in Headers */,
187 | 3212D8CC237BEE0600F6C7DA /* SDSVGKImage.h in Headers */,
188 | 3212D8CA237BEE0600F6C7DA /* SDImageSVGKCoder.h in Headers */,
189 | );
190 | runOnlyForDeploymentPostprocessing = 0;
191 | };
192 | 3212D8BD237BEDA800F6C7DA /* Headers */ = {
193 | isa = PBXHeadersBuildPhase;
194 | buildActionMask = 2147483647;
195 | files = (
196 | 3212D8D8237BEE0600F6C7DA /* SVGKImageView+WebCache.h in Headers */,
197 | 3212D8DB237BEE0900F6C7DA /* SDWebImageSVGKitPlugin.h in Headers */,
198 | 3212D8D6237BEE0600F6C7DA /* SDWebImageSVGKitDefine.h in Headers */,
199 | 3212D8D4237BEE0600F6C7DA /* SDSVGKImage.h in Headers */,
200 | 3212D8D2237BEE0600F6C7DA /* SDImageSVGKCoder.h in Headers */,
201 | );
202 | runOnlyForDeploymentPostprocessing = 0;
203 | };
204 | /* End PBXHeadersBuildPhase section */
205 |
206 | /* Begin PBXNativeTarget section */
207 | 3212D887237BE87500F6C7DA /* SDWebImageSVGKitPlugin iOS */ = {
208 | isa = PBXNativeTarget;
209 | buildConfigurationList = 3212D890237BE87500F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin iOS" */;
210 | buildPhases = (
211 | 3212D883237BE87500F6C7DA /* Headers */,
212 | 3212D884237BE87500F6C7DA /* Sources */,
213 | 3212D885237BE87500F6C7DA /* Frameworks */,
214 | 3212D886237BE87500F6C7DA /* Resources */,
215 | );
216 | buildRules = (
217 | );
218 | dependencies = (
219 | );
220 | name = "SDWebImageSVGKitPlugin iOS";
221 | productName = SDWebImageSVGKitPlugin;
222 | productReference = 3212D888237BE87500F6C7DA /* SDWebImageSVGKitPlugin.framework */;
223 | productType = "com.apple.product-type.framework";
224 | };
225 | 3212D8B4237BED7800F6C7DA /* SDWebImageSVGKitPlugin macOS */ = {
226 | isa = PBXNativeTarget;
227 | buildConfigurationList = 3212D8BC237BED7800F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin macOS" */;
228 | buildPhases = (
229 | 3212D8B0237BED7800F6C7DA /* Headers */,
230 | 3212D8B1237BED7800F6C7DA /* Sources */,
231 | 3212D8B2237BED7800F6C7DA /* Frameworks */,
232 | 3212D8B3237BED7800F6C7DA /* Resources */,
233 | );
234 | buildRules = (
235 | );
236 | dependencies = (
237 | );
238 | name = "SDWebImageSVGKitPlugin macOS";
239 | productName = "SDWebImageSVGKitPlugin macOS";
240 | productReference = 3212D8B5237BED7800F6C7DA /* SDWebImageSVGKitPlugin.framework */;
241 | productType = "com.apple.product-type.framework";
242 | };
243 | 3212D8C1237BEDA800F6C7DA /* SDWebImageSVGKitPlugin tvOS */ = {
244 | isa = PBXNativeTarget;
245 | buildConfigurationList = 3212D8C7237BEDA800F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin tvOS" */;
246 | buildPhases = (
247 | 3212D8BD237BEDA800F6C7DA /* Headers */,
248 | 3212D8BE237BEDA800F6C7DA /* Sources */,
249 | 3212D8BF237BEDA800F6C7DA /* Frameworks */,
250 | 3212D8C0237BEDA800F6C7DA /* Resources */,
251 | );
252 | buildRules = (
253 | );
254 | dependencies = (
255 | );
256 | name = "SDWebImageSVGKitPlugin tvOS";
257 | productName = "SDWebImageSVGKitPlugin tvOS";
258 | productReference = 3212D8C2237BEDA800F6C7DA /* SDWebImageSVGKitPlugin.framework */;
259 | productType = "com.apple.product-type.framework";
260 | };
261 | /* End PBXNativeTarget section */
262 |
263 | /* Begin PBXProject section */
264 | 3212D87F237BE87500F6C7DA /* Project object */ = {
265 | isa = PBXProject;
266 | attributes = {
267 | LastUpgradeCheck = 1120;
268 | ORGANIZATIONNAME = cocoapods;
269 | TargetAttributes = {
270 | 3212D887237BE87500F6C7DA = {
271 | CreatedOnToolsVersion = 11.2;
272 | };
273 | 3212D8B4237BED7800F6C7DA = {
274 | CreatedOnToolsVersion = 11.2;
275 | };
276 | 3212D8C1237BEDA800F6C7DA = {
277 | CreatedOnToolsVersion = 11.2;
278 | };
279 | };
280 | };
281 | buildConfigurationList = 3212D882237BE87500F6C7DA /* Build configuration list for PBXProject "SDWebImageSVGKitPlugin" */;
282 | compatibilityVersion = "Xcode 9.3";
283 | developmentRegion = en;
284 | hasScannedForEncodings = 0;
285 | knownRegions = (
286 | en,
287 | Base,
288 | );
289 | mainGroup = 3212D87E237BE87500F6C7DA;
290 | productRefGroup = 3212D889237BE87500F6C7DA /* Products */;
291 | projectDirPath = "";
292 | projectRoot = "";
293 | targets = (
294 | 3212D887237BE87500F6C7DA /* SDWebImageSVGKitPlugin iOS */,
295 | 3212D8B4237BED7800F6C7DA /* SDWebImageSVGKitPlugin macOS */,
296 | 3212D8C1237BEDA800F6C7DA /* SDWebImageSVGKitPlugin tvOS */,
297 | );
298 | };
299 | /* End PBXProject section */
300 |
301 | /* Begin PBXResourcesBuildPhase section */
302 | 3212D886237BE87500F6C7DA /* Resources */ = {
303 | isa = PBXResourcesBuildPhase;
304 | buildActionMask = 2147483647;
305 | files = (
306 | );
307 | runOnlyForDeploymentPostprocessing = 0;
308 | };
309 | 3212D8B3237BED7800F6C7DA /* Resources */ = {
310 | isa = PBXResourcesBuildPhase;
311 | buildActionMask = 2147483647;
312 | files = (
313 | );
314 | runOnlyForDeploymentPostprocessing = 0;
315 | };
316 | 3212D8C0237BEDA800F6C7DA /* Resources */ = {
317 | isa = PBXResourcesBuildPhase;
318 | buildActionMask = 2147483647;
319 | files = (
320 | );
321 | runOnlyForDeploymentPostprocessing = 0;
322 | };
323 | /* End PBXResourcesBuildPhase section */
324 |
325 | /* Begin PBXSourcesBuildPhase section */
326 | 3212D884237BE87500F6C7DA /* Sources */ = {
327 | isa = PBXSourcesBuildPhase;
328 | buildActionMask = 2147483647;
329 | files = (
330 | 3212D8A7237BE8A500F6C7DA /* SDWebImageSVGKitDefine.m in Sources */,
331 | 3212D8AC237BE8A500F6C7DA /* SVGKImageView+WebCache.m in Sources */,
332 | 3212D8A8237BE8A500F6C7DA /* SDImageSVGKCoder.m in Sources */,
333 | 3212D8A9237BE8A500F6C7DA /* SDSVGKImage.m in Sources */,
334 | );
335 | runOnlyForDeploymentPostprocessing = 0;
336 | };
337 | 3212D8B1237BED7800F6C7DA /* Sources */ = {
338 | isa = PBXSourcesBuildPhase;
339 | buildActionMask = 2147483647;
340 | files = (
341 | 3212D8CB237BEE0600F6C7DA /* SDImageSVGKCoder.m in Sources */,
342 | 3212D8D1237BEE0600F6C7DA /* SVGKImageView+WebCache.m in Sources */,
343 | 3212D8CF237BEE0600F6C7DA /* SDWebImageSVGKitDefine.m in Sources */,
344 | 3212D8CD237BEE0600F6C7DA /* SDSVGKImage.m in Sources */,
345 | );
346 | runOnlyForDeploymentPostprocessing = 0;
347 | };
348 | 3212D8BE237BEDA800F6C7DA /* Sources */ = {
349 | isa = PBXSourcesBuildPhase;
350 | buildActionMask = 2147483647;
351 | files = (
352 | 3212D8D3237BEE0600F6C7DA /* SDImageSVGKCoder.m in Sources */,
353 | 3212D8D9237BEE0600F6C7DA /* SVGKImageView+WebCache.m in Sources */,
354 | 3212D8D7237BEE0600F6C7DA /* SDWebImageSVGKitDefine.m in Sources */,
355 | 3212D8D5237BEE0600F6C7DA /* SDSVGKImage.m in Sources */,
356 | );
357 | runOnlyForDeploymentPostprocessing = 0;
358 | };
359 | /* End PBXSourcesBuildPhase section */
360 |
361 | /* Begin XCBuildConfiguration section */
362 | 3212D88E237BE87500F6C7DA /* Debug */ = {
363 | isa = XCBuildConfiguration;
364 | buildSettings = {
365 | ALWAYS_SEARCH_USER_PATHS = NO;
366 | CLANG_ANALYZER_NONNULL = YES;
367 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
368 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
369 | CLANG_CXX_LIBRARY = "libc++";
370 | CLANG_ENABLE_MODULES = YES;
371 | CLANG_ENABLE_OBJC_ARC = YES;
372 | CLANG_ENABLE_OBJC_WEAK = YES;
373 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
374 | CLANG_WARN_BOOL_CONVERSION = YES;
375 | CLANG_WARN_COMMA = YES;
376 | CLANG_WARN_CONSTANT_CONVERSION = YES;
377 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
378 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
379 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
380 | CLANG_WARN_EMPTY_BODY = YES;
381 | CLANG_WARN_ENUM_CONVERSION = YES;
382 | CLANG_WARN_INFINITE_RECURSION = YES;
383 | CLANG_WARN_INT_CONVERSION = YES;
384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
389 | CLANG_WARN_STRICT_PROTOTYPES = YES;
390 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
391 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
392 | CLANG_WARN_UNREACHABLE_CODE = YES;
393 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
394 | COPY_PHASE_STRIP = NO;
395 | CURRENT_PROJECT_VERSION = 1;
396 | DEBUG_INFORMATION_FORMAT = dwarf;
397 | ENABLE_STRICT_OBJC_MSGSEND = YES;
398 | ENABLE_TESTABILITY = YES;
399 | GCC_C_LANGUAGE_STANDARD = gnu11;
400 | GCC_DYNAMIC_NO_PIC = NO;
401 | GCC_NO_COMMON_BLOCKS = YES;
402 | GCC_OPTIMIZATION_LEVEL = 0;
403 | GCC_PREPROCESSOR_DEFINITIONS = (
404 | "DEBUG=1",
405 | "$(inherited)",
406 | );
407 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
408 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
409 | GCC_WARN_UNDECLARED_SELECTOR = YES;
410 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
411 | GCC_WARN_UNUSED_FUNCTION = YES;
412 | GCC_WARN_UNUSED_VARIABLE = YES;
413 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
414 | MACOSX_DEPLOYMENT_TARGET = 10.11;
415 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
416 | MTL_FAST_MATH = YES;
417 | ONLY_ACTIVE_ARCH = YES;
418 | SDKROOT = iphoneos;
419 | TVOS_DEPLOYMENT_TARGET = 9.0;
420 | VERSIONING_SYSTEM = "apple-generic";
421 | VERSION_INFO_PREFIX = "";
422 | WATCHOS_DEPLOYMENT_TARGET = 2.0;
423 | };
424 | name = Debug;
425 | };
426 | 3212D88F237BE87500F6C7DA /* Release */ = {
427 | isa = XCBuildConfiguration;
428 | buildSettings = {
429 | ALWAYS_SEARCH_USER_PATHS = NO;
430 | CLANG_ANALYZER_NONNULL = YES;
431 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
432 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
433 | CLANG_CXX_LIBRARY = "libc++";
434 | CLANG_ENABLE_MODULES = YES;
435 | CLANG_ENABLE_OBJC_ARC = YES;
436 | CLANG_ENABLE_OBJC_WEAK = YES;
437 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
438 | CLANG_WARN_BOOL_CONVERSION = YES;
439 | CLANG_WARN_COMMA = YES;
440 | CLANG_WARN_CONSTANT_CONVERSION = YES;
441 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
443 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
444 | CLANG_WARN_EMPTY_BODY = YES;
445 | CLANG_WARN_ENUM_CONVERSION = YES;
446 | CLANG_WARN_INFINITE_RECURSION = YES;
447 | CLANG_WARN_INT_CONVERSION = YES;
448 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
449 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
450 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
451 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
452 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
453 | CLANG_WARN_STRICT_PROTOTYPES = YES;
454 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
455 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
456 | CLANG_WARN_UNREACHABLE_CODE = YES;
457 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
458 | COPY_PHASE_STRIP = NO;
459 | CURRENT_PROJECT_VERSION = 1;
460 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
461 | ENABLE_NS_ASSERTIONS = NO;
462 | ENABLE_STRICT_OBJC_MSGSEND = YES;
463 | GCC_C_LANGUAGE_STANDARD = gnu11;
464 | GCC_NO_COMMON_BLOCKS = YES;
465 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
466 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
467 | GCC_WARN_UNDECLARED_SELECTOR = YES;
468 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
469 | GCC_WARN_UNUSED_FUNCTION = YES;
470 | GCC_WARN_UNUSED_VARIABLE = YES;
471 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
472 | MACOSX_DEPLOYMENT_TARGET = 10.11;
473 | MTL_ENABLE_DEBUG_INFO = NO;
474 | MTL_FAST_MATH = YES;
475 | SDKROOT = iphoneos;
476 | TVOS_DEPLOYMENT_TARGET = 9.0;
477 | VALIDATE_PRODUCT = YES;
478 | VERSIONING_SYSTEM = "apple-generic";
479 | VERSION_INFO_PREFIX = "";
480 | WATCHOS_DEPLOYMENT_TARGET = 2.0;
481 | };
482 | name = Release;
483 | };
484 | 3212D891237BE87500F6C7DA /* Debug */ = {
485 | isa = XCBuildConfiguration;
486 | buildSettings = {
487 | CODE_SIGN_STYLE = Automatic;
488 | DEFINES_MODULE = YES;
489 | DYLIB_COMPATIBILITY_VERSION = 1;
490 | DYLIB_CURRENT_VERSION = 1;
491 | DYLIB_INSTALL_NAME_BASE = "@rpath";
492 | FRAMEWORK_SEARCH_PATHS = (
493 | "$(inherited)",
494 | "$(PROJECT_DIR)/Carthage/Build/iOS",
495 | );
496 | INFOPLIST_FILE = "$(SRCROOT)/SDWebImageSVGKitPlugin/Module/Info.plist";
497 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
498 | LD_RUNPATH_SEARCH_PATHS = (
499 | "$(inherited)",
500 | "@executable_path/Frameworks",
501 | "@loader_path/Frameworks",
502 | );
503 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.SDWebImageSVGKitPlugin;
504 | PRODUCT_NAME = SDWebImageSVGKitPlugin;
505 | SKIP_INSTALL = YES;
506 | TARGETED_DEVICE_FAMILY = "1,2";
507 | };
508 | name = Debug;
509 | };
510 | 3212D892237BE87500F6C7DA /* Release */ = {
511 | isa = XCBuildConfiguration;
512 | buildSettings = {
513 | CODE_SIGN_STYLE = Automatic;
514 | DEFINES_MODULE = YES;
515 | DYLIB_COMPATIBILITY_VERSION = 1;
516 | DYLIB_CURRENT_VERSION = 1;
517 | DYLIB_INSTALL_NAME_BASE = "@rpath";
518 | FRAMEWORK_SEARCH_PATHS = (
519 | "$(inherited)",
520 | "$(PROJECT_DIR)/Carthage/Build/iOS",
521 | );
522 | INFOPLIST_FILE = "$(SRCROOT)/SDWebImageSVGKitPlugin/Module/Info.plist";
523 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
524 | LD_RUNPATH_SEARCH_PATHS = (
525 | "$(inherited)",
526 | "@executable_path/Frameworks",
527 | "@loader_path/Frameworks",
528 | );
529 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.SDWebImageSVGKitPlugin;
530 | PRODUCT_NAME = SDWebImageSVGKitPlugin;
531 | SKIP_INSTALL = YES;
532 | TARGETED_DEVICE_FAMILY = "1,2";
533 | };
534 | name = Release;
535 | };
536 | 3212D8BA237BED7800F6C7DA /* Debug */ = {
537 | isa = XCBuildConfiguration;
538 | buildSettings = {
539 | CODE_SIGN_STYLE = Automatic;
540 | COMBINE_HIDPI_IMAGES = YES;
541 | DEFINES_MODULE = YES;
542 | DYLIB_COMPATIBILITY_VERSION = 1;
543 | DYLIB_CURRENT_VERSION = 1;
544 | DYLIB_INSTALL_NAME_BASE = "@rpath";
545 | FRAMEWORK_SEARCH_PATHS = (
546 | "$(inherited)",
547 | "$(PROJECT_DIR)/Carthage/Build/Mac",
548 | );
549 | INFOPLIST_FILE = "$(SRCROOT)/SDWebImageSVGKitPlugin/Module/Info.plist";
550 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
551 | LD_RUNPATH_SEARCH_PATHS = (
552 | "$(inherited)",
553 | "@executable_path/../Frameworks",
554 | "@loader_path/Frameworks",
555 | );
556 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGKitPlugin-macOS";
557 | PRODUCT_NAME = SDWebImageSVGKitPlugin;
558 | SDKROOT = macosx;
559 | SKIP_INSTALL = YES;
560 | };
561 | name = Debug;
562 | };
563 | 3212D8BB237BED7800F6C7DA /* Release */ = {
564 | isa = XCBuildConfiguration;
565 | buildSettings = {
566 | CODE_SIGN_STYLE = Automatic;
567 | COMBINE_HIDPI_IMAGES = YES;
568 | DEFINES_MODULE = YES;
569 | DYLIB_COMPATIBILITY_VERSION = 1;
570 | DYLIB_CURRENT_VERSION = 1;
571 | DYLIB_INSTALL_NAME_BASE = "@rpath";
572 | FRAMEWORK_SEARCH_PATHS = (
573 | "$(inherited)",
574 | "$(PROJECT_DIR)/Carthage/Build/Mac",
575 | );
576 | INFOPLIST_FILE = "$(SRCROOT)/SDWebImageSVGKitPlugin/Module/Info.plist";
577 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
578 | LD_RUNPATH_SEARCH_PATHS = (
579 | "$(inherited)",
580 | "@executable_path/../Frameworks",
581 | "@loader_path/Frameworks",
582 | );
583 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGKitPlugin-macOS";
584 | PRODUCT_NAME = SDWebImageSVGKitPlugin;
585 | SDKROOT = macosx;
586 | SKIP_INSTALL = YES;
587 | };
588 | name = Release;
589 | };
590 | 3212D8C8237BEDA800F6C7DA /* Debug */ = {
591 | isa = XCBuildConfiguration;
592 | buildSettings = {
593 | CODE_SIGN_STYLE = Automatic;
594 | DEFINES_MODULE = YES;
595 | DYLIB_COMPATIBILITY_VERSION = 1;
596 | DYLIB_CURRENT_VERSION = 1;
597 | DYLIB_INSTALL_NAME_BASE = "@rpath";
598 | FRAMEWORK_SEARCH_PATHS = (
599 | "$(inherited)",
600 | "$(PROJECT_DIR)/Carthage/Build/tvOS",
601 | );
602 | INFOPLIST_FILE = "$(SRCROOT)/SDWebImageSVGKitPlugin/Module/Info.plist";
603 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
604 | LD_RUNPATH_SEARCH_PATHS = (
605 | "$(inherited)",
606 | "@executable_path/Frameworks",
607 | "@loader_path/Frameworks",
608 | );
609 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGKitPlugin-tvOS";
610 | PRODUCT_NAME = SDWebImageSVGKitPlugin;
611 | SDKROOT = appletvos;
612 | SKIP_INSTALL = YES;
613 | TARGETED_DEVICE_FAMILY = 3;
614 | };
615 | name = Debug;
616 | };
617 | 3212D8C9237BEDA800F6C7DA /* Release */ = {
618 | isa = XCBuildConfiguration;
619 | buildSettings = {
620 | CODE_SIGN_STYLE = Automatic;
621 | DEFINES_MODULE = YES;
622 | DYLIB_COMPATIBILITY_VERSION = 1;
623 | DYLIB_CURRENT_VERSION = 1;
624 | DYLIB_INSTALL_NAME_BASE = "@rpath";
625 | FRAMEWORK_SEARCH_PATHS = (
626 | "$(inherited)",
627 | "$(PROJECT_DIR)/Carthage/Build/tvOS",
628 | );
629 | INFOPLIST_FILE = "$(SRCROOT)/SDWebImageSVGKitPlugin/Module/Info.plist";
630 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
631 | LD_RUNPATH_SEARCH_PATHS = (
632 | "$(inherited)",
633 | "@executable_path/Frameworks",
634 | "@loader_path/Frameworks",
635 | );
636 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGKitPlugin-tvOS";
637 | PRODUCT_NAME = SDWebImageSVGKitPlugin;
638 | SDKROOT = appletvos;
639 | SKIP_INSTALL = YES;
640 | TARGETED_DEVICE_FAMILY = 3;
641 | };
642 | name = Release;
643 | };
644 | /* End XCBuildConfiguration section */
645 |
646 | /* Begin XCConfigurationList section */
647 | 3212D882237BE87500F6C7DA /* Build configuration list for PBXProject "SDWebImageSVGKitPlugin" */ = {
648 | isa = XCConfigurationList;
649 | buildConfigurations = (
650 | 3212D88E237BE87500F6C7DA /* Debug */,
651 | 3212D88F237BE87500F6C7DA /* Release */,
652 | );
653 | defaultConfigurationIsVisible = 0;
654 | defaultConfigurationName = Release;
655 | };
656 | 3212D890237BE87500F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin iOS" */ = {
657 | isa = XCConfigurationList;
658 | buildConfigurations = (
659 | 3212D891237BE87500F6C7DA /* Debug */,
660 | 3212D892237BE87500F6C7DA /* Release */,
661 | );
662 | defaultConfigurationIsVisible = 0;
663 | defaultConfigurationName = Release;
664 | };
665 | 3212D8BC237BED7800F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin macOS" */ = {
666 | isa = XCConfigurationList;
667 | buildConfigurations = (
668 | 3212D8BA237BED7800F6C7DA /* Debug */,
669 | 3212D8BB237BED7800F6C7DA /* Release */,
670 | );
671 | defaultConfigurationIsVisible = 0;
672 | defaultConfigurationName = Release;
673 | };
674 | 3212D8C7237BEDA800F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin tvOS" */ = {
675 | isa = XCConfigurationList;
676 | buildConfigurations = (
677 | 3212D8C8237BEDA800F6C7DA /* Debug */,
678 | 3212D8C9237BEDA800F6C7DA /* Release */,
679 | );
680 | defaultConfigurationIsVisible = 0;
681 | defaultConfigurationName = Release;
682 | };
683 | /* End XCConfigurationList section */
684 | };
685 | rootObject = 3212D87F237BE87500F6C7DA /* Project object */;
686 | }
687 |
--------------------------------------------------------------------------------
/Example/SDWebImageSVGKitPlugin.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 3212D86E237BB19A00F6C7DA /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D86D237BB19A00F6C7DA /* AppDelegate.m */; };
11 | 3212D871237BB19A00F6C7DA /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D870237BB19A00F6C7DA /* ViewController.m */; };
12 | 3212D873237BB19C00F6C7DA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3212D872237BB19C00F6C7DA /* Assets.xcassets */; };
13 | 3212D876237BB19C00F6C7DA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3212D874237BB19C00F6C7DA /* Main.storyboard */; };
14 | 3212D879237BB19C00F6C7DA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3212D878237BB19C00F6C7DA /* main.m */; };
15 | 3CE7DF61B151B57BE01BC7F1 /* Pods_SDWebImageSVGKitPlugin_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A5C3CCD912FE32C1D1A1221A /* Pods_SDWebImageSVGKitPlugin_Example.framework */; };
16 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
17 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
18 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
19 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; };
20 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; };
21 | 6003F59E195388D20070C39A /* SDAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* SDAppDelegate.m */; };
22 | 6003F5A7195388D20070C39A /* SDViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* SDViewController.m */; };
23 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; };
24 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; };
25 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
26 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
27 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
28 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; };
29 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; };
30 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
31 | F06AE7C3796F7BAF1458FAA6 /* Pods_SDWebImageSVGKitPlugin_Example_macOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D797B980F0FC779E839475BE /* Pods_SDWebImageSVGKitPlugin_Example_macOS.framework */; };
32 | /* End PBXBuildFile section */
33 |
34 | /* Begin PBXContainerItemProxy section */
35 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = {
36 | isa = PBXContainerItemProxy;
37 | containerPortal = 6003F582195388D10070C39A /* Project object */;
38 | proxyType = 1;
39 | remoteGlobalIDString = 6003F589195388D20070C39A;
40 | remoteInfo = SDWebImageSVGKitPlugin;
41 | };
42 | /* End PBXContainerItemProxy section */
43 |
44 | /* Begin PBXFileReference section */
45 | 26DDA63872ACA97170249D28 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; };
46 | 3212D86A237BB19A00F6C7DA /* SDWebImageSVGKitPlugin_Example macOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SDWebImageSVGKitPlugin_Example macOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
47 | 3212D86C237BB19A00F6C7DA /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
48 | 3212D86D237BB19A00F6C7DA /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
49 | 3212D86F237BB19A00F6C7DA /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
50 | 3212D870237BB19A00F6C7DA /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
51 | 3212D872237BB19C00F6C7DA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
52 | 3212D875237BB19C00F6C7DA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
53 | 3212D877237BB19C00F6C7DA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
54 | 3212D878237BB19C00F6C7DA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
55 | 3212D87A237BB19C00F6C7DA /* SDWebImageSVGKitPlugin_Example_macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SDWebImageSVGKitPlugin_Example_macOS.entitlements; sourceTree = ""; };
56 | 3FFA41E92046CCEB10C6CB18 /* Pods-SDWebImageSVGKitPlugin_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGKitPlugin_Example.release.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGKitPlugin_Example/Pods-SDWebImageSVGKitPlugin_Example.release.xcconfig"; sourceTree = ""; };
57 | 5435E5CEBC0886831778FDF6 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; };
58 | 6003F58A195388D20070C39A /* SDWebImageSVGKitPlugin_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDWebImageSVGKitPlugin_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
60 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
61 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
62 | 6003F595195388D20070C39A /* SDWebImageSVGKitPlugin-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SDWebImageSVGKitPlugin-Info.plist"; sourceTree = ""; };
63 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
64 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
65 | 6003F59B195388D20070C39A /* SDWebImageSVGKitPlugin-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SDWebImageSVGKitPlugin-Prefix.pch"; sourceTree = ""; };
66 | 6003F59C195388D20070C39A /* SDAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SDAppDelegate.h; sourceTree = ""; };
67 | 6003F59D195388D20070C39A /* SDAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDAppDelegate.m; sourceTree = ""; };
68 | 6003F5A5195388D20070C39A /* SDViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SDViewController.h; sourceTree = ""; };
69 | 6003F5A6195388D20070C39A /* SDViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDViewController.m; sourceTree = ""; };
70 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
71 | 6003F5AE195388D20070C39A /* SDWebImageSVGKitPlugin_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SDWebImageSVGKitPlugin_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
72 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
73 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; };
74 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
75 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; };
76 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; };
77 | 660371F9B91C792912F322A6 /* Pods-SDWebImageSVGKitPlugin_Example macOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGKitPlugin_Example macOS.debug.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGKitPlugin_Example macOS/Pods-SDWebImageSVGKitPlugin_Example macOS.debug.xcconfig"; sourceTree = ""; };
78 | 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
79 | 72E086EA8AE42262D33B61A6 /* SDWebImageSVGKitPlugin.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SDWebImageSVGKitPlugin.podspec; path = ../SDWebImageSVGKitPlugin.podspec; sourceTree = ""; };
80 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; };
81 | 98C76647E80D9D3326753C36 /* Pods-SDWebImageSVGKitPlugin_Example macOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGKitPlugin_Example macOS.release.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGKitPlugin_Example macOS/Pods-SDWebImageSVGKitPlugin_Example macOS.release.xcconfig"; sourceTree = ""; };
82 | 9EC149B219987DD8DDFC9911 /* Pods-SDWebImageSVGKitPlugin_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGKitPlugin_Example.debug.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGKitPlugin_Example/Pods-SDWebImageSVGKitPlugin_Example.debug.xcconfig"; sourceTree = ""; };
83 | A5C3CCD912FE32C1D1A1221A /* Pods_SDWebImageSVGKitPlugin_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SDWebImageSVGKitPlugin_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
84 | D797B980F0FC779E839475BE /* Pods_SDWebImageSVGKitPlugin_Example_macOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SDWebImageSVGKitPlugin_Example_macOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
85 | /* End PBXFileReference section */
86 |
87 | /* Begin PBXFrameworksBuildPhase section */
88 | 3212D867237BB19A00F6C7DA /* Frameworks */ = {
89 | isa = PBXFrameworksBuildPhase;
90 | buildActionMask = 2147483647;
91 | files = (
92 | F06AE7C3796F7BAF1458FAA6 /* Pods_SDWebImageSVGKitPlugin_Example_macOS.framework in Frameworks */,
93 | );
94 | runOnlyForDeploymentPostprocessing = 0;
95 | };
96 | 6003F587195388D20070C39A /* Frameworks */ = {
97 | isa = PBXFrameworksBuildPhase;
98 | buildActionMask = 2147483647;
99 | files = (
100 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
101 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
102 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
103 | 3CE7DF61B151B57BE01BC7F1 /* Pods_SDWebImageSVGKitPlugin_Example.framework in Frameworks */,
104 | );
105 | runOnlyForDeploymentPostprocessing = 0;
106 | };
107 | 6003F5AB195388D20070C39A /* Frameworks */ = {
108 | isa = PBXFrameworksBuildPhase;
109 | buildActionMask = 2147483647;
110 | files = (
111 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */,
112 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */,
113 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */,
114 | );
115 | runOnlyForDeploymentPostprocessing = 0;
116 | };
117 | /* End PBXFrameworksBuildPhase section */
118 |
119 | /* Begin PBXGroup section */
120 | 3212D86B237BB19A00F6C7DA /* SDWebImageSVGKitPlugin_Example macOS */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 3212D86C237BB19A00F6C7DA /* AppDelegate.h */,
124 | 3212D86D237BB19A00F6C7DA /* AppDelegate.m */,
125 | 3212D86F237BB19A00F6C7DA /* ViewController.h */,
126 | 3212D870237BB19A00F6C7DA /* ViewController.m */,
127 | 3212D872237BB19C00F6C7DA /* Assets.xcassets */,
128 | 3212D874237BB19C00F6C7DA /* Main.storyboard */,
129 | 3212D877237BB19C00F6C7DA /* Info.plist */,
130 | 3212D878237BB19C00F6C7DA /* main.m */,
131 | 3212D87A237BB19C00F6C7DA /* SDWebImageSVGKitPlugin_Example_macOS.entitlements */,
132 | );
133 | path = "SDWebImageSVGKitPlugin_Example macOS";
134 | sourceTree = "";
135 | };
136 | 6003F581195388D10070C39A = {
137 | isa = PBXGroup;
138 | children = (
139 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */,
140 | 6003F593195388D20070C39A /* Example for SDWebImageSVGKitPlugin */,
141 | 6003F5B5195388D20070C39A /* Tests */,
142 | 3212D86B237BB19A00F6C7DA /* SDWebImageSVGKitPlugin_Example macOS */,
143 | 6003F58C195388D20070C39A /* Frameworks */,
144 | 6003F58B195388D20070C39A /* Products */,
145 | CA676B5E3359F4E1185BEEE6 /* Pods */,
146 | );
147 | sourceTree = "";
148 | };
149 | 6003F58B195388D20070C39A /* Products */ = {
150 | isa = PBXGroup;
151 | children = (
152 | 6003F58A195388D20070C39A /* SDWebImageSVGKitPlugin_Example.app */,
153 | 6003F5AE195388D20070C39A /* SDWebImageSVGKitPlugin_Tests.xctest */,
154 | 3212D86A237BB19A00F6C7DA /* SDWebImageSVGKitPlugin_Example macOS.app */,
155 | );
156 | name = Products;
157 | sourceTree = "";
158 | };
159 | 6003F58C195388D20070C39A /* Frameworks */ = {
160 | isa = PBXGroup;
161 | children = (
162 | 6003F58D195388D20070C39A /* Foundation.framework */,
163 | 6003F58F195388D20070C39A /* CoreGraphics.framework */,
164 | 6003F591195388D20070C39A /* UIKit.framework */,
165 | 6003F5AF195388D20070C39A /* XCTest.framework */,
166 | A5C3CCD912FE32C1D1A1221A /* Pods_SDWebImageSVGKitPlugin_Example.framework */,
167 | D797B980F0FC779E839475BE /* Pods_SDWebImageSVGKitPlugin_Example_macOS.framework */,
168 | );
169 | name = Frameworks;
170 | sourceTree = "";
171 | };
172 | 6003F593195388D20070C39A /* Example for SDWebImageSVGKitPlugin */ = {
173 | isa = PBXGroup;
174 | children = (
175 | 6003F59C195388D20070C39A /* SDAppDelegate.h */,
176 | 6003F59D195388D20070C39A /* SDAppDelegate.m */,
177 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */,
178 | 6003F5A5195388D20070C39A /* SDViewController.h */,
179 | 6003F5A6195388D20070C39A /* SDViewController.m */,
180 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */,
181 | 6003F5A8195388D20070C39A /* Images.xcassets */,
182 | 6003F594195388D20070C39A /* Supporting Files */,
183 | );
184 | name = "Example for SDWebImageSVGKitPlugin";
185 | path = SDWebImageSVGKitPlugin;
186 | sourceTree = "";
187 | };
188 | 6003F594195388D20070C39A /* Supporting Files */ = {
189 | isa = PBXGroup;
190 | children = (
191 | 6003F595195388D20070C39A /* SDWebImageSVGKitPlugin-Info.plist */,
192 | 6003F596195388D20070C39A /* InfoPlist.strings */,
193 | 6003F599195388D20070C39A /* main.m */,
194 | 6003F59B195388D20070C39A /* SDWebImageSVGKitPlugin-Prefix.pch */,
195 | );
196 | name = "Supporting Files";
197 | sourceTree = "";
198 | };
199 | 6003F5B5195388D20070C39A /* Tests */ = {
200 | isa = PBXGroup;
201 | children = (
202 | 6003F5BB195388D20070C39A /* Tests.m */,
203 | 6003F5B6195388D20070C39A /* Supporting Files */,
204 | );
205 | path = Tests;
206 | sourceTree = "";
207 | };
208 | 6003F5B6195388D20070C39A /* Supporting Files */ = {
209 | isa = PBXGroup;
210 | children = (
211 | 6003F5B7195388D20070C39A /* Tests-Info.plist */,
212 | 6003F5B8195388D20070C39A /* InfoPlist.strings */,
213 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */,
214 | );
215 | name = "Supporting Files";
216 | sourceTree = "";
217 | };
218 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = {
219 | isa = PBXGroup;
220 | children = (
221 | 72E086EA8AE42262D33B61A6 /* SDWebImageSVGKitPlugin.podspec */,
222 | 5435E5CEBC0886831778FDF6 /* README.md */,
223 | 26DDA63872ACA97170249D28 /* LICENSE */,
224 | );
225 | name = "Podspec Metadata";
226 | sourceTree = "";
227 | };
228 | CA676B5E3359F4E1185BEEE6 /* Pods */ = {
229 | isa = PBXGroup;
230 | children = (
231 | 9EC149B219987DD8DDFC9911 /* Pods-SDWebImageSVGKitPlugin_Example.debug.xcconfig */,
232 | 3FFA41E92046CCEB10C6CB18 /* Pods-SDWebImageSVGKitPlugin_Example.release.xcconfig */,
233 | 660371F9B91C792912F322A6 /* Pods-SDWebImageSVGKitPlugin_Example macOS.debug.xcconfig */,
234 | 98C76647E80D9D3326753C36 /* Pods-SDWebImageSVGKitPlugin_Example macOS.release.xcconfig */,
235 | );
236 | path = Pods;
237 | sourceTree = "";
238 | };
239 | /* End PBXGroup section */
240 |
241 | /* Begin PBXNativeTarget section */
242 | 3212D869237BB19A00F6C7DA /* SDWebImageSVGKitPlugin_Example macOS */ = {
243 | isa = PBXNativeTarget;
244 | buildConfigurationList = 3212D87D237BB19C00F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin_Example macOS" */;
245 | buildPhases = (
246 | 0919466702F07A302B6FCFCB /* [CP] Check Pods Manifest.lock */,
247 | 3212D866237BB19A00F6C7DA /* Sources */,
248 | 3212D867237BB19A00F6C7DA /* Frameworks */,
249 | 3212D868237BB19A00F6C7DA /* Resources */,
250 | A4D3B6DF6E2B755977A6CF07 /* [CP] Embed Pods Frameworks */,
251 | );
252 | buildRules = (
253 | );
254 | dependencies = (
255 | );
256 | name = "SDWebImageSVGKitPlugin_Example macOS";
257 | productName = "SDWebImageSVGKitPlugin_Example macOS";
258 | productReference = 3212D86A237BB19A00F6C7DA /* SDWebImageSVGKitPlugin_Example macOS.app */;
259 | productType = "com.apple.product-type.application";
260 | };
261 | 6003F589195388D20070C39A /* SDWebImageSVGKitPlugin_Example */ = {
262 | isa = PBXNativeTarget;
263 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin_Example" */;
264 | buildPhases = (
265 | 481D0B450706B080C00F9A03 /* [CP] Check Pods Manifest.lock */,
266 | 6003F586195388D20070C39A /* Sources */,
267 | 6003F587195388D20070C39A /* Frameworks */,
268 | 6003F588195388D20070C39A /* Resources */,
269 | 4F61BB5BCC5B1DB4D653445D /* [CP] Embed Pods Frameworks */,
270 | );
271 | buildRules = (
272 | );
273 | dependencies = (
274 | );
275 | name = SDWebImageSVGKitPlugin_Example;
276 | productName = SDWebImageSVGKitPlugin;
277 | productReference = 6003F58A195388D20070C39A /* SDWebImageSVGKitPlugin_Example.app */;
278 | productType = "com.apple.product-type.application";
279 | };
280 | 6003F5AD195388D20070C39A /* SDWebImageSVGKitPlugin_Tests */ = {
281 | isa = PBXNativeTarget;
282 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin_Tests" */;
283 | buildPhases = (
284 | 6003F5AA195388D20070C39A /* Sources */,
285 | 6003F5AB195388D20070C39A /* Frameworks */,
286 | 6003F5AC195388D20070C39A /* Resources */,
287 | );
288 | buildRules = (
289 | );
290 | dependencies = (
291 | 6003F5B4195388D20070C39A /* PBXTargetDependency */,
292 | );
293 | name = SDWebImageSVGKitPlugin_Tests;
294 | productName = SDWebImageSVGKitPluginTests;
295 | productReference = 6003F5AE195388D20070C39A /* SDWebImageSVGKitPlugin_Tests.xctest */;
296 | productType = "com.apple.product-type.bundle.unit-test";
297 | };
298 | /* End PBXNativeTarget section */
299 |
300 | /* Begin PBXProject section */
301 | 6003F582195388D10070C39A /* Project object */ = {
302 | isa = PBXProject;
303 | attributes = {
304 | CLASSPREFIX = SD;
305 | LastUpgradeCheck = 0720;
306 | ORGANIZATIONNAME = "lizhuoli1126@126.com";
307 | TargetAttributes = {
308 | 3212D869237BB19A00F6C7DA = {
309 | CreatedOnToolsVersion = 11.2;
310 | ProvisioningStyle = Automatic;
311 | };
312 | 6003F5AD195388D20070C39A = {
313 | TestTargetID = 6003F589195388D20070C39A;
314 | };
315 | };
316 | };
317 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "SDWebImageSVGKitPlugin" */;
318 | compatibilityVersion = "Xcode 3.2";
319 | developmentRegion = English;
320 | hasScannedForEncodings = 0;
321 | knownRegions = (
322 | English,
323 | en,
324 | Base,
325 | );
326 | mainGroup = 6003F581195388D10070C39A;
327 | productRefGroup = 6003F58B195388D20070C39A /* Products */;
328 | projectDirPath = "";
329 | projectRoot = "";
330 | targets = (
331 | 6003F589195388D20070C39A /* SDWebImageSVGKitPlugin_Example */,
332 | 6003F5AD195388D20070C39A /* SDWebImageSVGKitPlugin_Tests */,
333 | 3212D869237BB19A00F6C7DA /* SDWebImageSVGKitPlugin_Example macOS */,
334 | );
335 | };
336 | /* End PBXProject section */
337 |
338 | /* Begin PBXResourcesBuildPhase section */
339 | 3212D868237BB19A00F6C7DA /* Resources */ = {
340 | isa = PBXResourcesBuildPhase;
341 | buildActionMask = 2147483647;
342 | files = (
343 | 3212D873237BB19C00F6C7DA /* Assets.xcassets in Resources */,
344 | 3212D876237BB19C00F6C7DA /* Main.storyboard in Resources */,
345 | );
346 | runOnlyForDeploymentPostprocessing = 0;
347 | };
348 | 6003F588195388D20070C39A /* Resources */ = {
349 | isa = PBXResourcesBuildPhase;
350 | buildActionMask = 2147483647;
351 | files = (
352 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */,
353 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */,
354 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */,
355 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */,
356 | );
357 | runOnlyForDeploymentPostprocessing = 0;
358 | };
359 | 6003F5AC195388D20070C39A /* Resources */ = {
360 | isa = PBXResourcesBuildPhase;
361 | buildActionMask = 2147483647;
362 | files = (
363 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */,
364 | );
365 | runOnlyForDeploymentPostprocessing = 0;
366 | };
367 | /* End PBXResourcesBuildPhase section */
368 |
369 | /* Begin PBXShellScriptBuildPhase section */
370 | 0919466702F07A302B6FCFCB /* [CP] Check Pods Manifest.lock */ = {
371 | isa = PBXShellScriptBuildPhase;
372 | buildActionMask = 2147483647;
373 | files = (
374 | );
375 | inputFileListPaths = (
376 | );
377 | inputPaths = (
378 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
379 | "${PODS_ROOT}/Manifest.lock",
380 | );
381 | name = "[CP] Check Pods Manifest.lock";
382 | outputFileListPaths = (
383 | );
384 | outputPaths = (
385 | "$(DERIVED_FILE_DIR)/Pods-SDWebImageSVGKitPlugin_Example macOS-checkManifestLockResult.txt",
386 | );
387 | runOnlyForDeploymentPostprocessing = 0;
388 | shellPath = /bin/sh;
389 | 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";
390 | showEnvVarsInLog = 0;
391 | };
392 | 481D0B450706B080C00F9A03 /* [CP] Check Pods Manifest.lock */ = {
393 | isa = PBXShellScriptBuildPhase;
394 | buildActionMask = 2147483647;
395 | files = (
396 | );
397 | inputFileListPaths = (
398 | );
399 | inputPaths = (
400 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
401 | "${PODS_ROOT}/Manifest.lock",
402 | );
403 | name = "[CP] Check Pods Manifest.lock";
404 | outputFileListPaths = (
405 | );
406 | outputPaths = (
407 | "$(DERIVED_FILE_DIR)/Pods-SDWebImageSVGKitPlugin_Example-checkManifestLockResult.txt",
408 | );
409 | runOnlyForDeploymentPostprocessing = 0;
410 | shellPath = /bin/sh;
411 | 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";
412 | showEnvVarsInLog = 0;
413 | };
414 | 4F61BB5BCC5B1DB4D653445D /* [CP] Embed Pods Frameworks */ = {
415 | isa = PBXShellScriptBuildPhase;
416 | buildActionMask = 2147483647;
417 | files = (
418 | );
419 | inputPaths = (
420 | "${PODS_ROOT}/Target Support Files/Pods-SDWebImageSVGKitPlugin_Example/Pods-SDWebImageSVGKitPlugin_Example-frameworks.sh",
421 | "${BUILT_PRODUCTS_DIR}/CocoaLumberjack-iOS/CocoaLumberjack.framework",
422 | "${BUILT_PRODUCTS_DIR}/SDWebImage-iOS/SDWebImage.framework",
423 | "${BUILT_PRODUCTS_DIR}/SDWebImageSVGKitPlugin-iOS/SDWebImageSVGKitPlugin.framework",
424 | "${BUILT_PRODUCTS_DIR}/SVGKit-iOS/SVGKit.framework",
425 | );
426 | name = "[CP] Embed Pods Frameworks";
427 | outputPaths = (
428 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CocoaLumberjack.framework",
429 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
430 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImageSVGKitPlugin.framework",
431 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SVGKit.framework",
432 | );
433 | runOnlyForDeploymentPostprocessing = 0;
434 | shellPath = /bin/sh;
435 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SDWebImageSVGKitPlugin_Example/Pods-SDWebImageSVGKitPlugin_Example-frameworks.sh\"\n";
436 | showEnvVarsInLog = 0;
437 | };
438 | A4D3B6DF6E2B755977A6CF07 /* [CP] Embed Pods Frameworks */ = {
439 | isa = PBXShellScriptBuildPhase;
440 | buildActionMask = 2147483647;
441 | files = (
442 | );
443 | inputPaths = (
444 | "${PODS_ROOT}/Target Support Files/Pods-SDWebImageSVGKitPlugin_Example macOS/Pods-SDWebImageSVGKitPlugin_Example macOS-frameworks.sh",
445 | "${BUILT_PRODUCTS_DIR}/CocoaLumberjack-macOS/CocoaLumberjack.framework",
446 | "${BUILT_PRODUCTS_DIR}/SDWebImage-macOS/SDWebImage.framework",
447 | "${BUILT_PRODUCTS_DIR}/SDWebImageSVGKitPlugin-macOS/SDWebImageSVGKitPlugin.framework",
448 | "${BUILT_PRODUCTS_DIR}/SVGKit-macOS/SVGKit.framework",
449 | );
450 | name = "[CP] Embed Pods Frameworks";
451 | outputPaths = (
452 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CocoaLumberjack.framework",
453 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
454 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImageSVGKitPlugin.framework",
455 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SVGKit.framework",
456 | );
457 | runOnlyForDeploymentPostprocessing = 0;
458 | shellPath = /bin/sh;
459 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SDWebImageSVGKitPlugin_Example macOS/Pods-SDWebImageSVGKitPlugin_Example macOS-frameworks.sh\"\n";
460 | showEnvVarsInLog = 0;
461 | };
462 | /* End PBXShellScriptBuildPhase section */
463 |
464 | /* Begin PBXSourcesBuildPhase section */
465 | 3212D866237BB19A00F6C7DA /* Sources */ = {
466 | isa = PBXSourcesBuildPhase;
467 | buildActionMask = 2147483647;
468 | files = (
469 | 3212D871237BB19A00F6C7DA /* ViewController.m in Sources */,
470 | 3212D879237BB19C00F6C7DA /* main.m in Sources */,
471 | 3212D86E237BB19A00F6C7DA /* AppDelegate.m in Sources */,
472 | );
473 | runOnlyForDeploymentPostprocessing = 0;
474 | };
475 | 6003F586195388D20070C39A /* Sources */ = {
476 | isa = PBXSourcesBuildPhase;
477 | buildActionMask = 2147483647;
478 | files = (
479 | 6003F59E195388D20070C39A /* SDAppDelegate.m in Sources */,
480 | 6003F5A7195388D20070C39A /* SDViewController.m in Sources */,
481 | 6003F59A195388D20070C39A /* main.m in Sources */,
482 | );
483 | runOnlyForDeploymentPostprocessing = 0;
484 | };
485 | 6003F5AA195388D20070C39A /* Sources */ = {
486 | isa = PBXSourcesBuildPhase;
487 | buildActionMask = 2147483647;
488 | files = (
489 | 6003F5BC195388D20070C39A /* Tests.m in Sources */,
490 | );
491 | runOnlyForDeploymentPostprocessing = 0;
492 | };
493 | /* End PBXSourcesBuildPhase section */
494 |
495 | /* Begin PBXTargetDependency section */
496 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = {
497 | isa = PBXTargetDependency;
498 | target = 6003F589195388D20070C39A /* SDWebImageSVGKitPlugin_Example */;
499 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */;
500 | };
501 | /* End PBXTargetDependency section */
502 |
503 | /* Begin PBXVariantGroup section */
504 | 3212D874237BB19C00F6C7DA /* Main.storyboard */ = {
505 | isa = PBXVariantGroup;
506 | children = (
507 | 3212D875237BB19C00F6C7DA /* Base */,
508 | );
509 | name = Main.storyboard;
510 | sourceTree = "";
511 | };
512 | 6003F596195388D20070C39A /* InfoPlist.strings */ = {
513 | isa = PBXVariantGroup;
514 | children = (
515 | 6003F597195388D20070C39A /* en */,
516 | );
517 | name = InfoPlist.strings;
518 | sourceTree = "";
519 | };
520 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = {
521 | isa = PBXVariantGroup;
522 | children = (
523 | 6003F5B9195388D20070C39A /* en */,
524 | );
525 | name = InfoPlist.strings;
526 | sourceTree = "";
527 | };
528 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = {
529 | isa = PBXVariantGroup;
530 | children = (
531 | 71719F9E1E33DC2100824A3D /* Base */,
532 | );
533 | name = LaunchScreen.storyboard;
534 | sourceTree = "";
535 | };
536 | /* End PBXVariantGroup section */
537 |
538 | /* Begin XCBuildConfiguration section */
539 | 3212D87B237BB19C00F6C7DA /* Debug */ = {
540 | isa = XCBuildConfiguration;
541 | baseConfigurationReference = 660371F9B91C792912F322A6 /* Pods-SDWebImageSVGKitPlugin_Example macOS.debug.xcconfig */;
542 | buildSettings = {
543 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
544 | CLANG_ANALYZER_NONNULL = YES;
545 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
546 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
547 | CLANG_ENABLE_OBJC_WEAK = YES;
548 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
549 | CLANG_WARN_COMMA = YES;
550 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
551 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
552 | CLANG_WARN_INFINITE_RECURSION = YES;
553 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
554 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
555 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
556 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
557 | CLANG_WARN_STRICT_PROTOTYPES = YES;
558 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
559 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
560 | CLANG_WARN_UNREACHABLE_CODE = YES;
561 | CODE_SIGN_ENTITLEMENTS = "SDWebImageSVGKitPlugin_Example macOS/SDWebImageSVGKitPlugin_Example_macOS.entitlements";
562 | CODE_SIGN_STYLE = Automatic;
563 | COMBINE_HIDPI_IMAGES = YES;
564 | DEBUG_INFORMATION_FORMAT = dwarf;
565 | ENABLE_STRICT_OBJC_MSGSEND = YES;
566 | GCC_C_LANGUAGE_STANDARD = gnu11;
567 | GCC_NO_COMMON_BLOCKS = YES;
568 | INFOPLIST_FILE = "SDWebImageSVGKitPlugin_Example macOS/Info.plist";
569 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
570 | MACOSX_DEPLOYMENT_TARGET = 10.15;
571 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
572 | MTL_FAST_MATH = YES;
573 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGKitPlugin-Example-macOS";
574 | PRODUCT_NAME = "$(TARGET_NAME)";
575 | SDKROOT = macosx;
576 | };
577 | name = Debug;
578 | };
579 | 3212D87C237BB19C00F6C7DA /* Release */ = {
580 | isa = XCBuildConfiguration;
581 | baseConfigurationReference = 98C76647E80D9D3326753C36 /* Pods-SDWebImageSVGKitPlugin_Example macOS.release.xcconfig */;
582 | buildSettings = {
583 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
584 | CLANG_ANALYZER_NONNULL = YES;
585 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
586 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
587 | CLANG_ENABLE_OBJC_WEAK = YES;
588 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
589 | CLANG_WARN_COMMA = YES;
590 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
591 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
592 | CLANG_WARN_INFINITE_RECURSION = YES;
593 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
594 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
595 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
596 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
597 | CLANG_WARN_STRICT_PROTOTYPES = YES;
598 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
599 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
600 | CLANG_WARN_UNREACHABLE_CODE = YES;
601 | CODE_SIGN_ENTITLEMENTS = "SDWebImageSVGKitPlugin_Example macOS/SDWebImageSVGKitPlugin_Example_macOS.entitlements";
602 | CODE_SIGN_STYLE = Automatic;
603 | COMBINE_HIDPI_IMAGES = YES;
604 | COPY_PHASE_STRIP = NO;
605 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
606 | ENABLE_STRICT_OBJC_MSGSEND = YES;
607 | GCC_C_LANGUAGE_STANDARD = gnu11;
608 | GCC_NO_COMMON_BLOCKS = YES;
609 | INFOPLIST_FILE = "SDWebImageSVGKitPlugin_Example macOS/Info.plist";
610 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
611 | MACOSX_DEPLOYMENT_TARGET = 10.15;
612 | MTL_ENABLE_DEBUG_INFO = NO;
613 | MTL_FAST_MATH = YES;
614 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGKitPlugin-Example-macOS";
615 | PRODUCT_NAME = "$(TARGET_NAME)";
616 | SDKROOT = macosx;
617 | };
618 | name = Release;
619 | };
620 | 6003F5BD195388D20070C39A /* Debug */ = {
621 | isa = XCBuildConfiguration;
622 | buildSettings = {
623 | ALWAYS_SEARCH_USER_PATHS = NO;
624 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
625 | CLANG_CXX_LIBRARY = "libc++";
626 | CLANG_ENABLE_MODULES = YES;
627 | CLANG_ENABLE_OBJC_ARC = YES;
628 | CLANG_WARN_BOOL_CONVERSION = YES;
629 | CLANG_WARN_CONSTANT_CONVERSION = YES;
630 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
631 | CLANG_WARN_EMPTY_BODY = YES;
632 | CLANG_WARN_ENUM_CONVERSION = YES;
633 | CLANG_WARN_INT_CONVERSION = YES;
634 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
635 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
636 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
637 | COPY_PHASE_STRIP = NO;
638 | ENABLE_TESTABILITY = YES;
639 | GCC_C_LANGUAGE_STANDARD = gnu99;
640 | GCC_DYNAMIC_NO_PIC = NO;
641 | GCC_OPTIMIZATION_LEVEL = 0;
642 | GCC_PREPROCESSOR_DEFINITIONS = (
643 | "DEBUG=1",
644 | "$(inherited)",
645 | );
646 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
647 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
648 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
649 | GCC_WARN_UNDECLARED_SELECTOR = YES;
650 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
651 | GCC_WARN_UNUSED_FUNCTION = YES;
652 | GCC_WARN_UNUSED_VARIABLE = YES;
653 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
654 | ONLY_ACTIVE_ARCH = YES;
655 | SDKROOT = iphoneos;
656 | TARGETED_DEVICE_FAMILY = "1,2";
657 | };
658 | name = Debug;
659 | };
660 | 6003F5BE195388D20070C39A /* Release */ = {
661 | isa = XCBuildConfiguration;
662 | buildSettings = {
663 | ALWAYS_SEARCH_USER_PATHS = NO;
664 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
665 | CLANG_CXX_LIBRARY = "libc++";
666 | CLANG_ENABLE_MODULES = YES;
667 | CLANG_ENABLE_OBJC_ARC = YES;
668 | CLANG_WARN_BOOL_CONVERSION = YES;
669 | CLANG_WARN_CONSTANT_CONVERSION = YES;
670 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
671 | CLANG_WARN_EMPTY_BODY = YES;
672 | CLANG_WARN_ENUM_CONVERSION = YES;
673 | CLANG_WARN_INT_CONVERSION = YES;
674 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
675 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
676 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
677 | COPY_PHASE_STRIP = YES;
678 | ENABLE_NS_ASSERTIONS = NO;
679 | GCC_C_LANGUAGE_STANDARD = gnu99;
680 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
681 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
682 | GCC_WARN_UNDECLARED_SELECTOR = YES;
683 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
684 | GCC_WARN_UNUSED_FUNCTION = YES;
685 | GCC_WARN_UNUSED_VARIABLE = YES;
686 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
687 | SDKROOT = iphoneos;
688 | TARGETED_DEVICE_FAMILY = "1,2";
689 | VALIDATE_PRODUCT = YES;
690 | };
691 | name = Release;
692 | };
693 | 6003F5C0195388D20070C39A /* Debug */ = {
694 | isa = XCBuildConfiguration;
695 | baseConfigurationReference = 9EC149B219987DD8DDFC9911 /* Pods-SDWebImageSVGKitPlugin_Example.debug.xcconfig */;
696 | buildSettings = {
697 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
698 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
699 | GCC_PREFIX_HEADER = "SDWebImageSVGKitPlugin/SDWebImageSVGKitPlugin-Prefix.pch";
700 | INFOPLIST_FILE = "SDWebImageSVGKitPlugin/SDWebImageSVGKitPlugin-Info.plist";
701 | MODULE_NAME = ExampleApp;
702 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
703 | PRODUCT_NAME = "$(TARGET_NAME)";
704 | SWIFT_VERSION = 4.0;
705 | WRAPPER_EXTENSION = app;
706 | };
707 | name = Debug;
708 | };
709 | 6003F5C1195388D20070C39A /* Release */ = {
710 | isa = XCBuildConfiguration;
711 | baseConfigurationReference = 3FFA41E92046CCEB10C6CB18 /* Pods-SDWebImageSVGKitPlugin_Example.release.xcconfig */;
712 | buildSettings = {
713 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
714 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
715 | GCC_PREFIX_HEADER = "SDWebImageSVGKitPlugin/SDWebImageSVGKitPlugin-Prefix.pch";
716 | INFOPLIST_FILE = "SDWebImageSVGKitPlugin/SDWebImageSVGKitPlugin-Info.plist";
717 | MODULE_NAME = ExampleApp;
718 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
719 | PRODUCT_NAME = "$(TARGET_NAME)";
720 | SWIFT_VERSION = 4.0;
721 | WRAPPER_EXTENSION = app;
722 | };
723 | name = Release;
724 | };
725 | 6003F5C3195388D20070C39A /* Debug */ = {
726 | isa = XCBuildConfiguration;
727 | buildSettings = {
728 | BUNDLE_LOADER = "$(TEST_HOST)";
729 | FRAMEWORK_SEARCH_PATHS = (
730 | "$(PLATFORM_DIR)/Developer/Library/Frameworks",
731 | "$(inherited)",
732 | "$(DEVELOPER_FRAMEWORKS_DIR)",
733 | );
734 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
735 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
736 | GCC_PREPROCESSOR_DEFINITIONS = (
737 | "DEBUG=1",
738 | "$(inherited)",
739 | );
740 | INFOPLIST_FILE = "Tests/Tests-Info.plist";
741 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
742 | PRODUCT_NAME = "$(TARGET_NAME)";
743 | SWIFT_VERSION = 4.0;
744 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDWebImageSVGKitPlugin_Example.app/SDWebImageSVGKitPlugin_Example";
745 | WRAPPER_EXTENSION = xctest;
746 | };
747 | name = Debug;
748 | };
749 | 6003F5C4195388D20070C39A /* Release */ = {
750 | isa = XCBuildConfiguration;
751 | buildSettings = {
752 | BUNDLE_LOADER = "$(TEST_HOST)";
753 | FRAMEWORK_SEARCH_PATHS = (
754 | "$(PLATFORM_DIR)/Developer/Library/Frameworks",
755 | "$(inherited)",
756 | "$(DEVELOPER_FRAMEWORKS_DIR)",
757 | );
758 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
759 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
760 | INFOPLIST_FILE = "Tests/Tests-Info.plist";
761 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
762 | PRODUCT_NAME = "$(TARGET_NAME)";
763 | SWIFT_VERSION = 4.0;
764 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDWebImageSVGKitPlugin_Example.app/SDWebImageSVGKitPlugin_Example";
765 | WRAPPER_EXTENSION = xctest;
766 | };
767 | name = Release;
768 | };
769 | /* End XCBuildConfiguration section */
770 |
771 | /* Begin XCConfigurationList section */
772 | 3212D87D237BB19C00F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin_Example macOS" */ = {
773 | isa = XCConfigurationList;
774 | buildConfigurations = (
775 | 3212D87B237BB19C00F6C7DA /* Debug */,
776 | 3212D87C237BB19C00F6C7DA /* Release */,
777 | );
778 | defaultConfigurationIsVisible = 0;
779 | defaultConfigurationName = Release;
780 | };
781 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "SDWebImageSVGKitPlugin" */ = {
782 | isa = XCConfigurationList;
783 | buildConfigurations = (
784 | 6003F5BD195388D20070C39A /* Debug */,
785 | 6003F5BE195388D20070C39A /* Release */,
786 | );
787 | defaultConfigurationIsVisible = 0;
788 | defaultConfigurationName = Release;
789 | };
790 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin_Example" */ = {
791 | isa = XCConfigurationList;
792 | buildConfigurations = (
793 | 6003F5C0195388D20070C39A /* Debug */,
794 | 6003F5C1195388D20070C39A /* Release */,
795 | );
796 | defaultConfigurationIsVisible = 0;
797 | defaultConfigurationName = Release;
798 | };
799 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin_Tests" */ = {
800 | isa = XCConfigurationList;
801 | buildConfigurations = (
802 | 6003F5C3195388D20070C39A /* Debug */,
803 | 6003F5C4195388D20070C39A /* Release */,
804 | );
805 | defaultConfigurationIsVisible = 0;
806 | defaultConfigurationName = Release;
807 | };
808 | /* End XCConfigurationList section */
809 | };
810 | rootObject = 6003F582195388D10070C39A /* Project object */;
811 | }
812 |
--------------------------------------------------------------------------------