Skip to content

Commit 1735faf

Browse files
Allow libraryVersion to be sourced via external -PsqlcipherAndroidVersion property
1 parent 5ce2ace commit 1735faf

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We welcome contributions, to contribute to SQLCipher for Android, a [contributor
1616
When available on Maven Central, add a reference to the library and dependency:
1717

1818
```
19-
implementation "net.zetetic:sqlcipher-android:4.4.3"
19+
implementation "net.zetetic:sqlcipher-android:4.5.0"
2020
implementation "androidx.sqlite:sqlite:2.1.0"
2121
```
2222

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ allprojects {
2424
}
2525

2626
project.ext {
27-
libraryVersion = "4.4.3"
27+
if(project.hasProperty('sqlcipherAndroidVersion') && "${sqlcipherAndroidVersion}") {
28+
libraryVersion = "${sqlcipherAndroidVersion}"
29+
} else {
30+
libraryVersion = "4.5.0"
31+
}
2832
androidXSQLiteVersion = "2.1.0"
2933
androidNdkVersion = "23.0.7599858"
3034
mavenLocalRepositoryPrefix = "file://"
@@ -87,4 +91,4 @@ task generateReadMe {
8791

8892
project.afterEvaluate {
8993
build.dependsOn generateReadMe
90-
}
94+
}

0 commit comments

Comments
 (0)