From e82446d9f48d32aa3b825777a10bd4f96377308a Mon Sep 17 00:00:00 2001 From: Mugi Khan Date: Mon, 9 Sep 2024 13:09:10 +0200 Subject: [PATCH 1/3] Use install_modules_dependencies if available --- react-native-quick-sqlite.podspec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/react-native-quick-sqlite.podspec b/react-native-quick-sqlite.podspec index 7774844..f9059c8 100644 --- a/react-native-quick-sqlite.podspec +++ b/react-native-quick-sqlite.podspec @@ -26,9 +26,13 @@ Pod::Spec.new do |s| s.header_mappings_dir = "cpp" s.source_files = "ios/**/*.{h,hpp,m,mm}", "cpp/**/*.{h,cpp,c}" - s.dependency "React-callinvoker" - s.dependency "React" - s.dependency "React-Core" + if defined?(install_modules_dependencies()) + install_modules_dependencies(s) + else + s.dependency "React-callinvoker" + s.dependency "React" + s.dependency "React-Core" + end s.dependency "powersync-sqlite-core", "~> 0.2.1" if ENV['QUICK_SQLITE_USE_PHONE_VERSION'] == '1' then From 92732752fb924634eba37a761ea9dfdc29a6b06c Mon Sep 17 00:00:00 2001 From: Mugi Khan Date: Mon, 9 Sep 2024 17:23:19 +0200 Subject: [PATCH 2/3] Exclude React core when install_modules is defined --- react-native-quick-sqlite.podspec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react-native-quick-sqlite.podspec b/react-native-quick-sqlite.podspec index f9059c8..39ce1cc 100644 --- a/react-native-quick-sqlite.podspec +++ b/react-native-quick-sqlite.podspec @@ -26,14 +26,14 @@ Pod::Spec.new do |s| s.header_mappings_dir = "cpp" s.source_files = "ios/**/*.{h,hpp,m,mm}", "cpp/**/*.{h,cpp,c}" + s.dependency "React-callinvoker" + s.dependency "React" + s.dependency "powersync-sqlite-core", "~> 0.2.1" if defined?(install_modules_dependencies()) install_modules_dependencies(s) else - s.dependency "React-callinvoker" - s.dependency "React" s.dependency "React-Core" end - s.dependency "powersync-sqlite-core", "~> 0.2.1" if ENV['QUICK_SQLITE_USE_PHONE_VERSION'] == '1' then s.exclude_files = "cpp/sqlite3.c", "cpp/sqlite3.h" From b8e05241f9aaf4155fafe7fc34c863cb75f2b43f Mon Sep 17 00:00:00 2001 From: Mugi Khan Date: Mon, 9 Sep 2024 17:45:32 +0200 Subject: [PATCH 3/3] Add changeset --- .changeset/sour-pets-peel.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/sour-pets-peel.md 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.