@@ -40,25 +40,19 @@ task buildNative64() {
40
40
}
41
41
}
42
42
43
- task cleanOpenSSL {
43
+ task cleanOpenSSL () {
44
44
description " Clean the OpenSSL source"
45
45
doLast {
46
- logger. info " Cleaning OpenSSL directory:${ rootProject.ext.opensslDir} "
47
- exec {
48
- workingDir " ${ rootProject.ext.opensslDir} "
49
- commandLine " git" , " checkout" , " -f"
50
- }
46
+ logger. info " Cleaning OpenSSL source"
47
+ gitClean(" ${ rootProject.ext.opensslDir} " )
51
48
}
52
49
}
53
50
54
51
task cleanSQLCipher () {
55
52
description " Clean the SQLCipher source"
56
53
doLast {
57
- logger. info " Cleaning SQLCipher directory:${ rootProject.ext.sqlcipherDir} "
58
- exec {
59
- workingDir " ${ rootProject.ext.sqlcipherDir} "
60
- commandLine " git" , " checkout" , " -f"
61
- }
54
+ logger. info " Cleaning SQLCipher source"
55
+ gitClean(" ${ rootProject.ext.sqlcipherDir} " )
62
56
}
63
57
}
64
58
@@ -73,6 +67,14 @@ task cleanNative() {
73
67
}
74
68
}
75
69
70
+ def gitClean (directory ) {
71
+ logger. info " Cleaning directory:${ directory} "
72
+ exec {
73
+ workingDir " ${ directory} "
74
+ commandLine " git" , " checkout" , " -f"
75
+ }
76
+ }
77
+
76
78
def executeNdkBuild (outputDir , androidMkDirectory , applicationMkFile , cflags ) {
77
79
logger. info " Executing NDK build command"
78
80
exec {
0 commit comments