build(deps): bump ohos-ime from 0.2.0 to 0.3.0 (#37180)

This patch updates the ohos-ime version from v0.2.0 to v0.3.0

Testing: N/A
Fixes: #37181

Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
Shubham Gupta 2025-05-29 17:50:33 +08:00 committed by GitHub
parent 1f315e6c9c
commit 54f23a8e3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View file

@ -5395,9 +5395,9 @@ dependencies = [
[[package]] [[package]]
name = "ohos-ime" name = "ohos-ime"
version = "0.2.0" version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48107e68ed8451c17c2ff95938e1ba86003fb290a04f7a0213ce2d16ce4b3ee6" checksum = "ee3ea454e31a3372cd9c4ed903db4fae861e92f57cf51852a3cd80f9d3945dcd"
dependencies = [ dependencies = [
"log", "log",
"ohos-ime-sys", "ohos-ime-sys",

View file

@ -90,7 +90,7 @@ hilog = "0.2.0"
ipc-channel = { workspace = true, features = ["force-inprocess"] } ipc-channel = { workspace = true, features = ["force-inprocess"] }
napi-derive-ohos = "1.0.4" napi-derive-ohos = "1.0.4"
napi-ohos = "1.0.4" napi-ohos = "1.0.4"
ohos-ime = "0.2" ohos-ime = "0.3.0"
ohos-ime-sys = "0.1.4" ohos-ime-sys = "0.1.4"
ohos-vsync = "0.1.3" ohos-vsync = "0.1.3"
xcomponent-sys = { version = "0.3.1", features = ["api-12", "keyboard-types"] } xcomponent-sys = { version = "0.3.1", features = ["api-12", "keyboard-types"] }

View file

@ -867,14 +867,14 @@ impl HostTrait for HostCallbacks {
let mut ime_proxy = self.ime_proxy.borrow_mut(); let mut ime_proxy = self.ime_proxy.borrow_mut();
let ime = ime_proxy.get_or_insert_with(|| { let ime = ime_proxy.get_or_insert_with(|| {
let attach_options = AttachOptions::new(true); let attach_options = AttachOptions::new(true);
let editor = RawTextEditorProxy::new();
let configbuilder = ohos_ime::TextConfigBuilder::new(); let configbuilder = ohos_ime::TextConfigBuilder::new();
let options = convert_ime_options(input_type, multiline); let options = convert_ime_options(input_type, multiline);
let text_config = configbuilder let text_config = configbuilder
.input_type(options.input_type) .input_type(options.input_type)
.enterkey_type(options.enterkey_type) .enterkey_type(options.enterkey_type)
.build(); .build();
ImeProxy::new(editor, attach_options, Box::new(ServoIme { text_config })) let editor = RawTextEditorProxy::new(Box::new(ServoIme { text_config }));
ImeProxy::new(editor, attach_options)
}); });
match ime.show_keyboard() { match ime.show_keyboard() {
Ok(()) => debug!("IME show keyboard - success"), Ok(()) => debug!("IME show keyboard - success"),