Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niqo01/rxtask
RxJava 2 binding for Google Play Services Task APIs.
https://github.com/niqo01/rxtask
android firebase google-play-services rxjava2
Last synced: 3 months ago
JSON representation
RxJava 2 binding for Google Play Services Task APIs.
- Host: GitHub
- URL: https://github.com/niqo01/rxtask
- Owner: niqo01
- License: apache-2.0
- Archived: true
- Created: 2017-11-26T21:45:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-21T17:30:49.000Z (about 5 years ago)
- Last Synced: 2024-09-27T17:01:19.330Z (3 months ago)
- Topics: android, firebase, google-play-services, rxjava2
- Language: Java
- Homepage:
- Size: 182 KB
- Stars: 16
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
RxTask (DEPRECATED)
=========RxJava 2 binding API for Google Play Services [Task][task] APIs.
RxTask can be use standalone for any Google or Firebase APIs returning Task or,
bundled with one of the GoogleAPIs helper project provided.##### Download
```groovy
implementation 'com.github.niqo01.rxplayservices:rx-play-services-task:0.4.0'
```##### Example
```java
GoogleSignInClient client = GoogleSignIn.getClient(context, options);
Single silentSignIn = SingleTask.create(() -> client.silentSignIn());
...
Completable revokeAccess = CompletableTask.create(() -> client.revokeAccess());
```### GoogleAPIs
The following projects leverage RxTask and wrap the new [GoogleApi][googleapi] introduced
in version 11.6.0.| API | Dependency |
| --- | --- |
| Auth | com.github.niqo01.rxplayservices:rx-play-services-auth:0.4.0 |
| Location | com.github.niqo01.rxplayservices:rx-play-services-location:0.4.0 |
| Places | com.github.niqo01.rxplayservices:rx-play-services-places:0.4.0 |
| Fitness | com.github.niqo01.rxplayservices:rx-play-services-fitness:0.4.0 |
| Wallet | com.github.niqo01.rxplayservices:rx-play-services-wallet:0.4.0 |##### Location Example
```java
RxFusedLocationProviderClient rxClient = new RxFusedLocationProviderClient(context);
Observable result = rxClient
.requestLocationRequestUpdates(LocationRequest.create());
```Snapshots
-------
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].License
-------Copyright (C) 2017 Nicolas Milliard
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.[googleapi]: https://android-developers.googleblog.com/2017/11/moving-past-googleapiclient_21.html
[task]: https://developers.google.com/android/guides/tasks
[rxtask]: https://github.com/niqo01/RxPlayServices/blob/master/rx-task/src/main/java/com/nicolasmilliard/rxtask/RxTask.kt
[snap]: https://oss.sonatype.org/content/repositories/snapshots/