Skip to content

Commit

Permalink
feat(build): rerun if kotlin out directory changes (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Jan 10, 2023
1 parent 6f5322a commit 1cf92e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/rerun-build-script-android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": patch
---

Rerun build script if the `WRY_ANDROID_KOTLIN_FILES_OUT_DIR` directory changes.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ fn main() {
let package = env_var("WRY_ANDROID_PACKAGE");
let library = env_var("WRY_ANDROID_LIBRARY");

println!("cargo:rerun-if-changed={kotlin_out_dir}");

let kotlin_out_dir = PathBuf::from(&kotlin_out_dir)
.canonicalize()
.unwrap_or_else(move |_| {
Expand Down

0 comments on commit 1cf92e2

Please sign in to comment.