mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
sanity checks [skip ci]
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import 'dart:io';
|
||||
import 'package:cake_wallet/core/backup_service.dart';
|
||||
import 'package:cake_wallet/core/backup_service_v3.dart';
|
||||
import 'package:cake_wallet/core/execution_state.dart';
|
||||
import 'package:cake_wallet/core/secure_storage.dart';
|
||||
import 'package:cake_wallet/entities/default_settings_migration.dart' show generateBackupPassword;
|
||||
import 'package:cake_wallet/entities/secret_store_key.dart';
|
||||
import 'package:cake_wallet/view_model/edit_backup_password_view_model.dart';
|
||||
import 'package:cw_core/root_dir.dart';
|
||||
import 'package:cw_core/utils/print_verbose.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
|
||||
part 'backup_view_model.g.dart';
|
||||
|
||||
@@ -60,7 +58,10 @@ abstract class BackupViewModelBase with Store {
|
||||
@action
|
||||
Future<void> init() async {
|
||||
final key = generateStoreKeyFor(key: SecretStoreKey.backupPassword);
|
||||
backupPassword = (await secureStorage.read(key: key))!;
|
||||
backupPassword = (await secureStorage.read(key: key)) ?? '';
|
||||
if (backupPassword.isEmpty) {
|
||||
generateBackupPassword(secureStorage);
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:cake_wallet/core/secure_storage.dart';
|
||||
import 'package:cake_wallet/entities/default_settings_migration.dart' show generateBackupPassword;
|
||||
import 'package:mobx/mobx.dart';
|
||||
import 'package:cake_wallet/entities/secret_store_key.dart';
|
||||
|
||||
@@ -28,6 +29,9 @@ abstract class EditBackupPasswordViewModelBase with Store {
|
||||
Future<void> init() async {
|
||||
final key = generateStoreKeyFor(key: SecretStoreKey.backupPassword);
|
||||
final password = (await secureStorage.read(key: key)) ?? '';
|
||||
if (backupPassword.isEmpty) {
|
||||
generateBackupPassword(secureStorage);
|
||||
}
|
||||
_originalPassword = password;
|
||||
backupPassword = password;
|
||||
}
|
||||
|
||||
@@ -16,13 +16,13 @@ if [ -n "$1" ]; then
|
||||
fi
|
||||
|
||||
MONERO_COM_NAME="Monero.com"
|
||||
MONERO_COM_VERSION="5.6.1"
|
||||
MONERO_COM_BUILD_NUMBER=72
|
||||
MONERO_COM_VERSION="5.6.5"
|
||||
MONERO_COM_BUILD_NUMBER=73
|
||||
MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
|
||||
|
||||
CAKEWALLET_NAME="Cake Wallet"
|
||||
CAKEWALLET_VERSION="5.6.1"
|
||||
CAKEWALLET_BUILD_NUMBER=139
|
||||
CAKEWALLET_VERSION="5.6.5"
|
||||
CAKEWALLET_BUILD_NUMBER=140
|
||||
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
|
||||
|
||||
if ! [[ " ${TYPES[*]} " =~ " ${APP_MACOS_TYPE} " ]]; then
|
||||
|
||||
Reference in New Issue
Block a user