Skip to content

Commit

Permalink
Merge pull request #51 from 3Dpass/dev
Browse files Browse the repository at this point in the history
2.7.2+28
  • Loading branch information
L3odr0id authored Aug 15, 2023
2 parents 619bd39 + eb184f1 commit 8c8e4f0
Show file tree
Hide file tree
Showing 100 changed files with 1,614 additions and 1,102 deletions.
8 changes: 4 additions & 4 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ linter:

analyzer:
### extra_pedantic ###
strong-mode:
# https://github.com/dart-lang/language/tree/master/resources/type-system
implicit-casts: false
implicit-dynamic: true
# strong-mode:
# # https://github.com/dart-lang/language/tree/master/resources/type-system
# implicit-casts: false
# implicit-dynamic: true
language:
# https://github.com/dart-lang/language/tree/master/resources/type-system
strict-inference: true
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
android:label="@string/app_name"
android:icon="@mipmap/app_icon2"
android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true"
tools:replace="android:icon, android:label">

<meta-data
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
9 changes: 7 additions & 2 deletions assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"@wallet_base":{
},
"wallet_header_title": "Wallet",
"create_account_button_label": "New random account",
"create_account_button_label": "Random account",
"import_account_button_label": "Import account",

"init_status_sdk": "Initializing...",
Expand Down Expand Up @@ -288,5 +288,10 @@
},
"screen_lock_title": "Enter PIN code",
"screen_lock_title_set": "Set your PIN code",
"screen_lock_title_confirm": "Confirm your PIN code"
"screen_lock_title_confirm": "Confirm your PIN code",

