Skip to content

Commit 22adc9c

Browse files
Allow clean command to run without specifying CFLAGS
1 parent 4915a03 commit 22adc9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ ext {
8686
&& project.sqlcipherCFlags?.trim()
8787
&& project.sqlcipherCFlags?.contains('SQLITE_HAS_CODEC')
8888
&& project.sqlcipherCFlags?.contains('SQLITE_TEMP_STORE')) {
89-
sqlcipherCFlags = "${sqlcipherCFlags}"
89+
sqlcipherCFlags = "${sqlcipherCFlags}"
9090
} else {
91-
throw new InvalidUserDataException("SQLCIPHER_CFLAGS environment variable must be specified and include at least '-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2'")
91+
if(!project.gradle.startParameter.taskNames.toString().contains('clean')){
92+
throw new InvalidUserDataException("SQLCIPHER_CFLAGS environment variable must be specified and include at least '-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2'")
93+
}
9294
}
9395
}
9496

0 commit comments

Comments
 (0)