Skip to content

Commit db04af2

Browse files
committed
Add the macOS demo, update the pod source
1 parent 141b8a5 commit db04af2

File tree

17 files changed

+1301
-51
lines changed

17 files changed

+1301
-51
lines changed

Example/Podfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
use_frameworks!
22

33
target 'SDWebImageSVGCoder_Example' do
4+
platform :ios, '9.3'
45
pod 'SDWebImageSVGCoder', :path => '../'
5-
pod 'SVGKit', :git => 'https://github.com/SVGKit/SVGKit.git', :branch => '2.x'
66

77
target 'SDWebImageSVGCoder_Tests' do
88
inherit! :search_paths
99

1010

1111
end
1212
end
13+
14+
target 'SDWebImageSVGCoder_Example macOS' do
15+
platform :osx, '10.13'
16+
pod 'SDWebImageSVGCoder', :path => '../'
17+
end

Example/Podfile.lock

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,23 @@ PODS:
1414

1515
DEPENDENCIES:
1616
- SDWebImageSVGCoder (from `../`)
17-
- SVGKit (from `https://github.com/SVGKit/SVGKit.git`, branch `2.x`)
17+
18+
SPEC REPOS:
19+
https://github.com/cocoapods/specs.git:
20+
- CocoaLumberjack
21+
- SDWebImage
22+
- SVGKit
1823

1924
EXTERNAL SOURCES:
2025
SDWebImageSVGCoder:
21-
:path: ../
22-
SVGKit:
23-
:branch: 2.x
24-
:git: https://github.com/SVGKit/SVGKit.git
25-
26-
CHECKOUT OPTIONS:
27-
SVGKit:
28-
:commit: 0d4db53890c664fb8605666e6fbccd14912ff821
29-
:git: https://github.com/SVGKit/SVGKit.git
26+
:path: "../"
3027

3128
SPEC CHECKSUMS:
3229
CocoaLumberjack: db7cc9e464771f12054c22ff6947c5a58d43a0fd
3330
SDWebImage: e52654ceef9fdc19f4c612d64a5b6d3f05dd81a4
3431
SDWebImageSVGCoder: adcf27c5fe8424441f515f54409c64b57dbaed1b
3532
SVGKit: 8a2fc74258bdb2abb54d3b65f3dd68b0277a9c4d
3633

37-
PODFILE CHECKSUM: dc5153f27ba2a6dd43c49d8e0100b34b78f46730
34+
PODFILE CHECKSUM: 5438d217c00bb7b2da72c6e8ce8ec9db055a4cc6
3835

39-
COCOAPODS: 1.4.0
36+
COCOAPODS: 1.5.3
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// AppDelegate.h
3+
// SDWebImageSVGCoder-Example-macOS
4+
//
5+
// Created by lizhuoli on 2018/11/1.
6+
// Copyright © 2018 [email protected]. All rights reserved.
7+
//
8+
9+
#import <Cocoa/Cocoa.h>
10+
11+
@interface AppDelegate : NSObject <NSApplicationDelegate>
12+
13+
14+
@end
15+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//
2+
// AppDelegate.m
3+
// SDWebImageSVGCoder-Example-macOS
4+
//
5+
// Created by lizhuoli on 2018/11/1.
6+
// Copyright © 2018 [email protected]. 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
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

Example/SDWebImageSVGCoder-Example-macOS/Base.lproj/Main.storyboard

Lines changed: 717 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIconFile</key>
10+
<string></string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>$(PRODUCT_NAME)</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
<key>LSMinimumSystemVersion</key>
24+
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
25+
<key>NSAppTransportSecurity</key>
26+
<dict>
27+
<key>NSAllowsArbitraryLoads</key>
28+
<true/>
29+
</dict>
30+
<key>NSHumanReadableCopyright</key>
31+
<string>Copyright © 2018 [email protected]. All rights reserved.</string>
32+
<key>NSMainStoryboardFile</key>
33+
<string>Main</string>
34+
<key>NSPrincipalClass</key>
35+
<string>NSApplication</string>
36+
</dict>
37+
</plist>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// ViewController.h
3+
// SDWebImageSVGCoder-Example-macOS
4+
//
5+
// Created by lizhuoli on 2018/11/1.
6+
// Copyright © 2018 [email protected]. All rights reserved.
7+
//
8+
9+
#import <Cocoa/Cocoa.h>
10+
11+
@interface ViewController : NSViewController
12+
13+
14+
@end
15+

0 commit comments

Comments
 (0)