Skip to content

Commit

Permalink
Merge pull request CSStickyHeaderFlowLayout#142 from chrene/master
Browse files Browse the repository at this point in the history
Add support for carthage
  • Loading branch information
chrene authored Sep 12, 2016
2 parents d749b53 + 3be25b6 commit c624749
Show file tree
Hide file tree
Showing 7 changed files with 289 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CSStickyHeaderFlowLayout.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CSStickyHeaderFlowLayout"
s.version = "0.2.10"
s.version = "0.2.11"
s.summary = "Parallax and Sticky header done right using UICollectionViewLayout"
s.description = <<-DESC
UICollectionView are flexible and you can use supplementary views to
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// CSStickyHeaderFlowLayoutCarthage.h
// CSStickyHeaderFlowLayoutCarthage
//
// Created by Christian Enevoldsen on 16/08/16.
// Copyright © 2016 Jamz Tang. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for CSStickyHeaderFlowLayoutCarthage.
FOUNDATION_EXPORT double CSStickyHeaderFlowLayoutCarthageVersionNumber;

//! Project version string for CSStickyHeaderFlowLayoutCarthage.
FOUNDATION_EXPORT const unsigned char CSStickyHeaderFlowLayoutCarthageVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <CSStickyHeaderFlowLayoutCarthage/PublicHeader.h>


