Skip to content

Releases: pollini/MVPInstallIdentityKit

Release list

1.0.0

Choose a tag to compare

@pollini pollini released this 05 Nov 10:57

First public release.

Tiny, dependency-free Swift package that tells you whether your app has been installed on this device before — even after it was deleted and reinstalled — by persisting an anonymous, self-generated identifier in the Keychain.

Highlights

  • InstallIdentifier.shared.resolve() returns a stable id, firstSeenDate and isFirstLaunchEver
  • Three accessibility modes:
    • .afterFirstUnlockThisDeviceOnly (default) — strictly device-local
    • .afterFirstUnlockMigratable — carries over when a backup is restored onto a new device
    • .afterFirstUnlockSynchronizable — additionally live-syncs via iCloud Keychain
  • Injectable KeychainStoring protocol for deterministic unit tests
  • Ships a PrivacyInfo.xcprivacy: no tracking, no collected data, no required-reason APIs
  • SwiftUI example app in Example/ for verifying behavior on a simulator or device

Requirements

iOS 13+ / macOS 11+, Swift 5.9+

Installation

.package(url: "https://github.com/pollini/MVPInstallIdentityKit.git", from: "1.0.0")