Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Latest commit

 

History

History
69 lines (51 loc) · 2.45 KB

README.md

File metadata and controls

69 lines (51 loc) · 2.45 KB

RxTask (DEPRECATED)

RxJava 2 binding API for Google Play Services 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
implementation 'com.github.niqo01.rxplayservices:rx-play-services-task:0.4.0'
Example
    GoogleSignInClient client = GoogleSignIn.getClient(context, options);
    Single<GoogleSignInAccount> silentSignIn = SingleTask.create(() -> client.silentSignIn());
    ...
    Completable revokeAccess = CompletableTask.create(() -> client.revokeAccess());

GoogleAPIs

The following projects leverage RxTask and wrap the new 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
    RxFusedLocationProviderClient rxClient = new RxFusedLocationProviderClient(context);
    Observable<LocationResult> result = rxClient
            .requestLocationRequestUpdates(LocationRequest.create());

Snapshots

Snapshots of the development version are available in Sonatype's snapshots repository.

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 at

   http://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.