Skip to content

Commit

Permalink
Add CocoaPods support
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Nov 22, 2017
1 parent 8916f17 commit 9f53a1b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions HotKey.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Pod::Spec.new do |spec|
spec.name = 'HotKey'
spec.version = '0.1.0'
spec.authors = {'Sam Soffes' => '[email protected]'}
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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand Down

0 comments on commit 9f53a1b

Please sign in to comment.