Update: 2026-06-27 05:53:15
This commit is contained in:
@@ -169,6 +169,12 @@ void showUpdateDialog(BuildContext context) {
|
||||
class DeviceHelper {
|
||||
static Future<String> getDeviceFingerprint() async {
|
||||
await EncryptionHelper.initialize();
|
||||
|
||||
final cached = box.read(BoxName.deviceFingerprint);
|
||||
if (cached != null && cached.toString().isNotEmpty) {
|
||||
return cached.toString();
|
||||
}
|
||||
|
||||
final DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin();
|
||||
var deviceData;
|
||||
|
||||
@@ -191,7 +197,7 @@ class DeviceHelper {
|
||||
|
||||
final String fingerprint =
|
||||
EncryptionHelper.instance.encryptData('${deviceId}_$deviceModel');
|
||||
|
||||
|
||||
box.write(BoxName.deviceFingerprint, fingerprint);
|
||||
return (fingerprint);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user