From 418501453447a24b019ac3b686b16c76e4f0bee3 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 7 Jun 2018 11:07:48 +0700 Subject: [PATCH] Support CocoaPods Closes #9 --- Defaults.podspec | 16 ++++++++++++++++ readme.md | 10 ++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 Defaults.podspec diff --git a/Defaults.podspec b/Defaults.podspec new file mode 100644 index 0000000..9fb9fb9 --- /dev/null +++ b/Defaults.podspec @@ -0,0 +1,16 @@ +Pod::Spec.new do |s| + s.name = 'Defaults' + s.version = '0.2.1' + s.license = { :type => 'MIT', :file => 'license' } + s.homepage = 'https://github.com/sindresorhus/Defaults' + s.social_media_url = 'https://twitter.com/sindresorhus' + s.authors = { 'Sindre Sorhus' => 'sindresorhus@gmail.com' } + s.summary = 'Swifty and modern UserDefaults' + s.source = { :git => 'https://github.com/sindresorhus/Defaults.git', :tag => "v#{s.version}" } + s.source_files = 'Sources/*.swift' + s.swift_version = '4.1' + s.osx.deployment_target = '10.12' + s.ios.deployment_target = '10.0' + s.tvos.deployment_target = '10.0' + s.watchos.deployment_target = '3.0' +end diff --git a/readme.md b/readme.md index c45019a..6846d44 100644 --- a/readme.md +++ b/readme.md @@ -21,18 +21,24 @@ ## Install -With [SPM](https://swift.org/package-manager/): +#### SPM ```swift .package(url: "https://github.com/sindresorhus/Defaults", from: "0.2.0") ``` -With [Carthage](https://github.com/Carthage/Carthage): +#### Carthage ``` github "sindresorhus/Defaults" ``` +#### CocoaPods + +``` +pod 'Defaults' +``` +