26 changes: 26 additions & 0 deletions Project/CSStickyHeaderFlowLayoutCarthage/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
140 changes: 140 additions & 0 deletions Project/CSStickyHeaderFlowLayoutDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
1AFE097F187D677000CA880A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1AFE097D187D677000CA880A /* InfoPlist.strings */; };
1AFE0981187D677000CA880A /* CSStickyHeaderFlowLayoutDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AFE0980187D677000CA880A /* CSStickyHeaderFlowLayoutDemoTests.m */; };
1AFE0992187D688300CA880A /* CSCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AFE0991187D688300CA880A /* CSCell.m */; };
AF1D0D491D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage.h in Headers */ = {isa = PBXBuildFile; fileRef = AF1D0D481D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage.h */; settings = {ATTRIBUTES = (Public, ); }; };
AF1D0D4E1D6320A800F9FA68 /* CSStickyHeaderFlowLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A4B2F761B56C5A6007F67CC /* CSStickyHeaderFlowLayout.m */; };
AF1D0D4F1D6320A800F9FA68 /* CSStickyHeaderFlowLayoutAttributes.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A4B2F781B56C5A6007F67CC /* CSStickyHeaderFlowLayoutAttributes.m */; };
AF1D0D501D6320B100F9FA68 /* CSStickyHeaderFlowLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A4B2F751B56C5A6007F67CC /* CSStickyHeaderFlowLayout.h */; settings = {ATTRIBUTES = (Public, ); }; };
AF1D0D511D6320B100F9FA68 /* CSStickyHeaderFlowLayoutAttributes.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A4B2F771B56C5A6007F67CC /* CSStickyHeaderFlowLayoutAttributes.h */; settings = {ATTRIBUTES = (Public, ); }; };
B36BC395070946668DCF2AFF /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 491370024AF54DD8BFB773DA /* libPods.a */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -134,6 +139,9 @@
58D371C1C7F562AB1D536637 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
6BDE4094D41E4DE6515DF055 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
AD97E1BDF2B20F6336CBF8D7 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
AF1D0D461D63203300F9FA68 /* CSStickyHeaderFlowLayout.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CSStickyHeaderFlowLayout.framework; sourceTree = BUILT_PRODUCTS_DIR; };
AF1D0D481D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CSStickyHeaderFlowLayoutCarthage.h; sourceTree = "<group>"; };
AF1D0D4A1D63203300F9FA68 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -174,6 +182,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
AF1D0D421D63203300F9FA68 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand Down Expand Up @@ -231,6 +246,7 @@
1AFE097A187D677000CA880A /* CSStickyHeaderFlowLayoutDemoTests */,
1A4B2F561B56C539007F67CC /* CSStickyHeaderFlowLayout */,
1A4B2F651B56C539007F67CC /* CSStickyHeaderFlowLayoutTests */,
AF1D0D471D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage */,
1AFE0954187D677000CA880A /* Frameworks */,
1AFE0953187D677000CA880A /* Products */,
9DDE38A70ED787DEBF9A6411 /* Pods */,
Expand All @@ -244,6 +260,7 @@
1AFE0973187D677000CA880A /* CSStickyHeaderFlowLayoutDemoTests.xctest */,
1A4B2F551B56C539007F67CC /* CSStickyHeaderFlowLayout.framework */,
1A4B2F5F1B56C539007F67CC /* CSStickyHeaderFlowLayoutTests.xctest */,
AF1D0D461D63203300F9FA68 /* CSStickyHeaderFlowLayout.framework */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -349,6 +366,15 @@
name = Pods;
sourceTree = "<group>";
};
AF1D0D471D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage */ = {
isa = PBXGroup;
children = (
AF1D0D481D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage.h */,
AF1D0D4A1D63203300F9FA68 /* Info.plist */,
);
path = CSStickyHeaderFlowLayoutCarthage;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand All @@ -361,6 +387,16 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
AF1D0D431D63203300F9FA68 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
AF1D0D501D6320B100F9FA68 /* CSStickyHeaderFlowLayout.h in Headers */,
AF1D0D511D6320B100F9FA68 /* CSStickyHeaderFlowLayoutAttributes.h in Headers */,
AF1D0D491D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -439,6 +475,24 @@
productReference = 1AFE0973187D677000CA880A /* CSStickyHeaderFlowLayoutDemoTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
AF1D0D451D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage */ = {
isa = PBXNativeTarget;
buildConfigurationList = AF1D0D4D1D63203300F9FA68 /* Build configuration list for PBXNativeTarget "CSStickyHeaderFlowLayoutCarthage" */;
buildPhases = (
AF1D0D411D63203300F9FA68 /* Sources */,
AF1D0D421D63203300F9FA68 /* Frameworks */,
AF1D0D431D63203300F9FA68 /* Headers */,
AF1D0D441D63203300F9FA68 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = CSStickyHeaderFlowLayoutCarthage;
productName = CSStickyHeaderFlowLayoutCarthage;
productReference = AF1D0D461D63203300F9FA68 /* CSStickyHeaderFlowLayout.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -459,6 +513,9 @@
1AFE0972187D677000CA880A = {
TestTargetID = 1AFE0951187D677000CA880A;
};
AF1D0D451D63203300F9FA68 = {
CreatedOnToolsVersion = 7.3.1;
};
};
};
buildConfigurationList = 1AFE094D187D677000CA880A /* Build configuration list for PBXProject "CSStickyHeaderFlowLayoutDemo" */;
Expand All @@ -478,6 +535,7 @@
1AFE0972187D677000CA880A /* CSStickyHeaderFlowLayoutDemoTests */,
1A4B2F541B56C539007F67CC /* CSStickyHeaderFlowLayout */,
1A4B2F5E1B56C539007F67CC /* CSStickyHeaderFlowLayoutTests */,
AF1D0D451D63203300F9FA68 /* CSStickyHeaderFlowLayoutCarthage */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -520,6 +578,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
AF1D0D441D63203300F9FA68 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -598,6 +663,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
AF1D0D411D63203300F9FA68 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
AF1D0D4F1D6320A800F9FA68 /* CSStickyHeaderFlowLayoutAttributes.m in Sources */,
AF1D0D4E1D6320A800F9FA68 /* CSStickyHeaderFlowLayout.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand Down Expand Up @@ -900,6 +974,64 @@
};
name = Release;
};
AF1D0D4B1D63203300F9FA68 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
INFOPLIST_FILE = CSStickyHeaderFlowLayoutCarthage/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.jamztang.CSStickyHeaderFlowLayoutFramework.CSStickyHeaderFlowLayoutCarthage;
PRODUCT_NAME = CSStickyHeaderFlowLayout;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
AF1D0D4C1D63203300F9FA68 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
INFOPLIST_FILE = CSStickyHeaderFlowLayoutCarthage/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = com.jamztang.CSStickyHeaderFlowLayoutFramework.CSStickyHeaderFlowLayoutCarthage;
PRODUCT_NAME = CSStickyHeaderFlowLayout;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -948,6 +1080,14 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
AF1D0D4D1D63203300F9FA68 /* Build configuration list for PBXNativeTarget "CSStickyHeaderFlowLayoutCarthage" */ = {
isa = XCConfigurationList;
buildConfigurations = (
AF1D0D4B1D63203300F9FA68 /* Debug */,
AF1D0D4C1D63203300F9FA68 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 1AFE094A187D677000CA880A /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AF1D0D451D63203300F9FA68"
BuildableName = "CSStickyHeaderFlowLayoutCarthage.framework"
BlueprintName = "CSStickyHeaderFlowLayoutCarthage"
ReferencedContainer = "container:CSStickyHeaderFlowLayoutDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AF1D0D451D63203300F9FA68"
BuildableName = "CSStickyHeaderFlowLayoutCarthage.framework"
BlueprintName = "CSStickyHeaderFlowLayoutCarthage"
ReferencedContainer = "container:CSStickyHeaderFlowLayoutDemo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AF1D0D451D63203300F9FA68"
BuildableName = "CSStickyHeaderFlowLayoutCarthage.framework"
BlueprintName = "CSStickyHeaderFlowLayoutCarthage"
ReferencedContainer = "container:CSStickyHeaderFlowLayoutDemo.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit c624749

Please sign in to comment.