Skip to content

Commit

Permalink
Adding CocoaPods support.
Browse files Browse the repository at this point in the history
  • Loading branch information
melvitax committed Jun 25, 2015
1 parent db49080 commit ebfca9e
Show file tree
Hide file tree
Showing 15 changed files with 156 additions and 75 deletions.
13 changes: 0 additions & 13 deletions AF+Date+Helper.podspec

This file was deleted.

33 changes: 33 additions & 0 deletions AFDateHelper.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Be sure to run `pod lib lint AFDateHelper.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name = "AFDateHelper"
s.version = "2.0.0"
s.summary = "Extension for NSDate in Swift."
s.description = <<-DESC
Extension for NSDate in Swift for creating, modifying or comparing dates.
DESC
s.homepage = "https://github.com/melvitax/AFDateHelper"
# s.screenshots = "https://raw.githubusercontent.com/melvitax/AFDateHelper/master/Screenshot.png"
s.license = 'MIT'
s.author = { "Melvin Rivera" => "[email protected]" }
s.source = { :git => "https://github.com/melvitax/AFDateHelper.git", :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/melvitax'

s.platform = :ios, '8.0'
s.requires_arc = true

s.source_files = 'AFDateHelper/**/*'
s.resource_bundles = {}

# s.public_header_files
# s.frameworks
# s.dependency
end
10 changes: 10 additions & 0 deletions AFDateHelper.xcworkspace/contents.xcworkspacedata

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

41 changes: 41 additions & 0 deletions AFDateHelper.xcworkspace/xcshareddata/AFDateHelper.xccheckout
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>77F3C3CA-F3D8-40C0-B7DD-E2897A68EEF1</string>
<key>IDESourceControlProjectName</key>
<string>AFDateHelper</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>D21BD48371DCA3BBDD858D60709D7CDDE06059F6</key>
<string>https://github.com/melvitax/AFDateHelper.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>AFDateHelper.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>D21BD48371DCA3BBDD858D60709D7CDDE06059F6</key>
<string>..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/melvitax/AFDateHelper.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>D21BD48371DCA3BBDD858D60709D7CDDE06059F6</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>D21BD48371DCA3BBDD858D60709D7CDDE06059F6</string>
<key>IDESourceControlWCCName</key>
<string>AFDateHelper</string>
</dict>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// AF+Date+Extension.swift
// AFDateExtension.swift
//
// Version 1.09
// Version 2.0.0
//
// Created by Melvin Rivera on 7/15/14.
// Copyright (c) 2014. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
65889B731965051C0049740E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65889B721965051C0049740E /* ViewController.swift */; };
65889B781965051C0049740E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 65889B771965051C0049740E /* Images.xcassets */; };
65B75F2D19744D6D000AEFD4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 65B75F2C19744D6D000AEFD4 /* Main.storyboard */; };
65D016A119771E80005220FB /* AF+Date+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65D016A019771E80005220FB /* AF+Date+Extension.swift */; };
65D016A119771E80005220FB /* AFDateExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65D016A019771E80005220FB /* AFDateExtension.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
655AEB42192D42990053AD6C /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
655AEB44192D42990053AD6C /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
655AEB46192D42990053AD6C /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
655AEB64192D429A0053AD6C /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
65889B6C1965051C0049740E /* Swift Demo AF+Date+Helper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Swift Demo AF+Date+Helper.app"; sourceTree = BUILT_PRODUCTS_DIR; };
65889B6F1965051C0049740E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = "Demo AF+Date+Helper/Info.plist"; sourceTree = "<group>"; };
65889B701965051C0049740E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = "Demo AF+Date+Helper/AppDelegate.swift"; sourceTree = "<group>"; };
65889B721965051C0049740E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = "Demo AF+Date+Helper/ViewController.swift"; sourceTree = "<group>"; };
65889B771965051C0049740E /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = "Demo AF+Date+Helper/Images.xcassets"; sourceTree = "<group>"; };
65B75F2C19744D6D000AEFD4 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = "Demo AF+Date+Helper/Main.storyboard"; sourceTree = "<group>"; };
65B7EA75197082AA0097E598 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
65D016A019771E80005220FB /* AF+Date+Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "AF+Date+Extension.swift"; sourceTree = "<group>"; };
65D016A219771E9D005220FB /* AF+Date+Helper.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "AF+Date+Helper.podspec"; path = "../AF+Date+Helper.podspec"; sourceTree = "<group>"; };
65889B6C1965051C0049740E /* AFDateHelper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AFDateHelper.app; sourceTree = BUILT_PRODUCTS_DIR; };
65889B6F1965051C0049740E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Demo/Info.plist; sourceTree = "<group>"; };
65889B701965051C0049740E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Demo/AppDelegate.swift; sourceTree = "<group>"; };
65889B721965051C0049740E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = Demo/ViewController.swift; sourceTree = "<group>"; };
65889B771965051C0049740E /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Demo/Images.xcassets; sourceTree = "<group>"; };
65B75F2C19744D6D000AEFD4 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Demo/Main.storyboard; sourceTree = "<group>"; };
65B7EA75197082AA0097E598 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
65D016A019771E80005220FB /* AFDateExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AFDateExtension.swift; sourceTree = "<group>"; };
65DE9BBB1B3C639D00F66BEC /* AFDateHelper.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = AFDateHelper.podspec; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -44,14 +44,14 @@
655AEB36192D42990053AD6C = {
isa = PBXGroup;
children = (
65D0169F19771E80005220FB /* AF+Date+Helper */,
65D0169F19771E80005220FB /* AFDateHelper */,
65889B701965051C0049740E /* AppDelegate.swift */,
65889B721965051C0049740E /* ViewController.swift */,
65889B771965051C0049740E /* Images.xcassets */,
65B75F2C19744D6D000AEFD4 /* Main.storyboard */,
65889B6F1965051C0049740E /* Info.plist */,
65DE9BBB1B3C639D00F66BEC /* AFDateHelper.podspec */,
65B7EA75197082AA0097E598 /* README.md */,
65D016A219771E9D005220FB /* AF+Date+Helper.podspec */,
655AEB41192D42990053AD6C /* Frameworks */,
655AEB40192D42990053AD6C /* Products */,
);
Expand All @@ -60,7 +60,7 @@
655AEB40192D42990053AD6C /* Products */ = {
isa = PBXGroup;
children = (
65889B6C1965051C0049740E /* Swift Demo AF+Date+Helper.app */,
65889B6C1965051C0049740E /* AFDateHelper.app */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -76,21 +76,20 @@
name = Frameworks;
sourceTree = "<group>";
};
65D0169F19771E80005220FB /* AF+Date+Helper */ = {
65D0169F19771E80005220FB /* AFDateHelper */ = {
isa = PBXGroup;
children = (
65D016A019771E80005220FB /* AF+Date+Extension.swift */,
65D016A019771E80005220FB /* AFDateExtension.swift */,
);
name = "AF+Date+Helper";
path = "../AF+Date+Helper";
path = AFDateHelper;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
65889B6B1965051C0049740E /* Demo AF+Date+Helper */ = {
65889B6B1965051C0049740E /* AFDateHelper */ = {
isa = PBXNativeTarget;
buildConfigurationList = 65889B891965051C0049740E /* Build configuration list for PBXNativeTarget "Demo AF+Date+Helper" */;
buildConfigurationList = 65889B891965051C0049740E /* Build configuration list for PBXNativeTarget "AFDateHelper" */;
buildPhases = (
65889B681965051C0049740E /* Sources */,
65889B691965051C0049740E /* Frameworks */,
Expand All @@ -100,9 +99,9 @@
);
dependencies = (
);
name = "Demo AF+Date+Helper";
name = AFDateHelper;
productName = "Swift Demo UIView+AF+Additions";
productReference = 65889B6C1965051C0049740E /* Swift Demo AF+Date+Helper.app */;
productReference = 65889B6C1965051C0049740E /* AFDateHelper.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand All @@ -111,6 +110,7 @@
655AEB37192D42990053AD6C /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0700;
LastUpgradeCheck = 0600;
ORGANIZATIONNAME = "All Forces";
TargetAttributes = {
Expand All @@ -120,7 +120,7 @@
};
};
};
buildConfigurationList = 655AEB3A192D42990053AD6C /* Build configuration list for PBXProject "Demo AF+Date+Helper" */;
buildConfigurationList = 655AEB3A192D42990053AD6C /* Build configuration list for PBXProject "Demo" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
Expand All @@ -133,7 +133,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
65889B6B1965051C0049740E /* Demo AF+Date+Helper */,
65889B6B1965051C0049740E /* AFDateHelper */,
);
};
/* End PBXProject section */
Expand All @@ -156,7 +156,7 @@
buildActionMask = 2147483647;
files = (
65889B731965051C0049740E /* ViewController.swift in Sources */,
65D016A119771E80005220FB /* AF+Date+Extension.swift in Sources */,
65D016A119771E80005220FB /* AFDateExtension.swift in Sources */,
65889B711965051C0049740E /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -248,11 +248,11 @@
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = "$(SRCROOT)/Demo AF+Date+Helper/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/Demo/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
METAL_ENABLE_DEBUG_INFO = YES;
PRODUCT_NAME = "Swift Demo AF+Date+Helper";
PRODUCT_NAME = AFDateHelper;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -266,19 +266,19 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
ENABLE_STRICT_OBJC_MSGSEND = YES;
INFOPLIST_FILE = "$(SRCROOT)/Demo AF+Date+Helper/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/Demo/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
METAL_ENABLE_DEBUG_INFO = NO;
PRODUCT_NAME = "Swift Demo AF+Date+Helper";
PRODUCT_NAME = AFDateHelper;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
655AEB3A192D42990053AD6C /* Build configuration list for PBXProject "Demo AF+Date+Helper" */ = {
655AEB3A192D42990053AD6C /* Build configuration list for PBXProject "Demo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
655AEB72192D429A0053AD6C /* Debug */,
Expand All @@ -287,7 +287,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
65889B891965051C0049740E /* Build configuration list for PBXNativeTarget "Demo AF+Date+Helper" */ = {
65889B891965051C0049740E /* Build configuration list for PBXNativeTarget "AFDateHelper" */ = {
isa = XCConfigurationList;
buildConfigurations = (
65889B851965051C0049740E /* Debug */,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// AppDelegate.swift
// Swift Demo UIView+AF+Additions
//
// Created by Melvin Rivera on 7/2/14.
// Copyright (c) 2014 All Forces. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.allforces.${PRODUCT_NAME:rfc1034identifier}</string>
<string>com.allforces.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<!--AF Date Helper-->
<scene sceneID="Jhf-fe-Yk7">
<objects>
<tableViewController id="sgH-7a-lds" customClass="ViewController" customModule="Swift_Demo_AF_Date_Helper" customModuleProvider="target" sceneMemberID="viewController">
<tableViewController id="sgH-7a-lds" customClass="ViewController" customModule="AFDateHelper" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="60" sectionHeaderHeight="22" sectionFooterHeight="22" id="hdY-Qh-42s">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct TableItem {
let description: String
}

class ViewController: UITableViewController, UITableViewDataSource, UITableViewDelegate {
class ViewController: UITableViewController {

let now = NSDate()
var date = NSDate()
Expand Down
27 changes: 5 additions & 22 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,36 +1,19 @@
The MIT License (MIT)
Copyright (c) 2015 Melvin Rivera <[email protected]>

Copyright (c) 2014 Melvin Rivera

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:
=======
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:
>>>>>>> 920e0fd8315bafeb029a22d2ea768b71317fabcb

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
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
<<<<<<< HEAD
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.
=======
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.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit ebfca9e

Please sign in to comment.