Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Example/SDWebImagePDFCoder.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
1745C32CD7A3DC952B084514 /* Pods-SDWebImagePDFCoder_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImagePDFCoder_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-SDWebImagePDFCoder_Tests/Pods-SDWebImagePDFCoder_Tests.release.xcconfig"; sourceTree = "<group>"; };
23D236E5C8333D1EF1AF6ED1 /* Pods-SDWebImagePDFCoder_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImagePDFCoder_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SDWebImagePDFCoder_Example/Pods-SDWebImagePDFCoder_Example.release.xcconfig"; sourceTree = "<group>"; };
243AAAFCC482EEC1752548DA /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
32350C422393CE8900151591 /* SDWebImagePDFCoder_Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SDWebImagePDFCoder_Example.entitlements; sourceTree = "<group>"; };
32D8F2F62185F1C300FFC14A /* SDWebImagePDFCoder_Example macOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SDWebImagePDFCoder_Example macOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
32D8F2F82185F1C300FFC14A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
32D8F2F92185F1C300FFC14A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -141,6 +142,7 @@
6003F581195388D10070C39A = {
isa = PBXGroup;
children = (
32350C422393CE8900151591 /* SDWebImagePDFCoder_Example.entitlements */,
60FF7A9C1954A5C5007DD14C /* Podspec Metadata */,
6003F593195388D20070C39A /* Example for SDWebImagePDFCoder */,
6003F5B5195388D20070C39A /* Tests */,
Expand Down Expand Up @@ -661,7 +663,7 @@
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "";
COPY_PHASE_STRIP = NO;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down Expand Up @@ -701,7 +703,7 @@
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "";
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand All @@ -723,12 +725,15 @@
baseConfigurationReference = B804462885514B9A9BD2089E /* Pods-SDWebImagePDFCoder_Example.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = SDWebImagePDFCoder_Example.entitlements;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SDWebImagePDFCoder/SDWebImagePDFCoder-Prefix.pch";
INFOPLIST_FILE = "SDWebImagePDFCoder/SDWebImagePDFCoder-Info.plist";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
WRAPPER_EXTENSION = app;
};
name = Debug;
Expand All @@ -738,12 +743,15 @@
baseConfigurationReference = 23D236E5C8333D1EF1AF6ED1 /* Pods-SDWebImagePDFCoder_Example.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = SDWebImagePDFCoder_Example.entitlements;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SDWebImagePDFCoder/SDWebImagePDFCoder-Prefix.pch";
INFOPLIST_FILE = "SDWebImagePDFCoder/SDWebImagePDFCoder-Info.plist";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
WRAPPER_EXTENSION = app;
};
name = Release;
Expand Down
4 changes: 2 additions & 2 deletions Example/SDWebImagePDFCoder/SDViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ - (void)viewDidLoad
NSURL *pdfURL = [NSURL URLWithString:@"https://raw.githubusercontent.com/icons8/flat-color-icons/master/pdf/about.pdf"];
NSURL *pdfURL2 = [NSURL URLWithString:@"https://raw.githubusercontent.com/icons8/flat-color-icons/master/pdf/webcam.pdf"];

CGSize screenSize = [UIScreen mainScreen].bounds.size;
CGSize screenSize = self.view.bounds.size;

UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, screenSize.width, screenSize.height / 2)];
imageView1.contentMode = UIViewContentModeScaleAspectFill;
imageView1.contentMode = UIViewContentModeScaleAspectFit;
imageView1.clipsToBounds = YES;

UIImageView *imageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(0, screenSize.height / 2, screenSize.width, screenSize.height / 2)];
Expand Down
10 changes: 10 additions & 0 deletions Example/SDWebImagePDFCoder_Example.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
5 changes: 5 additions & 0 deletions SDWebImagePDFCoder.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ SDWebImageSVGCoder is a SVG coder plugin for SDWebImage framework, which provide

s.source_files = 'SDWebImagePDFCoder/Classes/**/*', 'SDWebImagePDFCoder/Module/SDWebImagePDFCoder.h'
s.module_map = 'SDWebImagePDFCoder/Module/SDWebImagePDFCoder.modulemap'

s.pod_target_xcconfig = {
'SUPPORTS_MACCATALYST' => 'YES',
'DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER' => 'NO'
}

s.dependency 'SDWebImage', '~> 5.0'
end