Skip to content

Commit ac213a3

Browse files
Include Android NDK version in README documentation
1 parent 27c2335 commit ac213a3

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ SQLiteDatabaseHook hook = new SQLiteDatabaseHook() {
4040

4141
### Building
4242

43+
## Android NDK
44+
45+
Currently, SQLCipher for Android uses NDK version "23.0.7599858".
46+
47+
## External dependencies:
48+
4349
This repository is not batteries-included. Specificially, you will need to build `libcrypto.a`, the static library from OpenSSL using the NDK for the [supported platforms](#compatibility), and bundle the top-level `include` folder from OpenSSL. Additionally, you will need to build a SQLCipher amalgamation. These files will need to be placed in the following locations:
4450

4551
```

README.md.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ SQLiteDatabaseHook hook = new SQLiteDatabaseHook() {
4040

4141
### Building
4242

43+
## Android NDK
44+
45+
Currently, SQLCipher for Android uses NDK version "<%=androidNdkVersion%>".
46+
47+
## External dependencies:
48+
4349
This repository is not batteries-included. Specificially, you will need to build `libcrypto.a`, the static library from OpenSSL using the NDK for the [supported platforms](#compatibility), and bundle the top-level `include` folder from OpenSSL. Additionally, you will need to build a SQLCipher amalgamation. These files will need to be placed in the following locations:
4450

4551
```

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ allprojects {
2626
project.ext {
2727
libraryVersion = "4.4.3"
2828
androidXSQLiteVersion = "2.1.0"
29+
androidNdkVersion = "23.0.7599858"
2930
mavenLocalRepositoryPrefix = "file://"
3031
if(project.hasProperty('publishLocal') && publishLocal.toBoolean()){
3132
mavenSnapshotRepositoryUrl = "outputs/snapshot"
@@ -77,7 +78,8 @@ task generateReadMe {
7778
def reader = new FileReader("README.md.template")
7879
def binding = [
7980
libraryVersion: project.ext.libraryVersion,
80-
androidXSQLiteVersion: project.ext.androidXSQLiteVersion
81+
androidXSQLiteVersion: project.ext.androidXSQLiteVersion,
82+
androidNdkVersion: project.ext.androidNdkVersion
8183
]
8284
def template = engine.createTemplate(reader).make(binding)
8385
readme.write(template.toString())

sqlcipher/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ android {
3535
}
3636
}
3737

38-
ndkVersion '23.0.7599858'
38+
ndkVersion "${rootProject.ext.androidNdkVersion}"
3939

4040
useLibrary 'android.test.base' // for android.test.AndroidTestCase
4141
useLibrary 'android.test.runner' // for android.test.MoreAsserts

0 commit comments

Comments
 (0)