Skip to content
Reactive implementation of the Google Smart Lock for passwords
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
example
gradle/wrapper
rxsmartlock Bump play-services-gcm from 16.0.0 to 16.1.0 (#3) Mar 10, 2019
.gitignore
Freeletics.gpg.enc Updated gpg key Feb 22, 2019
LICENSE
README.md Add maven download link Mar 10, 2019
build.gradle Bump gradle from 3.3.1 to 3.3.2 (#5) Mar 9, 2019
gradle.properties
gradlew Initial commit Feb 17, 2019
gradlew.bat
settings.gradle

README.md

CircleCI

Download

RxSmartLock

This library is a wrapper for the SmartLock for passwords. It makes all interactions with SmartLock API through the reactive streams.

How to use

To save credentials use the function storeCredentials():

RxGoogleSmartLockManager.storeCredentials(context, credentials).subscribe()

To retrieve stored credentials use the function retrieveCredentials():

RxGoogleSmartLockManager.retrieveCredentials(context).subscribe()

There are a few other methods to interract with SmartLock defined in the interface.

Testing

For testing purposes there is EmptySmartLockManager. The methods of that class are empty. Inject EmptySmartLockManager for testing purposes to the classes you are testing.

Dependency

Dependencies are hosted on Maven Central:

implementation 'com.freeletics.rxsmartlock:rxsmartlock:1.0.0'

Keep in mind that this library is written in kotlin which means you also need to add kotlin-stdlib to a project using RxSmartLock.

Snapshot

Latest snapshot (directly published from master branch):

allprojects {
    repositories {
        // Your repositories.
        // ...
        // Add url to snapshot repository
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots/"
        }
    }
}
implementation 'com.freeletics.rxsmartlock:rxsmartlock:1.0.1-SNAPSHOT'

License

Copyright 2019 Freeletics

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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.