From 2b0b4b8b3f95b04f100c608b58dc4976f7a5a931 Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 14:22:23 -0800 Subject: [PATCH 01/10] Added Carthage support. --- Classes/SSWAnimator.h | 1 + Classes/SloppySwiper.h | 2 +- SloppySwiper.xcodeproj/project.pbxproj | 315 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcschemes/SloppySwiper.xcscheme | 80 +++++ SloppySwiper/Info.plist | 26 ++ SloppySwiper/SloppySwiper-Framework.h | 16 + 7 files changed, 446 insertions(+), 1 deletion(-) create mode 100644 SloppySwiper.xcodeproj/project.pbxproj create mode 100644 SloppySwiper.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 SloppySwiper.xcodeproj/xcshareddata/xcschemes/SloppySwiper.xcscheme create mode 100644 SloppySwiper/Info.plist create mode 100644 SloppySwiper/SloppySwiper-Framework.h diff --git a/Classes/SSWAnimator.h b/Classes/SSWAnimator.h index d992003..e07f2f9 100644 --- a/Classes/SSWAnimator.h +++ b/Classes/SSWAnimator.h @@ -5,6 +5,7 @@ // #import +#import // Undocumented animation curve used for the navigation controller's transition. FOUNDATION_EXPORT UIViewAnimationOptions const SSWNavigationTransitionCurve; diff --git a/Classes/SloppySwiper.h b/Classes/SloppySwiper.h index 65e82ca..606403e 100644 --- a/Classes/SloppySwiper.h +++ b/Classes/SloppySwiper.h @@ -5,7 +5,7 @@ // #import - +#import /** * `SloppySwiper` is a class conforming to `UINavigationControllerDelegate` protocol that allows pan back gesture to be started from anywhere on the screen (not only from the left edge). diff --git a/SloppySwiper.xcodeproj/project.pbxproj b/SloppySwiper.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c0d9cc4 --- /dev/null +++ b/SloppySwiper.xcodeproj/project.pbxproj @@ -0,0 +1,315 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 4A4F3F361C79044900284AF4 /* SloppySwiper.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F301C79044900284AF4 /* SloppySwiper.h */; }; + 4A4F3F371C79044900284AF4 /* SloppySwiper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4F3F311C79044900284AF4 /* SloppySwiper.m */; }; + 4A4F3F381C79044900284AF4 /* SSWAnimator.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F321C79044900284AF4 /* SSWAnimator.h */; }; + 4A4F3F391C79044900284AF4 /* SSWAnimator.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4F3F331C79044900284AF4 /* SSWAnimator.m */; }; + 4A4F3F3A1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F341C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h */; }; + 4A4F3F3B1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4F3F351C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m */; }; + 4A4F3F551C7905D400284AF4 /* SloppySwiper-Framework.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F531C7905D400284AF4 /* SloppySwiper-Framework.h */; settings = {ATTRIBUTES = (Public, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 4A4F3F241C79034300284AF4 /* SloppySwiper.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SloppySwiper.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 4A4F3F301C79044900284AF4 /* SloppySwiper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SloppySwiper.h; path = Classes/SloppySwiper.h; sourceTree = ""; }; + 4A4F3F311C79044900284AF4 /* SloppySwiper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SloppySwiper.m; path = Classes/SloppySwiper.m; sourceTree = ""; }; + 4A4F3F321C79044900284AF4 /* SSWAnimator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SSWAnimator.h; path = Classes/SSWAnimator.h; sourceTree = ""; }; + 4A4F3F331C79044900284AF4 /* SSWAnimator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SSWAnimator.m; path = Classes/SSWAnimator.m; sourceTree = ""; }; + 4A4F3F341C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SSWDirectionalPanGestureRecognizer.h; path = Classes/SSWDirectionalPanGestureRecognizer.h; sourceTree = ""; }; + 4A4F3F351C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SSWDirectionalPanGestureRecognizer.m; path = Classes/SSWDirectionalPanGestureRecognizer.m; sourceTree = ""; }; + 4A4F3F521C7905D400284AF4 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SloppySwiper/Info.plist; sourceTree = ""; }; + 4A4F3F531C7905D400284AF4 /* SloppySwiper-Framework.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "SloppySwiper-Framework.h"; path = "SloppySwiper/SloppySwiper-Framework.h"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4A4F3F201C79034300284AF4 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4A4F3F1A1C79034300284AF4 = { + isa = PBXGroup; + children = ( + 4A4F3F511C7905C300284AF4 /* Framework */, + 4A4F3F2F1C79041E00284AF4 /* Classes */, + 4A4F3F251C79034300284AF4 /* Products */, + ); + sourceTree = ""; + }; + 4A4F3F251C79034300284AF4 /* Products */ = { + isa = PBXGroup; + children = ( + 4A4F3F241C79034300284AF4 /* SloppySwiper.framework */, + ); + name = Products; + sourceTree = ""; + }; + 4A4F3F2F1C79041E00284AF4 /* Classes */ = { + isa = PBXGroup; + children = ( + 4A4F3F301C79044900284AF4 /* SloppySwiper.h */, + 4A4F3F311C79044900284AF4 /* SloppySwiper.m */, + 4A4F3F321C79044900284AF4 /* SSWAnimator.h */, + 4A4F3F331C79044900284AF4 /* SSWAnimator.m */, + 4A4F3F341C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h */, + 4A4F3F351C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m */, + ); + name = Classes; + sourceTree = ""; + }; + 4A4F3F511C7905C300284AF4 /* Framework */ = { + isa = PBXGroup; + children = ( + 4A4F3F521C7905D400284AF4 /* Info.plist */, + 4A4F3F531C7905D400284AF4 /* SloppySwiper-Framework.h */, + ); + name = Framework; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 4A4F3F211C79034300284AF4 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 4A4F3F3A1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h in Headers */, + 4A4F3F361C79044900284AF4 /* SloppySwiper.h in Headers */, + 4A4F3F551C7905D400284AF4 /* SloppySwiper-Framework.h in Headers */, + 4A4F3F381C79044900284AF4 /* SSWAnimator.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 4A4F3F231C79034300284AF4 /* SloppySwiper */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4A4F3F2C1C79034300284AF4 /* Build configuration list for PBXNativeTarget "SloppySwiper" */; + buildPhases = ( + 4A4F3F1F1C79034300284AF4 /* Sources */, + 4A4F3F201C79034300284AF4 /* Frameworks */, + 4A4F3F211C79034300284AF4 /* Headers */, + 4A4F3F221C79034300284AF4 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SloppySwiper; + productName = SloppySwiper; + productReference = 4A4F3F241C79034300284AF4 /* SloppySwiper.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4A4F3F1B1C79034300284AF4 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0720; + ORGANIZATIONNAME = "David Wu"; + TargetAttributes = { + 4A4F3F231C79034300284AF4 = { + CreatedOnToolsVersion = 7.2.1; + }; + }; + }; + buildConfigurationList = 4A4F3F1E1C79034300284AF4 /* Build configuration list for PBXProject "SloppySwiper" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 4A4F3F1A1C79034300284AF4; + productRefGroup = 4A4F3F251C79034300284AF4 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4A4F3F231C79034300284AF4 /* SloppySwiper */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4A4F3F221C79034300284AF4 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4A4F3F1F1C79034300284AF4 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4A4F3F391C79044900284AF4 /* SSWAnimator.m in Sources */, + 4A4F3F3B1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m in Sources */, + 4A4F3F371C79044900284AF4 /* SloppySwiper.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 4A4F3F2A1C79034300284AF4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 4A4F3F2B1C79034300284AF4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 4A4F3F2D1C79034300284AF4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = SloppySwiper/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = org.emptypage.SloppySwiper; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 4A4F3F2E1C79034300284AF4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = SloppySwiper/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = org.emptypage.SloppySwiper; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4A4F3F1E1C79034300284AF4 /* Build configuration list for PBXProject "SloppySwiper" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4A4F3F2A1C79034300284AF4 /* Debug */, + 4A4F3F2B1C79034300284AF4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4A4F3F2C1C79034300284AF4 /* Build configuration list for PBXNativeTarget "SloppySwiper" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4A4F3F2D1C79034300284AF4 /* Debug */, + 4A4F3F2E1C79034300284AF4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4A4F3F1B1C79034300284AF4 /* Project object */; +} diff --git a/SloppySwiper.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SloppySwiper.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1f957c3 --- /dev/null +++ b/SloppySwiper.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/SloppySwiper.xcodeproj/xcshareddata/xcschemes/SloppySwiper.xcscheme b/SloppySwiper.xcodeproj/xcshareddata/xcschemes/SloppySwiper.xcscheme new file mode 100644 index 0000000..e31f185 --- /dev/null +++ b/SloppySwiper.xcodeproj/xcshareddata/xcschemes/SloppySwiper.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SloppySwiper/Info.plist b/SloppySwiper/Info.plist new file mode 100644 index 0000000..d3de8ee --- /dev/null +++ b/SloppySwiper/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/SloppySwiper/SloppySwiper-Framework.h b/SloppySwiper/SloppySwiper-Framework.h new file mode 100644 index 0000000..4c8fae8 --- /dev/null +++ b/SloppySwiper/SloppySwiper-Framework.h @@ -0,0 +1,16 @@ +// +// SloppySwiper-Framework.h +// SloppySwiper +// +// Created by David Wu on 2/20/16. +// + +#import + +//! Project version number for SloppySwiper. +FOUNDATION_EXPORT double SloppySwiperVersionNumber; + +//! Project version string for SloppySwiper. +FOUNDATION_EXPORT const unsigned char SloppySwiperVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import From 80f3fcb3c70f5c9191e9e3becf84b5c02808d3fd Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 14:29:51 -0800 Subject: [PATCH 02/10] Carthage support. --- .../{SloppySwiper.xcscheme => SloppySwiper iOS.xcscheme} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename SloppySwiper.xcodeproj/xcshareddata/xcschemes/{SloppySwiper.xcscheme => SloppySwiper iOS.xcscheme} (100%) diff --git a/SloppySwiper.xcodeproj/xcshareddata/xcschemes/SloppySwiper.xcscheme b/SloppySwiper.xcodeproj/xcshareddata/xcschemes/SloppySwiper iOS.xcscheme similarity index 100% rename from SloppySwiper.xcodeproj/xcshareddata/xcschemes/SloppySwiper.xcscheme rename to SloppySwiper.xcodeproj/xcshareddata/xcschemes/SloppySwiper iOS.xcscheme From f4e1457a911e95c24684d1b296d0eb9d91b4158c Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 14:53:27 -0800 Subject: [PATCH 03/10] Add Carthage support. --- SloppySwiper/SloppySwiper-Framework.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SloppySwiper/SloppySwiper-Framework.h b/SloppySwiper/SloppySwiper-Framework.h index 4c8fae8..bd29b6e 100644 --- a/SloppySwiper/SloppySwiper-Framework.h +++ b/SloppySwiper/SloppySwiper-Framework.h @@ -14,3 +14,7 @@ FOUNDATION_EXPORT double SloppySwiperVersionNumber; FOUNDATION_EXPORT const unsigned char SloppySwiperVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import + +#import "SloppySwiper.h" +#import "SSWAnimator.h" +#import "SSWDirectionalPanGestureRecognizer.h" From aa49eb03674afef689b21ce81fe10b36f5c4d25b Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 14:56:03 -0800 Subject: [PATCH 04/10] Add Carthage support. --- SloppySwiper.xcodeproj/project.pbxproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SloppySwiper.xcodeproj/project.pbxproj b/SloppySwiper.xcodeproj/project.pbxproj index c0d9cc4..301d45c 100644 --- a/SloppySwiper.xcodeproj/project.pbxproj +++ b/SloppySwiper.xcodeproj/project.pbxproj @@ -7,11 +7,11 @@ objects = { /* Begin PBXBuildFile section */ - 4A4F3F361C79044900284AF4 /* SloppySwiper.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F301C79044900284AF4 /* SloppySwiper.h */; }; + 4A4F3F361C79044900284AF4 /* SloppySwiper.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F301C79044900284AF4 /* SloppySwiper.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4A4F3F371C79044900284AF4 /* SloppySwiper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4F3F311C79044900284AF4 /* SloppySwiper.m */; }; - 4A4F3F381C79044900284AF4 /* SSWAnimator.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F321C79044900284AF4 /* SSWAnimator.h */; }; + 4A4F3F381C79044900284AF4 /* SSWAnimator.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F321C79044900284AF4 /* SSWAnimator.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4A4F3F391C79044900284AF4 /* SSWAnimator.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4F3F331C79044900284AF4 /* SSWAnimator.m */; }; - 4A4F3F3A1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F341C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h */; }; + 4A4F3F3A1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F341C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4A4F3F3B1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4F3F351C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m */; }; 4A4F3F551C7905D400284AF4 /* SloppySwiper-Framework.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F531C7905D400284AF4 /* SloppySwiper-Framework.h */; settings = {ATTRIBUTES = (Public, ); }; }; /* End PBXBuildFile section */ From 1ab8686ade12eda562c502a107cc09d6409cbfb8 Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 15:02:03 -0800 Subject: [PATCH 05/10] Add Carthage support. --- SloppySwiper/SloppySwiper-Framework.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/SloppySwiper/SloppySwiper-Framework.h b/SloppySwiper/SloppySwiper-Framework.h index bd29b6e..1e393bb 100644 --- a/SloppySwiper/SloppySwiper-Framework.h +++ b/SloppySwiper/SloppySwiper-Framework.h @@ -16,5 +16,3 @@ FOUNDATION_EXPORT const unsigned char SloppySwiperVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import #import "SloppySwiper.h" -#import "SSWAnimator.h" -#import "SSWDirectionalPanGestureRecognizer.h" From 86363b23a05e451a7d57b7a3bfa84bb02707ed33 Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 15:04:02 -0800 Subject: [PATCH 06/10] Add Carthage support. --- SloppySwiper/SloppySwiper-Framework.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SloppySwiper/SloppySwiper-Framework.h b/SloppySwiper/SloppySwiper-Framework.h index 1e393bb..bd29b6e 100644 --- a/SloppySwiper/SloppySwiper-Framework.h +++ b/SloppySwiper/SloppySwiper-Framework.h @@ -16,3 +16,5 @@ FOUNDATION_EXPORT const unsigned char SloppySwiperVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import #import "SloppySwiper.h" +#import "SSWAnimator.h" +#import "SSWDirectionalPanGestureRecognizer.h" From 93f78707b358fa139336ab4cc7e2dbbb1efa7eb8 Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 15:09:39 -0800 Subject: [PATCH 07/10] Add Carthage support. --- SloppySwiper/SloppySwiper-Framework.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SloppySwiper/SloppySwiper-Framework.h b/SloppySwiper/SloppySwiper-Framework.h index bd29b6e..db2c70d 100644 --- a/SloppySwiper/SloppySwiper-Framework.h +++ b/SloppySwiper/SloppySwiper-Framework.h @@ -15,6 +15,6 @@ FOUNDATION_EXPORT const unsigned char SloppySwiperVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import -#import "SloppySwiper.h" -#import "SSWAnimator.h" -#import "SSWDirectionalPanGestureRecognizer.h" +#import +#import +#import From 484996e0fbc9a59bd1fc51421a8bfebbb313d2f0 Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 15:11:07 -0800 Subject: [PATCH 08/10] Fix typo. --- SloppySwiper/SloppySwiper-Framework.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SloppySwiper/SloppySwiper-Framework.h b/SloppySwiper/SloppySwiper-Framework.h index db2c70d..b83b961 100644 --- a/SloppySwiper/SloppySwiper-Framework.h +++ b/SloppySwiper/SloppySwiper-Framework.h @@ -17,4 +17,4 @@ FOUNDATION_EXPORT const unsigned char SloppySwiperVersionString[]; #import #import -#import +#import From b79e3242ca963afc9f07187800a5ab771d3b84da Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 15:17:12 -0800 Subject: [PATCH 09/10] Add Carthage support. --- SloppySwiper.xcodeproj/project.pbxproj | 8 ++++---- .../{SloppySwiper-Framework.h => SloppySwiperFramework.h} | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename SloppySwiper/{SloppySwiper-Framework.h => SloppySwiperFramework.h} (73%) diff --git a/SloppySwiper.xcodeproj/project.pbxproj b/SloppySwiper.xcodeproj/project.pbxproj index 301d45c..8d9f067 100644 --- a/SloppySwiper.xcodeproj/project.pbxproj +++ b/SloppySwiper.xcodeproj/project.pbxproj @@ -13,7 +13,7 @@ 4A4F3F391C79044900284AF4 /* SSWAnimator.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4F3F331C79044900284AF4 /* SSWAnimator.m */; }; 4A4F3F3A1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F341C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4A4F3F3B1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4F3F351C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m */; }; - 4A4F3F551C7905D400284AF4 /* SloppySwiper-Framework.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F531C7905D400284AF4 /* SloppySwiper-Framework.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 4A4F3F551C7905D400284AF4 /* SloppySwiperFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A4F3F531C7905D400284AF4 /* SloppySwiperFramework.h */; settings = {ATTRIBUTES = (Public, ); }; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -25,7 +25,7 @@ 4A4F3F341C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SSWDirectionalPanGestureRecognizer.h; path = Classes/SSWDirectionalPanGestureRecognizer.h; sourceTree = ""; }; 4A4F3F351C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SSWDirectionalPanGestureRecognizer.m; path = Classes/SSWDirectionalPanGestureRecognizer.m; sourceTree = ""; }; 4A4F3F521C7905D400284AF4 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SloppySwiper/Info.plist; sourceTree = ""; }; - 4A4F3F531C7905D400284AF4 /* SloppySwiper-Framework.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "SloppySwiper-Framework.h"; path = "SloppySwiper/SloppySwiper-Framework.h"; sourceTree = ""; }; + 4A4F3F531C7905D400284AF4 /* SloppySwiperFramework.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SloppySwiperFramework.h; path = SloppySwiper/SloppySwiperFramework.h; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -73,7 +73,7 @@ isa = PBXGroup; children = ( 4A4F3F521C7905D400284AF4 /* Info.plist */, - 4A4F3F531C7905D400284AF4 /* SloppySwiper-Framework.h */, + 4A4F3F531C7905D400284AF4 /* SloppySwiperFramework.h */, ); name = Framework; sourceTree = ""; @@ -87,7 +87,7 @@ files = ( 4A4F3F3A1C79044900284AF4 /* SSWDirectionalPanGestureRecognizer.h in Headers */, 4A4F3F361C79044900284AF4 /* SloppySwiper.h in Headers */, - 4A4F3F551C7905D400284AF4 /* SloppySwiper-Framework.h in Headers */, + 4A4F3F551C7905D400284AF4 /* SloppySwiperFramework.h in Headers */, 4A4F3F381C79044900284AF4 /* SSWAnimator.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/SloppySwiper/SloppySwiper-Framework.h b/SloppySwiper/SloppySwiperFramework.h similarity index 73% rename from SloppySwiper/SloppySwiper-Framework.h rename to SloppySwiper/SloppySwiperFramework.h index b83b961..2a9cde9 100644 --- a/SloppySwiper/SloppySwiper-Framework.h +++ b/SloppySwiper/SloppySwiperFramework.h @@ -1,5 +1,5 @@ // -// SloppySwiper-Framework.h +// SloppySwiperFramework.h // SloppySwiper // // Created by David Wu on 2/20/16. @@ -8,10 +8,10 @@ #import //! Project version number for SloppySwiper. -FOUNDATION_EXPORT double SloppySwiperVersionNumber; +FOUNDATION_EXPORT double SloppySwiperFrameworkVersionNumber; //! Project version string for SloppySwiper. -FOUNDATION_EXPORT const unsigned char SloppySwiperVersionString[]; +FOUNDATION_EXPORT const unsigned char SloppySwiperFrameworkVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import From 659614dd4befb32decd78984ea4dd6cfee134957 Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 20 Feb 2016 15:24:29 -0800 Subject: [PATCH 10/10] Add Carthage support. --- SloppySwiper.xcodeproj/project.pbxproj | 2 ++ SloppySwiper/SloppySwiperFramework.h | 4 ++-- SloppySwiper/module.modulemap | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 SloppySwiper/module.modulemap diff --git a/SloppySwiper.xcodeproj/project.pbxproj b/SloppySwiper.xcodeproj/project.pbxproj index 8d9f067..e3c55e2 100644 --- a/SloppySwiper.xcodeproj/project.pbxproj +++ b/SloppySwiper.xcodeproj/project.pbxproj @@ -266,6 +266,7 @@ INFOPLIST_FILE = SloppySwiper/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "$(SRCROOT)/SloppySwiper/module.modulemap"; PRODUCT_BUNDLE_IDENTIFIER = org.emptypage.SloppySwiper; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -282,6 +283,7 @@ INFOPLIST_FILE = SloppySwiper/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "$(SRCROOT)/SloppySwiper/module.modulemap"; PRODUCT_BUNDLE_IDENTIFIER = org.emptypage.SloppySwiper; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; diff --git a/SloppySwiper/SloppySwiperFramework.h b/SloppySwiper/SloppySwiperFramework.h index 2a9cde9..3d92ddc 100644 --- a/SloppySwiper/SloppySwiperFramework.h +++ b/SloppySwiper/SloppySwiperFramework.h @@ -8,10 +8,10 @@ #import //! Project version number for SloppySwiper. -FOUNDATION_EXPORT double SloppySwiperFrameworkVersionNumber; +FOUNDATION_EXPORT double SloppySwiperVersionNumber; //! Project version string for SloppySwiper. -FOUNDATION_EXPORT const unsigned char SloppySwiperFrameworkVersionString[]; +FOUNDATION_EXPORT const unsigned char SloppySwiperVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import diff --git a/SloppySwiper/module.modulemap b/SloppySwiper/module.modulemap new file mode 100644 index 0000000..5a936db --- /dev/null +++ b/SloppySwiper/module.modulemap @@ -0,0 +1,3 @@ +framework module SloppySwiper { + umbrella header "SloppySwiperFramework.h" +}