Skip to content

Commit

Permalink
Add support for dynamic frameworks
Browse files Browse the repository at this point in the history
1. Change the easing.h import to framework style
2. Change the project target to a dynamic framework
3. Add the `use_frameworks!` directive to the example project podfile

With these changes, TLLayoutTransitioning should work with Cocoapods, with or without `use_frameworks!` and with Carthage.
  • Loading branch information
Timothy Moose committed Jun 29, 2015
1 parent 77bf391 commit c5ae9e9
Show file tree
Hide file tree
Showing 21 changed files with 802 additions and 664 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "Examples/External/TLIndexPathTools"]
path = Examples/External/TLIndexPathTools
url = https://github.com/wtmoose/TLIndexPathTools.git
1 change: 1 addition & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "wtmoose/AHEasing"
36 changes: 19 additions & 17 deletions Examples/Examples.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
867497FA18AB3347004E0C51 /* ResizeSettingsTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 867497F918AB3347004E0C51 /* ResizeSettingsTableViewController.m */; };
8674982E18AC81BA004E0C51 /* Examples.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8674982D18AC81BA004E0C51 /* Examples.storyboard */; };
86CB5A9818AF3C07003039CC /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = 86CB5A9718AF3C07003039CC /* Podfile */; };
AD20534E4DBDDA8E26A07BB5 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E20709635E0E0AD990618822 /* Pods.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
D5B2569580D5C5B0E130C678 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FED88F06586D213F783EC5A9 /* Pods.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -50,7 +50,7 @@
867497F918AB3347004E0C51 /* ResizeSettingsTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ResizeSettingsTableViewController.m; sourceTree = "<group>"; };
8674982D18AC81BA004E0C51 /* Examples.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Examples.storyboard; sourceTree = "<group>"; };
86CB5A9718AF3C07003039CC /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
E20709635E0E0AD990618822 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FED88F06586D213F783EC5A9 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -61,7 +61,7 @@
867497B718AB2CB6004E0C51 /* CoreGraphics.framework in Frameworks */,
867497B918AB2CB6004E0C51 /* UIKit.framework in Frameworks */,
867497B518AB2CB6004E0C51 /* Foundation.framework in Frameworks */,
AD20534E4DBDDA8E26A07BB5 /* Pods.framework in Frameworks */,
D5B2569580D5C5B0E130C678 /* Pods.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -93,7 +93,7 @@
867497B418AB2CB6004E0C51 /* Foundation.framework */,
867497B618AB2CB6004E0C51 /* CoreGraphics.framework */,
867497B818AB2CB6004E0C51 /* UIKit.framework */,
E20709635E0E0AD990618822 /* Pods.framework */,
FED88F06586D213F783EC5A9 /* Pods.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -176,7 +176,7 @@
867497AE18AB2CB6004E0C51 /* Frameworks */,
867497AF18AB2CB6004E0C51 /* Resources */,
8F7AEB3124FF4441A5EF182C /* Copy Pods Resources */,
F34A5548C306069501C5F0BE /* Embed Pods Frameworks */,
50A2D7CAED4B3B1B31A30C56 /* Embed Pods Frameworks */,
);
buildRules = (
);
Expand All @@ -193,7 +193,7 @@
867497A918AB2CB6004E0C51 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0630;
LastUpgradeCheck = 0500;
ORGANIZATIONNAME = "Tractable Labs";
};
buildConfigurationList = 867497AC18AB2CB6004E0C51 /* Build configuration list for PBXProject "Examples" */;
Expand Down Expand Up @@ -229,49 +229,49 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
7707970664E04B72B186C319 /* Check Pods Manifest.lock */ = {
50A2D7CAED4B3B1B31A30C56 /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Check Pods Manifest.lock";
name = "Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
8F7AEB3124FF4441A5EF182C /* Copy Pods Resources */ = {
7707970664E04B72B186C319 /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
name = "Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
F34A5548C306069501C5F0BE /* Embed Pods Frameworks */ = {
8F7AEB3124FF4441A5EF182C /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -309,6 +309,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -337,7 +338,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
Expand All @@ -347,6 +348,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand All @@ -369,7 +371,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
Expand Down
6 changes: 3 additions & 3 deletions Examples/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- AHEasing (1.2)
- TLIndexPathTools (HEAD based on 0.4.0)
- TLLayoutTransitioning (1.0.4):
- TLLayoutTransitioning (1.0.5):
- AHEasing

DEPENDENCIES:
Expand All @@ -10,11 +10,11 @@ DEPENDENCIES:

EXTERNAL SOURCES:
TLLayoutTransitioning:
:path: "../"
:path: ../

SPEC CHECKSUMS:
AHEasing: 847f583bcd83a2bb850e38ccdb26d22e2593f34d
TLIndexPathTools: 901fe3651c0d330b2d82c364232c425405a70e5c
TLLayoutTransitioning: 6a2694027ac0b3acbf8ec3d21a1185d761777740
TLLayoutTransitioning: e42d3ebc711b03b67e3dfa5fd0919dc72b86f085

COCOAPODS: 0.37.2

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Examples/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c5ae9e9

Please sign in to comment.