From 302576825c777a363883e51a8437851328a9e151 Mon Sep 17 00:00:00 2001 From: Keith Ito Date: Mon, 18 Apr 2016 23:49:06 -0400 Subject: [PATCH] Add Cocoapods boilerplate --- .gitignore | 26 + .travis.yml | 13 + Example/Podfile | 11 + Example/Podfile.lock | 20 + .../SimpleAnimation.xcodeproj/project.pbxproj | 1151 +++++++++++++++++ .../contents.xcworkspacedata | 7 + .../SimpleAnimation-Example.xcscheme | 115 ++ .../contents.xcworkspacedata | 10 + Example/SimpleAnimation/AppDelegate.swift | 46 + .../Base.lproj/LaunchScreen.xib | 41 + .../Base.lproj/Main.storyboard | 25 + .../AppIcon.appiconset/Contents.json | 38 + Example/SimpleAnimation/Info.plist | 39 + Example/SimpleAnimation/ViewController.swift | 24 + Example/Tests/Info.plist | 24 + Example/Tests/Tests.swift | 50 + LICENSE | 19 + README.md | 30 +- SimpleAnimation.podspec | 15 + SimpleAnimation/Assets/.gitkeep | 0 SimpleAnimation/Classes/.gitkeep | 0 SimpleAnimation/Classes/ReplaceMe.swift | 0 _Pods.xcodeproj | 1 + 23 files changed, 1704 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 Example/Podfile create mode 100644 Example/Podfile.lock create mode 100644 Example/SimpleAnimation.xcodeproj/project.pbxproj create mode 100644 Example/SimpleAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Example/SimpleAnimation.xcodeproj/xcshareddata/xcschemes/SimpleAnimation-Example.xcscheme create mode 100644 Example/SimpleAnimation.xcworkspace/contents.xcworkspacedata create mode 100644 Example/SimpleAnimation/AppDelegate.swift create mode 100644 Example/SimpleAnimation/Base.lproj/LaunchScreen.xib create mode 100644 Example/SimpleAnimation/Base.lproj/Main.storyboard create mode 100644 Example/SimpleAnimation/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Example/SimpleAnimation/Info.plist create mode 100644 Example/SimpleAnimation/ViewController.swift create mode 100644 Example/Tests/Info.plist create mode 100644 Example/Tests/Tests.swift create mode 100644 LICENSE create mode 100644 SimpleAnimation.podspec create mode 100644 SimpleAnimation/Assets/.gitkeep create mode 100644 SimpleAnimation/Classes/.gitkeep create mode 100644 SimpleAnimation/Classes/ReplaceMe.swift create mode 120000 _Pods.xcodeproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..774acb7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# 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 +Pods/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..34bb7fc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +# references: +# * http://www.objc.io/issue-6/travis-ci.html +# * https://github.com/supermarin/xcpretty#usage + +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/SimpleAnimation.xcworkspace -scheme SimpleAnimation-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty +- pod lib lint diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 0000000..ad02061 --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,11 @@ +use_frameworks! + +target 'SimpleAnimation_Example', :exclusive => true do + pod 'SimpleAnimation', :path => '../' +end + +target 'SimpleAnimation_Tests', :exclusive => true do + pod 'SimpleAnimation', :path => '../' + pod 'Quick', '~> 0.8' + pod 'Nimble', '~> 3.0' +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..2a69936 --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,20 @@ +PODS: + - Nimble (3.2.0) + - Quick (0.9.2) + - SimpleAnimation (0.1.0) + +DEPENDENCIES: + - Nimble (~> 3.0) + - Quick (~> 0.8) + - SimpleAnimation (from `../`) + +EXTERNAL SOURCES: + SimpleAnimation: + :path: ../ + +SPEC CHECKSUMS: + Nimble: 703854335d181df169bbca9c97117b5cf8c47c1d + Quick: 18d057bc66451eedd5d1c8dc99ba2a5db6e60226 + SimpleAnimation: 9a631c1c29d93b9b5585a75fbf064e55dfaa6e5c + +COCOAPODS: 0.39.0 diff --git a/Example/SimpleAnimation.xcodeproj/project.pbxproj b/Example/SimpleAnimation.xcodeproj/project.pbxproj new file mode 100644 index 0000000..e7e1fea --- /dev/null +++ b/Example/SimpleAnimation.xcodeproj/project.pbxproj @@ -0,0 +1,1151 @@ + + + + + archiveVersion + 1 + classes + + objectVersion + 46 + objects + + 0C144004CF3CDA22BB2F5AAC + + includeInIndex + 1 + isa + PBXFileReference + name + README.md + path + ../README.md + sourceTree + <group> + + 0D1C1D5675070D0F8B51E49F + + children + + A8DDD23EC4A4DF11B1A88262 + 5E43733D922790CFDF1CEEE2 + + isa + PBXGroup + name + Frameworks + sourceTree + <group> + + 3434EFCF4260B2E87ED70539 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Copy Pods Resources + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods-SimpleAnimation_Example/Pods-SimpleAnimation_Example-resources.sh" + + showEnvVarsInLog + 0 + + 43A8E55717C8842068E1F844 + + fileRef + A8DDD23EC4A4DF11B1A88262 + isa + PBXBuildFile + + 43F595BA5EB0C5C68D068703 + + fileRef + 5E43733D922790CFDF1CEEE2 + isa + PBXBuildFile + + 46B23AF0A6FE32C7F4453201 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Check Pods Manifest.lock + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null +if [[ $? != 0 ]] ; then + cat << EOM +error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. +EOM + exit 1 +fi + + showEnvVarsInLog + 0 + + 5833BB20FA3860F21BAC8A97 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Copy Pods Resources + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods-SimpleAnimation_Tests/Pods-SimpleAnimation_Tests-resources.sh" + + showEnvVarsInLog + 0 + + 5C0F7DB46DE73B6374D3B4B3 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods-SimpleAnimation_Example.debug.xcconfig + path + Pods/Target Support Files/Pods-SimpleAnimation_Example/Pods-SimpleAnimation_Example.debug.xcconfig + sourceTree + <group> + + 5D42D7B405384C4D8697FF38 + + includeInIndex + 1 + isa + PBXFileReference + name + LICENSE + path + ../LICENSE + sourceTree + <group> + + 5E43733D922790CFDF1CEEE2 + + explicitFileType + wrapper.framework + includeInIndex + 0 + isa + PBXFileReference + path + Pods_SimpleAnimation_Tests.framework + sourceTree + BUILT_PRODUCTS_DIR + + 607FACC71AFB9204008FA782 + + children + + 607FACF51AFB993E008FA782 + 607FACD21AFB9204008FA782 + 607FACE81AFB9204008FA782 + 607FACD11AFB9204008FA782 + B069D7CFC01302F5E2F8BFA1 + 0D1C1D5675070D0F8B51E49F + + isa + PBXGroup + sourceTree + <group> + + 607FACC81AFB9204008FA782 + + attributes + + LastSwiftUpdateCheck + 0720 + LastUpgradeCheck + 0720 + ORGANIZATIONNAME + CocoaPods + TargetAttributes + + 607FACCF1AFB9204008FA782 + + CreatedOnToolsVersion + 6.3.1 + + 607FACE41AFB9204008FA782 + + CreatedOnToolsVersion + 6.3.1 + TestTargetID + 607FACCF1AFB9204008FA782 + + + + buildConfigurationList + 607FACCB1AFB9204008FA782 + compatibilityVersion + Xcode 3.2 + developmentRegion + English + hasScannedForEncodings + 0 + isa + PBXProject + knownRegions + + en + Base + + mainGroup + 607FACC71AFB9204008FA782 + productRefGroup + 607FACD11AFB9204008FA782 + projectDirPath + + projectReferences + + projectRoot + + targets + + 607FACCF1AFB9204008FA782 + 607FACE41AFB9204008FA782 + + + 607FACCB1AFB9204008FA782 + + buildConfigurations + + 607FACED1AFB9204008FA782 + 607FACEE1AFB9204008FA782 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 607FACCC1AFB9204008FA782 + + buildActionMask + 2147483647 + files + + 607FACD81AFB9204008FA782 + 607FACD61AFB9204008FA782 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 607FACCD1AFB9204008FA782 + + buildActionMask + 2147483647 + files + + 43A8E55717C8842068E1F844 + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 607FACCE1AFB9204008FA782 + + buildActionMask + 2147483647 + files + + 607FACDB1AFB9204008FA782 + 607FACE01AFB9204008FA782 + 607FACDD1AFB9204008FA782 + + isa + PBXResourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 607FACCF1AFB9204008FA782 + + buildConfigurationList + 607FACEF1AFB9204008FA782 + buildPhases + + A2C5B6CD04FE7639918D4D85 + 607FACCC1AFB9204008FA782 + 607FACCD1AFB9204008FA782 + 607FACCE1AFB9204008FA782 + 7193325D905A102A4ADF3A59 + 3434EFCF4260B2E87ED70539 + + buildRules + + dependencies + + isa + PBXNativeTarget + name + SimpleAnimation_Example + productName + SimpleAnimation + productReference + 607FACD01AFB9204008FA782 + productType + com.apple.product-type.application + + 607FACD01AFB9204008FA782 + + explicitFileType + wrapper.application + includeInIndex + 0 + isa + PBXFileReference + path + SimpleAnimation_Example.app + sourceTree + BUILT_PRODUCTS_DIR + + 607FACD11AFB9204008FA782 + + children + + 607FACD01AFB9204008FA782 + 607FACE51AFB9204008FA782 + + isa + PBXGroup + name + Products + sourceTree + <group> + + 607FACD21AFB9204008FA782 + + children + + 607FACD51AFB9204008FA782 + 607FACD71AFB9204008FA782 + 607FACD91AFB9204008FA782 + 607FACDC1AFB9204008FA782 + 607FACDE1AFB9204008FA782 + 607FACD31AFB9204008FA782 + + isa + PBXGroup + name + Example for SimpleAnimation + path + SimpleAnimation + sourceTree + <group> + + 607FACD31AFB9204008FA782 + + children + + 607FACD41AFB9204008FA782 + + isa + PBXGroup + name + Supporting Files + sourceTree + <group> + + 607FACD41AFB9204008FA782 + + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + Info.plist + sourceTree + <group> + + 607FACD51AFB9204008FA782 + + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + AppDelegate.swift + sourceTree + <group> + + 607FACD61AFB9204008FA782 + + fileRef + 607FACD51AFB9204008FA782 + isa + PBXBuildFile + + 607FACD71AFB9204008FA782 + + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + ViewController.swift + sourceTree + <group> + + 607FACD81AFB9204008FA782 + + fileRef + 607FACD71AFB9204008FA782 + isa + PBXBuildFile + + 607FACD91AFB9204008FA782 + + children + + 607FACDA1AFB9204008FA782 + + isa + PBXVariantGroup + name + Main.storyboard + sourceTree + <group> + + 607FACDA1AFB9204008FA782 + + isa + PBXFileReference + lastKnownFileType + file.storyboard + name + Base + path + Base.lproj/Main.storyboard + sourceTree + <group> + + 607FACDB1AFB9204008FA782 + + fileRef + 607FACD91AFB9204008FA782 + isa + PBXBuildFile + + 607FACDC1AFB9204008FA782 + + isa + PBXFileReference + lastKnownFileType + folder.assetcatalog + path + Images.xcassets + sourceTree + <group> + + 607FACDD1AFB9204008FA782 + + fileRef + 607FACDC1AFB9204008FA782 + isa + PBXBuildFile + + 607FACDE1AFB9204008FA782 + + children + + 607FACDF1AFB9204008FA782 + + isa + PBXVariantGroup + name + LaunchScreen.xib + sourceTree + <group> + + 607FACDF1AFB9204008FA782 + + isa + PBXFileReference + lastKnownFileType + file.xib + name + Base + path + Base.lproj/LaunchScreen.xib + sourceTree + <group> + + 607FACE01AFB9204008FA782 + + fileRef + 607FACDE1AFB9204008FA782 + isa + PBXBuildFile + + 607FACE11AFB9204008FA782 + + buildActionMask + 2147483647 + files + + 607FACEC1AFB9204008FA782 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 607FACE21AFB9204008FA782 + + buildActionMask + 2147483647 + files + + 43F595BA5EB0C5C68D068703 + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 607FACE31AFB9204008FA782 + + buildActionMask + 2147483647 + files + + isa + PBXResourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 607FACE41AFB9204008FA782 + + buildConfigurationList + 607FACF21AFB9204008FA782 + buildPhases + + 46B23AF0A6FE32C7F4453201 + 607FACE11AFB9204008FA782 + 607FACE21AFB9204008FA782 + 607FACE31AFB9204008FA782 + 68BE24EAE6F9C3C98ECC5AC3 + 5833BB20FA3860F21BAC8A97 + + buildRules + + dependencies + + 607FACE71AFB9204008FA782 + + isa + PBXNativeTarget + name + SimpleAnimation_Tests + productName + Tests + productReference + 607FACE51AFB9204008FA782 + productType + com.apple.product-type.bundle.unit-test + + 607FACE51AFB9204008FA782 + + explicitFileType + wrapper.cfbundle + includeInIndex + 0 + isa + PBXFileReference + path + SimpleAnimation_Tests.xctest + sourceTree + BUILT_PRODUCTS_DIR + + 607FACE61AFB9204008FA782 + + containerPortal + 607FACC81AFB9204008FA782 + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + 607FACCF1AFB9204008FA782 + remoteInfo + SimpleAnimation + + 607FACE71AFB9204008FA782 + + isa + PBXTargetDependency + target + 607FACCF1AFB9204008FA782 + targetProxy + 607FACE61AFB9204008FA782 + + 607FACE81AFB9204008FA782 + + children + + 607FACEB1AFB9204008FA782 + 607FACE91AFB9204008FA782 + + isa + PBXGroup + path + Tests + sourceTree + <group> + + 607FACE91AFB9204008FA782 + + children + + 607FACEA1AFB9204008FA782 + + isa + PBXGroup + name + Supporting Files + sourceTree + <group> + + 607FACEA1AFB9204008FA782 + + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + Info.plist + sourceTree + <group> + + 607FACEB1AFB9204008FA782 + + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + Tests.swift + sourceTree + <group> + + 607FACEC1AFB9204008FA782 + + fileRef + 607FACEB1AFB9204008FA782 + isa + PBXBuildFile + + 607FACED1AFB9204008FA782 + + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + CLANG_CXX_LANGUAGE_STANDARD + gnu++0x + CLANG_CXX_LIBRARY + libc++ + CLANG_ENABLE_MODULES + YES + CLANG_ENABLE_OBJC_ARC + YES + CLANG_WARN_BOOL_CONVERSION + YES + CLANG_WARN_CONSTANT_CONVERSION + YES + CLANG_WARN_DIRECT_OBJC_ISA_USAGE + YES_ERROR + CLANG_WARN_EMPTY_BODY + YES + CLANG_WARN_ENUM_CONVERSION + YES + CLANG_WARN_INT_CONVERSION + YES + CLANG_WARN_OBJC_ROOT_CLASS + YES_ERROR + CLANG_WARN_UNREACHABLE_CODE + YES + CLANG_WARN__DUPLICATE_METHOD_MATCH + YES + CODE_SIGN_IDENTITY[sdk=iphoneos*] + iPhone Developer + COPY_PHASE_STRIP + NO + 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 + + isa + XCBuildConfiguration + name + Debug + + 607FACEE1AFB9204008FA782 + + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + CLANG_CXX_LANGUAGE_STANDARD + gnu++0x + CLANG_CXX_LIBRARY + libc++ + CLANG_ENABLE_MODULES + YES + CLANG_ENABLE_OBJC_ARC + YES + CLANG_WARN_BOOL_CONVERSION + YES + CLANG_WARN_CONSTANT_CONVERSION + YES + CLANG_WARN_DIRECT_OBJC_ISA_USAGE + YES_ERROR + CLANG_WARN_EMPTY_BODY + YES + CLANG_WARN_ENUM_CONVERSION + YES + CLANG_WARN_INT_CONVERSION + YES + CLANG_WARN_OBJC_ROOT_CLASS + YES_ERROR + CLANG_WARN_UNREACHABLE_CODE + YES + CLANG_WARN__DUPLICATE_METHOD_MATCH + YES + CODE_SIGN_IDENTITY[sdk=iphoneos*] + iPhone Developer + COPY_PHASE_STRIP + NO + 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 + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 607FACEF1AFB9204008FA782 + + buildConfigurations + + 607FACF01AFB9204008FA782 + 607FACF11AFB9204008FA782 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 607FACF01AFB9204008FA782 + + baseConfigurationReference + 5C0F7DB46DE73B6374D3B4B3 + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + INFOPLIST_FILE + SimpleAnimation/Info.plist + LD_RUNPATH_SEARCH_PATHS + $(inherited) @executable_path/Frameworks + MODULE_NAME + ExampleApp + PRODUCT_BUNDLE_IDENTIFIER + org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier) + PRODUCT_NAME + $(TARGET_NAME) + + isa + XCBuildConfiguration + name + Debug + + 607FACF11AFB9204008FA782 + + baseConfigurationReference + 9C8613934360B43B511E1CEE + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + INFOPLIST_FILE + SimpleAnimation/Info.plist + LD_RUNPATH_SEARCH_PATHS + $(inherited) @executable_path/Frameworks + MODULE_NAME + ExampleApp + PRODUCT_BUNDLE_IDENTIFIER + org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier) + PRODUCT_NAME + $(TARGET_NAME) + + isa + XCBuildConfiguration + name + Release + + 607FACF21AFB9204008FA782 + + buildConfigurations + + 607FACF31AFB9204008FA782 + 607FACF41AFB9204008FA782 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 607FACF31AFB9204008FA782 + + baseConfigurationReference + C06A04970CFB7433270A23AC + 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) + + isa + XCBuildConfiguration + name + Debug + + 607FACF41AFB9204008FA782 + + baseConfigurationReference + 6225F3B2713E047D44E51CCF + 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) + + isa + XCBuildConfiguration + name + Release + + 607FACF51AFB993E008FA782 + + children + + 63B84BD05E1E9A2BCEFA3CD1 + 0C144004CF3CDA22BB2F5AAC + 5D42D7B405384C4D8697FF38 + + isa + PBXGroup + name + Podspec Metadata + sourceTree + <group> + + 6225F3B2713E047D44E51CCF + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods-SimpleAnimation_Tests.release.xcconfig + path + Pods/Target Support Files/Pods-SimpleAnimation_Tests/Pods-SimpleAnimation_Tests.release.xcconfig + sourceTree + <group> + + 63B84BD05E1E9A2BCEFA3CD1 + + includeInIndex + 1 + isa + PBXFileReference + name + SimpleAnimation.podspec + path + ../SimpleAnimation.podspec + sourceTree + <group> + + 68BE24EAE6F9C3C98ECC5AC3 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Embed Pods Frameworks + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods-SimpleAnimation_Tests/Pods-SimpleAnimation_Tests-frameworks.sh" + + showEnvVarsInLog + 0 + + 7193325D905A102A4ADF3A59 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Embed Pods Frameworks + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods-SimpleAnimation_Example/Pods-SimpleAnimation_Example-frameworks.sh" + + showEnvVarsInLog + 0 + + 9C8613934360B43B511E1CEE + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods-SimpleAnimation_Example.release.xcconfig + path + Pods/Target Support Files/Pods-SimpleAnimation_Example/Pods-SimpleAnimation_Example.release.xcconfig + sourceTree + <group> + + A2C5B6CD04FE7639918D4D85 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Check Pods Manifest.lock + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null +if [[ $? != 0 ]] ; then + cat << EOM +error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. +EOM + exit 1 +fi + + showEnvVarsInLog + 0 + + A8DDD23EC4A4DF11B1A88262 + + explicitFileType + wrapper.framework + includeInIndex + 0 + isa + PBXFileReference + path + Pods_SimpleAnimation_Example.framework + sourceTree + BUILT_PRODUCTS_DIR + + B069D7CFC01302F5E2F8BFA1 + + children + + 5C0F7DB46DE73B6374D3B4B3 + 9C8613934360B43B511E1CEE + C06A04970CFB7433270A23AC + 6225F3B2713E047D44E51CCF + + isa + PBXGroup + name + Pods + sourceTree + <group> + + C06A04970CFB7433270A23AC + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods-SimpleAnimation_Tests.debug.xcconfig + path + Pods/Target Support Files/Pods-SimpleAnimation_Tests/Pods-SimpleAnimation_Tests.debug.xcconfig + sourceTree + <group> + + + rootObject + 607FACC81AFB9204008FA782 + + diff --git a/Example/SimpleAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/SimpleAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..d07fe24 --- /dev/null +++ b/Example/SimpleAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/SimpleAnimation.xcodeproj/xcshareddata/xcschemes/SimpleAnimation-Example.xcscheme b/Example/SimpleAnimation.xcodeproj/xcshareddata/xcschemes/SimpleAnimation-Example.xcscheme new file mode 100644 index 0000000..1e2e94a --- /dev/null +++ b/Example/SimpleAnimation.xcodeproj/xcshareddata/xcschemes/SimpleAnimation-Example.xcscheme @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/SimpleAnimation.xcworkspace/contents.xcworkspacedata b/Example/SimpleAnimation.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..f3d4fc3 --- /dev/null +++ b/Example/SimpleAnimation.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Example/SimpleAnimation/AppDelegate.swift b/Example/SimpleAnimation/AppDelegate.swift new file mode 100644 index 0000000..388e40a --- /dev/null +++ b/Example/SimpleAnimation/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// SimpleAnimation +// +// Created by Keith Ito on 04/18/2016. +// Copyright (c) 2016 Keith Ito. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + // Override point for customization after application launch. + 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/SimpleAnimation/Base.lproj/LaunchScreen.xib b/Example/SimpleAnimation/Base.lproj/LaunchScreen.xib new file mode 100644 index 0000000..c204dc4 --- /dev/null +++ b/Example/SimpleAnimation/Base.lproj/LaunchScreen.xib @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/SimpleAnimation/Base.lproj/Main.storyboard b/Example/SimpleAnimation/Base.lproj/Main.storyboard new file mode 100644 index 0000000..52ea29e --- /dev/null +++ b/Example/SimpleAnimation/Base.lproj/Main.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/SimpleAnimation/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/SimpleAnimation/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d3942e9 --- /dev/null +++ b/Example/SimpleAnimation/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/SimpleAnimation/Info.plist b/Example/SimpleAnimation/Info.plist new file mode 100644 index 0000000..eb18faa --- /dev/null +++ b/Example/SimpleAnimation/Info.plist @@ -0,0 +1,39 @@ + + + + + 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 + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + + + diff --git a/Example/SimpleAnimation/ViewController.swift b/Example/SimpleAnimation/ViewController.swift new file mode 100644 index 0000000..483f0d3 --- /dev/null +++ b/Example/SimpleAnimation/ViewController.swift @@ -0,0 +1,24 @@ +// +// ViewController.swift +// SimpleAnimation +// +// Created by Keith Ito on 04/18/2016. +// Copyright (c) 2016 Keith Ito. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + +} + 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..0e6c072 --- /dev/null +++ b/Example/Tests/Tests.swift @@ -0,0 +1,50 @@ +// https://github.com/Quick/Quick + +import Quick +import Nimble +import SimpleAnimation + +class TableOfContentsSpec: QuickSpec { + override func spec() { + describe("these will fail") { + + it("can do maths") { + expect(1) == 2 + } + + it("can read") { + expect("number") == "string" + } + + it("will eventually fail") { + expect("time").toEventually( equal("done") ) + } + + context("these will pass") { + + it("can do maths") { + expect(23) == 23 + } + + it("can read") { + expect("🐮") == "🐮" + } + + it("will eventually pass") { + var time = "passing" + + dispatch_async(dispatch_get_main_queue()) { + time = "done" + } + + waitUntil { done in + NSThread.sleepForTimeInterval(0.5) + expect(time) == "done" + + done() + } + } + } + } + } +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..bda6512 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2016 Keith Ito + +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/README.md b/README.md index 463aa20..83e9f5b 100644 --- a/README.md +++ b/README.md @@ -1 +1,29 @@ -# SimpleAnimation \ No newline at end of file +# SimpleAnimation + +[![CI Status](http://img.shields.io/travis/keithito/SimpleAnimation.svg?style=flat)](https://travis-ci.org/keithito/SimpleAnimation) +[![Version](https://img.shields.io/cocoapods/v/SimpleAnimation.svg?style=flat)](http://cocoapods.org/pods/SimpleAnimation) +[![License](https://img.shields.io/cocoapods/l/SimpleAnimation.svg?style=flat)](http://cocoapods.org/pods/SimpleAnimation) +[![Platform](https://img.shields.io/cocoapods/p/SimpleAnimation.svg?style=flat)](http://cocoapods.org/pods/SimpleAnimation) + +## Usage + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + +## Requirements + +## Installation + +SimpleAnimation is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your Podfile: + +```ruby +pod "SimpleAnimation" +``` + +## Author + +Keith Ito, keeeto@gmail.com + +## License + +SimpleAnimation is available under the MIT license. See the LICENSE file for more info. diff --git a/SimpleAnimation.podspec b/SimpleAnimation.podspec new file mode 100644 index 0000000..53dff59 --- /dev/null +++ b/SimpleAnimation.podspec @@ -0,0 +1,15 @@ +Pod::Spec.new do |s| + s.name = "SimpleAnimation" + s.version = "0.1.0" + s.summary = "A UIView extension to make simple animations, like fades and bounces, simple." + s.homepage = "https://github.com/keithito/SimpleAnimation" + s.license = 'MIT' + s.author = { "Keith Ito" => "keeeto@gmail.com" } + s.source = { :git => "https://github.com/keithito/SimpleAnimation.git", :tag => s.version.to_s } + s.social_media_url = 'https://twitter.com/keeeto' + + s.ios.deployment_target = '8.0' + + s.source_files = 'SimpleAnimation/Classes/**/*' + s.frameworks = 'UIKit' +end diff --git a/SimpleAnimation/Assets/.gitkeep b/SimpleAnimation/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SimpleAnimation/Classes/.gitkeep b/SimpleAnimation/Classes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SimpleAnimation/Classes/ReplaceMe.swift b/SimpleAnimation/Classes/ReplaceMe.swift new file mode 100644 index 0000000..e69de29 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