diff --git a/cpp/utils.cpp b/cpp/utils.cpp index d36b25d..a2ba13e 100644 --- a/cpp/utils.cpp +++ b/cpp/utils.cpp @@ -13,7 +13,7 @@ namespace opsqlite { namespace jsi = facebook::jsi; -inline jsi::Value toJSI(jsi::Runtime &rt, const JSVariant &value) { +jsi::Value toJSI(jsi::Runtime &rt, const JSVariant &value) { if (std::holds_alternative(value)) { return std::get(value); } else if (std::holds_alternative(value)) { @@ -39,7 +39,7 @@ inline jsi::Value toJSI(jsi::Runtime &rt, const JSVariant &value) { return jsi::Value::null(); } -inline JSVariant toVariant(jsi::Runtime &rt, const jsi::Value &value) { +JSVariant toVariant(jsi::Runtime &rt, const jsi::Value &value) { if (value.isNull() || value.isUndefined()) { return JSVariant(nullptr); } else if (value.isBool()) { diff --git a/cpp/utils.h b/cpp/utils.h index a3494e5..43a048a 100644 --- a/cpp/utils.h +++ b/cpp/utils.h @@ -15,9 +15,9 @@ namespace opsqlite { namespace jsi = facebook::jsi; -inline jsi::Value toJSI(jsi::Runtime &rt, const JSVariant &value); +jsi::Value toJSI(jsi::Runtime &rt, const JSVariant &value); -inline JSVariant toVariant(jsi::Runtime &rt, jsi::Value const &value); +JSVariant toVariant(jsi::Runtime &rt, jsi::Value const &value); std::vector to_string_vec(jsi::Runtime &rt, jsi::Value const &xs); diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 94a0cee..7f9537c 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1785,7 +1785,7 @@ SPEC CHECKSUMS: GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4 glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a hermes-engine: 46f1ffbf0297f4298862068dd4c274d4ac17a1fd - op-sqlite: 9917e5a5747fc813e42487c0cbdd2d35eaa687bb + op-sqlite: fc35cf9d2d0ace5c5b7189e2ccadcfbb80e6e6f5 RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648 RCTDeprecation: fde92935b3caa6cb65cbff9fbb7d3a9867ffb259 RCTRequired: 75c6cee42d21c1530a6f204ba32ff57335d19007 diff --git a/op-sqlite.podspec b/op-sqlite.podspec index 8b41167..8dc38de 100644 --- a/op-sqlite.podspec +++ b/op-sqlite.podspec @@ -87,20 +87,12 @@ Pod::Spec.new do |s| else c_sources_dir = File.join("example", "c_sources") end - if tokenizers.any? generate_tokenizers_header_file(tokenizers, File.join(c_sources_dir, "tokenizers.h")) FileUtils.cp_r(c_sources_dir, __dir__) - # puts "Current directory: #{__dir__}" - # c_sources_dir_output = Dir.glob(File.join(c_sources_dir, "**/*.{h,cpp}")) - - # puts "c_sources_dir: #{c_sources_dir_output}" - # # Add all .h and .c files from the `c_sources` directory source_files += Dir.glob(File.join("c_sources", "**/*.{h,cpp}")) - # source_files += ["../../c_sources/tokenizers.h", "../../c_sources/tokenizers.cpp"] - # puts "Source files: #{source_files}" end # Assign the collected source files to `s.source_files`