Skip to content

sentryco/PersistenceKit

Repository files navigation

Tests codebeat badge

PersistenceKit

Persistence check for iOS / macOS

Description

Detects whether the app is a fresh install or a reinstall, which can influence authentication flows and user data management. Handles nuances of persistence across iOS and macOS.

Features

  • Assert database existence
  • Assert keychain key existence
  • Assert userdefault existence
  • Reset userdefault and keychain

Example

Persistence.hasAppBeenDeleted(dbFilePath: "", privKeyName: "")
Persistence.isNewInstall(dbFilePath: "", privKeyName: "")
Persistence.reset()

Install

.package(url: "https://github.com/sentryco/PersistenceKit")

Todo

  • Add dependency list to readme
  • Use smaller Keychain lib, from telemetry etc

About

Persistence check for iOS / macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages