Skip to content

Commit

Permalink
Stop using the iOS SQLite library
Browse files Browse the repository at this point in the history
In order to work correctly, the Rust FFI code needs to link against SQLite >= 3.37.0. The way we satisfy this dependency is to include the SQLite.swift Pod, which in turn depends on the iOS-provided SQLite library. Unfortunately, iOS does not ship with a new enough SQLite until iOS 16, but we claim to support iOS 13.

To fix this problem, we need to bring our own version of SQLite, which is newer that the OS-provided one. Fortunately, the SQLite.swift library provides a way to do this - we just include the "/standalone" subspec.
  • Loading branch information
swansontec committed May 11, 2024
1 parent 91cb967 commit 90590da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- fixed: Stop depending on the iOS-provided SQLite, which causes crashes on iOS 13-15 because it is too old.

## 0.7.0 (2024-04-22)

- added: Support Orchard pool
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pod 'CNIODarwin', :modular_headers => true
pod 'CNIOHTTPParser', :modular_headers => true
pod 'CNIOLinux', :modular_headers => true
pod 'CNIOWindows', :modular_headers => true
pod 'sqlite3', :modular_headers => true
```

On the Android side, you may need to configure an explicit Kotlin version, so all your native dependencies will be compatible with one another. Simply define `kotlinVersion` in your `android/build.gradle` file:
Expand Down
2 changes: 1 addition & 1 deletion react-native-zcash.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ Pod::Spec.new do |s|

s.dependency "MnemonicSwift", "~> 2.2"
s.dependency "gRPC-Swift", "~> 1.8"
s.dependency "SQLite.swift", "~> 0.12"
s.dependency "SQLite.swift/standalone", "~> 0.14"
s.dependency "React-Core"
end

0 comments on commit 90590da

Please sign in to comment.