Skip to content

Commit

Permalink
Change pods name
Browse files Browse the repository at this point in the history
  • Loading branch information
Urotea committed Feb 10, 2019
1 parent 7dc44e1 commit 45b76df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ doInTransaction<Element: Object>(

### CocoaPods

- Add pod 'RealmX' to your Podfile.
- Add pod 'RealmX-rX' to your Podfile.
- Run `pod update`

## samples
Expand Down Expand Up @@ -87,11 +87,14 @@ realm.doInTransaction(object: [dog]) { (realm: Realm, dogList: [Object]) in
})
```

This show the most power when you use WebAPI in Rx stream.
This show the most power when you use WebAPI(e.g. [Moya](https://github.com/Moya/Moya)) in Rx stream.

```swift
getJson()
let provider = MoyaProvider<Dogs>()
provider
.rx
.request(.get)
.observeOn(ConcurrentDispatchQueueScheduler(qos: .background))
.map{
let dog = Dog()
dog.age = $0.age
Expand All @@ -103,7 +106,6 @@ getJson()
realm.add(dogList.first!)
}
}
.subscribeOn(ConcurrentDispatchQueueScheduler(qos: .background))
.subscribe {}
```

Expand Down
4 changes: 2 additions & 2 deletions RealmX.podspec → Realm-rX.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Pod::Spec.new do |spec|
# summary should be tweet-length, and the description more in depth.
#

spec.name = "RealmX"
spec.version = "1.0.0"
spec.name = "Realm-rX"
spec.version = "1.0.1"
spec.summary = "Realm + RxSwift eXtensions"

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 45b76df

Please sign in to comment.