Skip to content

Commit

Permalink
chore(afrim-jni): update afrim dependencies (#24)
Browse files Browse the repository at this point in the history
We can't wait the release of the afrim to get some important updates.
We will fetch the afrim crate directly from github.
  • Loading branch information
pythonbrad authored Mar 31, 2024
1 parent cbb635d commit c515b53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions app/src/main/jni/afrim_jni/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ inhibit = ["afrim-preprocessor/inhibit"]
rhai = ["afrim-translator/rhai", "afrim-config/rhai"]

[dependencies]
afrim-config = { version = "0.4.4", default-features = false }
afrim-preprocessor = { version = "0.6.0", default-features = false, features = ["serde"] }
afrim-translator = { version = "0.1.4", default-features = false }
afrim-config = { version = "0.4.4", default-features = false, git = "https://github.com/pythonbrad/afrim", rev = "81c8a2e" }
afrim-preprocessor = { version = "0.6.0", default-features = false, git = "https://github.com/pythonbrad/afrim", rev = "81c8a2e", features = ["serde"] }
afrim-translator = { version = "0.1.4", default-features = false, git = "https://github.com/pythonbrad/afrim", rev = "81c8a2e" }
anyhow = "1.0.81"
indexmap = "2.2.3"
jni = "0.21.1"
once_cell = "1.19.0"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/jni/afrim_jni/src/afrim_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl Afrim {

/// Commits the text.
pub fn commit_text(&mut self, text: String) {
self.preprocessor.commit(&text);
self.preprocessor.commit(text);
}

/// Returns the next command to be executed.
Expand All @@ -99,7 +99,7 @@ impl Afrim {

/// Clears the afrim.
pub fn clear(&mut self) {
self.preprocessor.commit("");
self.preprocessor.commit("".to_owned());
self.preprocessor.clear_queue();
}
}
Expand Down

0 comments on commit c515b53

Please sign in to comment.