@op-engineering/op-sqlite 10.0.0-tokenizers-beta4 → 10.0.0-tokenizers-beta6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/op-sqlite.podspec +13 -5
  2. package/package.json +1 -1
package/op-sqlite.podspec CHANGED
@@ -87,14 +87,22 @@ Pod::Spec.new do |s|
87
87
  else
88
88
  c_sources_dir = File.join("example", "c_sources")
89
89
  end
90
+
90
91
 
91
92
  if tokenizers.any?
92
- generate_tokenizers_header_file(tokenizers, File.join(c_sources_dir, "tokenizers.h"), is_user_app)
93
+ FileUtils.cp_r(c_sources_dir, __dir__)
94
+ # generate_tokenizers_header_file(tokenizers, File.join(c_sources_dir, "tokenizers.h"), is_user_app)
95
+ # puts "Current directory: #{__dir__}"
96
+ # c_sources_dir_output = Dir.glob(File.join(c_sources_dir, "**/*.{h,cpp}"))
97
+
98
+ # puts "c_sources_dir: #{c_sources_dir_output}"
99
+
100
+ # # Add all .h and .c files from the `c_sources` directory
101
+ source_files += Dir.glob(File.join("c_sources", "**/*.{h,cpp}"))
102
+ # source_files += ["../../c_sources/tokenizers.h", "../../c_sources/tokenizers.cpp"]
103
+ # puts "Source files: #{source_files}"
93
104
  end
94
105
 
95
- # Add all .h and .c files from the `c_sources` directory
96
- source_files += Dir.glob(File.join(c_sources_dir, "**/*.{h,cpp}"))
97
-
98
106
  # Assign the collected source files to `s.source_files`
99
107
  s.source_files = source_files
100
108
 
@@ -187,7 +195,7 @@ Pod::Spec.new do |s|
187
195
  if tokenizers.any? then
188
196
  log_message.call("[OP_SQLITE] Tokenizers enabled: #{tokenizers}")
189
197
  if is_user_app then
190
- other_cflags += " -DTOKENIZERS_HEADER_PATH=\\\"../../../../c_sources/tokenizers.h\\\""
198
+ other_cflags += " -DTOKENIZERS_HEADER_PATH=\\\"../c_sources/tokenizers.h\\\""
191
199
  else
192
200
  other_cflags += " -DTOKENIZERS_HEADER_PATH=\\\"../example/c_sources/tokenizers.h\\\""
193
201
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@op-engineering/op-sqlite",
3
- "version": "10.0.0-tokenizers-beta4",
3
+ "version": "10.0.0-tokenizers-beta6",
4
4
  "description": "Next generation SQLite for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",