diff --git a/.changeset/sour-pets-peel.md b/.changeset/sour-pets-peel.md new file mode 100644 index 0000000..d42dbd1 --- /dev/null +++ b/.changeset/sour-pets-peel.md @@ -0,0 +1,5 @@ +--- +"@journeyapps/react-native-quick-sqlite": patch +--- + +Use install_modules_dependencies if available in newer react-native versions. diff --git a/react-native-quick-sqlite.podspec b/react-native-quick-sqlite.podspec index 7774844..39ce1cc 100644 --- a/react-native-quick-sqlite.podspec +++ b/react-native-quick-sqlite.podspec @@ -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"