feat(spoof): обновил фингерпринт и версию до 26.19.2 + миграция старых профилей

This commit is contained in:
klockky
2026-06-23 16:32:31 +03:00
parent 48830fe488
commit 2b45bb3185
3 changed files with 62 additions and 6 deletions
+37
View File
@@ -35,6 +35,43 @@ class SpoofProfile {
this.userAgent = '',
});
SpoofProfile copyWith({
bool? enabled,
String? deviceName,
String? osVersion,
String? screen,
String? timezone,
String? locale,
String? deviceLocale,
String? deviceId,
String? deviceType,
String? arch,
String? appVersion,
int? buildNumber,
String? pushDeviceType,
String? instanceId,
int? clientSessionId,
String? userAgent,
}) =>
SpoofProfile(
enabled: enabled ?? this.enabled,
deviceName: deviceName ?? this.deviceName,
osVersion: osVersion ?? this.osVersion,
screen: screen ?? this.screen,
timezone: timezone ?? this.timezone,
locale: locale ?? this.locale,
deviceLocale: deviceLocale ?? this.deviceLocale,
deviceId: deviceId ?? this.deviceId,
deviceType: deviceType ?? this.deviceType,
arch: arch ?? this.arch,
appVersion: appVersion ?? this.appVersion,
buildNumber: buildNumber ?? this.buildNumber,
pushDeviceType: pushDeviceType ?? this.pushDeviceType,
instanceId: instanceId ?? this.instanceId,
clientSessionId: clientSessionId ?? this.clientSessionId,
userAgent: userAgent ?? this.userAgent,
);
Map<String, dynamic> toJson() => {
'enabled': enabled,
'device_name': deviceName,