react-native-nitro-sqlite 9.1.6 → 9.1.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/RNNitroSQLite.podspec +17 -29
- package/package.json +1 -1
package/RNNitroSQLite.podspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1
|
|
4
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
|
|
5
5
|
|
|
6
6
|
# TODO: Should be customizable in package.json.
|
|
7
7
|
# Used to create comparable benchmark results
|
|
@@ -14,47 +14,35 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.homepage = package["homepage"]
|
|
15
15
|
s.license = package["license"]
|
|
16
16
|
s.authors = package["author"]
|
|
17
|
-
|
|
18
17
|
s.platforms = { :ios => min_ios_version_supported, :visionos => "1.0" }
|
|
19
18
|
s.source = { :git => "https://github.com/margelo/react-native-nitro-sqlite.git", :tag => "#{s.version}" }
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
s.source_files = [
|
|
21
|
+
# Implementation (Swift)
|
|
22
|
+
"ios/**/*.{swift}",
|
|
23
|
+
# Autolinking/Registration (Objective-C++)
|
|
24
|
+
"ios/**/*.{h,hpp,m,mm}",
|
|
25
|
+
# Implementation (C++ objects)
|
|
26
|
+
"cpp/**/*.{h,hpp,c,cpp}"
|
|
27
|
+
]
|
|
23
28
|
|
|
24
29
|
s.pod_target_xcconfig = {
|
|
25
30
|
:GCC_PREPROCESSOR_DEFINITIONS => "HAVE_FULLFSYNC=1",
|
|
26
31
|
:WARNING_CFLAGS => "-Wno-shorten-64-to-32 -Wno-comma -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-deprecated-declarations",
|
|
27
|
-
:USE_HEADERMAP => "No",
|
|
28
32
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20',
|
|
29
|
-
'CLANG_CXX_LIBRARY' => 'libc++'
|
|
33
|
+
'CLANG_CXX_LIBRARY' => 'libc++',
|
|
34
|
+
'DEFINES_MODULE' => 'YES',
|
|
35
|
+
"HEADER_SEARCH_PATHS" => [
|
|
36
|
+
"${PODS_ROOT}/RCT-Folly",
|
|
37
|
+
],
|
|
38
|
+
"GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES",
|
|
39
|
+
"OTHER_CPLUSPLUSFLAGS" => folly_compiler_flags,
|
|
30
40
|
}
|
|
31
41
|
|
|
32
42
|
load 'nitrogen/generated/ios/RNNitroSQLite+autolinking.rb'
|
|
33
43
|
add_nitrogen_files(s)
|
|
34
44
|
|
|
35
|
-
|
|
36
|
-
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
37
|
-
if respond_to?(:install_modules_dependencies, true)
|
|
38
|
-
install_modules_dependencies(s)
|
|
39
|
-
else
|
|
40
|
-
s.dependency "React-callinvoker"
|
|
41
|
-
s.dependency "React"
|
|
42
|
-
s.dependency "React-Core"
|
|
43
|
-
|
|
44
|
-
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
45
|
-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
46
|
-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
47
|
-
s.pod_target_xcconfig = {
|
|
48
|
-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
49
|
-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
50
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
51
|
-
}
|
|
52
|
-
s.dependency "RCT-Folly"
|
|
53
|
-
s.dependency "RCTRequired"
|
|
54
|
-
s.dependency "RCTTypeSafety"
|
|
55
|
-
s.dependency "ReactCommon/turbomodule/core"
|
|
56
|
-
end
|
|
57
|
-
end
|
|
45
|
+
install_modules_dependencies(s)
|
|
58
46
|
|
|
59
47
|
optimizedCflags = '$(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'
|
|
60
48
|
|