device_unique_id 1.0.1
device_unique_id: ^1.0.1 copied to clipboard
Get a reliable device identifier on Android and iOS — Android ID, iOS identifierForVendor, and a Keychain/EncryptedSharedPreferences-backed persistent UUID that survives reinstall.
Changelog #
1.0.1 #
- Updated Android Gradle configuration to use built-in Kotlin support.
- Added Swift Package Manager (SPM) support for iOS.
- Fixed legacy Kotlin configuration warnings.
1.0.0 #
- Initial release.
DeviceUniqueId.getPersistentId()— Keychain (iOS) / EncryptedSharedPreferences (Android) backed UUID, generated once on first launch.DeviceUniqueId.getDeviceIdentity()— the above plus the raw platform id (ANDROID_IDon Android,identifierForVendoron iOS).DeviceUniqueId.resetPersistentId()— clears the stored UUID (mainly for testing "new install" flows).- Standard platform-interface architecture so this can later split into federated platform packages without a breaking change.