Skip to content

Commit

Permalink
Clean cargo on gradle clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Dec 19, 2024
1 parent 5c4a2cb commit acbbd99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,16 @@ tasks.register<Exec>("generateRelayList") {
}
}

tasks.register<Exec>("cargoClean") {
workingDir = File(repoRootPath)
commandLine("cargo", "clean")
}

if(gradleLocalProperties(rootProject.projectDir, providers)
.getProperty("CLEAN_CARGO_BUILD")?.toBoolean() != false) {
tasks["clean"].dependsOn("cargoClean")
}

fun isReleaseBuild() =
gradle.startParameter.getTaskNames().any { it.contains("release", ignoreCase = true) }

Expand Down

0 comments on commit acbbd99

Please sign in to comment.