Skip to content

pablobaxter/rx-preferences

 
 

Repository files navigation

Rx Preferences

CircleCI GitHub Maven Central

For further documentation, visit the project website

A collection of libraries to allow SharedPreferences to be reactive

This library was created to continue improving on the great work that @f2prateek had done with rx-preferences.

In order to handle the varying number of reactive frameworks available, there are multiple libraries available, which all share the same basic APIs and adapters.

Available Reactive SharedPreferences Libraries

Core

implementation 'com.frybits.rx.preferences:core:2.0.1'

Coroutine/Flow

implementation 'com.frybits.rx.preferences:coroutine:2.0.1'

LiveData

implementation 'com.frybits.rx.preferences:livedata:2.0.1'

Rx2

implementation 'com.frybits.rx.preferences:rx2:2.0.1'

Rx3

implementation 'com.frybits.rx.preferences:rx3:2.0.1'

For ease of ensuring all libraries are compatible, as they may have varying release cadences, a BOM is also provided:

// Import BOM
implementation platform('com.frybits.rx.preferences:bom:2.0.1')
implementation 'com.frybits.rx.preferences:core'
implementation 'com.frybits.rx.preferences:livedata'
implementation 'com.frybits.rx.preferences:rx2'

License

    Copyright 2014-2023 Prateek Srivastava
    Copyright 2023 Pablo Baxter

    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.

About

Reactive SharedPreferences for Android

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages

  • Kotlin 87.9%
  • Java 12.1%