Skip to content

Commit

Permalink
update to sdk 1.0.1 for SD+ support
Browse files Browse the repository at this point in the history
  • Loading branch information
fcannizzaro committed Jan 2, 2023
1 parent f95a29d commit 847edde
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ futures = "0.3"
futures-util = "0.3"
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.21.2", features = ["full"] }
stream_deck_sdk = { version="1.0.0", features = ["download", "images", "logging"] }
stream_deck_sdk = { version="1.0.1", features = ["download", "images", "logging"] }
warp = "0.3.3"
skia-safe = "0.57.0"
tokio-stream = "0.1.11"
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/authorization.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use serde::Serialize;
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::SendToPluginEvent;
use stream_deck_sdk::events::events::SendToPluginEvent;
use stream_deck_sdk::stream_deck::StreamDeck;

use crate::dim::with_action;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/farming_mode.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use serde::Deserialize;
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::{AppearEvent, DidReceiveGlobalSettingsEvent, KeyEvent};
use stream_deck_sdk::events::events::{AppearEvent, DidReceiveGlobalSettingsEvent, KeyEvent};
use stream_deck_sdk::stream_deck::StreamDeck;

use crate::dim::with_action;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/loadout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
use serde_json::json;
use skia_safe::{Color, Rect};
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::{
use stream_deck_sdk::events::events::{
AppearEvent, DidReceiveSettingsEvent, KeyEvent, SendToPluginEvent,
};
use stream_deck_sdk::get_settings;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/max_power.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use skia_safe::{Color, Point};
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::{
use stream_deck_sdk::events::events::{
AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent, KeyEvent,
};
use stream_deck_sdk::get_settings;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use separator::Separatable;
use serde::{Deserialize, Serialize};
use skia_safe::Point;
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::{
use stream_deck_sdk::events::events::{
AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent,
};
use stream_deck_sdk::get_settings;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/open_dim.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::KeyEvent;
use stream_deck_sdk::events::events::KeyEvent;
use stream_deck_sdk::get_settings;
use stream_deck_sdk::stream_deck::StreamDeck;

Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/postmaster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use skia_safe::Point;
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::{
use stream_deck_sdk::events::events::{
AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent, KeyEvent,
};
use stream_deck_sdk::get_settings;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/pull_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use skia_safe::color_filters::matrix;
use skia_safe::image_filters::blur;
use skia_safe::{Color, Point, Rect};
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::{
use stream_deck_sdk::events::events::{
AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent, KeyEvent,
SendToPluginEvent,
};
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/randomize.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::KeyEvent;
use stream_deck_sdk::events::events::KeyEvent;
use stream_deck_sdk::get_settings;
use stream_deck_sdk::stream_deck::StreamDeck;

Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/refresh.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::dim::with_action;
use async_trait::async_trait;
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::KeyEvent;
use stream_deck_sdk::events::events::KeyEvent;
use stream_deck_sdk::stream_deck::StreamDeck;

pub struct RefreshAction;
Expand Down
5 changes: 3 additions & 2 deletions rust/src/actions/search.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::{KeyEvent};
use stream_deck_sdk::events::events::KeyEvent;
use stream_deck_sdk::get_settings;
use stream_deck_sdk::stream_deck::StreamDeck;

Expand Down Expand Up @@ -39,7 +39,8 @@ impl Action for SearchAction {
sd.external(with_action(
"search",
serde_json::to_string(&settings).unwrap(),
)).await;
))
.await;
sd.show_ok(e.context).await;
} else {
sd.show_alert(e.context).await;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/actions/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use separator::Separatable;
use serde::{Deserialize, Serialize};
use skia_safe::Point;
use stream_deck_sdk::action::Action;
use stream_deck_sdk::events::received::{
use stream_deck_sdk::events::events::{
AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent,
};
use stream_deck_sdk::get_settings;
Expand Down

0 comments on commit 847edde

Please sign in to comment.