Commit Graph

79 Commits

Author SHA1 Message Date
Richard Garčár
aa6830b228 fix: set the default value of the minimumSupportedVersion parameter of SupportHelper as 0 2023-05-30 19:16:08 +02:00
Stephen Lombardo
ea2d4935d0 update expected SQLCipher version number 2023-04-06 14:55:02 -04:00
Stephen Lombardo
62d1344e95 update invalid key tests to expect SQLiteException instead of SQLiteDatabaseCorruptException 2023-04-06 14:54:27 -04:00
Stephen Lombardo
8e1cf3a513 switch to use android.database.sqlite version of SQLiteAbortException 2023-04-06 13:26:54 -04:00
Stephen Lombardo
5bc2e09691 don't treat SQLITE_NOTADB error as a corruption because it can occur with mismatched keys 2023-04-06 13:25:33 -04:00
Stephen Lombardo
6458f1418b update minimum sdk version to 21 2023-03-06 16:21:51 -05:00
Nick Parker
11bd6f37a2 Guard setExtras test with build version check 2023-02-24 15:36:06 -06:00
Nick Parker
81572c7207 Add support for Upsert via Room API, remove custom exception classes
Removed the following exception classes for better integration with Room:

net.zetetic.database.SQLException
net.zetetic.database.sqlcipher.SQLiteAbortException
net.zetetic.database.sqlcipher.SQLiteAccessPermException
net.zetetic.database.sqlcipher.SQLiteBindOrColumnIndexOutOfRangeException
net.zetetic.database.sqlcipher.SQLiteBlobTooBigException
net.zetetic.database.sqlcipher.SQLiteCantOpenDatabaseException
net.zetetic.database.sqlcipher.SQLiteConstraintException
net.zetetic.database.sqlcipher.SQLiteDatabaseCorruptException
net.zetetic.database.sqlcipher.SQLiteDatabaseLockedException
net.zetetic.database.sqlcipher.SQLiteDatatypeMismatchException
net.zetetic.database.sqlcipher.SQLiteDiskIOException
net.zetetic.database.sqlcipher.SQLiteDoneException
net.zetetic.database.sqlcipher.SQLiteException
net.zetetic.database.sqlcipher.SQLiteFullException
net.zetetic.database.sqlcipher.SQLiteMisuseException
net.zetetic.database.sqlcipher.SQLiteOutOfMemoryException
net.zetetic.database.sqlcipher.SQLiteReadOnlyDatabaseException
net.zetetic.database.sqlcipher.SQLiteTableLockedException
2023-02-24 12:00:53 -06:00
Nick Parker
cda3dc549b Update Room to 2.5.0 2023-02-23 15:57:43 -06:00
Nick Parker
ed7c7e7754 Bump compile/target SDK version to 33 2023-02-23 13:42:56 -06:00
Nick Parker
c12cef94f3 Adjustments to UPGRADE_INDEX and assertions to get tests passing 2023-02-09 08:41:49 -06:00
vitorhugods
314c15fd86
test: use the new SupportHelper constructor 2023-02-07 21:12:15 -03:00
vitorhugods
1b2b3ce2d1
test: add tests covering SupportHelperTest 2023-02-07 21:00:52 -03:00
vitorhugods
f38c14512b
fix: syntax errors 2023-02-07 19:31:50 -03:00
Vitor Hugo Schwaab
a1f57803f2
fix: typo on SupportHelper 2023-01-25 17:33:09 +01:00
Vitor Hugo Schwaab
47d46dd25f
chore: keep compatibility with current published version 2023-01-25 17:19:11 +01:00
Vitor Hugo Schwaab
6a1cde5797
fix: don't recreate db on every migration when using SupportHelper 2023-01-25 16:41:45 +01:00
Nick Parker
454149c8c4 Remove application element from manifest, rename package 2023-01-12 08:27:53 -06:00
Nick Parker
9ce46d578b Update test for 4.5.3 release 2022-12-20 11:44:44 -06:00
Nick Parker
1835e6c8d0 Support onDowngrade, onOpen, and onConfigure in SupportHelper.
Issue raised here: https://github.com/sqlcipher/sqlcipher-android/issues/7
2022-11-11 09:16:48 -06:00
Nick Parker
6623565e17 Fix cipher_version test for 4.5.2 release 2022-11-11 09:16:01 -06:00
Nick Parker
bc7c96a6de Adjustments for publishing artifacts to Maven Central 2022-08-03 14:42:26 -05:00
Nick Parker
f6230adf57 Explicitly allow specifying WAL journal mode with SQLiteOpenHelper constructor 2022-06-16 12:33:50 -05:00
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