Skip to content

Commit 1e9404b

Browse files
committed
Cleanup unnecessary files
Signed-off-by: Hui-Hong You <hiroshi@ghostsinthelab.org>
1 parent da7270b commit 1e9404b

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,22 @@ android {
182182
isIgnoreExitValue = true
183183
}
184184

185+
tasks.register<Delete>("deleteChewingBuildDirectory") {
186+
onlyIf { file("$chewingLibraryPath/build/Makefile").exists() }
187+
delete("$chewingLibraryPath/build")
188+
}
189+
190+
tasks.register<Delete>("deleteBuiltAarFile") {
191+
delete("$rootDir/app/build/outputs/aar/${projectName}-${versionName}.aar")
192+
}
193+
185194
tasks.clean {
186-
dependsOn("cleanChewingDataFiles", "execMakeClean")
195+
dependsOn(
196+
"cleanChewingDataFiles",
197+
"execMakeClean",
198+
"deleteChewingBuildDirectory",
199+
"deleteBuiltAarFile"
200+
)
187201
}
188202
}
189203

0 commit comments

Comments
 (0)