Skip to content

Commit 310abc1

Browse files
Add SQLCIPHER_CFLAGS environment variable to build instructions
1 parent a3a4a5a commit 310abc1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The latest AAR binary package information can be [here](https://www.zetetic.net/
55

66
### Compatibility
77

8-
SQLCipher for Android runs on Android 4.1–Android 12, for `armeabi-v7a`, `x86`, `x86_64`, and `arm64_v8a` architectures.
8+
SQLCipher for Android runs on Android 4.1–Android 13, for `armeabi-v7a`, `x86`, `x86_64`, and `arm64_v8a` architectures.
99

1010
### Contributions
1111

@@ -55,11 +55,11 @@ such as having the following line in your module's `build.gradle` `dependencies`
5555
closure:
5656

5757
```gradle
58-
implementation "net.zetetic:android-database-sqlcipher:4.5.0"
58+
implementation "net.zetetic:android-database-sqlcipher:4.5.2"
5959
implementation "androidx.sqlite:sqlite:2.0.1"
6060
```
6161

62-
(replacing `4.5.0` with the version you want)
62+
(replacing `4.5.2` with the version you want)
6363

6464
<a title="Latest version from Maven Central" href="https://maven-badges.herokuapp.com/maven-central/net.zetetic/android-database-sqlcipher"><img src="https://maven-badges.herokuapp.com/maven-central/net.zetetic/android-database-sqlcipher/badge.svg"></a>
6565

@@ -144,11 +144,12 @@ To complete the `make` command, the `ANDROID_NDK_HOME` environment variable must
144144
```
145145
SQLCIPHER_ROOT=/some/path/to/sqlcipher-folder \
146146
OPENSSL_ROOT=/some/path/to/openssl-folder \
147-
SQLCIPHER_ANDROID_VERSION="4.5.0" \
147+
SQLCIPHER_CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2" \
148+
SQLCIPHER_ANDROID_VERSION="4.5.2" \
148149
make build-release
149150
```
150151

151-
You may also optionally include `SQLCIPHER_CFLAGS` to override the default features SQLCipher core is compiled with. If `SQLCIPHER_CFLAGS` is defined, make sure `-DSQLITE_HAS_CODEC` is included in the list of flags.
152+
You may specify other build flags/features within `SQLCIPHER_CFLAGS`, however, specifying `-DSQLITE_HAS_CODEC` and `-DSQLITE_TEMP_STORE` is necessary In the list of flags.
152153

153154
### License
154155

0 commit comments

Comments
 (0)