Skip to content

Commit

Permalink
更新了依赖,并修复构建脚本cargo:rerun-if-changed不起作用的问题;
Browse files Browse the repository at this point in the history
发布0.2.9版本。
  • Loading branch information
SmileSky committed Aug 19, 2024
1 parent c8173e4 commit 85b9cac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors = ["mzdk100 <[email protected]>"]
description = "用于Rust的Android API的高级封装"
keywords = ["android", "api", "sdk", "jni", "java"]
license = "Apache-2.0"
version = "0.2.8"
version = "0.2.9"
edition = "2021"
readme = "README.md"
repository = "https://gitcode.net/mzdk100/droid-wrap.git"
Expand Down Expand Up @@ -65,11 +65,11 @@ test_java_nio = ["java_nio"]
[dependencies]

[dependencies.droid-wrap-utils]
version = "0.2.8"
version = "0.2.9"
path = "utils"

[dependencies.droid-wrap-derive]
version = "0.2.8"
version = "0.2.9"
path="derive"

[workspace]
Expand Down
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ quote = "1.0.36"

[dependencies.syn]
features = ["full"]
version = "2.0.72"
version = "2.0.75"

[lib]
proc-macro = true
1 change: 0 additions & 1 deletion example/src/activity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use droid_wrap::{
},
},
java::lang::{CharSequenceExt, CharSequenceImpl, RunnableImpl},
JProxy,
};
use mobile_entry_point::mobile_entry_point;
use std::sync::Arc;
Expand Down
2 changes: 2 additions & 0 deletions utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ parking_lot = "0.12.3"
[build-dependencies]
android-build = "0.1.0"
noak = "0.6.1"
cargo-emit = "0.2.1"

4 changes: 2 additions & 2 deletions utils/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* See the License for the specific language governing permissions and limitations under the License.
*/

use cargo_emit::rerun_if_changed;
use noak::{writer::ClassWriter, AccessFlags};
use std::{
collections::HashMap,
Expand Down Expand Up @@ -67,7 +68,7 @@ fn main() {
return;
}

println!("cargo:rerun-if-changed=build.rs");
rerun_if_changed!("build.rs");
let out_dir = PathBuf::from(var("OUT_DIR").unwrap());
const CLASS: &str = "rust/CallMethodHook";
let java_class_path = out_dir.join("CallMethodHook.class");
Expand Down Expand Up @@ -105,5 +106,4 @@ fn main() {
.run()
.expect("failed to acquire exit status for java d8.jar invocation")
.success();
println!("cargo:rerun-if-changed={}", java_class_path.display());
}

0 comments on commit 85b9cac

Please sign in to comment.