Skip to content

Commit

Permalink
Merge pull request #5 from BeauNouvelle/cocoapod-support
Browse files Browse the repository at this point in the history
cocoapod support
  • Loading branch information
BeauNouvelle authored Oct 3, 2019
2 parents 7841803 + c78c5fe commit c3f82b0
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
32 changes: 32 additions & 0 deletions DateTextField.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Be sure to run `pod spec lint SimpleCheckbox.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

s.name = "DateTextField"
s.version = "2.1.0"
s.summary = "A date input textfield"
s.swift_version = '5.1'

s.description = <<-DESC
A Swift UITextField subclass designed to make entering dates easier, faster and more flexible than the standard UIDatePicker.
DESC

s.homepage = "https://github.com/BeauNouvelle/DateTextField"

s.license = { :type => "MIT", :file => "LICENSE" }
s.author = "Beau Nouvelle"
s.social_media_url = "http://twitter.com/BeauNouvelle"

s.platform = :ios, "10.0"

s.source = { :git => "https://github.com/BeauNouvelle/DateTextField.git", :tag => "#{s.version}" }

s.source_files = "DateTextField/*.{swift}"

end
10 changes: 8 additions & 2 deletions DateTextField.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,9 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = DateTextField/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 2.0.0;
MARKETING_VERSION = 2.1.0;
PRODUCT_BUNDLE_IDENTIFIER = beaunouvelle.DateTextField;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -401,8 +402,9 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = DateTextField/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 2.0.0;
MARKETING_VERSION = 2.1.0;
PRODUCT_BUNDLE_IDENTIFIER = beaunouvelle.DateTextField;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -559,7 +561,9 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = "$(SRCROOT)/Demo/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 2.1.0;
PRODUCT_BUNDLE_IDENTIFIER = beaunouvelle.DateTextFieldDemo;
PRODUCT_NAME = "DateTextField Demo";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
Expand All @@ -573,7 +577,9 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = "$(SRCROOT)/Demo/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 2.1.0;
PRODUCT_BUNDLE_IDENTIFIER = beaunouvelle.DateTextFieldDemo;
PRODUCT_NAME = "DateTextField Demo";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
Expand Down
2 changes: 1 addition & 1 deletion Demo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Simply drag the DateTextField.swift file into your project.
More information on installing and setting up Carthage can be found here:
https://github.com/Carthage/Carthage

### Cocoapods
- Add `DateTextField` to your podfile.
- Add `import DateTextField` to any file where you wish to use it.

## 👩‍💻 Usage

Expand Down

0 comments on commit c3f82b0

Please sign in to comment.