Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sentryco/appconfigkit
Easily retain or reset app config
https://github.com/sentryco/appconfigkit
Last synced: 1 day ago
JSON representation
Easily retain or reset app config
- Host: GitHub
- URL: https://github.com/sentryco/appconfigkit
- Owner: sentryco
- License: mit
- Created: 2024-11-02T06:46:12.000Z (15 days ago)
- Default Branch: main
- Last Pushed: 2024-11-02T07:23:22.000Z (15 days ago)
- Last Synced: 2024-11-02T07:25:18.472Z (15 days ago)
- Language: Swift
- Size: 0 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Tests](https://github.com/sentryco/AppConfigKit/actions/workflows/Tests.yml/badge.svg)](https://github.com/sentryco/AppConfigKit/actions/workflows/Tests.yml)
[![codebeat badge](https://codebeat.co/badges/721b9659-867c-436c-8f0c-ff349ed61939)](https://codebeat.co/projects/github-com-sentryco-appconfigkit-main)# AppConfigKit
> Easily retain or reset app config
## Description
App Configuration Management. Allows configuration of app settings related to user data and feature visibility, supporting different modes such as debugging and production. Includes options to reset user data for testing or retain data for production use. AppConfigKit is a great way to reset the app before UITests based on Process info passed from the UITest. Or retain app data when needed.
## Features
- Reset UserDefaults
- Reset database data (SwiftData)
- Reset Keychain data## Example
```swift
AppConfig.current = .reset(db: ...)
AppConfig.current = .retain(db: ...)
```## Todo
- Clean up code
- Clean up comments
- Max 80 chars for long descriptions
- Potentially use keychain lib from telemetry instead of key