"@2.7.2":{
},
"choose_transfer_keep_alive": "Keep sender alive",
"transfer_keep_alive_help": "With the keep-alive option set, the account is protected against removal due to low balances."
}
228 changes: 228 additions & 0 deletions assets/translations/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
{
"appTitle": "3DPass",
"@compare_page": {},
"Rank": "Rango",
"Hash": "Hash",
"compare_page_appbar": "Comparar hashes principales",
"@global": {},
"Share": "Compartir",
"Delete": "Eliminar",
"Remove": "Quitar",
"Save": "Guardar",
"Cancel": "Cancelar",
"Saved": "Guardado",
"Next": "Siguiente",
"Coming soon": "Próximamente",
"Reset": "Reiniciar",
"Copied": "Copiado",
"Apply": "Aplicar",
"Invalid": "Inválido",
"Clear": "Limpiar",
"Copy": "Copiar",
"OK": "Aceptar",
"@home_page": {},
"calc_hashes_loader_text": "Calculando hashes...",
"snap_card_name": "Nombre: ",
"snap_card_stamp": "Sello: ",
"saved_objects_header": "Objetos guardados",
"object_title_prefix": "Objeto -",
"snapshots_subtitle": "instantáneas:",
"recognize_your_objects": "Reconoce tus objetos",
"open_web_wallet_button_label": "Abrir billetera web",
"get_from_file_button_label": "Obtener desde archivo",
"no_saved_objects_placeholder": "No hay objetos guardados disponibles",
"error_hash_list_bloc": "La lista de hashes no está inicializada :(",
"error_file_picker": "Error de seleccionar archivo",
"error_trans_bytes_unavaliable": "Error: tanto la entrada del usuario como el último bloque no están disponibles. Imposible escanear el objeto.",
"@preview_page": {},
"MATCHES_number_plural": {
"zero": "No se encontraron coincidencias ",
"one": "{} coincidencia ",
"two": "{} coincidencias ",
"few": "{} coincidencias ",
"many": "{} coincidencias ",
"other": "{} coincidencias "
},
"matches_FOUND": "encontradas",
"WHY_not_found": "¿Por qué?",
"save_this_object_button_label": "Guardar este objeto",
"save_this_snapshot_button_label": "Guardar esta instantánea",
"rename_this_snapshot_button_label": "Renombrar esta instantánea",
"top_10_hashes": "ID de Hash",
"get_new_object_appbar": "Obtener uno nuevo",
"show_and_share_dialog_button": "Mostrar y compartir",
"delete_snapshot_button": "Eliminar y borrar la caché",
"stable_hashes_list_title": "Hashes estables:",
"no_stable_hash_placeholder": "No se encontró ningún hash estable.",
"no_stable_hash_help": "Para obtener un hash estable, intenta escanear el objeto varias veces con la misma configuración de escaneo.",
"@rename_snap_dialog": {},
"rename_snapshot_title": "Renombrar instantánea",
"rename_action": "Renombrar",
"@save_snap_dialog": {},
"save_snapshot_title": "Guardar instantánea",
"@create_object_dialog": {},
"create_object_title": "Crear nuevo objeto",
"create_object_input_label": "Nombre del objeto",
"create_object_input_hint": "Ingrese el nombre del objeto",
"create_object_snap_input_label": "Nombre de la instantánea",
"create_object_snap_input_hint": "Ingrese el nombre de la instantánea",
"create_action": "Crear",
"@settings_page": {},
"settings_title": "Configuración",
"choose_algorithm_label": "Elegir algoritmo",
"algorithm_button_label": "Algoritmo de escaneo",
"grid_size_label": "Tamaño de la cuadrícula",
"n_sections_label": "Secciones N",
"n_sections_help": "Consejo. Usa 66-68 secciones para Grid2d y 15-16 para Grid2d_v2, Grid2d_v3.",
"trans_bytes_input_label": "Bytes de rotación",
"trans_bytes_empty_input": "Aleatorio",
"error_n_sections_validator": "Las secciones N deben ser un número",
"hash_settings_title": "Configuración de escaneo",
"lib_version_label": "Versión de la librería:",
"wallet_settings_title": "Configuración de la billetera",
"preview_settings_title": "Configuración de vista previa",
"app_settings_title": "Configuración de la aplicación",
"stable_requirement_label": "Hash estable",
"stable_requirement_button_text": "Requisito de hash estable",
"stable_requirement_help": "Cuántas veces debe repetirse un hash para considerarse estable",
"error_stable_is_invalid": "El requisito de hash estable debe ser un número entero positivo",
"preview_settings_pixel_ratio_label": "Relación de píxeles",
"wallet_settings_istestnet_switch": "Es red de prueba",
"node_url_label": "URL del nodo",
"error_hex": "Entrada no válida. Debe tener 8 dígitos",
"pixel_ratio_help_text": "Reducir el valor reduce la calidad de la vista previa, pero aumenta el rendimiento.",
"settings_text_span_title": "Propiedades de escaneo:",
"algorithm_span": "Algoritmo",
"grid_span": "Cuadrícula",
"n_sections_span": "nSecciones",
"lib_version_span": "Versión de la librería de hash",
"trans_bytes_span": "Bytes de rotación",
"node_url_button_label": "URL del nodo",
"node_url_subpage_label": "URL del nodo",
"antialias_button_label": "Antialias",
"dark_theme_switch_label": "Tema oscuro",
"show_zero_assets_label": "Mostrar activos con cantidad cero",
"set_pin_button_label": "Establecer código PIN",
"remove_pin_button_label": "Eliminar código PIN",
"@wallet_base": {},
"wallet_header_title": "Billetera",
"create_account_button_label": "Nueva cuenta aleatoria",
"import_account_button_label": "Importar cuenta",
"init_status_sdk": "Inicializando...",
"init_status_connecting_to_node": "Conectando al nodo...",
"init_status_completed": "Conexión exitosa",
"init_status_connecting_to_node_failed": "Error al conectar al nodo",
"address_copied_to_clipboard": "Dirección copiada",
"choose_account_assets_page_drawer": "Elegir cuenta",
"@navigation": {},
"bottom_label_scan": "Escanear",
"bottom_label_wallet": "Billetera",
"bottom_label_settings": "Configuración",
"@create_account_page": {},
"create_account_title": "Generar cuenta",
"import_account_title": "Importar cuenta",
"create_warn1_header": "Ten en cuenta",
"create_warn1_text": "Nunca copiamos ni almacenamos tu mnemónico de cuenta fuera del almacenamiento de tu teléfono. Es tu responsabilidad mantenerlo seguro.",
"create_warn2_header": "Copia de seguridad del mnemónico",
"create_warn2_text": "Por favor, anota tu mnemónico y guárdalo en un lugar seguro.",
"create_warn2_text2": "El mnemónico se puede usar para restaurar tu billetera.",
"create_warn3_header": "No compartas tu mnemónico",
"create_warn3_text": "Guarda tu mnemónico cuidadosamente para no perder tus activos.",
"create_warn3_text2": "Cualquiera que tenga tu mnemónico tiene acceso completo a tu cuenta.",
"create_warn4_header": "No tomes capturas de pantalla",
"create_warn4_text": "No tomes capturas de pantalla, ya que pueden ser capturadas por malware de terceros, lo que resulta en la pérdida de activos.",
"create_warn5_header": "Ten cuidado",
"create_warn5_text": "Nunca compartas la configuración de escaneo del objeto elegido. Esto puede llevar a la pérdida de activos.",
"create_warn6_header": "Copia de seguridad de la semilla en bruto",
"create_warn6_text": "Por favor, anota la semilla en bruto elegida y guárdala en un lugar seguro.",
"create_warn6_text2": "Puede usarse para restaurar tu billetera.",
"backup_warn1_header": "Copia de seguridad del mnemónico",
"backup_warn1_text": "Por favor, anota tu mnemónico y guárdalo en un lugar seguro.",
"backup_confirm_header": "Confirmar el mnemónico",
"backup_confirm_text": "Por favor, haz clic en el mnemónico en el orden correcto para confirmar que la copia de seguridad es correcta.",
"create_credentials_name": "Nombre",
"create_credentials_name_error": "El nombre no puede estar vacío",
"create_credentials_password": "Contraseña",
"create_credentials_password_error": "6 a 18 dígitos y contiene números y letras",
"create_credentials_password2": "Confirmar Contraseña",
"create_credentials_password2_error": "Las contraseñas no coinciden",
"error_create_account": "Error. La cuenta NO fue creada.",
"create_account_loading": "Creando cuenta...",
"import_account_loading": "Importando cuenta...",
"error_import_duplicate": "Error: esta cuenta ya ha sido importada",
"error_import_invalid": "Error: esta cuenta no es válida",
"import_account_type_title": "Importar cuenta desde...",
"create_type_mnemonic": "Mnemónico",
"create_type_object": "Objeto 3D",
"create_account_from_object": "Crear cuenta desde Objeto 3D",
"create_from_object_text1": "Elegir objeto",
"create_from_object_text2": "Elegir hash estable",
"create_from_object_text2_hint": "Se usará como la semilla en bruto de tu cuenta.",
"create_from_object_error_no_stable_hashes": "ERROR. No se encontraron objetos con hashes estables.",
"import_type_mnemonic": "Mnemónico",
"import_mnemonic_hint": "Ingresar mnemónico",
"import_mnemonic_preview_placeholder": "Ingresar mnemónico para ver la dirección",
"invalid_input": "Entrada no válida",
"error_mnemonic_not_found": "Error: mnemónico no encontrado",
"error_empty_account_address": "La dirección no puede estar vacía",
"no_stable_hash_dialog_title": "Sin hash estable",
"no_stable_hash_dialog_text": "No puedes crear una cuenta desde un Objeto 3D porque no tienes un hash estable. Para crear uno, escanea el objeto varias veces o cambia el requisito de hash.",
"@assets_page": {},
"balance_avaliable_title": "Disponible",
"balance_locked_title": "Bloqueado",
"balance_reserved_title": "Reservado",
"transfer_coins_button_label": "Transferir",
"recieve_coins_button_label": "Recibir",
"remove_account_button_label": "Eliminar cuenta",
"remove_accout_dialog_title": "Eliminar cuenta {}",
"remove_accout_dialog_text": "¿Estás seguro de que deseas eliminar esta cuenta?",
"assets_title": "Activos",
"@non_native_token": {},
"non_native_token_token": "Activo {}",
"no_asset_history": "No se encontraron extrínsecos",
"mint_asset_history_label": "Crear {} {}",
"mint_asset_history_prefix": "Para:",
"set_metadata_asset_history_label": "Establecer metadatos para ID de activo: {}",
"set_metadata_asset_history_name": "Nombre: {}",
"set_metadata_asset_history_symbol": "Símbolo: {}",
"set_metadata_asset_history_decimals": "Decimales: {}",
"non_native_history_title_label": "Historial",
"create_token_widget": "Crear token",
"nnt_transfer_button_label": "Transferir activos",
"@recieve_page": {},
"recieve_page_title": "Recibir",
"@transfer_page": {},
"transfer_page_title": "Transferir",
"from_address_label": "Desde",
"to_address_label": "Dirección de destino",
"to_address_hint": "Ingresar dirección",
"amount_label": "Cantidad (Saldo: {})",
"amount_hint": "Ingresar cantidad",
"enter_password_hint": "contraseña",
"enter_password_label": "Tu contraseña",
"existential_deposit_label": "depósito existencial",
"existential_deposit_text": "La cantidad mínima que una cuenta debe tener para considerarse activa.",
"estimated_transfer_fee": "Tarifa estimada de transferencia",
"keep_alive_label": "mantener viva",
"keep_alive_text": "Con la opción mantener viva activada, la cuenta está protegida contra la eliminación debido a saldos bajos.",
"make_transfer_label": "Realizar transferencia",
"error_wrong_amount": "Se esperaba un número real más pequeño que el saldo disponible",
"could_not_check_address": "No se pudo verificar la dirección",
"wrong_address": "Dirección no válida proporcionada",
"transfer_loader_text": "Transfiriendo...",
"transfer_success_text": "Los fondos han sido enviados",
"error_empty": "No debe estar vacío",
"@transactions_history": {},
"transactions_to": "Para",
"transactions_from": "De",
"transactions_title": "Historial de Transacciones",
"show_transfers": "Mostrar transferencias",
"no_transfers": "No se encontraron transferencias",
"first_page_error_title": "Algo salió mal",
"first_page_error_message": "La aplicación ha encontrado un error desconocido.\nPor favor, inténtalo de nuevo más tarde.",
"first_page_error_button": "Intentar de nuevo",
"@Screen_lock": {},
"screen_lock_title": "Ingresar código PIN",
"screen_lock_title_set": "Establecer tu código PIN",
"screen_lock_title_confirm": "Confirmar tu código PIN"
}
1 change: 1 addition & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>es</string>
<string>sr</string>
</array>
<key>CFBundleName</key>
Expand Down
4 changes: 2 additions & 2 deletions lib/core/persistence/hive_universal_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class HiveUniversalStore<T> {
/// Delete object by unknown key
Future<StorageError?> removeObject(final T value) async {
final map = _box.toMap();
final key =
map.keys.firstWhere((final k) => map[k] == value, orElse: () => null);
final dynamic key = map.keys
.firstWhere((final dynamic k) => map[k] == value, orElse: () => null);

if (key != null) {
await _box.delete(key);
Expand Down
9 changes: 6 additions & 3 deletions lib/core/polkawallet/app_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class AppService {
required this.status,
final NetworkStateData? networkStateData,
}) : networkStateData = networkStateData ?? NetworkStateData(),
balance = ValueNotifier<BalanceData>(BalanceData()),
chosenAccountBalance = ValueNotifier<BalanceData>(BalanceData()),
tokensAreLoading = ValueNotifier<bool>(false);

final ValueNotifier<BalanceData> balance;
final ValueNotifier<BalanceData> chosenAccountBalance;
final ValueNotifier<bool> tokensAreLoading;
// final ValueNotifier<String> bestNumber = ValueNotifier<String>('');
final Keyring keyring;
Expand Down Expand Up @@ -56,7 +56,10 @@ class AppService {
address,
(final data) async {
getIt<Logger>().i('Balance updated: ${data.availableBalance}');
balance.value = data;

if (keyring.current.address == data.accountId) {
chosenAccountBalance.value = data;
}

tokensAreLoading.value = true;
await _setTokensData(address);
Expand Down
Loading

0 comments on commit 8c8e4f0

Please sign in to comment.