Skip to content

Commit 4915a03

Browse files
Verify required CFLAG values are included during build
1 parent db5e58a commit 4915a03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ ext {
8282
otherSqlcipherCFlags = "-DLOG_NDEBUG -fstack-protector-all"
8383
ndkBuildType="NDK_DEBUG=0"
8484
}
85-
if(project.hasProperty('sqlcipherCFlags') && project.sqlcipherCFlags?.trim()) {
85+
if(project.hasProperty('sqlcipherCFlags')
86+
&& project.sqlcipherCFlags?.trim()
87+
&& project.sqlcipherCFlags?.contains('SQLITE_HAS_CODEC')
88+
&& project.sqlcipherCFlags?.contains('SQLITE_TEMP_STORE')) {
8689
sqlcipherCFlags = "${sqlcipherCFlags}"
8790
} else {
8891
throw new InvalidUserDataException("SQLCIPHER_CFLAGS environment variable must be specified and include at least '-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2'")

0 commit comments

Comments
 (0)