Skip to content

Commit

Permalink
build.gradle.kts: Dynamically query list of .rs inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
  • Loading branch information
chenxiaolong committed Jul 18, 2024
1 parent 443ffc4 commit e086e48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ for ((target, abi) in listOf(
inputs.files(
File(rootDir, "Cargo.lock"),
File(srcDir, "Cargo.toml"),
File(File(srcDir, "src"), "main.rs"),
File(srcDir, "src").listFiles()!!.filter {
it.endsWith(".rs")
},
)
inputs.properties(
"android.defaultConfig.minSdk" to android.defaultConfig.minSdk,
Expand Down

0 comments on commit e086e48

Please sign in to comment.