Skip to content

Commit

Permalink
Add pending_review_screen as an app's feature only
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Feb 1, 2024
1 parent 36b4c56 commit 5427b1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ opt-level = 'z'
lto = true

[features]
pending_review_screen = ["ledger_device_sdk/pending_review_screen"]
default = ["pending_review_screen"]
pending_review_screen = []

[package.metadata.ledger]
curve = ["secp256k1"]
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ use handlers::{
sign_tx::{handler_sign_tx, TxContext},
};
use ledger_device_sdk::io::{ApduHeader, Comm, Event, Reply, StatusWords};
#[cfg(feature = "pending_review_screen")]
use ledger_device_sdk::ui::gadgets::display_pending_review;

ledger_device_sdk::set_panic!(ledger_device_sdk::exiting_panic);
Expand Down Expand Up @@ -125,6 +126,7 @@ extern "C" fn sample_main() {

// Developer mode / pending review popup
// must be cleared with user interaction
#[cfg(feature = "pending_review_screen")]
display_pending_review(&mut comm);

let mut tx_ctx = TxContext::new();
Expand Down

0 comments on commit 5427b1c

Please sign in to comment.