RxTaskKotlin

RxJava wrapper APIs for Google Play Services including Kotlin extensions.

License

License

Categories

Categories

Kotlin Languages
GroupId

GroupId

com.github.niqo01.rxplayservices
ArtifactId

ArtifactId

rx-play-services-task-kotlin
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

aar
Description

Description

RxTaskKotlin
RxJava wrapper APIs for Google Play Services including Kotlin extensions.
Project URL

Project URL

https://github.com/niqo01/RxPlayServices
Source Code Management

Source Code Management

https://github.com/niqo01/RxPlayServices

Download rx-play-services-task-kotlin

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.niqo01.rxplayservices/rx-play-services-task-kotlin/ -->
<dependency>
    <groupId>com.github.niqo01.rxplayservices</groupId>
    <artifactId>rx-play-services-task-kotlin</artifactId>
    <version>0.1.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.niqo01.rxplayservices/rx-play-services-task-kotlin/
implementation 'com.github.niqo01.rxplayservices:rx-play-services-task-kotlin:0.1.0'
// https://jarcasting.com/artifacts/com.github.niqo01.rxplayservices/rx-play-services-task-kotlin/
implementation ("com.github.niqo01.rxplayservices:rx-play-services-task-kotlin:0.1.0")
'com.github.niqo01.rxplayservices:rx-play-services-task-kotlin:aar:0.1.0'
<dependency org="com.github.niqo01.rxplayservices" name="rx-play-services-task-kotlin" rev="0.1.0">
  <artifact name="rx-play-services-task-kotlin" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.niqo01.rxplayservices', module='rx-play-services-task-kotlin', version='0.1.0')
)
libraryDependencies += "com.github.niqo01.rxplayservices" % "rx-play-services-task-kotlin" % "0.1.0"
[com.github.niqo01.rxplayservices/rx-play-services-task-kotlin "0.1.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib jar 1.2.0
io.reactivex.rxjava2 : rxjava jar 2.1.6
com.google.android.gms » play-services-base jar 11.6.0
com.github.niqo01.rxplayservices : rx-play-services-task jar 0.1.0

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.1.0