Skip to content

Commit 71d3faa

Browse files
authored
Merge pull request #10 from davidmartos96/update_from_upstream
Update from upstream
2 parents 5a0d208 + 661eb26 commit 71d3faa

File tree

29 files changed

+353
-147
lines changed

29 files changed

+353
-147
lines changed

.github/actions/build-wasm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ runs:
4343
working-directory: sqlite3
4444
shell: bash
4545
run: |
46-
cmake -Dwasi_sysroot=/opt/wasi-sysroot -Dclang=/opt/homebrew/opt/llvm@18/bin/clang -S assets/wasm -B .dart_tool/sqlite3_build --toolchain toolchain.cmake
46+
cmake -Dwasi_sysroot=/opt/wasi-sysroot -Dclang=/opt/homebrew/opt/llvm@18/bin/clang -S assets/wasm -B .dart_tool/sqlite3_build
4747
cmake --build .dart_tool/sqlite3_build/ -t output -j

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176

177177
- name: Web tests
178178
run: |
179-
curl https://storage.googleapis.com/simon-public-euw3/assets/sqlite3/wasm/2.4.3/sqlite3.wasm -o example/web/sqlite3.wasm
179+
curl https://storage.googleapis.com/simon-public-euw3/assets/sqlite3/wasm/2.4.6/sqlite3.wasm -o example/web/sqlite3.wasm
180180
dart test -P web -r expanded
181181
# If browsers behave differently on different platforms, surely that's not our fault...
182182
# So, only run browser tests on Linux to be faster.

integration_tests/sqlcipher_flutter/android/app/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 31
29+
compileSdkVersion 34
30+
namespace "com.example.sqlcipher_flutter"
31+
32+
compileOptions {
33+
sourceCompatibility = 1.8
34+
targetCompatibility = 1.8
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = "1.8"
39+
}
3040

3141
sourceSets {
3242
main.java.srcDirs += 'src/main/kotlin'

integration_tests/sqlcipher_flutter/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.10'
2+
ext.kotlin_version = '2.0.10'
33
repositories {
44
google()
55
jcenter()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.0.0'
9+
classpath 'com.android.tools.build:gradle:8.5.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

integration_tests/sqlcipher_flutter/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip

sqlcipher_flutter_libs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.4
2+
3+
- Fix compilation on Android by upgrading `compileSdk` version.
4+
15
## 0.6.3
26

37
- Enable extension loading on Windows and Linux to match the compile options

sqlcipher_flutter_libs/android/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:8.0.1'
11+
classpath 'com.android.tools.build:gradle:8.5.1'
1212
}
1313
}
1414

@@ -22,15 +22,14 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdkVersion 28
26-
2725
// Conditional for compatibility with AGP <4.2.
2826
if (project.android.hasProperty("namespace")) {
2927
namespace 'eu.simonbinder.sqlite3_flutter_libs'
3028
}
3129

3230
defaultConfig {
33-
minSdkVersion 16
31+
minSdkVersion 21
32+
compileSdk 34
3433
}
3534
lintOptions {
3635
disable 'InvalidPackage'

sqlcipher_flutter_libs/pubspec.yaml

Lines changed: 1 addition & 1 deletion
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.3
3+
version: 0.6.4
44
homepage: https://github.com/simolus3/sqlite3.dart/tree/main/sqlcipher_flutter_libs
55
issue_tracker: https://github.com/simolus3/sqlite3.dart/issues
66

sqlite3/CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
## 2.4.6
22

3-
- Fix selecting large integers (being represented as a `BigInt` in Dart)
4-
not working when compiled with dartdevc.
3+
- WebAssembly: Call `_initialize` function of sqlite3 module if one is present.
4+
- Support version 1.0.0 of `package:web`.
55

66
## 2.4.5
77

88
- Fix a bug in the OPFS-locks implementation causing a deadlock when the `xSleep`
99
VFS call is issued.
10+
- Fix selecting large integers (being represented as a `BigInt` in Dart)
11+
not working when compiled with dartdevc.
1012

1113
## 2.4.4
1214

sqlite3/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ With wasi in `/usr/share/wasi-sysroot` and the default clang compiler having the
175175
required builtins, you can setup the build with:
176176

177177
```
178-
cmake -S assets/wasm -B .dart_tool/sqlite3_build --toolchain toolchain.cmake
178+
cmake -S assets/wasm -B .dart_tool/sqlite3_build
179179
```
180180

181181
##### macOS
@@ -196,7 +196,7 @@ Replace `clang/18` with the correct directory if you're using a different versio
196196
Then, set up the build with
197197

198198
```
199-
cmake -Dwasi_sysroot=/opt/wasi-sysroot -Dclang=/opt/homebrew/opt/llvm/bin/clang -S assets/wasm -B .dart_tool/sqlite3_build --toolchain toolchain.cmake
199+
cmake -Dwasi_sysroot=/opt/wasi-sysroot -Dclang=/opt/homebrew/opt/llvm/bin/clang -S assets/wasm -B .dart_tool/sqlite3_build
200200
```
201201

202202
#### Building

0 commit comments

Comments
 (0)