File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
android-database-sqlcipher Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,8 @@ android-database-sqlcipher/src/main/external/android-libs/
7
7
android-database-sqlcipher /.externalNativeBuild /
8
8
android-database-sqlcipher /src /main /libs *
9
9
android-database-sqlcipher /src /main /obj
10
- android-database-sqlcipher /src /main /external /openssl- * /
10
+ android-database-sqlcipher /src /main /external /openssl- * /
11
+
12
+ local.properties
13
+ * .iml
14
+ .idea
Original file line number Diff line number Diff line change 1
- task buildOpenSSL () {
1
+ import org.gradle.internal.logging.text.StyledTextOutputFactory
2
+ import static org.gradle.internal.logging.text.StyledTextOutput.Style
3
+
4
+ task buildOpenSSL () {
2
5
onlyIf {
3
6
def armNativeFile = new File (" ${ androidNativeRootDir} /armeabi/libcrypto.a" )
7
+ if (armNativeFile. exists()) {
8
+ def out = services. get(StyledTextOutputFactory ). create(" " )
9
+ out. style(Style.Normal ). text(" ${ androidNativeRootDir} /armeabi/libcrypto.a exists" ). style(Style.Info ). println (' SKIPPED' )
10
+ }
4
11
return ! armNativeFile. exists()
5
12
}
6
13
doLast {
@@ -119,6 +126,15 @@ def gitClean(directory) {
119
126
def executeNdkBuild (outputDir , androidMkDirectory , applicationMkFile ,
120
127
cflags , otherSqlcipherCFlags , androidVersion ) {
121
128
logger. info " Executing NDK build command"
129
+
130
+ def out = services. get(StyledTextOutputFactory ). create(" " )
131
+ out. style(Style.Normal ). text(" SQLCIPHER_CFLAGS=" ). style(Style.Info ). println (" ${ cflags} " )
132
+ out. style(Style.Normal ). text(" OPENSSL_DIR=" ). style(Style.Info ). println (" ${ opensslDir} " )
133
+ out. style(Style.Normal ). text(" SQLCIPHER_DIR=" ). style(Style.Info ). println (" ${ sqlcipherDir} " )
134
+ out. style(Style.Normal ). text(" SQLCIPHER_OTHER_CFLAGS=" ). style(Style.Info ). println (" ${ otherSqlcipherCFlags} " )
135
+ out. style(Style.Normal ). text(" ANDROID_NATIVE_ROOT_DIR=" ). style(Style.Info ). println (" ${ androidNativeRootDir} " )
136
+ out. style(Style.Normal ). text(" NDK_APP_PLATFORM=" ). style(Style.Info ). println (" ${ androidVersion} " )
137
+
122
138
exec {
123
139
def outputDirectory = " NDK_LIBS_OUT=${ outputDir} "
124
140
def applicationFile = " NDK_APPLICATION_MK=${ applicationMkFile} "
You can’t perform that action at this time.
0 commit comments