https://github.com/sentryco/appconfigkit
Easily retain or reset app config
https://github.com/sentryco/appconfigkit
Last synced: 3 months 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-30T14:38:44.000Z (5 months ago)
- Last Synced: 2025-01-16T14:55:53.187Z (4 months ago)
- Language: Swift
- Size: 21.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/sentryco/AppConfigKit/actions/workflows/Tests.yml)
[](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