8000 Move OpenSSL artifact cleanup to distclean · passy/android-database-sqlcipher@99a77ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 99a77ae

Browse files
Move OpenSSL artifact cleanup to distclean
1 parent 2467435 commit 99a77ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

android-database-sqlcipher/native.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,14 @@ task cleanNative() {
7171
["libs32", "libs64", "obj"].each {
7272
new File("${projectDir}/src/main/${it}").deleteDir()
7373
}
74-
new File("${androidNativeRootDir}/").deleteDir()
7574
}
7675
}
7776

7877
task distclean(dependsOn: [clean, cleanSQLCipher, cleanOpenSSL]) {
7978
description "Clean build, SQLCipher, and OpenSSL artifacts"
79+
doLast {
80+
new File("${androidNativeRootDir}/").deleteDir()
81+
}
8082
}
8183

8284
def gitClean(directory) {
@@ -93,7 +95,8 @@ def executeNdkBuild(outputDir, androidMkDirectory, applicationMkFile, cflags) {
9395
def outputDirectory = "NDK_LIBS_OUT=${outputDir}"
9496
def applicationFile = "NDK_APPLICATION_MK=${applicationMkFile}"
9597
environment("SQLCIPHER_CFLAGS", "${cflags}")
96-
commandLine "ndk-build", "--environment-overrides", outputDirectory,
98+
commandLine "ndk-build",
99+
"--environment-overrides", outputDirectory,
97100
"-C", androidMkDirectory, applicationFile
98101
}
99102
}

0 commit comments

Comments
 (0)
0