@op-engineering/op-sqlite 3.0.4 → 3.0.7

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.
package/cpp/sqlite3.h CHANGED
@@ -6031,7 +6031,7 @@ SQLITE_API int sqlite3_set_clientdata(sqlite3 *, const char *, void *,
6031
6031
  */
6032
6032
  typedef void (*sqlite3_destructor_type)(void *);
6033
6033
  #define SQLITE_STATIC ((sqlite3_destructor_type)0)
6034
- #define SQLITE_TRANSIENT ((sqlite3_destructor_type)-1)
6034
+ #define SQLITE_TRANSIENT ((sqlite3_destructor_type) - 1)
6035
6035
 
6036
6036
  /*
6037
6037
  ** CAPI3REF: Setting The Result Of An SQL Function
package/op-sqlite.podspec CHANGED
@@ -1,5 +1,9 @@
1
1
  require "json"
2
2
 
3
+ log_message = lambda do |message|
4
+ puts "\e[34m#{message}\e[0m"
5
+ end
6
+
3
7
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
8
  folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
9
  fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
@@ -26,12 +30,12 @@ Pod::Spec.new do |s|
26
30
  }
27
31
 
28
32
  if ENV['OP_SQLITE_USE_SQLCIPHER'] == '1' then
29
- puts "OP-SQLITE using SQLCipher! 🔒\n"
33
+ log_message.call("[OP-SQLITE] using SQLCipher! 🔒")
30
34
  s.exclude_files = "cpp/sqlite3.c", "cpp/sqlite3.h"
31
35
  xcconfig[:GCC_PREPROCESSOR_DEFINITIONS] += " OP_SQLITE_USE_SQLCIPHER=1 HAVE_FULLFSYNC=1 SQLITE_HAS_CODEC SQLITE_TEMP_STORE=2"
32
36
  s.dependency "OpenSSL-Universal"
33
37
  else
34
- puts "OP-SQLITE using SQLite! 📦\n"
38
+ log_message.call("[OP-SQLITE] using vanilla SQLite! 📦")
35
39
  s.exclude_files = "cpp/sqlcipher/sqlite3.c", "cpp/sqlcipher/sqlite3.h"
36
40
  end
37
41
 
@@ -48,19 +52,19 @@ Pod::Spec.new do |s|
48
52
  optimizedCflags = other_cflags + '$(inherited) -DSQLITE_DQS=0 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1 -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_OMIT_DEPRECATED=1 -DSQLITE_OMIT_PROGRESS_CALLBACK=1 -DSQLITE_OMIT_SHARED_CACHE=1 -DSQLITE_USE_ALLOCA=1'
49
53
 
50
54
  if ENV['OP_SQLITE_USE_PHONE_VERSION'] == '1' then
51
- puts "OP-SQLITE using iOS embedded SQLite! 📱\n"
55
+ log_message.call("[OP-SQLITE] using iOS embedded SQLite! 📱")
52
56
  xcconfig[:GCC_PREPROCESSOR_DEFINITIONS] += " OP_SQLITE_USE_PHONE_VERSION=1"
53
57
  s.exclude_files = "cpp/sqlite3.c", "cpp/sqlite3.h"
54
58
  s.library = "sqlite3"
55
59
  end
56
60
 
57
61
  if ENV['OP_SQLITE_PERF'] == '1' then
58
- puts "OP-SQLITE performance mode enabled! 🚀\n"
62
+ log_message.call("[OP-SQLITE] performance mode enabled! 🚀")
59
63
  xcconfig[:OTHER_CFLAGS] = optimizedCflags + ' -DSQLITE_THREADSAFE=0 '
60
64
  end
61
65
 
62
66
  if ENV['OP_SQLITE_PERF'] == '2' then
63
- puts "OP-SQLITE (thread safe) performance mode enabled! 🚀\n"
67
+ log_message.call("[OP-SQLITE] (thread safe) performance mode enabled! 🚀")
64
68
  xcconfig[:OTHER_CFLAGS] = optimizedCflags + ' -DSQLITE_THREADSAFE=1 '
65
69
  end
66
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@op-engineering/op-sqlite",
3
- "version": "3.0.4",
3
+ "version": "3.0.7",
4
4
  "description": "Next generation SQLite for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -28,7 +28,7 @@
28
28
  "example": "yarn --cwd example",
29
29
  "pods": "cd example && yarn pods",
30
30
  "bootstrap": "yarn example && yarn && yarn pods",
31
- "bump": "./bump-version.sh"
31
+ "release": "./bump-version.sh && git add . && git commit -m 'Release v$(node -p \"require('./package.json').version\")' && git tag v$(node -p \"require('./package.json').version\") && git push origin main --tags && npm publish"
32
32
  },
33
33
  "keywords": [
34
34
  "react-native",
@@ -89,5 +89,5 @@
89
89
  ]
90
90
  ]
91
91
  },
92
- "packageManager": "yarn@4.1.0"
92
+ "packageManager": "yarn@4.1.1"
93
93
  }