Skip to content

Commit

Permalink
Merge pull request #44 from powersync-ja/fix/react-native-0.75-support
Browse files Browse the repository at this point in the history
Use `install_modules_dependencies()` on iOS for newer react-native versions
  • Loading branch information
mugikhan authored Sep 9, 2024
2 parents c0d877f + b8e0524 commit 2f5eb63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sour-pets-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@journeyapps/react-native-quick-sqlite": patch
---

Use install_modules_dependencies if available in newer react-native versions.
6 changes: 5 additions & 1 deletion react-native-quick-sqlite.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ Pod::Spec.new do |s|

s.dependency "React-callinvoker"
s.dependency "React"
s.dependency "React-Core"
s.dependency "powersync-sqlite-core", "~> 0.2.1"
if defined?(install_modules_dependencies())
install_modules_dependencies(s)
else
s.dependency "React-Core"
end

if ENV['QUICK_SQLITE_USE_PHONE_VERSION'] == '1' then
s.exclude_files = "cpp/sqlite3.c", "cpp/sqlite3.h"
Expand Down

0 comments on commit 2f5eb63

Please sign in to comment.