Commit 6d843fd3 authored by Mygod's avatar Mygod

Add cargo clean task

parent e6aebe03
import com.android.build.gradle.internal.tasks.factory.dependsOn
plugins {
id("com.android.library")
id("org.mozilla.rust-android-gradle.rust-android")
......@@ -62,6 +64,13 @@ tasks.whenTaskAdded {
}
}
tasks.register<Exec>("cargoClean") {
executable("cargo") // cargo.cargoCommand
args("clean")
workingDir("$projectDir/${cargo.module}")
}
tasks.clean.dependsOn("cargoClean")
dependencies {
val coroutinesVersion = "1.3.5"
val roomVersion = "2.2.5"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment