Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mdiep committed Jan 1, 2017
1 parent 63d5164 commit 7920f19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
31 changes: 12 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ vendingMachine.purchase
switch result {
case let .success(snacks):
print("Snack: \(snacks)")

case let .failure(error):
// Out of stock? Insufficient fund?
print("Transaction aborted: \(error)")
Expand All @@ -84,16 +84,16 @@ vendingMachine.purchase
class VendingMachine {
let purchase: Action<(), [Snack], VendingMachineError>
let coins: MutableProperty<Int>

// The vending machine is connected with a sales recorder.
init(_ salesRecorder: SalesRecorder) {
coins = MutableProperty(0)
purchase = Action(state: coins, enabledIf: { $0 > 0 }) { coins, snackId in
purchase = Action(state: coins, enabledIf: { $0 > 0 }) { coins, snackId in
return SignalProducer { observer, _ in
// The sales magic happens here.
}
}

// The sales recorders are notified for any successful sales.
purchase.values.observeValues(salesRecorder.record)
}
Expand Down Expand Up @@ -163,7 +163,7 @@ one. Just think of how much code that would take to do by hand!

#### Receiving the results

Since the source of search strings is a `Signal` which has a hot signal semantic,
Since the source of search strings is a `Signal` which has a hot signal semantic,
the transformations we applied are automatically evaluated whenever new values are
emitted from `searchStrings`.

Expand All @@ -174,10 +174,10 @@ searchResults.observe { event in
switch event {
case let .value(results):
print("Search results: \(results)")

case let .failed(error):
print("Search error: \(error)")

case .completed, .interrupted:
break
}
Expand Down Expand Up @@ -285,7 +285,7 @@ While ReactiveCocoa was inspired and heavily influenced by [ReactiveX][] (Rx), R
an opinionated implementation of [functional reactive programming][], and _intentionally_ not a
direct port like [RxSwift][].

ReactiveSwift differs from ReactiveX in places that:
ReactiveSwift differs from ReactiveX in places that:

* Results in a simpler API
* Addresses common sources of confusion
Expand Down Expand Up @@ -369,7 +369,7 @@ If you use [Carthage][] to manage your dependencies, simply add
ReactiveSwift to your `Cartfile`:

```
github "ReactiveCocoa/ReactiveSwift" "1.0.0-rc.3"
github "ReactiveCocoa/ReactiveSwift" ~> 1.0
```

If you use Carthage to build your dependencies, make sure you have added `ReactiveSwift.framework`, and `Result.framework` to the "_Linked Frameworks and Libraries_" section of your target, and have included them in your Carthage framework copying build phase.
Expand All @@ -380,7 +380,7 @@ If you use [CocoaPods][] to manage your dependencies, simply add
ReactiveSwift to your `Podfile`:

```
pod 'ReactiveSwift', '1.0.0-rc.3'
pod 'ReactiveSwift', '1.0.0'
```

#### Swift Package Manager
Expand All @@ -389,7 +389,7 @@ If you use Swift Package Manager, simply add ReactiveSwift as a dependency
of your package in `Package.swift`:

```
.Package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", "1.0.0-rc.3")
.Package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", majorVersion: 1)
```

#### Git submodule
Expand Down Expand Up @@ -419,20 +419,13 @@ We also provide a great Playground, so you can get used to ReactiveCocoa's opera
1. Build `ReactiveSwift-macOS` scheme
1. Finally open the `ReactiveSwift.playground`
1. Choose `View > Show Debug Area`

## Have a question?
If you need any help, please visit our [GitHub issues][] or [Stack Overflow][]. Feel free to file an issue if you do not manage to find any solution from the archives.

## Release Roadmap
**Current Stable Release:**<br />[![GitHub release](https://img.shields.io/github/release/ReactiveCocoa/ReactiveSwift.svg)](https://github.com/ReactiveCocoa/ReactiveSwift/releases)

### Code Complete: ReactiveSwift 1.0
It targets Swift 3.0.x. The tentative schedule of a Gold Master release is January 2017.

[Release Candidiate 3](https://github.com/ReactiveCocoa/ReactiveSwift/releases/tag/1.0.0-rc.3) has been released.

A point release is expected with performance optimizations.

### Plan of Record
#### ReactiveSwift 2.0
It targets Swift 3.1.x. The estimated schedule is Spring 2017.
Expand Down
4 changes: 2 additions & 2 deletions ReactiveSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Pod::Spec.new do |s|
s.name = "ReactiveSwift"
# Version goes here and will be used to access the git tag later on, once we have a first release.
s.version = "1.0.0-rc.3"
s.version = "1.0.0"
s.summary = "Streams of values over time"
s.description = <<-DESC
ReactiveSwift is a Swift framework inspired by Functional Reactive Programming. It provides APIs for composing and transforming streams of values over time.
DESC
s.homepage = "https://github.com/ReactiveCocoa/ReactiveSwift"
s.license = { :type => "MIT", :file => "LICENSE.md" }
s.author = "ReactiveCocoa"

s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
s.watchos.deployment_target = "2.0"
Expand Down

0 comments on commit 7920f19

Please sign in to comment.