Skip to content

Commit 9c6d8c2

Browse files
Source client version from BuildConfig
1 parent 68cffd1 commit 9c6d8c2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

android-database-sqlcipher/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ android {
88
buildToolsVersion "26.0.1"
99

1010
defaultConfig {
11+
versionName "${clientVersionNumber}"
1112
minSdkVersion "${minimumAndroidSdkVersion}"
1213
targetSdkVersion "${targetAndroidSdkVersion}"
1314
versionCode 1

android-database-sqlcipher/src/main/java/net/sqlcipher/database/SQLiteDatabase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package net.sqlcipher.database;
1818

19+
import net.sqlcipher.BuildConfig;
1920
import net.sqlcipher.Cursor;
2021
import net.sqlcipher.CrossProcessCursorWrapper;
2122
import net.sqlcipher.DatabaseUtils;
@@ -78,7 +79,7 @@ public class SQLiteDatabase extends SQLiteClosable {
7879
/**
7980
* The version number of the SQLCipher for Android Java client library.
8081
*/
81-
public static final String SQLCIPHER_ANDROID_VERSION = "3.5.9";
82+
public static final String SQLCIPHER_ANDROID_VERSION = BuildConfig.VERSION_NAME;
8283

8384
// Stores reference to all databases opened in the current process.
8485
// (The referent Object is not used at this time.)

0 commit comments

Comments
 (0)