Commit Graph

106 Commits

Author SHA1 Message Date
Nick Parker
5ce2aceb48 Adjust test to look for SQLCipher version 4.5.0 2021-10-15 15:45:21 -05:00
Nick Parker
429ade11cf Adjustment from merge of upstream changes from AndroidBindings 2021-10-06 15:38:21 -05:00
Nick Parker
e57448b1c9 Merge branch 'upstream' 2021-10-06 15:02:21 -05:00
Nick Parker
fae2c3eda3 Use 8 MB CursorWindow by default, adjustable with static methods on SQLiteCursor class 2021-10-01 15:35:54 -05:00
Nick Parker
e4c99d9935 Add test around illegal state exception when interfacing with a closed database 2021-09-22 12:10:12 -05:00
Nick Parker
df00753939 Output SQLCipher CFLAGS during build 2021-09-22 12:09:42 -05:00
Nick Parker
ac213a39f3 Include Android NDK version in README documentation 2021-08-31 14:29:48 -05:00
Nick Parker
27c2335ec7 Update to latest LTS version of NDK (23.0.7599858) 2021-08-31 09:25:09 -05:00
Nick Parker
9a99513683 Generate README.md from template file to avoid stale version numbers 2021-08-30 16:08:27 -05:00
Nick Parker
57bb6dbae0 Remove unused Gradle references 2021-08-30 15:03:08 -05:00
Nick Parker
ef6365dfec Add quotes around library version 2021-08-30 14:35:43 -05:00
Nick Parker
655c1e546c Work for publishing signed artifacts to local Maven repo, and Nexus repository 2021-08-27 16:50:49 -05:00
Nick Parker
0abc8f324e Adjust SQLCipherOpenHelper test 2021-08-27 16:49:24 -05:00
Nick Parker
f3dbb25708 Use static libcrypto instead of dynamic version 2021-08-27 16:48:55 -05:00
Nick Parker
d82a49e33f Create parent 'databases' directory if it doesn't exist 2021-08-27 14:18:58 -05:00
Nick Parker
82b4217b86 Running Support API (Room) tests in suite 2021-08-24 11:59:52 -05:00
Nick Parker
671a956e21 Initial work to bring the Support API to the library 2021-08-16 14:04:20 -05:00
Nick Parker
bfef48d76f Additional tests around rawExecSQL 2021-08-11 16:22:25 -05:00
Nick Parker
6494035b17 Add support for rawExecSQL, add tests for rawQuery binding, fts5, rtree, soundex, savepoint 2021-08-10 16:53:47 -05:00
Nick Parker
20a8f57163 Adjustment to test SQLCipher long running WAL scenario 2021-08-09 16:27:56 -05:00
Nick Parker
6bd194f279 Add SQLCipher tests for opening connections with passwords, migrations 2021-08-09 15:38:53 -05:00
Nick Parker
28edeed801 Remove initial opening with OPEN_READONLY when requested not writable for consistency with AOSP upstream 2021-08-05 17:08:00 -05:00
Nick Parker
1917acc574 Add import plaintext to SQLCipher database test 2021-08-05 11:32:03 -05:00
Nick Parker
ff7b782f42 Add cipher_compatibility test case 2021-08-05 11:31:21 -05:00
Nick Parker
821303c729 Add json test case 2021-08-05 11:30:12 -05:00
Nick Parker
cec6d4e1dc Adjust existing test cases for SQLCipher 2021-08-05 11:29:51 -05:00
Nick Parker
f921f0fa6a Support propagating WAL mode setting when database instance hasn't been created in SQLiteOpenHelper 2021-08-05 11:25:38 -05:00
Nick Parker
392dbdf5e2 Add Hamcrest test library 2021-08-05 11:23:41 -05:00
Nick Parker
9effb6d587 Add change password support on SQLiteDatabase 2021-07-26 16:12:02 -05:00
Nick Parker
ea4639fb70 Add support for executing rawQuery with Object varargs as binding parameters 2021-07-26 11:16:44 -05:00
Nick Parker
94d0a0d452 Adjust Android.mk to link dynamic OpenSSL, build libsqlcipher.so 2021-07-23 11:48:35 -05:00
Nick Parker
81f0921786 Prevent call to PRAGMA page_size when compiled with SQLITE_HAS_CODEC 2021-07-23 11:22:19 -05:00
Nick Parker
72e8e94433 Remove signal from executeForLong, not needed 2021-07-23 11:21:45 -05:00
Nick Parker
adb3313cfc Adjust empty byte array initialization, retriving bytes from string 2021-07-23 11:21:04 -05:00
Nick Parker
c2ef89e49f Adjust default SQLite page_size to 4096 (match upstream since 2016) 2021-07-23 11:20:17 -05:00
Nick Parker
53b73594fb Log result of sqlite3_key 2021-07-23 11:19:01 -05:00
Nick Parker
2a2b47bbaa Query sqlite_schema after SQLiteDatabaseHook runs 2021-07-22 15:25:50 -05:00
Nick Parker
2e5fc35701 Change tests to load libsqlcipher instead of libsqliteX 2021-07-20 14:16:56 -05:00
Nick Parker
f3f900a87a Allow journal mode configuration to propagate when opening connection regardless of SQLITE_HAS_CODEC flag 2021-07-20 12:22:25 -05:00
Nick Parker
e0222f38b4 Adjust default database handler tests to support SQLITE_HAS_CODEC behavior 2021-07-20 12:21:27 -05:00
Nick Parker
d69badb5cf Use executeNonQuery logic from platform-frameworks-base which causes SQLiteStatementTest to pass 2021-07-19 15:49:41 -05:00
Nick Parker
f83d22d27f Add support for password and database hook on SQLiteOpenHelper 2021-07-19 11:35:09 -05:00
Nick Parker
07aae6c97a Update aar output file name 2021-07-16 16:23:03 -05:00
Nick Parker
d5ea30b94d Update compile and target sdk version to 30 2021-07-16 16:22:23 -05:00
Nick Parker
ec1173db6d Initial test with password provided as argument to open database 2021-07-16 15:01:31 -05:00
Nick Parker
a267c4b692 Add overloads to openDatabase and openOrCreateDatabase for providing password 2021-07-16 14:59:10 -05:00
Nick Parker
cc47c99926 Capture database password (byte[]) and SQliteDatabaseHook for configuration 2021-07-16 14:58:19 -05:00
Nick Parker
23730bbf7a Allow keying of database 2021-07-16 14:57:39 -05:00
Nick Parker
227d1310d0 Database hook for preKey/postKey operations 2021-07-16 14:55:45 -05:00
Nick Parker
b7e326ae5e Small test case to check cipher_version 2021-07-15 15:34:43 -05:00
Nick Parker
dc12edf810 Remove existing amalgamation 2021-07-15 15:15:08 -05:00
Nick Parker
6926ff13bd Update test library references 2021-07-15 15:13:24 -05:00
Nick Parker
27a6feb8f7 Correct package name and imports for android tests 2021-07-14 12:52:41 -05:00
Nick Parker
7377ea6398 Renaming for androidTest files 2021-07-14 11:26:20 -05:00
Nick Parker
b0b1b84cdc Remove sqlcipher/.cxx from repo 2021-07-14 10:43:34 -05:00
Nick Parker
1701c45ee4 Further package renaming 2021-07-14 10:42:45 -05:00