-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Unistyles.podspec
39 lines (31 loc) · 1.13 KB
/
Unistyles.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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "Unistyles"
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 }
s.source = { :git => package["repository"], :tag => "#{s.version}" }
s.source_files = [
"ios/**/*.{swift,h,mm}",
"cxx/**/*.{h,cpp,hpp}"
]
s.pod_target_xcconfig = {
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
"GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES FOLLY_MOBILE"
}
s.public_header_files = [
"ios/Unistyles.h"
]
if ENV["USE_FRAMEWORKS"]
s.dependency "React-Core"
add_dependency(s, "React-jsinspector", :framework_name => "jsinspector_modern")
add_dependency(s, "React-rendererconsistency", :framework_name => "React_rendererconsistency")
end
load "nitrogen/generated/ios/Unistyles+autolinking.rb"
add_nitrogen_files(s)
install_modules_dependencies(s)
end