Skip to content

Commit 3392ba1

Browse files
Clean up sqlcipher tsrc directory during distclean
1 parent 23c09e9 commit 3392ba1

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

android-database-sqlcipher/native.gradle

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,15 @@ task cleanOpenSSL() {
8585

8686
task cleanSQLCipher() {
8787
description "Clean the SQLCipher source"
88-
doLast {
89-
logger.info "Cleaning SQLCipher source"
90-
gitClean("${sqlcipherDir}")
91-
File amalgamationSource = new File("${sqlcipherDir}/sqlite3.c")
92-
File amalgamationHeader = new File("${sqlcipherDir}/sqlite3.h")
93-
File amalgamationDestinationSource = new File("${nativeRootOutputDir}/cpp/sqlite3.c")
94-
File amalgamationDestinationHeader = new File("${nativeRootOutputDir}/cpp/sqlite3.h")
95-
if (amalgamationSource.exists()) amalgamationSource.delete()
96-
if (amalgamationHeader.exists()) amalgamationHeader.delete()
97-
if (amalgamationDestinationSource.exists()) amalgamationDestinationSource.delete()
98-
if (amalgamationDestinationHeader.exists()) amalgamationDestinationHeader.delete()
99-
}
88+
gitClean("${sqlcipherDir}")
89+
exec {
90+
workingDir "${sqlcipherDir}"
91+
commandLine "make", "clean"
92+
}
93+
File amalgamationDestinationSource = new File("${nativeRootOutputDir}/cpp/sqlite3.c")
94+
File amalgamationDestinationHeader = new File("${nativeRootOutputDir}/cpp/sqlite3.h")
95+
if (amalgamationDestinationSource.exists()) amalgamationDestinationSource.delete()
96+
if (amalgamationDestinationHeader.exists()) amalgamationDestinationHeader.delete()
10097
}
10198

10299
task cleanNative() {

0 commit comments

Comments
 (0)