Skip to content

Commit

Permalink
PASS1-590: made the simulator always include dev functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mjg-foundation committed Mar 29, 2023
1 parent 2d27373 commit dd797b9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 54 deletions.
4 changes: 0 additions & 4 deletions ports/stm32/boards/Passport/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@
'flows/casa_health_check_qr_flow.py',
'flows/change_pin_flow.py',
'flows/delete_account_flow.py',
'flows/delete_derived_keys_flow.py',
'flows/delete_multisig_flow.py',
'flows/developer_functions_flow.py',
'flows/envoy_setup_flow.py',

'flows/erase_passport_flow.py',
Expand Down Expand Up @@ -136,7 +134,6 @@
'flows/sign_psbt_microsd_flow.py',
'flows/sign_psbt_qr_flow.py',
'flows/sign_text_file_flow.py',
'flows/spin_delay_flow.py',
'flows/terms_of_use_flow.py',
'flows/update_firmware_flow.py',
'flows/verify_address_flow.py',
Expand All @@ -156,7 +153,6 @@
('pages/__init__.py',
'pages/account_details_page.py',
'pages/backup_code_page.py',
'pages/battery_page.py',
'pages/brandmark_page.py',
'pages/chooser_page.py',
'pages/color_picker_page.py',
Expand Down
2 changes: 0 additions & 2 deletions ports/stm32/boards/Passport/modules/developer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#
# __init__.py

from .developer import *

from .developer_functions_flow import *
from .spin_delay_flow import *
from .delete_derived_keys_flow import *
Expand Down
3 changes: 0 additions & 3 deletions ports/stm32/boards/Passport/modules/flows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
from .casa_health_check_qr_flow import *
from .change_pin_flow import *
from .delete_account_flow import *
from .delete_derived_keys_flow import *
from .delete_multisig_flow import *
from .developer_functions_flow import *
from .erase_passport_flow import *
from .export_multisig_microsd_flow import *
from .export_multisig_qr_flow import *
Expand Down Expand Up @@ -60,7 +58,6 @@
from .sign_psbt_common_flow import *
from .sign_psbt_microsd_flow import *
from .sign_psbt_qr_flow import *
from .spin_delay_flow import *
from .system_test_camera_flow import *
from .system_test_microsd_flow import *
from .system_test_flow import *
Expand Down

This file was deleted.

7 changes: 5 additions & 2 deletions ports/stm32/boards/Passport/modules/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,14 @@ def developer_menu():
LoginFlow,
NewSeedFlow,
SetInitialPINFlow,
)
from developer import (
BatteryPage,
DeleteDerivedKeysFlow,
DeveloperFunctionsFlow,
SpinDelayFlow,
DeleteDerivedKeysFlow
)
from pages import BatteryPage, StatusPage, ShowQRPage
from pages import StatusPage, ShowQRPage
from data_codecs.qr_type import QRType
from foundation import ur

Expand Down
1 change: 0 additions & 1 deletion ports/stm32/boards/Passport/modules/pages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from .address_type_chooser_page import *
from .auto_shutdown_setting_page import *
from .backup_code_page import *
from .battery_page import *
from .brandmark_page import *
from .brightness_setting_page import *
from .chain_setting_page import *
Expand Down
1 change: 1 addition & 0 deletions simulator/sim_modules/passport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

IS_SIMULATOR = True
IS_COLOR = sys.argv[6] == 'color'
IS_DEV = True
HAS_FUEL_GAUGE = False


Expand Down

0 comments on commit dd797b9

Please sign in to comment.