@@ -14,14 +14,14 @@ task buildOpenSSL() {
1414 exec {
1515 workingDir " ${ projectDir} "
1616 commandLine " ./build-openssl-libraries.sh" ,
17- " ${ minimumAndroidSdkVersion} " ,
18- " ${ minimumAndroid64BitSdkVersion} " ,
19- " ${ opensslVersion} "
17+ " ${ minimumAndroidSdkVersion} " ,
18+ " ${ minimumAndroid64BitSdkVersion} " ,
19+ " ${ opensslVersion} "
2020 }
2121 }
2222}
2323
24- task buildAmalgamation () {
24+ task buildAmalgamation () {
2525 onlyIf {
2626 def amalgamation = new File (" ${ projectDir} /src/main/external/sqlcipher/sqlite3.c" )
2727 return ! amalgamation. exists()
@@ -35,7 +35,7 @@ task buildAmalgamation () {
3535 exec {
3636 workingDir " ${ projectDir} /src/main/external/sqlcipher"
3737 environment(" CFLAGS" , " ${ sqlcipherCFlags} " )
38- commandLine " make" , " sqlite3.c"
38+ commandLine " make" , " sqlite3.c"
3939 }
4040 }
4141}
@@ -47,14 +47,14 @@ task buildNative() {
4747 " ${ nativeRootOutputDir} /libs32" ,
4848 file(" src/main/cpp" ). absolutePath,
4949 file(" src/main/cpp/Application32.mk" ). absolutePath,
50- " ${ sqlcipherCFlags} " , " ${ otherSqlcipherCFlags} " ,
51- " ${ minimumAndroidSdkVersion} " )
50+ " ${ sqlcipherCFlags} " , " ${ otherSqlcipherCFlags} " ,
51+ " ${ minimumAndroidSdkVersion} " )
5252 executeNdkBuild(
5353 " ${ nativeRootOutputDir} /libs64" ,
5454 file(" src/main/cpp" ). absolutePath,
5555 file(" src/main/cpp/Application64.mk" ). absolutePath,
56- " ${ sqlcipherCFlags} " , " ${ otherSqlcipherCFlags} " ,
57- " ${ minimumAndroid64BitSdkVersion} " )
56+ " ${ sqlcipherCFlags} " , " ${ otherSqlcipherCFlags} " ,
57+ " ${ minimumAndroid64BitSdkVersion} " )
5858 exec {
5959 workingDir " ${ nativeRootOutputDir} "
6060 commandLine " mkdir" , " -p" , " libs"
@@ -73,7 +73,7 @@ task cleanOpenSSL() {
7373 doLast {
7474 logger. info " Cleaning OpenSSL source"
7575 File file = new File (" ${ opensslDir} " )
76- if (file. exists()){
76+ if (file. exists()) {
7777 file. deleteDir()
7878 }
7979 }
@@ -86,8 +86,8 @@ task cleanSQLCipher() {
8686 gitClean(" ${ sqlcipherDir} " )
8787 File amalgamationSource = new File (" ${ sqlcipherDir} /sqlite3.c" )
8888 File amalgamationHeader = new File (" ${ sqlcipherDir} /sqlite3.h" )
89- if (amalgamationSource. exists()) amalgamationSource. delete()
90- if (amalgamationHeader. exists()) amalgamationHeader. delete()
89+ if (amalgamationSource. exists()) amalgamationSource. delete()
90+ if (amalgamationHeader. exists()) amalgamationHeader. delete()
9191 }
9292}
9393
@@ -97,7 +97,7 @@ task cleanNative() {
9797 logger. info " Cleaning native build artifacts"
9898 [" libs" , " libs32" , " libs64" , " obj" ]. each {
9999 File file = new File (" ${ projectDir} /src/main/${ it} " )
100- if (file. exists()){
100+ if (file. exists()) {
101101 file. deleteDir()
102102 }
103103 }
@@ -138,15 +138,15 @@ def executeNdkBuild(outputDir, androidMkDirectory, applicationMkFile,
138138 exec {
139139 def outputDirectory = " NDK_LIBS_OUT=${ outputDir} "
140140 def applicationFile = " NDK_APPLICATION_MK=${ applicationMkFile} "
141- def environmentVariables = [" SQLCIPHER_CFLAGS" : " ${ cflags} " ,
142- " OPENSSL_DIR" : " ${ opensslDir} " ,
143- " SQLCIPHER_DIR" : " ${ sqlcipherDir} " ,
141+ def environmentVariables = [" SQLCIPHER_CFLAGS" : " ${ cflags} " ,
142+ " OPENSSL_DIR" : " ${ opensslDir} " ,
143+ " SQLCIPHER_DIR" : " ${ sqlcipherDir} " ,
144144 " SQLCIPHER_OTHER_CFLAGS" : " ${ otherSqlcipherCFlags} " ,
145145 " ANDROID_NATIVE_ROOT_DIR" : " ${ androidNativeRootDir} " ,
146- " NDK_APP_PLATFORM" : " ${ androidVersion} " ]
146+ " NDK_APP_PLATFORM" : " ${ androidVersion} " ]
147147 environment(environmentVariables)
148148 commandLine " ndk-build" , " ${ ndkBuildType} " ,
149- " --environment-overrides" , outputDirectory,
150- " -C" , androidMkDirectory, applicationFile
149+ " --environment-overrides" , outputDirectory,
150+ " -C" , androidMkDirectory, applicationFile
151151 }
152152}
0 commit comments