@op-engineering/op-sqlite 3.0.6 → 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/op-sqlite.podspec CHANGED
@@ -1,6 +1,6 @@
1
1
  require "json"
2
2
 
3
- def log_message(message)
3
+ log_message = lambda do |message|
4
4
  puts "\e[34m#{message}\e[0m"
5
5
  end
6
6
 
@@ -30,12 +30,12 @@ Pod::Spec.new do |s|
30
30
  }
31
31
 
32
32
  if ENV['OP_SQLITE_USE_SQLCIPHER'] == '1' then
33
- log_message("[OP-SQLITE] using SQLCipher! 🔒")
33
+ log_message.call("[OP-SQLITE] using SQLCipher! 🔒")
34
34
  s.exclude_files = "cpp/sqlite3.c", "cpp/sqlite3.h"
35
35
  xcconfig[:GCC_PREPROCESSOR_DEFINITIONS] += " OP_SQLITE_USE_SQLCIPHER=1 HAVE_FULLFSYNC=1 SQLITE_HAS_CODEC SQLITE_TEMP_STORE=2"
36
36
  s.dependency "OpenSSL-Universal"
37
37
  else
38
- log_message("[OP-SQLITE] using vanilla SQLite! 📦")
38
+ log_message.call("[OP-SQLITE] using vanilla SQLite! 📦")
39
39
  s.exclude_files = "cpp/sqlcipher/sqlite3.c", "cpp/sqlcipher/sqlite3.h"
40
40
  end
41
41
 
@@ -52,19 +52,19 @@ Pod::Spec.new do |s|
52
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'
53
53
 
54
54
  if ENV['OP_SQLITE_USE_PHONE_VERSION'] == '1' then
55
- log_message("[OP-SQLITE] using iOS embedded SQLite! 📱")
55
+ log_message.call("[OP-SQLITE] using iOS embedded SQLite! 📱")
56
56
  xcconfig[:GCC_PREPROCESSOR_DEFINITIONS] += " OP_SQLITE_USE_PHONE_VERSION=1"
57
57
  s.exclude_files = "cpp/sqlite3.c", "cpp/sqlite3.h"
58
58
  s.library = "sqlite3"
59
59
  end
60
60
 
61
61
  if ENV['OP_SQLITE_PERF'] == '1' then
62
- log_message("[OP-SQLITE] performance mode enabled! 🚀")
62
+ log_message.call("[OP-SQLITE] performance mode enabled! 🚀")
63
63
  xcconfig[:OTHER_CFLAGS] = optimizedCflags + ' -DSQLITE_THREADSAFE=0 '
64
64
  end
65
65
 
66
66
  if ENV['OP_SQLITE_PERF'] == '2' then
67
- log_message("[OP-SQLITE] (thread safe) performance mode enabled! 🚀")
67
+ log_message.call("[OP-SQLITE] (thread safe) performance mode enabled! 🚀")
68
68
  xcconfig[:OTHER_CFLAGS] = optimizedCflags + ' -DSQLITE_THREADSAFE=1 '
69
69
  end
70
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@op-engineering/op-sqlite",
3
- "version": "3.0.6",
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",