diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..cb2b00e --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +3.0.1 diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 0000000..28a44bb --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,11 @@ +use_frameworks! + +target 'Spruce_Example' do + pod 'Spruce', :path => '../' + + target 'Spruce_Tests' do + inherit! :search_paths + + + end +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..e7a3667 --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - Spruce (0.1.0) + +DEPENDENCIES: + - Spruce (from `../`) + +EXTERNAL SOURCES: + Spruce: + :path: ../ + +SPEC CHECKSUMS: + Spruce: a55f15c37bbfad3f9b68025305343247415db73f + +PODFILE CHECKSUM: 0682d1331d8ffa96d42f660fba6a53ca84d7b1ba + +COCOAPODS: 1.1.1 diff --git a/Example/Pods/Local Podspecs/Spruce.podspec.json b/Example/Pods/Local Podspecs/Spruce.podspec.json new file mode 100644 index 0000000..b82e2bf --- /dev/null +++ b/Example/Pods/Local Podspecs/Spruce.podspec.json @@ -0,0 +1,22 @@ +{ + "name": "Spruce", + "version": "0.1.0", + "summary": "A simple animation library that tries to do everything for you.", + "description": "Spruce is a very small, lightweight animation library that hopes to handle all of the complications of animations for you. So many developers use standard animations because they are easy and quick to use. With Spruce, developers will be able to create complex animations hopefully with just one line of code. These animations can include variations on fading, scale, spin, and many more. A key component of Spruce is that it is entirely customizable. If we don't have the exact animation you are looking to build, subclass one of our types and everything will just work.", + "homepage": "https://github.com/willowtreeapps/spruce-ios", + "license": { + "type": "MIT", + "file": "LICENSE" + }, + "authors": { + "Jackson Taylor": "jackson.taylor@willowtreeapps.com" + }, + "source": { + "git": "https://github.com/willowtreeapps/Spruce.git", + "tag": "0.1.0" + }, + "platforms": { + "ios": "8.0" + }, + "source_files": "Spruce/Classes/**/*" +} diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock new file mode 100644 index 0000000..e7a3667 --- /dev/null +++ b/Example/Pods/Manifest.lock @@ -0,0 +1,16 @@ +PODS: + - Spruce (0.1.0) + +DEPENDENCIES: + - Spruce (from `../`) + +EXTERNAL SOURCES: + Spruce: + :path: ../ + +SPEC CHECKSUMS: + Spruce: a55f15c37bbfad3f9b68025305343247415db73f + +PODFILE CHECKSUM: 0682d1331d8ffa96d42f660fba6a53ca84d7b1ba + +COCOAPODS: 1.1.1 diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f396bcc --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,824 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 04259D314C64660330FC9B65A89747A7 /* RadialSortFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D6AA5446A78C288383D11C1536C0C59 /* RadialSortFunction.swift */; }; + 055B5469C7C3FF860BCC9C5F4B0B7382 /* ViewOperations.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1A3A1985B614FD049BC0866A944E141 /* ViewOperations.swift */; }; + 078F2691E7CDB4222B80804FF9E92A0B /* Pods-Spruce_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4BF9A148D4AEDCB38BA3D05DC67413C1 /* Pods-Spruce_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 0B576018939899704AE2D280242125B1 /* StandardAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = B762774F96DAB1753064DD6C3B7046C5 /* StandardAnimation.swift */; }; + 1180BA6FFA0D226963DDB2A705C11CFD /* Spruce.swift in Sources */ = {isa = PBXBuildFile; fileRef = A25E3312C783A916AAC807C0A7251E7D /* Spruce.swift */; }; + 16122EA4B07AB226DF90564DBD16C8F2 /* DefaultFullViewAnimations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A50AB2E31EACA5DDB9BEB91E36DCDD9 /* DefaultFullViewAnimations.swift */; }; + 22DF3316C67C6961621A26BBBA639DA4 /* SortFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BC066718A92797B3E685DFFC033CDE7 /* SortFunction.swift */; }; + 30BFA214C6DFF1256B6A32ECC1C0B310 /* DefaultSortFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5972EEF2D52B71C348D230A0E777369 /* DefaultSortFunction.swift */; }; + 389FC243005275278B89A626FD12DD2E /* SpringAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 558B7DA87515D3057B3B27C13ED51805 /* SpringAnimation.swift */; }; + 4D24B97E25ECA4868BC69DFAF6668EB5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; + 5A709EE7E34827F7499AEBDFE9BD7259 /* Spruce-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 71F792301555302C2DB7C830769A896A /* Spruce-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5CAFC2170BBC5C93BC2D26448C7718AA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; + 5DAB2EF6B59AA2CA006F11C072C244F2 /* Pods-Spruce_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 944201B6552D4C2C2309D0E762D43C34 /* Pods-Spruce_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 61BB62F324566F6B8399ED500478949E /* LinearSortFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85C230A0F7A7B5B1A28BD0CF472060DB /* LinearSortFunction.swift */; }; + 75739A85FC647F5AD23A2B82A79830BF /* SpruceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3AAF330EE49B9E1081048682326FE80 /* SpruceViewController.swift */; }; + 7EF08D839FE38101F0B4DB51BCF031EB /* DefaultAnimations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69BF4987EFE22B77789631F91227E781 /* DefaultAnimations.swift */; }; + 7F204E75BBC011BAA3903B7943FBC63F /* Pods-Spruce_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C3EAF5B8C1AD74CE465B95C5C8C3153 /* Pods-Spruce_Tests-dummy.m */; }; + 8EFEE27DE436D21BFE8FF7EED042A6FD /* NoDelaySortFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 291957596CF4404576FE2877E13C6CEA /* NoDelaySortFunction.swift */; }; + 91832C601B289B7CFE8FE0C97A52C829 /* CorneredSortFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 353411ADC9FE0E4916F30810ED6EABD6 /* CorneredSortFunction.swift */; }; + 982A4B31996C1F143079BE59AC4B28B7 /* PointOperations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DDC529F641E0529FC3437B391420856 /* PointOperations.swift */; }; + 9AF58D1A7EB58DA3B92C40E9F66D1B16 /* Spruce-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 16A4122AB321A4174AAD98CBD009EE55 /* Spruce-dummy.m */; }; + B16549263A0E88866CCB96E761617C6F /* Pods-Spruce_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 92AD634D3FAD541D877367EDE05F0B8D /* Pods-Spruce_Example-dummy.m */; }; + B3030EE94920C08E2ED4BA6F93D0B1C4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; + B6B644C3C6C747D7CF8BEC1A1C7ED0F1 /* RandomSortFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = B7EFA568C807579D267F82D859932156 /* RandomSortFunction.swift */; }; + BA8ABCABB4A611DEAE0B6060E735FD52 /* BaseDistancedSortFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7433EBBDED059A414D9C9EC496991507 /* BaseDistancedSortFunction.swift */; }; + C40B19542E178531734266FFD0A7D849 /* SpruceButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6AF82DFB0B553B7AC68A1E828BF7E17 /* SpruceButton.swift */; }; + DD15D53DA68DA641DB4E2537C2AC1220 /* FullViewAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09595A049ED1A8177E3A27E3E0DD17A7 /* FullViewAnimation.swift */; }; + E5A905EC8809D0D76F68D26AB746BC4D /* Animation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90CBC27EE07A3781CC6550BA4B5CBEF3 /* Animation.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 5C9A097675087D7AE27DA0A4AD95C7D6 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 889446D12CC42CF3FA024DB1A3366501; + remoteInfo = Spruce; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 09595A049ED1A8177E3A27E3E0DD17A7 /* FullViewAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = FullViewAnimation.swift; sourceTree = ""; }; + 0CADC92BADB3034E48F38D776995E189 /* Pods-Spruce_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Spruce_Example-frameworks.sh"; sourceTree = ""; }; + 0DDC529F641E0529FC3437B391420856 /* PointOperations.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = PointOperations.swift; sourceTree = ""; }; + 12766F2F2B7B71C85F174F8F4C923EA4 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 1369A2CFA136FAB0229E7C016D3E67F7 /* Pods-Spruce_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Spruce_Tests-acknowledgements.plist"; sourceTree = ""; }; + 16A4122AB321A4174AAD98CBD009EE55 /* Spruce-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Spruce-dummy.m"; sourceTree = ""; }; + 19F7922B131E3116ADCA6BC0B3C98EEB /* Spruce.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = Spruce.modulemap; sourceTree = ""; }; + 1A64F96EB37BE0A885651008A16F016D /* Pods-Spruce_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Spruce_Example-acknowledgements.plist"; sourceTree = ""; }; + 23E7013232AB26A7CDF4F539958A88DA /* Spruce.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Spruce.xcconfig; sourceTree = ""; }; + 291957596CF4404576FE2877E13C6CEA /* NoDelaySortFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = NoDelaySortFunction.swift; sourceTree = ""; }; + 2A50AB2E31EACA5DDB9BEB91E36DCDD9 /* DefaultFullViewAnimations.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = DefaultFullViewAnimations.swift; sourceTree = ""; }; + 2E043D2FFC01F0C4DE42254DB8F30569 /* Pods-Spruce_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-Spruce_Example.modulemap"; sourceTree = ""; }; + 353411ADC9FE0E4916F30810ED6EABD6 /* CorneredSortFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CorneredSortFunction.swift; sourceTree = ""; }; + 4AD054F71CF439C5BA54B2228072AEEF /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 4BF9A148D4AEDCB38BA3D05DC67413C1 /* Pods-Spruce_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Spruce_Tests-umbrella.h"; sourceTree = ""; }; + 55616E35201003565304A5DE3F1F1C3E /* Pods-Spruce_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Spruce_Tests.debug.xcconfig"; sourceTree = ""; }; + 558B7DA87515D3057B3B27C13ED51805 /* SpringAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SpringAnimation.swift; sourceTree = ""; }; + 57C3CA3BB49F6F52EFB79CC3738B300E /* Spruce.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Spruce.framework; path = Spruce.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 5D6AA5446A78C288383D11C1536C0C59 /* RadialSortFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = RadialSortFunction.swift; sourceTree = ""; }; + 622186B9D0A15D16C664C253DFDDF343 /* Pods-Spruce_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Spruce_Example-resources.sh"; sourceTree = ""; }; + 69213D97DCE41DA6B2DB9BD872682DC5 /* Spruce-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Spruce-prefix.pch"; sourceTree = ""; }; + 69BF4987EFE22B77789631F91227E781 /* DefaultAnimations.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = DefaultAnimations.swift; sourceTree = ""; }; + 71F792301555302C2DB7C830769A896A /* Spruce-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Spruce-umbrella.h"; sourceTree = ""; }; + 7346BA1B7FBFE7D742C26AC4EFEA849E /* Pods-Spruce_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Spruce_Tests-resources.sh"; sourceTree = ""; }; + 7433EBBDED059A414D9C9EC496991507 /* BaseDistancedSortFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BaseDistancedSortFunction.swift; sourceTree = ""; }; + 745C218783730A33D6B82C5E9F1CDF17 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 75BC1B05EE6AA516FFE2F32AD8DAB8BD /* Pods_Spruce_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Spruce_Example.framework; path = "Pods-Spruce_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 85C230A0F7A7B5B1A28BD0CF472060DB /* LinearSortFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = LinearSortFunction.swift; sourceTree = ""; }; + 89BA1067F35A94869E8DD3BADD0255F1 /* Pods_Spruce_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Spruce_Tests.framework; path = "Pods-Spruce_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 89BEFCEB9618821EA82227F0316BD2EA /* Pods-Spruce_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Spruce_Example.release.xcconfig"; sourceTree = ""; }; + 8BC066718A92797B3E685DFFC033CDE7 /* SortFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SortFunction.swift; sourceTree = ""; }; + 90CBC27EE07A3781CC6550BA4B5CBEF3 /* Animation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Animation.swift; sourceTree = ""; }; + 92AD634D3FAD541D877367EDE05F0B8D /* Pods-Spruce_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Spruce_Example-dummy.m"; sourceTree = ""; }; + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 944201B6552D4C2C2309D0E762D43C34 /* Pods-Spruce_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Spruce_Example-umbrella.h"; sourceTree = ""; }; + 986C2689F32FFD57FDF73E41131712ED /* Pods-Spruce_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Spruce_Tests-frameworks.sh"; sourceTree = ""; }; + 9C147CDF3CF695F8EDBB22607035D46A /* Pods-Spruce_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Spruce_Example.debug.xcconfig"; sourceTree = ""; }; + 9C3EAF5B8C1AD74CE465B95C5C8C3153 /* Pods-Spruce_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Spruce_Tests-dummy.m"; sourceTree = ""; }; + 9CA537CEC3F170238E47E078E7C35E45 /* Pods-Spruce_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Spruce_Tests-acknowledgements.markdown"; sourceTree = ""; }; + A25E3312C783A916AAC807C0A7251E7D /* Spruce.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Spruce.swift; sourceTree = ""; }; + A5972EEF2D52B71C348D230A0E777369 /* DefaultSortFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = DefaultSortFunction.swift; sourceTree = ""; }; + B762774F96DAB1753064DD6C3B7046C5 /* StandardAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = StandardAnimation.swift; sourceTree = ""; }; + B7EFA568C807579D267F82D859932156 /* RandomSortFunction.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = RandomSortFunction.swift; sourceTree = ""; }; + C6AF82DFB0B553B7AC68A1E828BF7E17 /* SpruceButton.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SpruceButton.swift; sourceTree = ""; }; + CB7E0533B0EC994AFC086E324A096ADF /* Pods-Spruce_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-Spruce_Tests.modulemap"; sourceTree = ""; }; + CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + D87409DAC88107B4FF98F7EF404BFC12 /* Pods-Spruce_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Spruce_Tests.release.xcconfig"; sourceTree = ""; }; + E0BBEF058E73902230A3CE2EA03B1118 /* Pods-Spruce_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Spruce_Example-acknowledgements.markdown"; sourceTree = ""; }; + F1A3A1985B614FD049BC0866A944E141 /* ViewOperations.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ViewOperations.swift; sourceTree = ""; }; + F3AAF330EE49B9E1081048682326FE80 /* SpruceViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SpruceViewController.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4FCC6502932DD34E491A20DDEF9EAFEA /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4D24B97E25ECA4868BC69DFAF6668EB5 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D3D3B95F3F41BAB97EE7898DB07D6440 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B3030EE94920C08E2ED4BA6F93D0B1C4 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DF4BB24C609F7A00889E927DED43E938 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5CAFC2170BBC5C93BC2D26448C7718AA /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 092F77707E4D0D7DF2C6EA21D6DEB39A /* Full View */ = { + isa = PBXGroup; + children = ( + 2A50AB2E31EACA5DDB9BEB91E36DCDD9 /* DefaultFullViewAnimations.swift */, + 09595A049ED1A8177E3A27E3E0DD17A7 /* FullViewAnimation.swift */, + F3AAF330EE49B9E1081048682326FE80 /* SpruceViewController.swift */, + ); + name = "Full View"; + path = "Full View"; + sourceTree = ""; + }; + 28C9430A8FD17088ACAB0A9D6318D53C /* UI Elements */ = { + isa = PBXGroup; + children = ( + C6AF82DFB0B553B7AC68A1E828BF7E17 /* SpruceButton.swift */, + ); + name = "UI Elements"; + path = "UI Elements"; + sourceTree = ""; + }; + 3BA638F9FF0A44F013F92F44D3372803 /* Operations */ = { + isa = PBXGroup; + children = ( + 0DDC529F641E0529FC3437B391420856 /* PointOperations.swift */, + F1A3A1985B614FD049BC0866A944E141 /* ViewOperations.swift */, + ); + name = Operations; + path = Operations; + sourceTree = ""; + }; + 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { + isa = PBXGroup; + children = ( + CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + 7DB346D0F39D3F0E887471402A8071AB = { + isa = PBXGroup; + children = ( + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, + 8B7D3866E47C6D980D5F6737C947ABBE /* Development Pods */, + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, + 88B2AD4E6DBBF5F5B52C4429DA34E8AA /* Products */, + 8A6F285DFA5734E829CC53BF21E469B6 /* Targets Support Files */, + ); + sourceTree = ""; + }; + 88B2AD4E6DBBF5F5B52C4429DA34E8AA /* Products */ = { + isa = PBXGroup; + children = ( + 75BC1B05EE6AA516FFE2F32AD8DAB8BD /* Pods_Spruce_Example.framework */, + 89BA1067F35A94869E8DD3BADD0255F1 /* Pods_Spruce_Tests.framework */, + 57C3CA3BB49F6F52EFB79CC3738B300E /* Spruce.framework */, + ); + name = Products; + sourceTree = ""; + }; + 8A6F285DFA5734E829CC53BF21E469B6 /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + FD935C59D54F063F51D5A437E6E143D1 /* Pods-Spruce_Example */, + F785331CA42358FF0DABBBD5044F5349 /* Pods-Spruce_Tests */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + 8B7D3866E47C6D980D5F6737C947ABBE /* Development Pods */ = { + isa = PBXGroup; + children = ( + FB6FC6635344ACC99EF00E4EB8A2982E /* Spruce */, + ); + name = "Development Pods"; + sourceTree = ""; + }; + 9C95B0FBC0A62A67AFBECD8AAE5659E0 /* Classes */ = { + isa = PBXGroup; + children = ( + A25E3312C783A916AAC807C0A7251E7D /* Spruce.swift */, + DECAB41E133D7CC247A0F3723C0BA0D7 /* Animations */, + 092F77707E4D0D7DF2C6EA21D6DEB39A /* Full View */, + F0E5D028D2701ABA678E2BEB6BC6CEFB /* Sort Functions */, + 28C9430A8FD17088ACAB0A9D6318D53C /* UI Elements */, + ); + name = Classes; + path = Classes; + sourceTree = ""; + }; + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { + isa = PBXGroup; + children = ( + 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + CDD72CBCF1B46C38E2616F1E7189AF1B /* Spruce */ = { + isa = PBXGroup; + children = ( + 9C95B0FBC0A62A67AFBECD8AAE5659E0 /* Classes */, + ); + name = Spruce; + path = Spruce; + sourceTree = ""; + }; + DECAB41E133D7CC247A0F3723C0BA0D7 /* Animations */ = { + isa = PBXGroup; + children = ( + 90CBC27EE07A3781CC6550BA4B5CBEF3 /* Animation.swift */, + 69BF4987EFE22B77789631F91227E781 /* DefaultAnimations.swift */, + 558B7DA87515D3057B3B27C13ED51805 /* SpringAnimation.swift */, + B762774F96DAB1753064DD6C3B7046C5 /* StandardAnimation.swift */, + ); + name = Animations; + path = Animations; + sourceTree = ""; + }; + F0E5D028D2701ABA678E2BEB6BC6CEFB /* Sort Functions */ = { + isa = PBXGroup; + children = ( + 7433EBBDED059A414D9C9EC496991507 /* BaseDistancedSortFunction.swift */, + 353411ADC9FE0E4916F30810ED6EABD6 /* CorneredSortFunction.swift */, + A5972EEF2D52B71C348D230A0E777369 /* DefaultSortFunction.swift */, + 85C230A0F7A7B5B1A28BD0CF472060DB /* LinearSortFunction.swift */, + 291957596CF4404576FE2877E13C6CEA /* NoDelaySortFunction.swift */, + 5D6AA5446A78C288383D11C1536C0C59 /* RadialSortFunction.swift */, + B7EFA568C807579D267F82D859932156 /* RandomSortFunction.swift */, + 8BC066718A92797B3E685DFFC033CDE7 /* SortFunction.swift */, + 3BA638F9FF0A44F013F92F44D3372803 /* Operations */, + ); + name = "Sort Functions"; + path = "Sort Functions"; + sourceTree = ""; + }; + F2470CFE7FBBB2640558CFEC75ADF05E /* Support Files */ = { + isa = PBXGroup; + children = ( + 4AD054F71CF439C5BA54B2228072AEEF /* Info.plist */, + 19F7922B131E3116ADCA6BC0B3C98EEB /* Spruce.modulemap */, + 23E7013232AB26A7CDF4F539958A88DA /* Spruce.xcconfig */, + 16A4122AB321A4174AAD98CBD009EE55 /* Spruce-dummy.m */, + 69213D97DCE41DA6B2DB9BD872682DC5 /* Spruce-prefix.pch */, + 71F792301555302C2DB7C830769A896A /* Spruce-umbrella.h */, + ); + name = "Support Files"; + path = "Example/Pods/Target Support Files/Spruce"; + sourceTree = ""; + }; + F785331CA42358FF0DABBBD5044F5349 /* Pods-Spruce_Tests */ = { + isa = PBXGroup; + children = ( + 12766F2F2B7B71C85F174F8F4C923EA4 /* Info.plist */, + CB7E0533B0EC994AFC086E324A096ADF /* Pods-Spruce_Tests.modulemap */, + 9CA537CEC3F170238E47E078E7C35E45 /* Pods-Spruce_Tests-acknowledgements.markdown */, + 1369A2CFA136FAB0229E7C016D3E67F7 /* Pods-Spruce_Tests-acknowledgements.plist */, + 9C3EAF5B8C1AD74CE465B95C5C8C3153 /* Pods-Spruce_Tests-dummy.m */, + 986C2689F32FFD57FDF73E41131712ED /* Pods-Spruce_Tests-frameworks.sh */, + 7346BA1B7FBFE7D742C26AC4EFEA849E /* Pods-Spruce_Tests-resources.sh */, + 4BF9A148D4AEDCB38BA3D05DC67413C1 /* Pods-Spruce_Tests-umbrella.h */, + 55616E35201003565304A5DE3F1F1C3E /* Pods-Spruce_Tests.debug.xcconfig */, + D87409DAC88107B4FF98F7EF404BFC12 /* Pods-Spruce_Tests.release.xcconfig */, + ); + name = "Pods-Spruce_Tests"; + path = "Target Support Files/Pods-Spruce_Tests"; + sourceTree = ""; + }; + FB6FC6635344ACC99EF00E4EB8A2982E /* Spruce */ = { + isa = PBXGroup; + children = ( + CDD72CBCF1B46C38E2616F1E7189AF1B /* Spruce */, + F2470CFE7FBBB2640558CFEC75ADF05E /* Support Files */, + ); + name = Spruce; + path = ../..; + sourceTree = ""; + }; + FD935C59D54F063F51D5A437E6E143D1 /* Pods-Spruce_Example */ = { + isa = PBXGroup; + children = ( + 745C218783730A33D6B82C5E9F1CDF17 /* Info.plist */, + 2E043D2FFC01F0C4DE42254DB8F30569 /* Pods-Spruce_Example.modulemap */, + E0BBEF058E73902230A3CE2EA03B1118 /* Pods-Spruce_Example-acknowledgements.markdown */, + 1A64F96EB37BE0A885651008A16F016D /* Pods-Spruce_Example-acknowledgements.plist */, + 92AD634D3FAD541D877367EDE05F0B8D /* Pods-Spruce_Example-dummy.m */, + 0CADC92BADB3034E48F38D776995E189 /* Pods-Spruce_Example-frameworks.sh */, + 622186B9D0A15D16C664C253DFDDF343 /* Pods-Spruce_Example-resources.sh */, + 944201B6552D4C2C2309D0E762D43C34 /* Pods-Spruce_Example-umbrella.h */, + 9C147CDF3CF695F8EDBB22607035D46A /* Pods-Spruce_Example.debug.xcconfig */, + 89BEFCEB9618821EA82227F0316BD2EA /* Pods-Spruce_Example.release.xcconfig */, + ); + name = "Pods-Spruce_Example"; + path = "Target Support Files/Pods-Spruce_Example"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 66CBDB9E81A0F8C2C858C589CDD933B0 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 5DAB2EF6B59AA2CA006F11C072C244F2 /* Pods-Spruce_Example-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 788FA6A1C886F3C7FEAB19AB70D3D662 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 078F2691E7CDB4222B80804FF9E92A0B /* Pods-Spruce_Tests-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C0F6477ABA1A9E1E8A4F232728D923CB /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 5A709EE7E34827F7499AEBDFE9BD7259 /* Spruce-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 2B7321D1E525D2BA824577402C83D8E6 /* Pods-Spruce_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 388BE1A2B65C1F7F2819B54E36F9535B /* Build configuration list for PBXNativeTarget "Pods-Spruce_Example" */; + buildPhases = ( + 3CF8902A520CB6681EA3D9B6520A506C /* Sources */, + D3D3B95F3F41BAB97EE7898DB07D6440 /* Frameworks */, + 66CBDB9E81A0F8C2C858C589CDD933B0 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + 5EE6379DD850C30688B01ED25CBE5F5B /* PBXTargetDependency */, + ); + name = "Pods-Spruce_Example"; + productName = "Pods-Spruce_Example"; + productReference = 75BC1B05EE6AA516FFE2F32AD8DAB8BD /* Pods_Spruce_Example.framework */; + productType = "com.apple.product-type.framework"; + }; + 889446D12CC42CF3FA024DB1A3366501 /* Spruce */ = { + isa = PBXNativeTarget; + buildConfigurationList = 06F74E89843A23C56577F38F566F4B3D /* Build configuration list for PBXNativeTarget "Spruce" */; + buildPhases = ( + 29D2ABEC44EDFFA0CAFCF69A7E7DF5CF /* Sources */, + 4FCC6502932DD34E491A20DDEF9EAFEA /* Frameworks */, + C0F6477ABA1A9E1E8A4F232728D923CB /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Spruce; + productName = Spruce; + productReference = 57C3CA3BB49F6F52EFB79CC3738B300E /* Spruce.framework */; + productType = "com.apple.product-type.framework"; + }; + DE2FBFC5C3EC89E291968B42F109C4D6 /* Pods-Spruce_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7D25524F38FBC177AD13396670FC9E2C /* Build configuration list for PBXNativeTarget "Pods-Spruce_Tests" */; + buildPhases = ( + 2BA80353CB83DA7EFD28B1F6404176F2 /* Sources */, + DF4BB24C609F7A00889E927DED43E938 /* Frameworks */, + 788FA6A1C886F3C7FEAB19AB70D3D662 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Pods-Spruce_Tests"; + productName = "Pods-Spruce_Tests"; + productReference = 89BA1067F35A94869E8DD3BADD0255F1 /* Pods_Spruce_Tests.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0730; + LastUpgradeCheck = 0700; + }; + buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7DB346D0F39D3F0E887471402A8071AB; + productRefGroup = 88B2AD4E6DBBF5F5B52C4429DA34E8AA /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2B7321D1E525D2BA824577402C83D8E6 /* Pods-Spruce_Example */, + DE2FBFC5C3EC89E291968B42F109C4D6 /* Pods-Spruce_Tests */, + 889446D12CC42CF3FA024DB1A3366501 /* Spruce */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 29D2ABEC44EDFFA0CAFCF69A7E7DF5CF /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E5A905EC8809D0D76F68D26AB746BC4D /* Animation.swift in Sources */, + BA8ABCABB4A611DEAE0B6060E735FD52 /* BaseDistancedSortFunction.swift in Sources */, + 91832C601B289B7CFE8FE0C97A52C829 /* CorneredSortFunction.swift in Sources */, + 7EF08D839FE38101F0B4DB51BCF031EB /* DefaultAnimations.swift in Sources */, + 16122EA4B07AB226DF90564DBD16C8F2 /* DefaultFullViewAnimations.swift in Sources */, + 30BFA214C6DFF1256B6A32ECC1C0B310 /* DefaultSortFunction.swift in Sources */, + DD15D53DA68DA641DB4E2537C2AC1220 /* FullViewAnimation.swift in Sources */, + 61BB62F324566F6B8399ED500478949E /* LinearSortFunction.swift in Sources */, + 8EFEE27DE436D21BFE8FF7EED042A6FD /* NoDelaySortFunction.swift in Sources */, + 982A4B31996C1F143079BE59AC4B28B7 /* PointOperations.swift in Sources */, + 04259D314C64660330FC9B65A89747A7 /* RadialSortFunction.swift in Sources */, + B6B644C3C6C747D7CF8BEC1A1C7ED0F1 /* RandomSortFunction.swift in Sources */, + 22DF3316C67C6961621A26BBBA639DA4 /* SortFunction.swift in Sources */, + 389FC243005275278B89A626FD12DD2E /* SpringAnimation.swift in Sources */, + 9AF58D1A7EB58DA3B92C40E9F66D1B16 /* Spruce-dummy.m in Sources */, + 1180BA6FFA0D226963DDB2A705C11CFD /* Spruce.swift in Sources */, + C40B19542E178531734266FFD0A7D849 /* SpruceButton.swift in Sources */, + 75739A85FC647F5AD23A2B82A79830BF /* SpruceViewController.swift in Sources */, + 0B576018939899704AE2D280242125B1 /* StandardAnimation.swift in Sources */, + 055B5469C7C3FF860BCC9C5F4B0B7382 /* ViewOperations.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2BA80353CB83DA7EFD28B1F6404176F2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F204E75BBC011BAA3903B7943FBC63F /* Pods-Spruce_Tests-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3CF8902A520CB6681EA3D9B6520A506C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B16549263A0E88866CCB96E761617C6F /* Pods-Spruce_Example-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 5EE6379DD850C30688B01ED25CBE5F5B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = Spruce; + target = 889446D12CC42CF3FA024DB1A3366501 /* Spruce */; + targetProxy = 5C9A097675087D7AE27DA0A4AD95C7D6 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 4BF1C16CA3EBF8A0A7FA0BCF8D69B0B5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9C147CDF3CF695F8EDBB22607035D46A /* Pods-Spruce_Example.debug.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + 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; + INFOPLIST_FILE = "Target Support Files/Pods-Spruce_Example/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_Spruce_Example; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 5093CA52E8EC242D1E35A3CA32733501 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D87409DAC88107B4FF98F7EF404BFC12 /* Pods-Spruce_Tests.release.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + 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; + INFOPLIST_FILE = "Target Support Files/Pods-Spruce_Tests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_Spruce_Tests; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 88A8939B29D108E71D6131F318669B1D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 89BEFCEB9618821EA82227F0316BD2EA /* Pods-Spruce_Example.release.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + 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; + INFOPLIST_FILE = "Target Support Files/Pods-Spruce_Example/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_Spruce_Example; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 8DED8AD26D381A6ACFF202E5217EC498 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + 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; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 9E1E4E48AF2EAB23169E611BF694090A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + 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; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = NO; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + ONLY_ACTIVE_ARCH = YES; + PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + A4BF9367C3FB88C4724BE8F25A720DBD /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 23E7013232AB26A7CDF4F539958A88DA /* Spruce.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + 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_PREFIX_HEADER = "Target Support Files/Spruce/Spruce-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/Spruce/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/Spruce/Spruce.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = Spruce; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + D10DC50463C1EC394CAB605C27E963FE /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 55616E35201003565304A5DE3F1F1C3E /* Pods-Spruce_Tests.debug.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + 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; + INFOPLIST_FILE = "Target Support Files/Pods-Spruce_Tests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_Spruce_Tests; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + E7FD3C44AC265D64499C3822BAFE5A84 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 23E7013232AB26A7CDF4F539958A88DA /* Spruce.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + 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_PREFIX_HEADER = "Target Support Files/Spruce/Spruce-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/Spruce/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/Spruce/Spruce.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_NAME = Spruce; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 06F74E89843A23C56577F38F566F4B3D /* Build configuration list for PBXNativeTarget "Spruce" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + E7FD3C44AC265D64499C3822BAFE5A84 /* Debug */, + A4BF9367C3FB88C4724BE8F25A720DBD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9E1E4E48AF2EAB23169E611BF694090A /* Debug */, + 8DED8AD26D381A6ACFF202E5217EC498 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 388BE1A2B65C1F7F2819B54E36F9535B /* Build configuration list for PBXNativeTarget "Pods-Spruce_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4BF1C16CA3EBF8A0A7FA0BCF8D69B0B5 /* Debug */, + 88A8939B29D108E71D6131F318669B1D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7D25524F38FBC177AD13396670FC9E2C /* Build configuration list for PBXNativeTarget "Pods-Spruce_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D10DC50463C1EC394CAB605C27E963FE /* Debug */, + 5093CA52E8EC242D1E35A3CA32733501 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; +} diff --git a/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Pods-Spruce_Example.xcscheme b/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Pods-Spruce_Example.xcscheme new file mode 100644 index 0000000..760e586 --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Pods-Spruce_Example.xcscheme @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Pods-Spruce_Tests.xcscheme b/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Pods-Spruce_Tests.xcscheme new file mode 100644 index 0000000..c146e6b --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Pods-Spruce_Tests.xcscheme @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Spruce.xcscheme b/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Spruce.xcscheme new file mode 100644 index 0000000..7df475b --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Spruce.xcscheme @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist b/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..d42807b --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,42 @@ + + + + + SchemeUserState + + Pods-Spruce_Example.xcscheme + + isShown + + + Pods-Spruce_Tests.xcscheme + + isShown + + + Spruce.xcscheme + + isShown + + + + SuppressBuildableAutocreation + + 2B7321D1E525D2BA824577402C83D8E6 + + primary + + + 889446D12CC42CF3FA024DB1A3366501 + + primary + + + DE2FBFC5C3EC89E291968B42F109C4D6 + + primary + + + + + diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Info.plist b/Example/Pods/Target Support Files/Pods-Spruce_Example/Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/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.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-acknowledgements.markdown new file mode 100644 index 0000000..de31aa8 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-acknowledgements.markdown @@ -0,0 +1,26 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## Spruce + +Copyright (c) 2016 Jackson Taylor + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Generated by CocoaPods - https://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-acknowledgements.plist new file mode 100644 index 0000000..2cc940e --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-acknowledgements.plist @@ -0,0 +1,58 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2016 Jackson Taylor <jackson.taylor@willowtreeapps.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + License + MIT + Title + Spruce + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-dummy.m b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-dummy.m new file mode 100644 index 0000000..d34dcee --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Spruce_Example : NSObject +@end +@implementation PodsDummy_Pods_Spruce_Example +@end diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-frameworks.sh b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-frameworks.sh new file mode 100755 index 0000000..6b4b219 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-frameworks.sh @@ -0,0 +1,91 @@ +#!/bin/sh +set -e + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # use filter instead of exclude so missing patterns dont' throw errors + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" + /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current file + archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" + stripped="" + for arch in $archs; do + if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi +} + + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "$BUILT_PRODUCTS_DIR/Spruce/Spruce.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "$BUILT_PRODUCTS_DIR/Spruce/Spruce.framework" +fi diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-resources.sh b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-resources.sh new file mode 100755 index 0000000..25e9d37 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-resources.sh @@ -0,0 +1,96 @@ +#!/bin/sh +set -e + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; +esac + +install_resource() +{ + if [[ "$1" = /* ]] ; then + RESOURCE_PATH="$1" + else + RESOURCE_PATH="${PODS_ROOT}/$1" + fi + if [[ ! -e "$RESOURCE_PATH" ]] ; then + cat << EOM +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. +EOM + exit 1 + fi + case $RESOURCE_PATH in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.framework) + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + *) + echo "$RESOURCE_PATH" + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] +then + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "${PODS_ROOT}*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-umbrella.h b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-umbrella.h new file mode 100644 index 0000000..82520d4 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-umbrella.h @@ -0,0 +1,8 @@ +#ifdef __OBJC__ +#import +#endif + + +FOUNDATION_EXPORT double Pods_Spruce_ExampleVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_Spruce_ExampleVersionString[]; + diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.debug.xcconfig b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.debug.xcconfig new file mode 100644 index 0000000..7888aee --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.debug.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +EMBEDDED_CONTENT_CONTAINS_SWIFT = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/Spruce" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/Spruce/Spruce.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "Spruce" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.modulemap b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.modulemap new file mode 100644 index 0000000..ecda65c --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.modulemap @@ -0,0 +1,6 @@ +framework module Pods_Spruce_Example { + umbrella header "Pods-Spruce_Example-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.release.xcconfig b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.release.xcconfig new file mode 100644 index 0000000..7888aee --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.release.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +EMBEDDED_CONTENT_CONTAINS_SWIFT = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/Spruce" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/Spruce/Spruce.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "Spruce" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Info.plist b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/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.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-acknowledgements.markdown new file mode 100644 index 0000000..102af75 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-acknowledgements.markdown @@ -0,0 +1,3 @@ +# Acknowledgements +This application makes use of the following third party libraries: +Generated by CocoaPods - https://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-acknowledgements.plist new file mode 100644 index 0000000..7acbad1 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-acknowledgements.plist @@ -0,0 +1,29 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-dummy.m b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-dummy.m new file mode 100644 index 0000000..c81acbb --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Spruce_Tests : NSObject +@end +@implementation PodsDummy_Pods_Spruce_Tests +@end diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-frameworks.sh b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-frameworks.sh new file mode 100755 index 0000000..893c16a --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-frameworks.sh @@ -0,0 +1,84 @@ +#!/bin/sh +set -e + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # use filter instead of exclude so missing patterns dont' throw errors + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" + /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current file + archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" + stripped="" + for arch in $archs; do + if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi +} + diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-resources.sh b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-resources.sh new file mode 100755 index 0000000..25e9d37 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-resources.sh @@ -0,0 +1,96 @@ +#!/bin/sh +set -e + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; +esac + +install_resource() +{ + if [[ "$1" = /* ]] ; then + RESOURCE_PATH="$1" + else + RESOURCE_PATH="${PODS_ROOT}/$1" + fi + if [[ ! -e "$RESOURCE_PATH" ]] ; then + cat << EOM +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. +EOM + exit 1 + fi + case $RESOURCE_PATH in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.framework) + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + *) + echo "$RESOURCE_PATH" + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] +then + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "${PODS_ROOT}*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-umbrella.h b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-umbrella.h new file mode 100644 index 0000000..6411fbc --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-umbrella.h @@ -0,0 +1,8 @@ +#ifdef __OBJC__ +#import +#endif + + +FOUNDATION_EXPORT double Pods_Spruce_TestsVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_Spruce_TestsVersionString[]; + diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.debug.xcconfig b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.debug.xcconfig new file mode 100644 index 0000000..a105ee8 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.debug.xcconfig @@ -0,0 +1,8 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/Spruce" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/Spruce/Spruce.framework/Headers" +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.modulemap b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.modulemap new file mode 100644 index 0000000..d3f5b87 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.modulemap @@ -0,0 +1,6 @@ +framework module Pods_Spruce_Tests { + umbrella header "Pods-Spruce_Tests-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.release.xcconfig b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.release.xcconfig new file mode 100644 index 0000000..a105ee8 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.release.xcconfig @@ -0,0 +1,8 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/Spruce" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/Spruce/Spruce.framework/Headers" +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/Spruce/Info.plist b/Example/Pods/Target Support Files/Spruce/Info.plist new file mode 100644 index 0000000..161a9d3 --- /dev/null +++ b/Example/Pods/Target Support Files/Spruce/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 0.1.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Example/Pods/Target Support Files/Spruce/Spruce-dummy.m b/Example/Pods/Target Support Files/Spruce/Spruce-dummy.m new file mode 100644 index 0000000..dbb147c --- /dev/null +++ b/Example/Pods/Target Support Files/Spruce/Spruce-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Spruce : NSObject +@end +@implementation PodsDummy_Spruce +@end diff --git a/Example/Pods/Target Support Files/Spruce/Spruce-prefix.pch b/Example/Pods/Target Support Files/Spruce/Spruce-prefix.pch new file mode 100644 index 0000000..aa992a4 --- /dev/null +++ b/Example/Pods/Target Support Files/Spruce/Spruce-prefix.pch @@ -0,0 +1,4 @@ +#ifdef __OBJC__ +#import +#endif + diff --git a/Example/Pods/Target Support Files/Spruce/Spruce-umbrella.h b/Example/Pods/Target Support Files/Spruce/Spruce-umbrella.h new file mode 100644 index 0000000..0870257 --- /dev/null +++ b/Example/Pods/Target Support Files/Spruce/Spruce-umbrella.h @@ -0,0 +1,8 @@ +#ifdef __OBJC__ +#import +#endif + + +FOUNDATION_EXPORT double SpruceVersionNumber; +FOUNDATION_EXPORT const unsigned char SpruceVersionString[]; + diff --git a/Example/Pods/Target Support Files/Spruce/Spruce.modulemap b/Example/Pods/Target Support Files/Spruce/Spruce.modulemap new file mode 100644 index 0000000..2a93949 --- /dev/null +++ b/Example/Pods/Target Support Files/Spruce/Spruce.modulemap @@ -0,0 +1,6 @@ +framework module Spruce { + umbrella header "Spruce-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Spruce/Spruce.xcconfig b/Example/Pods/Target Support Files/Spruce/Spruce.xcconfig new file mode 100644 index 0000000..90f971e --- /dev/null +++ b/Example/Pods/Target Support Files/Spruce/Spruce.xcconfig @@ -0,0 +1,9 @@ +CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/Spruce +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES diff --git a/Example/Spruce.xcodeproj/project.pbxproj b/Example/Spruce.xcodeproj/project.pbxproj new file mode 100644 index 0000000..0952b44 --- /dev/null +++ b/Example/Spruce.xcodeproj/project.pbxproj @@ -0,0 +1,615 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 4A43C1DAC694719AE6B7A749 /* Pods_Spruce_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B828A1EFFD048AD3A2E0675 /* Pods_Spruce_Tests.framework */; }; + 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; + 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; + 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; + 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; + 8D0D1A6A199FC9630A10DED3 /* Pods_Spruce_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDBE5745B9DE9B1EAB8C910C /* Pods_Spruce_Example.framework */; }; + DB9357EC1DFB026400ADC5BE /* TableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB9357E31DFB026400ADC5BE /* TableViewController.swift */; }; + DB9357ED1DFB026400ADC5BE /* TestCollectionVIew.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB9357E41DFB026400ADC5BE /* TestCollectionVIew.swift */; }; + DB9357EE1DFB026400ADC5BE /* TestViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB9357E51DFB026400ADC5BE /* TestViewController.swift */; }; + DB9357EF1DFB026400ADC5BE /* TestViewController2.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB9357E61DFB026400ADC5BE /* TestViewController2.swift */; }; + DB9357F01DFB026400ADC5BE /* TestViewController2Setup.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB9357E71DFB026400ADC5BE /* TestViewController2Setup.swift */; }; + DB9357F11DFB026400ADC5BE /* TestViewController3.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB9357E81DFB026400ADC5BE /* TestViewController3.swift */; }; + DB9357F21DFB026400ADC5BE /* TestViewControllerSetup.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB9357E91DFB026400ADC5BE /* TestViewControllerSetup.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 607FACC81AFB9204008FA782 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 607FACCF1AFB9204008FA782; + remoteInfo = Spruce; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 180431F59A6BB6C1511A5258 /* Pods-Spruce_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Spruce_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.release.xcconfig"; sourceTree = ""; }; + 1A7230AE9B3F14A5CD036320 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; + 4B828A1EFFD048AD3A2E0675 /* Pods_Spruce_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Spruce_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACD01AFB9204008FA782 /* Spruce_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Spruce_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + 607FACE51AFB9204008FA782 /* Spruce_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Spruce_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; + 6C04A6F7ABEF198F183B1617 /* Pods-Spruce_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Spruce_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.debug.xcconfig"; sourceTree = ""; }; + 6FCD75E68B76D05C1368631A /* Spruce.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Spruce.podspec; path = ../Spruce.podspec; sourceTree = ""; }; + 763FD0B1F1E8374A748D0636 /* Pods-Spruce_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Spruce_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests.release.xcconfig"; sourceTree = ""; }; + 810EF25AEB3B66AF72D6DC08 /* Pods-Spruce_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Spruce_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example.debug.xcconfig"; sourceTree = ""; }; + DB9357E31DFB026400ADC5BE /* TableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableViewController.swift; sourceTree = ""; }; + DB9357E41DFB026400ADC5BE /* TestCollectionVIew.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestCollectionVIew.swift; sourceTree = ""; }; + DB9357E51DFB026400ADC5BE /* TestViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestViewController.swift; sourceTree = ""; }; + DB9357E61DFB026400ADC5BE /* TestViewController2.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestViewController2.swift; sourceTree = ""; }; + DB9357E71DFB026400ADC5BE /* TestViewController2Setup.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestViewController2Setup.swift; sourceTree = ""; }; + DB9357E81DFB026400ADC5BE /* TestViewController3.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestViewController3.swift; sourceTree = ""; }; + DB9357E91DFB026400ADC5BE /* TestViewControllerSetup.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestViewControllerSetup.swift; sourceTree = ""; }; + F4D59F4B84B3E292C02F5FD8 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + FDBE5745B9DE9B1EAB8C910C /* Pods_Spruce_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Spruce_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 607FACCD1AFB9204008FA782 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 8D0D1A6A199FC9630A10DED3 /* Pods_Spruce_Example.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE21AFB9204008FA782 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4A43C1DAC694719AE6B7A749 /* Pods_Spruce_Tests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 541F222EA2BCC4929E2C93E6 /* Pods */ = { + isa = PBXGroup; + children = ( + 810EF25AEB3B66AF72D6DC08 /* Pods-Spruce_Example.debug.xcconfig */, + 180431F59A6BB6C1511A5258 /* Pods-Spruce_Example.release.xcconfig */, + 6C04A6F7ABEF198F183B1617 /* Pods-Spruce_Tests.debug.xcconfig */, + 763FD0B1F1E8374A748D0636 /* Pods-Spruce_Tests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 607FACC71AFB9204008FA782 = { + isa = PBXGroup; + children = ( + 607FACF51AFB993E008FA782 /* Podspec Metadata */, + 607FACD21AFB9204008FA782 /* Example for Spruce */, + 607FACE81AFB9204008FA782 /* Tests */, + 607FACD11AFB9204008FA782 /* Products */, + 541F222EA2BCC4929E2C93E6 /* Pods */, + EE518578DA1F211845F05455 /* Frameworks */, + ); + sourceTree = ""; + }; + 607FACD11AFB9204008FA782 /* Products */ = { + isa = PBXGroup; + children = ( + 607FACD01AFB9204008FA782 /* Spruce_Example.app */, + 607FACE51AFB9204008FA782 /* Spruce_Tests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 607FACD21AFB9204008FA782 /* Example for Spruce */ = { + isa = PBXGroup; + children = ( + 607FACD51AFB9204008FA782 /* AppDelegate.swift */, + DB9357E31DFB026400ADC5BE /* TableViewController.swift */, + DB9357F31DFB027800ADC5BE /* Test Controllers */, + 607FACDC1AFB9204008FA782 /* Images.xcassets */, + 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, + 607FACD31AFB9204008FA782 /* Supporting Files */, + ); + name = "Example for Spruce"; + path = Spruce; + sourceTree = ""; + }; + 607FACD31AFB9204008FA782 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 607FACD41AFB9204008FA782 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 607FACE81AFB9204008FA782 /* Tests */ = { + isa = PBXGroup; + children = ( + 607FACEB1AFB9204008FA782 /* Tests.swift */, + 607FACE91AFB9204008FA782 /* Supporting Files */, + ); + path = Tests; + sourceTree = ""; + }; + 607FACE91AFB9204008FA782 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 607FACEA1AFB9204008FA782 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { + isa = PBXGroup; + children = ( + 6FCD75E68B76D05C1368631A /* Spruce.podspec */, + 1A7230AE9B3F14A5CD036320 /* README.md */, + F4D59F4B84B3E292C02F5FD8 /* LICENSE */, + ); + name = "Podspec Metadata"; + sourceTree = ""; + }; + DB9357F31DFB027800ADC5BE /* Test Controllers */ = { + isa = PBXGroup; + children = ( + DB9357E41DFB026400ADC5BE /* TestCollectionVIew.swift */, + DB9357E51DFB026400ADC5BE /* TestViewController.swift */, + DB9357E61DFB026400ADC5BE /* TestViewController2.swift */, + DB9357E71DFB026400ADC5BE /* TestViewController2Setup.swift */, + DB9357E81DFB026400ADC5BE /* TestViewController3.swift */, + DB9357E91DFB026400ADC5BE /* TestViewControllerSetup.swift */, + ); + name = "Test Controllers"; + sourceTree = ""; + }; + EE518578DA1F211845F05455 /* Frameworks */ = { + isa = PBXGroup; + children = ( + FDBE5745B9DE9B1EAB8C910C /* Pods_Spruce_Example.framework */, + 4B828A1EFFD048AD3A2E0675 /* Pods_Spruce_Tests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 607FACCF1AFB9204008FA782 /* Spruce_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Spruce_Example" */; + buildPhases = ( + 7E5EF7BD0477E292EED1C40A /* [CP] Check Pods Manifest.lock */, + 607FACCC1AFB9204008FA782 /* Sources */, + 607FACCD1AFB9204008FA782 /* Frameworks */, + 607FACCE1AFB9204008FA782 /* Resources */, + C19B8AAEFD4E174686B43512 /* [CP] Embed Pods Frameworks */, + 25DC382DA6004DE75AF26E20 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Spruce_Example; + productName = Spruce; + productReference = 607FACD01AFB9204008FA782 /* Spruce_Example.app */; + productType = "com.apple.product-type.application"; + }; + 607FACE41AFB9204008FA782 /* Spruce_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Spruce_Tests" */; + buildPhases = ( + A6198F741EA712B9FBA222FE /* [CP] Check Pods Manifest.lock */, + 607FACE11AFB9204008FA782 /* Sources */, + 607FACE21AFB9204008FA782 /* Frameworks */, + 607FACE31AFB9204008FA782 /* Resources */, + 8303BC710AAD4BA36B83C52A /* [CP] Embed Pods Frameworks */, + 4AFFE815B5667BCBE75D81FE /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 607FACE71AFB9204008FA782 /* PBXTargetDependency */, + ); + name = Spruce_Tests; + productName = Tests; + productReference = 607FACE51AFB9204008FA782 /* Spruce_Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 607FACC81AFB9204008FA782 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0720; + LastUpgradeCheck = 0810; + ORGANIZATIONNAME = CocoaPods; + TargetAttributes = { + 607FACCF1AFB9204008FA782 = { + CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 0810; + }; + 607FACE41AFB9204008FA782 = { + CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 0810; + TestTargetID = 607FACCF1AFB9204008FA782; + }; + }; + }; + buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Spruce" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 607FACC71AFB9204008FA782; + productRefGroup = 607FACD11AFB9204008FA782 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 607FACCF1AFB9204008FA782 /* Spruce_Example */, + 607FACE41AFB9204008FA782 /* Spruce_Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 607FACCE1AFB9204008FA782 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, + 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE31AFB9204008FA782 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 25DC382DA6004DE75AF26E20 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 4AFFE815B5667BCBE75D81FE /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 7E5EF7BD0477E292EED1C40A /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + 8303BC710AAD4BA36B83C52A /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Spruce_Tests/Pods-Spruce_Tests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + A6198F741EA712B9FBA222FE /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + C19B8AAEFD4E174686B43512 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Spruce_Example/Pods-Spruce_Example-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 607FACCC1AFB9204008FA782 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DB9357F01DFB026400ADC5BE /* TestViewController2Setup.swift in Sources */, + DB9357EE1DFB026400ADC5BE /* TestViewController.swift in Sources */, + 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, + DB9357EC1DFB026400ADC5BE /* TableViewController.swift in Sources */, + DB9357EF1DFB026400ADC5BE /* TestViewController2.swift in Sources */, + DB9357ED1DFB026400ADC5BE /* TestCollectionVIew.swift in Sources */, + DB9357F21DFB026400ADC5BE /* TestViewControllerSetup.swift in Sources */, + DB9357F11DFB026400ADC5BE /* TestViewController3.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE11AFB9204008FA782 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 607FACCF1AFB9204008FA782 /* Spruce_Example */; + targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 607FACDF1AFB9204008FA782 /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 607FACED1AFB9204008FA782 /* 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_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + 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_SYMBOLS_PRIVATE_EXTERN = NO; + 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 = 8.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 607FACEE1AFB9204008FA782 /* 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_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + 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 = 8.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 607FACF01AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 810EF25AEB3B66AF72D6DC08 /* Pods-Spruce_Example.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = Spruce/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 607FACF11AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 180431F59A6BB6C1511A5258 /* Pods-Spruce_Example.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = Spruce/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; + 607FACF31AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6C04A6F7ABEF198F183B1617 /* Pods-Spruce_Tests.debug.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 607FACF41AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 763FD0B1F1E8374A748D0636 /* Pods-Spruce_Tests.release.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Spruce" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACED1AFB9204008FA782 /* Debug */, + 607FACEE1AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Spruce_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACF01AFB9204008FA782 /* Debug */, + 607FACF11AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Spruce_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACF31AFB9204008FA782 /* Debug */, + 607FACF41AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 607FACC81AFB9204008FA782 /* Project object */; +} diff --git a/Spruce.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/Spruce.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Spruce.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Example/Spruce.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Example/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate b/Example/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..0a6db91 Binary files /dev/null and b/Example/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Example/Spruce.xcodeproj/xcshareddata/xcschemes/Spruce-Example.xcscheme b/Example/Spruce.xcodeproj/xcshareddata/xcschemes/Spruce-Example.xcscheme new file mode 100644 index 0000000..d1a065d --- /dev/null +++ b/Example/Spruce.xcodeproj/xcshareddata/xcschemes/Spruce-Example.xcscheme @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist b/Example/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..a1575db --- /dev/null +++ b/Example/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,19 @@ + + + + + SuppressBuildableAutocreation + + 607FACCF1AFB9204008FA782 + + primary + + + 607FACE41AFB9204008FA782 + + primary + + + + + diff --git a/Example/Spruce.xcworkspace/contents.xcworkspacedata b/Example/Spruce.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..a55f430 --- /dev/null +++ b/Example/Spruce.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Example/Spruce.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate b/Example/Spruce.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..646759f Binary files /dev/null and b/Example/Spruce.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Example/Spruce/AppDelegate.swift b/Example/Spruce/AppDelegate.swift new file mode 100644 index 0000000..4bb185f --- /dev/null +++ b/Example/Spruce/AppDelegate.swift @@ -0,0 +1,50 @@ +// +// AppDelegate.swift +// Spruce +// +// Created by Jackson Taylor on 12/09/2016. +// Copyright (c) 2016 Jackson Taylor. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + let tableController = TableViewController(nibName: nil, bundle: nil) + let navController = UINavigationController(rootViewController: tableController) + + window?.rootViewController = navController + window?.makeKeyAndVisible() + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/Example/Spruce/Base.lproj/LaunchScreen.xib b/Example/Spruce/Base.lproj/LaunchScreen.xib new file mode 100644 index 0000000..f84957a --- /dev/null +++ b/Example/Spruce/Base.lproj/LaunchScreen.xib @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Spruce/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/Spruce/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d3942e9 --- /dev/null +++ b/Example/Spruce/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example/Spruce/Info.plist b/Example/Spruce/Info.plist new file mode 100644 index 0000000..04ef3d3 --- /dev/null +++ b/Example/Spruce/Info.plist @@ -0,0 +1,37 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + + + diff --git a/Example/Spruce/TableViewController.swift b/Example/Spruce/TableViewController.swift new file mode 100644 index 0000000..e1fc316 --- /dev/null +++ b/Example/Spruce/TableViewController.swift @@ -0,0 +1,132 @@ +// +// TableViewController.swift +// Spruce +// +// Created by Jackson Taylor on 11/15/16. +// Copyright © 2016 WillowTree Apps, Inc. All rights reserved. +// + +import UIKit + +class TableViewController: UIViewController { + let tableView = UITableView() + + override func viewDidLoad() { + super.viewDidLoad() + + tableView.frame = view.bounds + tableView.register(UITableViewCell.self, forCellReuseIdentifier: "basicCell") + tableView.delegate = self + tableView.dataSource = self + view.addSubview(tableView) + } +} + +extension TableViewController: UITableViewDataSource { + func numberOfSections(in tableView: UITableView) -> Int { + return 1 + } + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return 12 + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "basicCell", for: indexPath) + + let cellText: String + switch indexPath.row { + case 0: + cellText = "Cornered Sort Function (top-left)" + case 1: + cellText = "Cornered Sort Function (bottom-right)" + case 2: + cellText = "Cornered Sort Function (top-right)" + case 3: + cellText = "Radial Sort Function" + case 4: + cellText = "Radial Sort Function (reversed)" + case 5: + cellText = "Linear Sort Function (bottom-to-top)" + case 6: + cellText = "Linear Sort Function (top-to-bottom)" + case 7: + cellText = "Linear Sort Function (left-to-right)" + case 8: + cellText = "Collection View Example" + case 9: + cellText = "Spruce Default Animation (fadeIn, expand, spin, slideUp)" + case 10: + cellText = "SpruceButton Example (grow)" + case 11: + cellText = "SpruceButton Example (grow, bounce)" + default: + cellText = "" + } + + cell.textLabel?.text = cellText + cell.textLabel?.font = UIFont(name: "HelveticaNeue-Light", size: 14.0) + return cell + } + + @objc(tableView:heightForRowAtIndexPath:) func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { + return 50.0 + } +} + +extension TableViewController: UITableViewDelegate { + func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + let controller: UIViewController + switch indexPath.row { + case 0: + let tempController = TestViewController(nibName: nil, bundle: nil) + tempController.corner = .topLeft + controller = tempController + case 1: + let tempController = TestViewController(nibName: nil, bundle: nil) + tempController.corner = .bottomRight + controller = tempController + case 2: + let tempController = TestViewController(nibName: nil, bundle: nil) + tempController.corner = .topRight + controller = tempController + case 3: + let tempController = TestRadialViewController(nibName: nil, bundle: nil) + tempController.reversed = false + controller = tempController + case 4: + let tempController = TestRadialViewController(nibName: nil, bundle: nil) + tempController.reversed = true + controller = tempController + case 5: + let tempController = TestLinearViewController(nibName: nil, bundle: nil) + tempController.direction = .bottomToTop + controller = tempController + case 6: + let tempController = TestLinearViewController(nibName: nil, bundle: nil) + tempController.direction = .topToBottom + controller = tempController + case 7: + let tempController = TestLinearViewController(nibName: nil, bundle: nil) + tempController.direction = .leftToRight + controller = tempController + case 8: + let tempController = TestCollectionView(nibName: nil, bundle: nil) + controller = tempController + case 9: + let tempController = TestViewController2(nibName: nil, bundle: nil) + controller = tempController + case 10: + let tempController = TestViewController3(nibName: nil, bundle: nil) + controller = tempController + case 11: + let tempController = SpruceButtonBounceViewController(nibName: nil, bundle: nil) + controller = tempController + default: + let tempController = TestViewController(nibName: nil, bundle: nil) + controller = tempController + } + navigationController?.pushViewController(controller, animated: true) + tableView.deselectRow(at: indexPath, animated: true) + } +} diff --git a/Example/Spruce/TestCollectionVIew.swift b/Example/Spruce/TestCollectionVIew.swift new file mode 100644 index 0000000..2141fa6 --- /dev/null +++ b/Example/Spruce/TestCollectionVIew.swift @@ -0,0 +1,82 @@ +// +// TestCollectionVIew.swift +// Spruce +// +// Created by Jackson Taylor on 11/8/16. +// Copyright © 2016 WillowTree Apps, Inc. All rights reserved. +// + +import UIKit +import Spruce + +class TestCollectionView: UIViewController { + var collectionView: UICollectionView! + + override func viewDidLoad() { + super.viewDidLoad() + + let flowLayout = UICollectionViewFlowLayout() + collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: flowLayout) + collectionView.dataSource = self + collectionView.delegate = self + collectionView.register(UICollectionViewCell.self, forCellWithReuseIdentifier: "cell") + view.addSubview(collectionView) + } + + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + + /*Timer.scheduledTimer(withTimeInterval: 2.0, repeats: false) { _ in + self.callAnimation() + }*/ + callAnimation2() + } + + func callAnimation() { + let animation = SpringAnimation(duration: 0.5) { view in + view.alpha = 1.0 + view.transform = CGAffineTransform(scaleX: 1.0, y: 1.0) + } + let sortFunction = RadialSortFunction(position: .middle, interObjectDelay: 0.05) + //sortFunction.reversed = true + //let sortFunction = CorneredSortFunction(corner: .topLeft, interObjectDelay: 0.05) + //let sortFunction = LinearSortFunction(direction: .topToBottom, interObjectDelay: 0.05) + collectionView.spruceSubViews(withSortFunction: sortFunction, animation: animation) + } + + func callAnimation2() { + collectionView.spruceUp(withAnimations: [.contract(.medium), .fadeIn], duration: 0.3) + } +} + +extension TestCollectionView: UICollectionViewDelegate { + +} + +extension TestCollectionView: UICollectionViewDataSource { + func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { + return 49 + } + + func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { + let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath) + cell.backgroundColor = .blue + cell.isHidden = true + return cell + } +} + +extension TestCollectionView: UICollectionViewDelegateFlowLayout { + func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { + let viewSize = (self.view.bounds.size.width / 7.0) + return CGSize(width: viewSize, height: viewSize) + } + + func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { + return 0.0 + } + + func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat { + return 0.0 + } +} diff --git a/Example/Spruce/TestViewController.swift b/Example/Spruce/TestViewController.swift new file mode 100644 index 0000000..5bd0a99 --- /dev/null +++ b/Example/Spruce/TestViewController.swift @@ -0,0 +1,67 @@ +// +// TestViewController.swift +// Spruce +// +// Created by Jackson Taylor on 11/8/16. +// Copyright © 2016 WillowTree Apps, Inc. All rights reserved. +// + +import UIKit +import Spruce + +class TestViewController: UIViewController { + + var containerView: UIView? + + var corner: SpruceCorner = .bottomRight + + override func viewDidLoad() { + super.viewDidLoad() + view.backgroundColor = UIColor.white + setup() + } + + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + + Timer.scheduledTimer(withTimeInterval: 1.0, repeats: false) { _ in + self.callAnimation() + } + } + + func callAnimation() { + let animation = SpringAnimation(duration: 0.5) { view in + view.alpha = 1.0 + view.transform = CGAffineTransform(scaleX: 1.0, y: 1.0) + } + let sortFunction = CorneredSortFunction(corner: corner, interObjectDelay: 0.05) + containerView?.spruceSubViews(withSortFunction: sortFunction, animation: animation) + } +} + + +class TestRadialViewController: TestViewController { + var reversed: Bool = false + override func callAnimation() { + let animation = SpringAnimation(duration: 0.5) { view in + view.alpha = 1.0 + view.transform = CGAffineTransform(scaleX: 1.0, y: 1.0) + } + let sortFunction = RadialSortFunction(position: .topMiddle, interObjectDelay: 0.05) + sortFunction.reversed = reversed + containerView?.spruceSubViews(withSortFunction: sortFunction, animation: animation) + } +} + +class TestLinearViewController: TestViewController { + var direction: SpruceDirection = .topToBottom + override func callAnimation() { + let animation = SpringAnimation(duration: 0.5) { view in + view.alpha = 1.0 + view.transform = CGAffineTransform(scaleX: 1.0, y: 1.0) + } + let sortFunction = LinearSortFunction(direction: .topToBottom, interObjectDelay: 0.05) + containerView?.spruceSubViews(withSortFunction: sortFunction, animation: animation) + + } +} diff --git a/Example/Spruce/TestViewController2.swift b/Example/Spruce/TestViewController2.swift new file mode 100644 index 0000000..1a2a434 --- /dev/null +++ b/Example/Spruce/TestViewController2.swift @@ -0,0 +1,31 @@ +// +// TestViewController2.swift +// Spruce +// +// Created by Jackson Taylor on 11/15/16. +// Copyright © 2016 WillowTree Apps, Inc. All rights reserved. +// + +import UIKit +import Spruce + +class TestViewController2: UIViewController { + + var containerView: UIView? + + override func viewDidLoad() { + super.viewDidLoad() + view.backgroundColor = UIColor.white + setup() + + containerView?.hideAllSubviews() + } + + /* Where all the magic happens */ + + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + + containerView?.spruceUp(withAnimations: [.fadeIn, .expand(.medium), .spin(.large), .slide(.up,.medium)]) + } +} diff --git a/Example/Spruce/TestViewController2Setup.swift b/Example/Spruce/TestViewController2Setup.swift new file mode 100644 index 0000000..6fe0626 --- /dev/null +++ b/Example/Spruce/TestViewController2Setup.swift @@ -0,0 +1,27 @@ +// +// TestViewController2Setup.swift +// Spruce +// +// Created by Jackson Taylor on 11/15/16. +// Copyright © 2016 WillowTree Apps, Inc. All rights reserved. +// + +import UIKit +import Spruce + + +extension TestViewController2 { + func setup() { + let viewSize = (self.view.bounds.size.width / 7.0) + + self.containerView = UIView(frame: CGRect(x: 0.0, y: 30.0, width: view.bounds.size.width, height: viewSize * 7.0)) + self.view.addSubview(self.containerView!) + for row in 0..<7 { + for col in 0..<7 { + let view = UIView(frame: CGRect(x: CGFloat(col) * viewSize, y: CGFloat(row) * viewSize, width: viewSize, height: viewSize)) + view.backgroundColor = .blue + containerView?.addSubview(view) + } + } + } +} diff --git a/Example/Spruce/TestViewController3.swift b/Example/Spruce/TestViewController3.swift new file mode 100644 index 0000000..8cd1d48 --- /dev/null +++ b/Example/Spruce/TestViewController3.swift @@ -0,0 +1,43 @@ +// +// TestViewController3.swift +// Spruce +// +// Created by Jackson Taylor on 11/30/16. +// Copyright © 2016 WillowTree Apps, Inc. All rights reserved. +// + +import UIKit +import Spruce + +class TestViewController3: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + view.backgroundColor = UIColor.white + + let button = SpruceButton(frame: CGRect(x: (view.frame.size.width/2.0) - 100.0, y: (view.frame.size.height/2.0) - 50.0, width: 200.0, height: 100.0)) + button.backgroundColor = UIColor.blue + button.layer.cornerRadius = 5.0 + button.clipsToBounds = true + view.addSubview(button) + } + +} + +class SpruceButtonBounceViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + view.backgroundColor = UIColor.white + + let button = SpruceButton(frame: CGRect(x: (view.frame.size.width/2.0) - 100.0, y: (view.frame.size.height/2.0) - 50.0, width: 200.0, height: 100.0)) + button.animation = SpringAnimation(duration: 0.3) + button.backgroundColor = UIColor.blue + button.layer.cornerRadius = 5.0 + button.clipsToBounds = true + view.addSubview(button) + } + +} diff --git a/Example/Spruce/TestViewControllerSetup.swift b/Example/Spruce/TestViewControllerSetup.swift new file mode 100644 index 0000000..3652863 --- /dev/null +++ b/Example/Spruce/TestViewControllerSetup.swift @@ -0,0 +1,28 @@ +// +// TestViewControllerSetup.swift +// Spruce +// +// Created by Jackson Taylor on 11/15/16. +// Copyright © 2016 WillowTree Apps, Inc. All rights reserved. +// + +import UIKit +import Spruce + +extension TestViewController { + func setup() { + let viewSize = (self.view.bounds.size.width / 7.0) + + self.containerView = UIView(frame: CGRect(x: 0.0, y: 30.0, width: view.bounds.size.width, height: viewSize * 7.0)) + self.view.addSubview(self.containerView!) + for row in 0..<7 { + for col in 0..<7 { + let view = UIView(frame: CGRect(x: CGFloat(col) * viewSize, y: CGFloat(row) * viewSize, width: viewSize, height: viewSize)) + view.backgroundColor = .blue + view.alpha = 0.0 + view.transform = CGAffineTransform(scaleX: 0.1, y: 0.1) + containerView?.addSubview(view) + } + } + } +} diff --git a/Example/Tests/Info.plist b/Example/Tests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/Example/Tests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Example/Tests/Tests.swift b/Example/Tests/Tests.swift new file mode 100644 index 0000000..ee85c0d --- /dev/null +++ b/Example/Tests/Tests.swift @@ -0,0 +1,29 @@ +import UIKit +import XCTest +import Spruce + +class Tests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + XCTAssert(true, "Pass") + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure() { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e93da4f --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2016 Jackson Taylor + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/Spruce.podspec b/Spruce.podspec new file mode 100644 index 0000000..395a801 --- /dev/null +++ b/Spruce.podspec @@ -0,0 +1,26 @@ +# +# Be sure to run `pod lib lint Spruce.podspec' to ensure this is a +# valid spec before submitting. +# +# Any lines starting with a # are optional, but their use is encouraged +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html +# + +Pod::Spec.new do |s| + s.name = 'Spruce' + s.version = '0.1.0' + s.summary = 'A simple animation library that tries to do everything for you.' + + s.description = <<-DESC + Spruce is a very small, lightweight animation library that hopes to handle all of the complications of animations for you. So many developers use standard animations because they are easy and quick to use. With Spruce, developers will be able to create complex animations hopefully with just one line of code. These animations can include variations on fading, scale, spin, and many more. A key component of Spruce is that it is entirely customizable. If we don't have the exact animation you are looking to build, subclass one of our types and everything will just work. + DESC + + s.homepage = 'https://github.com/willowtreeapps/spruce-ios' + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.author = { 'Jackson Taylor' => 'jackson.taylor@willowtreeapps.com' } + s.source = { :git => 'https://github.com/willowtreeapps/Spruce.git', :tag => s.version.to_s } + + s.ios.deployment_target = '8.0' + + s.source_files = 'Spruce/Classes/**/*' +end diff --git a/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate b/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index c733f81..0000000 Binary files a/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/Spruce/.gitignore b/Spruce/.gitignore new file mode 100644 index 0000000..e7b722d --- /dev/null +++ b/Spruce/.gitignore @@ -0,0 +1,33 @@ +# OS X +.DS_Store + +# Xcode +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ +*.xccheckout +profile +*.moved-aside +DerivedData +*.hmap +*.ipa + +# Bundler +.bundle + +Carthage +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control +# +# Note: if you ignore the Pods directory, make sure to uncomment +# `pod install` in .travis.yml +# +# Pods/ diff --git a/Spruce/.travis.yml b/Spruce/.travis.yml new file mode 100644 index 0000000..f13b21f --- /dev/null +++ b/Spruce/.travis.yml @@ -0,0 +1,14 @@ +# references: +# * http://www.objc.io/issue-6/travis-ci.html +# * https://github.com/supermarin/xcpretty#usage + +osx_image: xcode7.3 +language: objective-c +# cache: cocoapods +# podfile: Example/Podfile +# before_install: +# - gem install cocoapods # Since Travis is not always on latest version +# - pod install --project-directory=Example +script: +- set -o pipefail && xcodebuild test -workspace Example/Spruce.xcworkspace -scheme Spruce-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty +- pod lib lint diff --git a/Spruce/Assets/.gitkeep b/Spruce/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Spruce/Classes/.gitkeep b/Spruce/Classes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Spruce/Core/Animations/Animation.swift b/Spruce/Classes/Animations/Animation.swift similarity index 73% rename from Spruce/Core/Animations/Animation.swift rename to Spruce/Classes/Animations/Animation.swift index 8ae205b..227a4cb 100644 --- a/Spruce/Core/Animations/Animation.swift +++ b/Spruce/Classes/Animations/Animation.swift @@ -8,9 +8,9 @@ import UIKit -typealias SpruceChangeFunction = (_ view: UIView) -> Void +public typealias SpruceChangeFunction = (_ view: UIView) -> Void -protocol SpruceAnimation { +public protocol SpruceAnimation { func animate(delay: TimeInterval, view: UIView) var changeFunction: SpruceChangeFunction? { get set } diff --git a/Spruce/Core/Animations/DefaultAnimations.swift b/Spruce/Classes/Animations/DefaultAnimations.swift similarity index 97% rename from Spruce/Core/Animations/DefaultAnimations.swift rename to Spruce/Classes/Animations/DefaultAnimations.swift index 3389391..73fb57c 100644 --- a/Spruce/Core/Animations/DefaultAnimations.swift +++ b/Spruce/Classes/Animations/DefaultAnimations.swift @@ -8,7 +8,7 @@ import UIKit -enum SpruceDefaultChangeFunction { +public enum SpruceDefaultChangeFunction { case grow case shrink case fade diff --git a/Spruce/Core/Animations/SpringAnimation.swift b/Spruce/Classes/Animations/SpringAnimation.swift similarity index 69% rename from Spruce/Core/Animations/SpringAnimation.swift rename to Spruce/Classes/Animations/SpringAnimation.swift index 9fc4a80..1cd43da 100644 --- a/Spruce/Core/Animations/SpringAnimation.swift +++ b/Spruce/Classes/Animations/SpringAnimation.swift @@ -9,23 +9,23 @@ import UIKit -class SpringAnimation: SpruceAnimation { +open class SpringAnimation: SpruceAnimation { - var changeFunction: SpruceChangeFunction? + public var changeFunction: SpruceChangeFunction? let duration: TimeInterval let damping: CGFloat = 0.5 let initialVelocity: CGFloat = 0.7 - init(duration: TimeInterval) { + public init(duration: TimeInterval) { self.duration = duration } - convenience init(duration: TimeInterval, changes: @escaping SpruceChangeFunction) { + public convenience init(duration: TimeInterval, changes: @escaping SpruceChangeFunction) { self.init(duration: duration) self.changeFunction = changes } - func animate(delay: TimeInterval, view: UIView) { + open func animate(delay: TimeInterval, view: UIView) { UIView.animate(withDuration: duration, delay: delay, usingSpringWithDamping: damping, initialSpringVelocity: initialVelocity, options: [], animations: { [weak self] in self?.changeFunction?(view) }, completion: nil) diff --git a/Spruce/Core/Animations/StandardAnimation.swift b/Spruce/Classes/Animations/StandardAnimation.swift similarity index 64% rename from Spruce/Core/Animations/StandardAnimation.swift rename to Spruce/Classes/Animations/StandardAnimation.swift index 9dab5e3..493937c 100644 --- a/Spruce/Core/Animations/StandardAnimation.swift +++ b/Spruce/Classes/Animations/StandardAnimation.swift @@ -8,21 +8,21 @@ import UIKit -class StandardAnimation: SpruceAnimation { +open class StandardAnimation: SpruceAnimation { - var changeFunction: SpruceChangeFunction? + public var changeFunction: SpruceChangeFunction? let duration: TimeInterval - init(duration: TimeInterval) { + public init(duration: TimeInterval) { self.duration = duration } - convenience init(duration: TimeInterval, changes: @escaping SpruceChangeFunction) { + public convenience init(duration: TimeInterval, changes: @escaping SpruceChangeFunction) { self.init(duration: duration) self.changeFunction = changes } - func animate(delay: TimeInterval, view: UIView) { + open func animate(delay: TimeInterval, view: UIView) { UIView.animate(withDuration: duration, delay: delay, options: [.curveEaseOut], animations: { [weak self] in self?.changeFunction?(view) }, completion: nil) diff --git a/Spruce/Core/Full View/DefaultFullViewAnimations.swift b/Spruce/Classes/Full View/DefaultFullViewAnimations.swift similarity index 90% rename from Spruce/Core/Full View/DefaultFullViewAnimations.swift rename to Spruce/Classes/Full View/DefaultFullViewAnimations.swift index ad13beb..d67cdca 100644 --- a/Spruce/Core/Full View/DefaultFullViewAnimations.swift +++ b/Spruce/Classes/Full View/DefaultFullViewAnimations.swift @@ -8,20 +8,20 @@ import UIKit -enum SlideDirection { +public enum SlideDirection { case up case down case left case right } -enum SpruceSize { +public enum SpruceSize { case small case medium case large } -enum SpruceStandardAnimation { +public enum SpruceStandardAnimation { case slide(SlideDirection, SpruceSize) case fadeIn @@ -159,18 +159,18 @@ enum SpruceStandardAnimation { } } -extension UIView { - func spruceUp(withAnimations animations: [SpruceStandardAnimation], duration: TimeInterval = 0.3) { +public extension UIView { + open func spruceUp(withAnimations animations: [SpruceStandardAnimation], duration: TimeInterval = 0.3) { let animation = StandardAnimation(duration: duration) self.spruceUp(withAnimations: animations, duration: duration, animationType: animation) } - func spruceUp(withAnimations animations: [SpruceStandardAnimation], duration: TimeInterval = 0.3, animationType: SpruceAnimation) { + open func spruceUp(withAnimations animations: [SpruceStandardAnimation], duration: TimeInterval = 0.3, animationType: SpruceAnimation) { let sortFunction = LinearSortFunction(direction: .topToBottom, interObjectDelay: 0.05) self.spruceUp(withAnimations: animations, duration: duration, animationType: animationType, sortFunction: sortFunction) } - func spruceUp(withAnimations animations: [SpruceStandardAnimation], duration: TimeInterval = 0.3, animationType: SpruceAnimation, sortFunction: SortFunction, prepare: Bool = true) { + open func spruceUp(withAnimations animations: [SpruceStandardAnimation], duration: TimeInterval = 0.3, animationType: SpruceAnimation, sortFunction: SortFunction, prepare: Bool = true) { if prepare { self.sprucePrepare(withAnimations: animations) @@ -187,7 +187,7 @@ extension UIView { self.spruceSubViews(withSortFunction: sortFunction, animation: animationType) } - func sprucePrepare(withAnimations animations: [SpruceStandardAnimation]) { + open func sprucePrepare(withAnimations animations: [SpruceStandardAnimation]) { /* Reset the views to prepare for the animations */ let clearFunction: SpruceChangeFunction = { view in for animation in animations { @@ -215,7 +215,7 @@ extension UIView { } } - func hideAllSubviews() { + open func hideAllSubviews() { UIView.performWithoutAnimation { for subView in subviews { subView.isHidden = true diff --git a/Spruce/Core/Full View/FullViewAnimation.swift b/Spruce/Classes/Full View/FullViewAnimation.swift similarity index 73% rename from Spruce/Core/Full View/FullViewAnimation.swift rename to Spruce/Classes/Full View/FullViewAnimation.swift index b72c6c8..d78a231 100644 --- a/Spruce/Core/Full View/FullViewAnimation.swift +++ b/Spruce/Classes/Full View/FullViewAnimation.swift @@ -8,8 +8,8 @@ import UIKit -extension UIView { - func spruceSubViews(withSortFunction sortFunction: SortFunction, animation: SpruceAnimation) { +public extension UIView { + open func spruceSubViews(withSortFunction sortFunction: SortFunction, animation: SpruceAnimation) { let timedViews = sortFunction.getTimeOffsets(view: self) for view in timedViews { animation.animate(delay: view.timeOffset, view: view.view) diff --git a/Spruce/Core/Full View/SpruceViewController.swift b/Spruce/Classes/Full View/SpruceViewController.swift similarity index 85% rename from Spruce/Core/Full View/SpruceViewController.swift rename to Spruce/Classes/Full View/SpruceViewController.swift index 49473aa..3708cca 100644 --- a/Spruce/Core/Full View/SpruceViewController.swift +++ b/Spruce/Classes/Full View/SpruceViewController.swift @@ -8,7 +8,7 @@ import UIKit -class SpruceViewController: UIViewController { +open class SpruceViewController: UIViewController { var animations: [SpruceStandardAnimation] = [] var duration: TimeInterval = 0.3 var animationType: SpruceAnimation @@ -22,11 +22,11 @@ class SpruceViewController: UIViewController { super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) } - required init?(coder aDecoder: NSCoder) { + required public init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } - override func viewDidLoad() { + override open func viewDidLoad() { super.viewDidLoad() if animations.count > 0 { animationView?.hideAllSubviews() @@ -34,7 +34,7 @@ class SpruceViewController: UIViewController { } } - override func viewDidAppear(_ animated: Bool) { + override open func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) animationView?.spruceUp(withAnimations: animations, duration: duration, animationType: animationType, sortFunction: sortFunction, prepare: false) diff --git a/Spruce/Core/Sort Functions/BaseDistancedSortFunction.swift b/Spruce/Classes/Sort Functions/BaseDistancedSortFunction.swift similarity index 83% rename from Spruce/Core/Sort Functions/BaseDistancedSortFunction.swift rename to Spruce/Classes/Sort Functions/BaseDistancedSortFunction.swift index f4e5695..2523ad0 100644 --- a/Spruce/Core/Sort Functions/BaseDistancedSortFunction.swift +++ b/Spruce/Classes/Sort Functions/BaseDistancedSortFunction.swift @@ -8,16 +8,16 @@ import UIKit -class BaseDistancedSortFunction: SortFunction { +open class BaseDistancedSortFunction: SortFunction { let interObjectDelay: TimeInterval - var reversed = false + open var reversed = false init(interObjectDelay: TimeInterval) { self.interObjectDelay = interObjectDelay } - func getTimeOffsets(view: UIView) -> [SpruceTimedView] { + open func getTimeOffsets(view: UIView) -> [SpruceTimedView] { let comparisonPoint = getDistancePoint(bounds: view.bounds) let subviews = view.subviews @@ -47,11 +47,11 @@ class BaseDistancedSortFunction: SortFunction { return timedViews } - func getDistanceBetweenPoints(left: CGPoint, right: CGPoint) -> Double { + open func getDistanceBetweenPoints(left: CGPoint, right: CGPoint) -> Double { return left.euclideanDistance(right) } - func getDistancePoint(bounds: CGRect) -> CGPoint { + open func getDistancePoint(bounds: CGRect) -> CGPoint { return CGPoint.zero } } diff --git a/Spruce/Core/Sort Functions/CorneredSortFunction.swift b/Spruce/Classes/Sort Functions/CorneredSortFunction.swift similarity index 84% rename from Spruce/Core/Sort Functions/CorneredSortFunction.swift rename to Spruce/Classes/Sort Functions/CorneredSortFunction.swift index 8ede1f8..e7917ff 100644 --- a/Spruce/Core/Sort Functions/CorneredSortFunction.swift +++ b/Spruce/Classes/Sort Functions/CorneredSortFunction.swift @@ -8,23 +8,23 @@ import UIKit -enum SpruceCorner { +public enum SpruceCorner { case topLeft case topRight case bottomLeft case bottomRight } -class CorneredSortFunction: BaseDistancedSortFunction { +open class CorneredSortFunction: BaseDistancedSortFunction { let corner: SpruceCorner - init(corner: SpruceCorner, interObjectDelay: TimeInterval) { + public init(corner: SpruceCorner, interObjectDelay: TimeInterval) { self.corner = corner super.init(interObjectDelay: interObjectDelay) } - override func getTimeOffsets(view: UIView) -> [SpruceTimedView] { + open override func getTimeOffsets(view: UIView) -> [SpruceTimedView] { let comparisonPoint = getDistancePoint(bounds: view.bounds) let subviews = view.subviews @@ -51,7 +51,7 @@ class CorneredSortFunction: BaseDistancedSortFunction { return timedViews } - override func getDistancePoint(bounds: CGRect) -> CGPoint { + open override func getDistancePoint(bounds: CGRect) -> CGPoint { switch corner { case .topLeft: return CGPoint.zero diff --git a/Spruce/Core/Sort Functions/DefaultSortFunction.swift b/Spruce/Classes/Sort Functions/DefaultSortFunction.swift similarity index 79% rename from Spruce/Core/Sort Functions/DefaultSortFunction.swift rename to Spruce/Classes/Sort Functions/DefaultSortFunction.swift index 432e73c..c13a3c2 100644 --- a/Spruce/Core/Sort Functions/DefaultSortFunction.swift +++ b/Spruce/Classes/Sort Functions/DefaultSortFunction.swift @@ -9,15 +9,15 @@ import UIKit -class DefaultSortFunction: SortFunction { +open class DefaultSortFunction: SortFunction { let interObjectDelay: TimeInterval - init(interObjectDelay: TimeInterval) { + public init(interObjectDelay: TimeInterval) { self.interObjectDelay = interObjectDelay } - func getTimeOffsets(view: UIView) -> [SpruceTimedView] { + open func getTimeOffsets(view: UIView) -> [SpruceTimedView] { var timedViews: [SpruceTimedView] = [] var currentTimeOffset: TimeInterval = 0.0 for subView in view.subviews { diff --git a/Spruce/Core/Sort Functions/LinearSortFunction.swift b/Spruce/Classes/Sort Functions/LinearSortFunction.swift similarity index 78% rename from Spruce/Core/Sort Functions/LinearSortFunction.swift rename to Spruce/Classes/Sort Functions/LinearSortFunction.swift index e3711e1..56ff3f5 100644 --- a/Spruce/Core/Sort Functions/LinearSortFunction.swift +++ b/Spruce/Classes/Sort Functions/LinearSortFunction.swift @@ -8,22 +8,22 @@ import UIKit -enum SpruceDirection { +public enum SpruceDirection { case topToBottom case bottomToTop case leftToRight case rightToLeft } -class LinearSortFunction: BaseDistancedSortFunction { +open class LinearSortFunction: BaseDistancedSortFunction { let direction: SpruceDirection - init(direction: SpruceDirection, interObjectDelay: TimeInterval) { + public init(direction: SpruceDirection, interObjectDelay: TimeInterval) { self.direction = direction super.init(interObjectDelay: interObjectDelay) } - override func getDistanceBetweenPoints(left: CGPoint, right: CGPoint) -> Double { + open override func getDistanceBetweenPoints(left: CGPoint, right: CGPoint) -> Double { var left = left var right = right switch direction { @@ -37,7 +37,7 @@ class LinearSortFunction: BaseDistancedSortFunction { return left.euclideanDistance(right) } - override func getDistancePoint(bounds: CGRect) -> CGPoint { + open override func getDistancePoint(bounds: CGRect) -> CGPoint { switch direction { case .topToBottom: return CGPoint(x: (bounds.size.width / 2.0), y: 0.0) diff --git a/Spruce/Core/Sort Functions/NoDelaySortFunction.swift b/Spruce/Classes/Sort Functions/NoDelaySortFunction.swift similarity index 75% rename from Spruce/Core/Sort Functions/NoDelaySortFunction.swift rename to Spruce/Classes/Sort Functions/NoDelaySortFunction.swift index fd618ab..0faca37 100644 --- a/Spruce/Core/Sort Functions/NoDelaySortFunction.swift +++ b/Spruce/Classes/Sort Functions/NoDelaySortFunction.swift @@ -8,8 +8,8 @@ import UIKit -class NoDelaySortFunction: SortFunction { - func getTimeOffsets(view: UIView) -> [SpruceTimedView] { +open class NoDelaySortFunction: SortFunction { + open func getTimeOffsets(view: UIView) -> [SpruceTimedView] { return view.subviews.flatMap { subView in let timedView = SpruceTimedView(view: subView, timeOffset: 0.0) return timedView diff --git a/Spruce/Core/Sort Functions/Operations/PointOperations.swift b/Spruce/Classes/Sort Functions/Operations/PointOperations.swift similarity index 77% rename from Spruce/Core/Sort Functions/Operations/PointOperations.swift rename to Spruce/Classes/Sort Functions/Operations/PointOperations.swift index 3384e7b..b9b9c71 100644 --- a/Spruce/Core/Sort Functions/Operations/PointOperations.swift +++ b/Spruce/Classes/Sort Functions/Operations/PointOperations.swift @@ -8,8 +8,8 @@ import UIKit -extension CGPoint { - func euclideanDistance(_ point: CGPoint) -> Double { +public extension CGPoint { + public func euclideanDistance(_ point: CGPoint) -> Double { let x = Double(pow(self.x - point.x, 2.0)) let y = Double(pow(self.y - point.y, 2.0)) return sqrt(x + y) diff --git a/Spruce/Core/Sort Functions/Operations/ViewOperations.swift b/Spruce/Classes/Sort Functions/Operations/ViewOperations.swift similarity index 72% rename from Spruce/Core/Sort Functions/Operations/ViewOperations.swift rename to Spruce/Classes/Sort Functions/Operations/ViewOperations.swift index 97e2b39..80b7797 100644 --- a/Spruce/Core/Sort Functions/Operations/ViewOperations.swift +++ b/Spruce/Classes/Sort Functions/Operations/ViewOperations.swift @@ -8,8 +8,8 @@ import UIKit -extension UIView { - func getOcuppiedSubBounds() -> CGRect { +public extension UIView { + public func getOcuppiedSubBounds() -> CGRect { return CGRect.zero } } diff --git a/Spruce/Core/Sort Functions/RadialSortFunction.swift b/Spruce/Classes/Sort Functions/RadialSortFunction.swift similarity index 85% rename from Spruce/Core/Sort Functions/RadialSortFunction.swift rename to Spruce/Classes/Sort Functions/RadialSortFunction.swift index 21d198e..da99b89 100644 --- a/Spruce/Core/Sort Functions/RadialSortFunction.swift +++ b/Spruce/Classes/Sort Functions/RadialSortFunction.swift @@ -8,7 +8,7 @@ import UIKit -enum SprucePosition { +public enum SprucePosition { case topLeft case topMiddle case topRight @@ -20,15 +20,15 @@ enum SprucePosition { case bottomRight } -class RadialSortFunction: BaseDistancedSortFunction { +open class RadialSortFunction: BaseDistancedSortFunction { let position: SprucePosition - init(position: SprucePosition, interObjectDelay: TimeInterval) { + public init(position: SprucePosition, interObjectDelay: TimeInterval) { self.position = position super.init(interObjectDelay: interObjectDelay) } - override func getDistancePoint(bounds: CGRect) -> CGPoint { + open override func getDistancePoint(bounds: CGRect) -> CGPoint { switch position { case .topLeft: return CGPoint.zero diff --git a/Spruce/Core/Sort Functions/RandomSortFunction.swift b/Spruce/Classes/Sort Functions/RandomSortFunction.swift similarity index 89% rename from Spruce/Core/Sort Functions/RandomSortFunction.swift rename to Spruce/Classes/Sort Functions/RandomSortFunction.swift index 419a547..cf45ee1 100644 --- a/Spruce/Core/Sort Functions/RandomSortFunction.swift +++ b/Spruce/Classes/Sort Functions/RandomSortFunction.swift @@ -8,15 +8,15 @@ import UIKit -class RandomSortFunction: SortFunction { +open class RandomSortFunction: SortFunction { let interObjectDelay: TimeInterval - init(interObjectDelay: TimeInterval) { + public init(interObjectDelay: TimeInterval) { self.interObjectDelay = interObjectDelay } - func getTimeOffsets(view: UIView) -> [SpruceTimedView] { + open func getTimeOffsets(view: UIView) -> [SpruceTimedView] { var subViews = view.subviews subViews.shuffle() diff --git a/Spruce/Core/Sort Functions/SortFunction.swift b/Spruce/Classes/Sort Functions/SortFunction.swift similarity index 81% rename from Spruce/Core/Sort Functions/SortFunction.swift rename to Spruce/Classes/Sort Functions/SortFunction.swift index 42c3fd1..39bf6d6 100644 --- a/Spruce/Core/Sort Functions/SortFunction.swift +++ b/Spruce/Classes/Sort Functions/SortFunction.swift @@ -8,11 +8,11 @@ import UIKit -struct SpruceTimedView { +public struct SpruceTimedView { let view: UIView let timeOffset: TimeInterval } -protocol SortFunction { +public protocol SortFunction { func getTimeOffsets(view: UIView) -> [SpruceTimedView] } diff --git a/Spruce/Core/Spruce.swift b/Spruce/Classes/Spruce.swift similarity index 89% rename from Spruce/Core/Spruce.swift rename to Spruce/Classes/Spruce.swift index 3bf97d7..6fcac5d 100644 --- a/Spruce/Core/Spruce.swift +++ b/Spruce/Classes/Spruce.swift @@ -8,6 +8,6 @@ import UIKit -class Spruce { +open class Spruce { } diff --git a/Spruce/Core/UI Elements/SpruceButton.swift b/Spruce/Classes/UI Elements/SpruceButton.swift similarity index 71% rename from Spruce/Core/UI Elements/SpruceButton.swift rename to Spruce/Classes/UI Elements/SpruceButton.swift index f72bb4e..86ae5b7 100644 --- a/Spruce/Core/UI Elements/SpruceButton.swift +++ b/Spruce/Classes/UI Elements/SpruceButton.swift @@ -8,12 +8,12 @@ import UIKit -class SpruceButton: UIButton { +open class SpruceButton: UIButton { - var changeFunction: SpruceDefaultChangeFunction = .grow - var animation: SpruceAnimation = StandardAnimation(duration: 0.2) + open var changeFunction: SpruceDefaultChangeFunction = .grow + open var animation: SpruceAnimation = StandardAnimation(duration: 0.2) - override var isHighlighted: Bool { + override open var isHighlighted: Bool { didSet { let function: SpruceChangeFunction if isHighlighted { diff --git a/Spruce/REGFullPageErrorScreen.swift b/Spruce/REGFullPageErrorScreen.swift deleted file mode 100644 index 54ae531..0000000 --- a/Spruce/REGFullPageErrorScreen.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// REGFullPageErrorScreen.swift -// Regal -// -// Created by Jackson Taylor on 7/19/16. -// Copyright © 2016 Regal Cinemas, Inc. All rights reserved. -// - -import UIKit - -typealias REGErrorActionCallback = (() -> Void) - -class REGFullPageErrorScreen: SpruceViewController { - - @IBOutlet weak var centerView: UIView! - - class func build(animated: Bool) -> REGFullPageErrorScreen { - let errorScreen = REGFullPageErrorScreen(nibName: "REGFullPageErrorScreen", bundle: nil) - errorScreen.animations = animated ? [.fadeIn, .slide(.up, .large), .expand(.small)] : [] - errorScreen.duration = 0.5 -// errorScreen.animationType = SpringAnimation(duration: 0.33) - return errorScreen - } - - override func viewDidLoad() { - animationView = centerView - super.viewDidLoad() - } - - @IBAction func close() { - presentingViewController?.dismiss(animated: true, completion: nil) - } -} diff --git a/Spruce/REGFullPageErrorScreen.xib b/Spruce/REGFullPageErrorScreen.xib deleted file mode 100644 index 770485d..0000000 --- a/Spruce/REGFullPageErrorScreen.xib +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Spruce/RegalTestViewController.swift b/Spruce/RegalTestViewController.swift deleted file mode 100644 index 3cb7b82..0000000 --- a/Spruce/RegalTestViewController.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// RegalTestViewController.swift -// Spruce -// -// Created by Jackson Taylor on 11/15/16. -// Copyright © 2016 WillowTree Apps, Inc. All rights reserved. -// - -import UIKit - -class RegalTestViewController: UIViewController { - class func build() -> RegalTestViewController { - return RegalTestViewController(nibName: "RegalTestViewController", bundle: nil) - } - - @IBAction func animated() { - let errorScreen = REGFullPageErrorScreen.build(animated: true) - errorScreen.modalPresentationStyle = .overCurrentContext - errorScreen.modalTransitionStyle = .crossDissolve - present(errorScreen, animated: true, completion: nil) - } - - @IBAction func notAnimated() { - let errorScreen = REGFullPageErrorScreen.build(animated: false) - errorScreen.modalPresentationStyle = .overCurrentContext - errorScreen.modalTransitionStyle = .crossDissolve - present(errorScreen, animated: true, completion: nil) - } -} diff --git a/Spruce/RegalTestViewController.xib b/Spruce/RegalTestViewController.xib deleted file mode 100644 index 0ecdd5f..0000000 --- a/Spruce/RegalTestViewController.xib +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Spruce.xcodeproj/project.pbxproj b/Spruce_old/Spruce.xcodeproj/project.pbxproj similarity index 100% rename from Spruce.xcodeproj/project.pbxproj rename to Spruce_old/Spruce.xcodeproj/project.pbxproj diff --git a/Spruce_old/Spruce.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Spruce_old/Spruce.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..aa491bf --- /dev/null +++ b/Spruce_old/Spruce.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Spruce_old/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate b/Spruce_old/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..58d997c Binary files /dev/null and b/Spruce_old/Spruce.xcodeproj/project.xcworkspace/xcuserdata/jacksontaylor.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Spruce_old/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist similarity index 100% rename from Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist rename to Spruce_old/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist diff --git a/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Spruce.xcscheme b/Spruce_old/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Spruce.xcscheme similarity index 100% rename from Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Spruce.xcscheme rename to Spruce_old/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/Spruce.xcscheme diff --git a/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist b/Spruce_old/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist similarity index 100% rename from Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist rename to Spruce_old/Spruce.xcodeproj/xcuserdata/jacksontaylor.xcuserdatad/xcschemes/xcschememanagement.plist diff --git a/Spruce/AppDelegate.swift b/Spruce_old/Spruce/AppDelegate.swift similarity index 100% rename from Spruce/AppDelegate.swift rename to Spruce_old/Spruce/AppDelegate.swift diff --git a/Spruce/Assets.xcassets/AppIcon.appiconset/Contents.json b/Spruce_old/Spruce/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from Spruce/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Spruce_old/Spruce/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/Spruce/Assets.xcassets/Contents.json b/Spruce_old/Spruce/Assets.xcassets/Contents.json similarity index 100% rename from Spruce/Assets.xcassets/Contents.json rename to Spruce_old/Spruce/Assets.xcassets/Contents.json diff --git a/Spruce/Assets.xcassets/icTicketingErrorPaymentDeclined.imageset/Contents.json b/Spruce_old/Spruce/Assets.xcassets/icTicketingErrorPaymentDeclined.imageset/Contents.json similarity index 100% rename from Spruce/Assets.xcassets/icTicketingErrorPaymentDeclined.imageset/Contents.json rename to Spruce_old/Spruce/Assets.xcassets/icTicketingErrorPaymentDeclined.imageset/Contents.json diff --git a/Spruce/Assets.xcassets/icTicketingErrorPaymentDeclined.imageset/img_errorimage_birds2.png b/Spruce_old/Spruce/Assets.xcassets/icTicketingErrorPaymentDeclined.imageset/img_errorimage_birds2.png similarity index 100% rename from Spruce/Assets.xcassets/icTicketingErrorPaymentDeclined.imageset/img_errorimage_birds2.png rename to Spruce_old/Spruce/Assets.xcassets/icTicketingErrorPaymentDeclined.imageset/img_errorimage_birds2.png diff --git a/Spruce/Assets.xcassets/icX.imageset/Contents.json b/Spruce_old/Spruce/Assets.xcassets/icX.imageset/Contents.json similarity index 100% rename from Spruce/Assets.xcassets/icX.imageset/Contents.json rename to Spruce_old/Spruce/Assets.xcassets/icX.imageset/Contents.json diff --git a/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x.png b/Spruce_old/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x.png similarity index 100% rename from Spruce/Assets.xcassets/icX.imageset/ic_rewards_x.png rename to Spruce_old/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x.png diff --git a/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x@2x.png b/Spruce_old/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x@2x.png similarity index 100% rename from Spruce/Assets.xcassets/icX.imageset/ic_rewards_x@2x.png rename to Spruce_old/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x@2x.png diff --git a/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x@3x.png b/Spruce_old/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x@3x.png similarity index 100% rename from Spruce/Assets.xcassets/icX.imageset/ic_rewards_x@3x.png rename to Spruce_old/Spruce/Assets.xcassets/icX.imageset/ic_rewards_x@3x.png diff --git a/Spruce/Info.plist b/Spruce_old/Spruce/Info.plist similarity index 100% rename from Spruce/Info.plist rename to Spruce_old/Spruce/Info.plist diff --git a/Spruce/LaunchScreen.xib b/Spruce_old/Spruce/LaunchScreen.xib similarity index 100% rename from Spruce/LaunchScreen.xib rename to Spruce_old/Spruce/LaunchScreen.xib diff --git a/Spruce/TableViewController.swift b/Spruce_old/Spruce/TableViewController.swift similarity index 100% rename from Spruce/TableViewController.swift rename to Spruce_old/Spruce/TableViewController.swift diff --git a/Spruce/TestCollectionVIew.swift b/Spruce_old/Spruce/TestCollectionVIew.swift similarity index 100% rename from Spruce/TestCollectionVIew.swift rename to Spruce_old/Spruce/TestCollectionVIew.swift diff --git a/Spruce/TestViewController.swift b/Spruce_old/Spruce/TestViewController.swift similarity index 100% rename from Spruce/TestViewController.swift rename to Spruce_old/Spruce/TestViewController.swift diff --git a/Spruce/TestViewController2.swift b/Spruce_old/Spruce/TestViewController2.swift similarity index 100% rename from Spruce/TestViewController2.swift rename to Spruce_old/Spruce/TestViewController2.swift diff --git a/Spruce/TestViewController2Setup.swift b/Spruce_old/Spruce/TestViewController2Setup.swift similarity index 100% rename from Spruce/TestViewController2Setup.swift rename to Spruce_old/Spruce/TestViewController2Setup.swift diff --git a/Spruce/TestViewController3.swift b/Spruce_old/Spruce/TestViewController3.swift similarity index 100% rename from Spruce/TestViewController3.swift rename to Spruce_old/Spruce/TestViewController3.swift diff --git a/Spruce/TestViewControllerSetup.swift b/Spruce_old/Spruce/TestViewControllerSetup.swift similarity index 100% rename from Spruce/TestViewControllerSetup.swift rename to Spruce_old/Spruce/TestViewControllerSetup.swift diff --git a/SpruceTests/Info.plist b/Spruce_old/SpruceTests/Info.plist similarity index 100% rename from SpruceTests/Info.plist rename to Spruce_old/SpruceTests/Info.plist diff --git a/SpruceTests/SpruceTests.swift b/Spruce_old/SpruceTests/SpruceTests.swift similarity index 100% rename from SpruceTests/SpruceTests.swift rename to Spruce_old/SpruceTests/SpruceTests.swift diff --git a/_Pods.xcodeproj b/_Pods.xcodeproj new file mode 120000 index 0000000..3c5a8e7 --- /dev/null +++ b/_Pods.xcodeproj @@ -0,0 +1 @@ +Example/Pods/Pods.xcodeproj \ No newline at end of file