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

Commit

Permalink
[Documentation] Prepare for release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinejr committed Jan 18, 2017
1 parent eaa9cb0 commit 4d10b3d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 17 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Next

# 1.0.0
- Update to Permission ~> 2.0.0 & RxSwift ~> 3.0.

# 1.0.0-beta.2
- Change `rx_permission` to `rx.permission` to follow RxSwift guidelines.

Expand Down
57 changes: 40 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,37 @@

## Installation

RxPermission is available through [CocoaPods](http://cocoapods.org). I can't guarantee it is working correctly
on Carthage, so if you want to help I'm happy to introduce it with your PR.
RxPermission is available through [CocoaPods](http://cocoapods.org). I can't
guarantee it is working correctly on Carthage, so if you want to help I'm happy
to introduce it with your PR.

RxPermission should work with every Swift release >= 2.2, for detailed instructions check
info below.
RxPermission should work with every Swift release >= 2.2, for detailed
instructions check info below.

## Swift 3.0
If you want to use RxPermission with Swift 3.0, as of now you have to use these lines below
in your Podfile to have it working (while waiting for the official release of Permission and RxSwift):
If you want to use RxPermission with Swift 3.0 you have to specify which
Permission you want to install/use because of new Apple policy about permission.
For example if you want to access the Camera and the Notifications you define the following:
```
pod 'RxPermission/Camera'
pod 'RxPermission/Notifications'
```

```ruby
pod 'RxPermission', '1.0.0-beta.2'
pod 'Permission', :git => 'https://github.com/delba/Permission', :branch => 'swift-3.0'
pod 'RxSwift', :git => 'https://github.com/ReactiveX/RxSwift'
Available specs:
```
pod 'RxPermission/AddressBook'
pod 'RxPermission/Bluetooth'
pod 'RxPermission/Camera'
pod 'RxPermission/Contacts'
pod 'RxPermission/Events'
pod 'RxPermission/Location'
pod 'RxPermission/Microphone'
pod 'RxPermission/Motion'
pod 'RxPermission/Notifications'
pod 'RxPermission/Photos'
pod 'RxPermission/Reminders'
pod 'RxPermission/SpeechRecognizer'
pod 'RxPermission/MediaLibrary'
```

## Below Swift 3.0
Expand All @@ -33,6 +50,9 @@ To install it, simply add the following line to your Podfile:
pod "RxPermission", "~> 0.2"
```

You need to also take care of Info.plist messages because otherwise Apple won't
accept the app in App Store.

## Usage

RxPermission makes a `rx_permission` Observable that you can subscribe in order to receive signals.
Expand All @@ -51,17 +71,20 @@ Permission
### Available permissions:
```swift
public enum PermissionType {
case addressBook
case bluetooth
case camera
case contacts
case locationAlways
case locationWhenInUse
case notifications
case events
case motion
case microphone
case camera
case notifications
case photos
case reminders
case events
case bluetooth
case motion
case locationAlways
case locationWhenInUse
case mediaLibrary
case speechRecognizer
}
```

Expand Down

0 comments on commit 4d10b3d

Please sign in to comment.