From 238218096b96d729fa4524a49d45f26e681a1c9e Mon Sep 17 00:00:00 2001 From: Ashton Williams Date: Fri, 10 Apr 2015 10:00:58 +1000 Subject: [PATCH 1/2] add .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ From 3e9f4490bb6867c04d813abaef95ee475cd7388b Mon Sep 17 00:00:00 2001 From: Ashton Williams Date: Sun, 19 Apr 2015 16:49:13 +1000 Subject: [PATCH 2/2] Added 'NoSwizzle' subspec to disable UIKit swizzled methods. 'Swizzle' subspec also added as default. Moved back to ruby podspec from json. --- StandardPaths.podspec | 30 ++++++++++++++++++++++++++++++ StandardPaths.podspec.json | 24 ------------------------ 2 files changed, 30 insertions(+), 24 deletions(-) create mode 100644 StandardPaths.podspec delete mode 100644 StandardPaths.podspec.json diff --git a/StandardPaths.podspec b/StandardPaths.podspec new file mode 100644 index 0000000..8152af4 --- /dev/null +++ b/StandardPaths.podspec @@ -0,0 +1,30 @@ +Pod::Spec.new do |s| + s.name = "StandardPaths" + s.version = "1.6.4" + s.summary = "Category on NSFileManager for simple consistent access to standard application directories." + s.description = <<-DESC + StandardPaths is a category on `NSFileManager` for simplifying access to standard application directories on iOS and Mac OS and abstracting the iCloud backup flags on iOS. + It also provides support for working with device-specific file suffixes, such as the `@2x` suffix for Retina displays, or the `-568h` suffix for iPhone 5 and can optionally swizzle certain UIKit methods to support these suffixes more consistently. + DESC + s.homepage = "https://github.com/nicklockwood/StandardPaths" + s.license = "Zlib License" + s.author = { "Nick Lockwood" => "http://charcoaldesign.co.uk/" } + s.social_media_url = "http://twitter.com/nicklockwood" + s.ios.deployment_target = "4.3" + s.osx.deployment_target = "10.6" + s.source = { :git => "https://github.com/nicklockwood/StandardPaths.git", :tag => s.version.to_s } + s.source_files = "StandardPaths/" + s.requires_arc = true + s.default_subspecs = ['Swizzle'] + + s.subspec 'Swizzle' do |ss| + ss.source_files = '' + ss.prefix_header_contents = '#define SP_SWIZZLE_ENABLED 1' + end + + s.subspec 'NoSwizzle' do |ss| + ss.source_files = 'StandardPaths/' + ss.prefix_header_contents = '#define SP_SWIZZLE_ENABLED 0' + end + +end diff --git a/StandardPaths.podspec.json b/StandardPaths.podspec.json deleted file mode 100644 index b245c91..0000000 --- a/StandardPaths.podspec.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "StandardPaths", - "version": "1.6.4", - "summary": "Category on NSFileManager for simple consistent access to standard application directories.", - "description": "StandardPaths is a category on NSFileManager for simplifying access to standard application directories on iOS and Mac OS and abstracting the iCloud backup flags on iOS. It also provides support for working with device-specific file suffixes, such as the @2x suffix for Retina displays, or the -568h suffix for iPhone 5 and can optionally swizzle certain UIKit methods to support these suffixes more consistently.", - "homepage": "https://github.com/nicklockwood/StandardPaths", - "authors": { - "Nick Lockwood": "http://charcoaldesign.co.uk/" - }, - "source": { - "git": "https://github.com/nicklockwood/StandardPaths.git", - "tag": "1.6.4" - }, - "source_files": "StandardPaths/StandardPaths.{h,m}", - "license": { - "type": "Zlib License", - "file": "LICENCE.md" - }, - "requires_arc": true, - "platforms": { - "ios": "4.3", - "osx": "10.6" - } -}