Skip to content

Commit

Permalink
Merge pull request #66 from powersync-ja/feat/enable-fts5
Browse files Browse the repository at this point in the history
Feat: Enable FTS5
  • Loading branch information
mugikhan authored Dec 18, 2024
2 parents 953ba05 + 761d441 commit cd9001a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brown-beers-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@journeyapps/react-native-quick-sqlite": patch
---

Enable FTS5
1 change: 1 addition & 0 deletions android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ include_directories(

add_definitions(
-DSQLITE_TEMP_STORE=2
-DSQLITE_ENABLE_FTS5=1
${SQLITE_FLAGS}
)

Expand Down
2 changes: 1 addition & 1 deletion react-native-quick-sqlite.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/margelo/react-native-quick-sqlite.git", :tag => "#{s.version}" }

s.pod_target_xcconfig = {
:GCC_PREPROCESSOR_DEFINITIONS => "HAVE_FULLFSYNC=1",
:GCC_PREPROCESSOR_DEFINITIONS => "HAVE_FULLFSYNC=1 SQLITE_ENABLE_FTS5=1",
:WARNING_CFLAGS => "-Wno-shorten-64-to-32 -Wno-comma -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-deprecated-declarations",
:USE_HEADERMAP => "No"
}
Expand Down

0 comments on commit cd9001a

Please sign in to comment.