Development tool to store app settings / feature toggles in an external application making in persist across clean data / reinstallations.
Toggles can be downloaded on play store. and it's sources are on github
Stores settings / toggles behind a content provider.
This is a development tools meant to facilitate feature switching in an external app so that configurations will be retained across clear data / uninstalls.
- Install the Toggles app from the Play Store.
- Add the Toggles library to your project.
- Use the provided APIs to manage feature toggles in your app.
Exposes switches from toggles using a kotlin flow.
implementation("se.eelde.toggles:toggles-flow:0.0.1")
Example usage:
import se.eelde.toggles.flow.Toggles
val toggles = Toggles(context)
toggles.getToggleFlow("feature_toggle_key").collect { isEnabled ->
// Use the toggle value
}
One-shot fetch of a toggle. Similar API as androids SharedPreferences.
implementation("se.eelde.toggles:toggles-prefs:0.0.1")
Example usage:
import se.eelde.toggles.prefs.TogglesPreferences
val togglesPrefs = TogglesPreferences(context)
val isEnabled = togglesPrefs.getBoolean("feature_toggle_key", false)
Base library exposing common bit to help communicating with the toggles application via the provider. Generally shouldn't be needed unless implementing your own library.
implementation("se.eelde.toggles:toggles-core:0.0.2")
We welcome contributions! Please follow these steps to contribute:
- Fork the repository on GitHub.
- Create a new branch for your feature or bugfix.
- Write your code and tests.
- Submit a pull request with a clear description of your changes.
If you encounter any issues or have questions, please open an issue on GitHub.
To build and run the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/eelde/toggles.git
- Open the project in Android Studio.
- Build and run the project on an emulator or physical device.
The idea dates way back to and was inspired by the now removed Dash Clock Widget as well as the still maintained muzei.
Wrench can be downloaded on play store. and it's sources are on github I made wrench while employed at izettle and to be able to continue to provide updates I unfortunately needed to rerelease the application.