Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should SQLCIPHER_CFLAGS be optional or not? #614

Open
brodycj opened this issue Jan 10, 2023 · 3 comments
Open

Should SQLCIPHER_CFLAGS be optional or not? #614

brodycj opened this issue Jan 10, 2023 · 3 comments

Comments

@brodycj
Copy link
Contributor

brodycj commented Jan 10, 2023

It looks to me like SQLCIPHER_CFLAGS was documented as optional, but this changed in 310abc1

But it looks like this code still has some default C flags: https://github.com/sqlcipher/android-database-sqlcipher/blob/master/build.gradle#L88-L108

@developernotes
Copy link
Member

Hi @brodybits,

You are correct, SQLCIPHER_CFLAGS is required for the build. I will remove the remnant default flags and in place provide an error message failing the build with the following message:

* What went wrong:
A problem occurred evaluating root project 'android-database-sqlcipher'.
> SQLCIPHER_CFLAGS environment variable must be specified and include at least '-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2'

@brodycj
Copy link
Contributor Author

brodycj commented Jan 10, 2023

Was there a special reason for removing the default SQLCIPHER_CFLAGS?

It looked like a nice convenience to me.

@developernotes
Copy link
Member

Hi @brodybits,

The intention is to favor explicitness in the build. We do not rely on the previous default values for other SQLCipher for Android builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants