diff --git a/lib/services/local_sync_service.dart b/lib/services/local_sync_service.dart index eb79aeb18..cf7808417 100644 --- a/lib/services/local_sync_service.dart +++ b/lib/services/local_sync_service.dart @@ -24,7 +24,7 @@ import 'package:tuple/tuple.dart'; class LocalSyncService { final _logger = Logger("LocalSyncService"); final _db = FilesDB.instance; - final Computer _computer = Computer(); + final Computer _computer = Computer.shared(); late SharedPreferences _prefs; Completer? _existingSync; diff --git a/lib/utils/crypto_util.dart b/lib/utils/crypto_util.dart index 1a838c510..7ebb1cb4e 100644 --- a/lib/utils/crypto_util.dart +++ b/lib/utils/crypto_util.dart @@ -166,7 +166,7 @@ Uint8List chachaDecryptData(Map args) { } class CryptoUtil { - static final Computer _computer = Computer(); + static final Computer _computer = Computer.shared(); static init() { _computer.turnOn(workersCount: 4); @@ -391,7 +391,7 @@ class CryptoUtil { return DerivedKeyResult(key, memLimit, opsLimit); } - // Derives a key for a given password, salt, memLimit and opsLimit using + // Derives a key for a given password, salt, memLimit and opsLimit using // Argon2id, v1.3. static Future deriveKey( Uint8List password, diff --git a/pubspec.lock b/pubspec.lock index 71935b381..9f83b92fa 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -276,10 +276,10 @@ packages: dependency: "direct main" description: name: computer - sha256: "3df9f1ef497aaf69e066b00f4441726eb28037dc33e97b5d56393967f92c5fe8" + sha256: "34176c612a02ebf3e5eaa3e9b40e2b1df495043c46614999639d19e66823232d" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "3.2.1" confetti: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 2b2e436ac..e054c00f0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,7 +28,7 @@ dependencies: chewie: path: thirdparty/chewie collection: # dart - computer: ^2.0.0 + computer: ^3.2.1 confetti: ^0.6.0 connectivity_plus: ^3.0.3 crypto: ^3.0.2