-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSalveDb.podspec
More file actions
41 lines (34 loc) · 1.52 KB
/
Copy pathSalveDb.podspec
File metadata and controls
41 lines (34 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "SalveDb"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platforms = { :ios => min_ios_version_supported, :visionos => 1.0 }
s.source = { :git => "https://github.com/Salve-Software/react-native-salve-db.git", :tag => "#{s.version}" }
s.source_files = [
# Implementation (Swift)
"ios/**/*.{swift}",
# Autolinking/Registration + platform init (Objective-C++)
"ios/**/*.{m,mm}",
# Implementation (C++ objects)
"cpp/**/*.{hpp,cpp}",
# Vendored SQLite amalgamation (same source used on Android)
"cpp/third_party/sqlite3/*.{c,h}",
]
s.exclude_files = ["cpp/tests/**/*", "ios/tests/**/*"]
# Needed for sqlite3_column_table_name/origin_name, used to coerce boolean columns on read.
s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_ENABLE_COLUMN_METADATA=1' }
# NWPathMonitor (connectivity monitor) and BGTaskScheduler (background scheduler).
s.frameworks = 'Network', 'BackgroundTasks'
# Exposes SalveDbSyncBridge to SalveDbConnectivityMonitor.swift.
s.public_header_files = ["ios/Sync/SalveDbSyncBridge.h"]
load 'nitrogen/generated/ios/SalveDb+autolinking.rb'
add_nitrogen_files(s)
s.dependency 'React-jsi'
s.dependency 'React-callinvoker'
install_modules_dependencies(s)
end