Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #21 from bart-g/master
Browse files Browse the repository at this point in the history
Siri permission
  • Loading branch information
sunshinejr authored Jul 27, 2017
2 parents 574e023 + e8ac984 commit f6642f5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ pod 'RxPermission/Camera'
pod 'RxPermission/Contacts'
pod 'RxPermission/Events'
pod 'RxPermission/Location'
pod 'RxPermission/MediaLibrary'
pod 'RxPermission/Microphone'
pod 'RxPermission/Motion'
pod 'RxPermission/Notifications'
pod 'RxPermission/Photos'
pod 'RxPermission/Reminders'
pod 'RxPermission/Siri'
pod 'RxPermission/SpeechRecognizer'
pod 'RxPermission/MediaLibrary'
```

## Below Swift 3.0
Expand All @@ -55,7 +56,7 @@ accept the app in App Store.

## Usage

RxPermission makes a `rx_permission` Observable that you can subscribe in order to receive signals.
RxPermission makes a `rx.permission` Observable that you can subscribe in order to receive signals.

### Sample code
```swift
Expand All @@ -76,14 +77,15 @@ public enum PermissionType {
case camera
case contacts
case events
case motion
case locationAlways
case locationWhenInUse
case mediaLibrary
case microphone
case motion
case notifications
case photos
case reminders
case locationAlways
case locationWhenInUse
case mediaLibrary
case siri
case speechRecognizer
}
```
Expand Down
15 changes: 10 additions & 5 deletions RxPermission.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ Pod::Spec.new do |s|
ss.dependency 'Permission/Location'
end

s.subspec 'MediaLibrary' do |ss|
ss.dependency 'RxPermission/Core'
ss.dependency 'Permission/MediaLibrary'
end

s.subspec 'Microphone' do |ss|
ss.dependency 'RxPermission/Core'
ss.dependency 'Permission/Microphone'
Expand All @@ -74,13 +79,13 @@ Pod::Spec.new do |s|
ss.dependency 'Permission/Reminders'
end

s.subspec 'SpeechRecognizer' do |ss|
ss.dependency 'RxPermission/Core'
ss.dependency 'Permission/SpeechRecognizer'
s.subspec 'Siri' do |ss|
ss.dependency 'RxPermission/Core'
ss.dependency 'Permission/Siri'
end

s.subspec 'MediaLibrary' do |ss|
s.subspec 'SpeechRecognizer' do |ss|
ss.dependency 'RxPermission/Core'
ss.dependency 'Permission/MediaLibrary'
ss.dependency 'Permission/SpeechRecognizer'
end
end

0 comments on commit f6642f5

Please sign in to comment.