Skip to content

Commit 4cac1e4

Browse files
committed
Prepare sqlcipher libs release
1 parent 3a6884b commit 4cac1e4

File tree

8 files changed

+20
-6
lines changed

8 files changed

+20
-6
lines changed

sqlcipher_flutter_libs/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.6.1
2+
3+
- Update SQLCipher to `4.5.6`.
4+
- For Linux builds, you can now include `set(OPENSSL_USE_STATIC_LIBS OFF)` in your
5+
`CMakeLists.txt` to link OpenSSL dynamically.
6+
17
## 0.6.0
28

39
- Update SQLCipher to `4.5.5` (https://www.zetetic.net/blog/2023/08/31/sqlcipher-4.5.5-release/)

sqlcipher_flutter_libs/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ The official SQLCipher builds don't do that.
107107
To avoid your app relying on double-quoted strings in SQL, you should test your app on Linux or Windows before release if you
108108
target these platforms.
109109

110+
On Android, iOS, macOS and Windows, SQLCipher uses native crypto libraries shipped with the operating system.
111+
On Linux, a statically linked version of OpenSSL is included with your app by default. If you prefer to link
112+
OpenSSL statically, add this to `linux/CMakeLists.txt`:
113+
114+
```
115+
set(OPENSSL_USE_STATIC_LIBS OFF)
116+
```
117+
110118
## Problems on Android 6
111119

112120
There appears to be a problem when loading native libraries on Android 6 (see [this issue](https://github.com/simolus3/moor/issues/895#issuecomment-720195005)).

sqlcipher_flutter_libs/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ android {
3838
}
3939

4040
dependencies {
41-
implementation "net.zetetic:sqlcipher-android:4.5.5"
41+
implementation "net.zetetic:sqlcipher-android:4.5.6"
4242
}

sqlcipher_flutter_libs/ios/sqlcipher_flutter_libs.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A new flutter plugin project.
1717
s.public_header_files = 'Classes/**/*.h'
1818
s.dependency 'Flutter'
1919

20-
s.dependency 'SQLCipher', '~> 4.5.5'
20+
s.dependency 'SQLCipher', '~> 4.5.6'
2121

2222
s.platform = :ios, '8.0'
2323

sqlcipher_flutter_libs/linux/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ option(OPENSSL_USE_STATIC_LIBS "Whether to prefer linking to OpenSSL statically"
1010
find_package(OpenSSL REQUIRED)
1111

1212
# Using a prebuilt sqlcipher amalgation because building it requires TCL/TK which no one has.
13-
file(DOWNLOAD "https://storage.googleapis.com/simon-public-euw3/assets/sqlcipher/v4_5_5.c" "${CMAKE_CURRENT_BINARY_DIR}/sqlcipher.c" EXPECTED_HASH SHA512=04e71c0fa7a1e4736bc464e3b7379128d3d33bf149f3839f55729ad8fba9a916a6ca4118c75aa7e9c6a9133d71d4c1f59a13a7db029974865418aa565ecb2dc5)
13+
file(DOWNLOAD "https://storage.googleapis.com/simon-public-euw3/assets/sqlcipher/v4_5_6.c" "${CMAKE_CURRENT_BINARY_DIR}/sqlcipher.c" EXPECTED_HASH SHA512=939ae692239adc0581211a37ed9ffa8b37c8f771c830977ecb06dc6accc4c3db767ce6abeaf91133815e2ae837785affa92f4c95b2e68cb6d563bd761f3e0cb1)
1414

1515
add_library(${PLUGIN_NAME} SHARED
1616
"sqlite3_flutter_libs_plugin.cc"

sqlcipher_flutter_libs/macos/sqlcipher_flutter_libs.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A new flutter plugin project.
1717
s.public_header_files = 'Classes/**/*.h'
1818
s.dependency 'FlutterMacOS'
1919

20-
s.dependency 'SQLCipher', '~> 4.5.5'
20+
s.dependency 'SQLCipher', '~> 4.5.6'
2121

2222
s.platform = :osx, '10.11'
2323
s.pod_target_xcconfig = {

sqlcipher_flutter_libs/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sqlcipher_flutter_libs
22
description: Flutter plugin to include native SQLCipher libraries in your app
3-
version: 0.6.0
3+
version: 0.6.1
44
homepage: https://github.com/simolus3/sqlite3.dart/tree/main/sqlcipher_flutter_libs
55
issue_tracker: https://github.com/simolus3/sqlite3.dart/issues
66

sqlcipher_flutter_libs/windows/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set(OPENSSL_USE_STATIC_LIBS TRUE)
2727
find_package(OpenSSL REQUIRED)
2828

2929
# Using a prebuilt sqlcipher amalgation because building it requires TCL/TK which no one has.
30-
file(DOWNLOAD "https://storage.googleapis.com/simon-public-euw3/assets/sqlcipher/v4_5_5.c" "${CMAKE_CURRENT_BINARY_DIR}/sqlcipher.c" EXPECTED_HASH SHA512=04e71c0fa7a1e4736bc464e3b7379128d3d33bf149f3839f55729ad8fba9a916a6ca4118c75aa7e9c6a9133d71d4c1f59a13a7db029974865418aa565ecb2dc5)
30+
file(DOWNLOAD "https://storage.googleapis.com/simon-public-euw3/assets/sqlcipher/v4_5_6.c" "${CMAKE_CURRENT_BINARY_DIR}/sqlcipher.c" EXPECTED_HASH SHA512=939ae692239adc0581211a37ed9ffa8b37c8f771c830977ecb06dc6accc4c3db767ce6abeaf91133815e2ae837785affa92f4c95b2e68cb6d563bd761f3e0cb1)
3131

3232
add_library(sqlite3 SHARED "sqlite3_flutter.c")
3333
target_include_directories(sqlite3 PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")

0 commit comments

Comments
 (0)