From 9f53a1be3bba246788c4cbd505f8532b27e9bde1 Mon Sep 17 00:00:00 2001 From: Sam Soffes Date: Wed, 22 Nov 2017 14:55:26 -0800 Subject: [PATCH] Add CocoaPods support --- HotKey.podspec | 14 ++++++++++++++ README.md | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 HotKey.podspec diff --git a/HotKey.podspec b/HotKey.podspec new file mode 100644 index 0000000..e55d407 --- /dev/null +++ b/HotKey.podspec @@ -0,0 +1,14 @@ +Pod::Spec.new do |spec| + spec.name = 'HotKey' + spec.version = '0.1.0' + spec.authors = {'Sam Soffes' => 'sam@soff.es'} + spec.homepage = 'https://github.com/soffes/HotKey' + spec.summary = 'Simple global shortcuts in macOS.' + spec.source = {:git => 'https://github.com/soffes/HotKey.git', :tag => "v#{spec.version}"} + spec.license = { :type => 'MIT', :file => 'LICENSE' } + + spec.osx.deployment_target = '10.9' + + spec.frameworks = 'Appkit', 'Carbon' + spec.source_files = 'Sources/HotKey/**/*.{h,m,swift}' +end diff --git a/README.md b/README.md index 5aa6d4a..4d49ad0 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Build Status](https://travis-ci.org/soffes/HotKey.svg?branch=master)](https://travis-ci.org/soffes/HotKey) ![Swift Version](https://img.shields.io/badge/swift-4.0-orange.svg) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) +[![CocoaPods compatible](https://img.shields.io/cocoapods/v/HotKey.svg)](https://cocoapods.org/pods/HotKey) Simple global shortcuts in macOS. HotKey wraps the Carbon APIs for dealing with global hot keys to make it easy to use in Swift. @@ -27,6 +28,14 @@ For installation with [Swift Package Manager](https://github.com/apple/swift-pac .package(url: "https://github.com/soffes/HotKey", from: "0.1.0") ``` +### CocoaPods + +For installation with [CocoaPods](http://cocoapods.org), simply add the following to your `Podfile`: + +```ruby +pod 'HotKey' +``` + ## Usage