forked from Nozbe/WatermelonDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WatermelonDB.podspec
43 lines (37 loc) · 1.66 KB
/
WatermelonDB.podspec
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
42
43
require "json"
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = "WatermelonDB"
s.version = package["version"]
s.summary = package["description"]
s.description = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.author = { "author" => package["author"] }
s.platforms = { :ios => "11.0", :tvos => "11.0" }
s.source = { :git => "https://github.com/Nozbe/WatermelonDB.git", :tag => "v#{s.version}" }
s.source_files = "native/ios/**/*.{h,m,mm,swift,c,cpp}", "native/shared/**/*.{h,c,cpp}"
s.public_header_files = [
# FIXME: I don't think we should be exporting all headers as public
# (although that is CocoaPods default behavior)
# but this is needed for WatermelonDB to work in use_frameworks! mode
# 'native/ios/**/*.h',
'native/ios/WatermelonDB/JSIInstaller.h',
'native/ios/WatermelonDB/WatermelonDB.h',
]
s.pod_target_xcconfig = {
# FIXME: This is a workaround for broken build in use_frameworks mode
# I don't think this is a correct fix, but… seems to work?
# 'OTHER_SWIFT_FLAGS' => '-Xcc -Wno-error=non-modular-include-in-framework-module'
}
s.requires_arc = true
# simdjson is annoyingly slow without compiler optimization, disable for debugging
s.compiler_flags = '-Os'
s.dependency "React"
s.libraries = 'sqlite3'
# NOTE: This dependency doesn't seem to be needed anymore (tested on RN 0.66, 0.71), file an issue
# if this causes issues for you
# s.dependency "React-jsi"
# NOTE: NPM-vendored @nozbe/simdjson must be used, not the CocoaPods version
s.dependency "simdjson"
end