Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit 4a39ac5

Browse files
committed
Fix the travis-CI issue of example
1 parent e915a87 commit 4a39ac5

File tree

4 files changed

+80
-4
lines changed

4 files changed

+80
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1120"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "3212D869237BB19A00F6C7DA"
18+
BuildableName = "SDWebImageSVGKitPlugin_Example macOS.app"
19+
BlueprintName = "SDWebImageSVGKitPlugin_Example macOS"
20+
ReferencedContainer = "container:SDWebImageSVGKitPlugin.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "3212D869237BB19A00F6C7DA"
48+
BuildableName = "SDWebImageSVGKitPlugin_Example macOS.app"
49+
BlueprintName = "SDWebImageSVGKitPlugin_Example macOS"
50+
ReferencedContainer = "container:SDWebImageSVGKitPlugin.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
</LaunchAction>
54+
<ProfileAction
55+
buildConfiguration = "Release"
56+
shouldUseLaunchSchemeArgsEnv = "YES"
57+
savedToolIdentifier = ""
58+
useCustomWorkingDirectory = "NO"
59+
debugDocumentVersioning = "YES">
60+
<BuildableProductRunnable
61+
runnableDebuggingMode = "0">
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "3212D869237BB19A00F6C7DA"
65+
BuildableName = "SDWebImageSVGKitPlugin_Example macOS.app"
66+
BlueprintName = "SDWebImageSVGKitPlugin_Example macOS"
67+
ReferencedContainer = "container:SDWebImageSVGKitPlugin.xcodeproj">
68+
</BuildableReference>
69+
</BuildableProductRunnable>
70+
</ProfileAction>
71+
<AnalyzeAction
72+
buildConfiguration = "Debug">
73+
</AnalyzeAction>
74+
<ArchiveAction
75+
buildConfiguration = "Release"
76+
revealArchiveInOrganizer = "YES">
77+
</ArchiveAction>
78+
</Scheme>

Example/SDWebImageSVGKitPlugin/SDViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ - (void)viewDidLoad
6161
}
6262
}];
6363
// 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:@{SDWebImageContextSVGImageSize : @(CGSizeMake(100, 100))} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
64+
[imageView3 sd_setImageWithURL:svgURL3 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextSVGKImageSize : @(CGSizeMake(100, 100))} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
6565
if (image) {
6666
NSLog(@"UIImageView SVG load success");
6767
}

Example/SDWebImageSVGKitPlugin_Example macOS/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ - (void)viewDidLoad {
3939
NSAssert(svgData.length > 0, @"SVG Data should exist");
4040
}
4141
}];
42-
[imageView2 sd_setImageWithURL:SVGURL2 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextSVGImageSize : @(imageView2.bounds.size)} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
42+
[imageView2 sd_setImageWithURL:SVGURL2 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextSVGKImageSize : @(imageView2.bounds.size)} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
4343
if (image) {
4444
NSLog(@"SVG load animation success");
4545
[NSAnimationContext runAnimationGroup:^(NSAnimationContext * _Nonnull context) {

SDWebImageSVGKitPlugin.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,6 @@
595595
DYLIB_INSTALL_NAME_BASE = "@rpath";
596596
FRAMEWORK_SEARCH_PATHS = (
597597
"$(inherited)",
598-
"$(PROJECT_DIR)/Carthage/Build/iOS",
599598
"$(PROJECT_DIR)/Carthage/Build/tvOS",
600599
);
601600
INFOPLIST_FILE = "$(SRCROOT)/SDWebImageSVGKitPlugin/Module/Info.plist";
@@ -624,7 +623,6 @@
624623
DYLIB_INSTALL_NAME_BASE = "@rpath";
625624
FRAMEWORK_SEARCH_PATHS = (
626625
"$(inherited)",
627-
"$(PROJECT_DIR)/Carthage/Build/iOS",
628626
"$(PROJECT_DIR)/Carthage/Build/tvOS",
629627
);
630628
INFOPLIST_FILE = "$(SRCROOT)/SDWebImageSVGKitPlugin/Module/Info.plist";

0 commit comments

Comments
 (0)