mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
5aca739cc2
Summary: This will require people who use CocoaPods to update their Podfiles. You can see an example of a Podfile set up to use the Cxx bridge here: https://github.com/mhorowitz/native-navigation-boilerplate/blob/master/ios/Podfile If this doesn't work, you can continue to use the old bridge by adding a dependency of 'BatchedBridge' to the React subspecs in your Podfile, but this will stop working once the old bridge is removed. Reviewed By: javache Differential Revision: D4981920 fbshipit-source-id: 7c4f3bf1c3f9af3f934f03ec003a05d0cd3cb259
44 lines
1.6 KiB
Ruby
44 lines
1.6 KiB
Ruby
Pod::Spec.new do |spec|
|
|
spec.name = 'Folly'
|
|
spec.version = '2016.09.26.00'
|
|
spec.license = { :type => 'Apache License, Version 2.0' }
|
|
spec.homepage = 'https://github.com/facebook/folly'
|
|
spec.summary = 'An open-source C++ library developed and used at Facebook.'
|
|
spec.authors = 'Facebook'
|
|
spec.source = { :git => 'https://github.com/facebook/folly.git',
|
|
:tag => "v#{spec.version}" }
|
|
spec.module_name = 'folly'
|
|
spec.dependency 'boost'
|
|
spec.dependency 'DoubleConversion'
|
|
spec.dependency 'GLog'
|
|
spec.compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
|
|
spec.header_mappings_dir = 'folly'
|
|
spec.source_files = 'folly/*.h',
|
|
'folly/Bits.cpp',
|
|
'folly/Conv.cpp',
|
|
'folly/Demangle.cpp',
|
|
# 'folly/File.cpp',
|
|
'folly/StringBase.cpp',
|
|
'folly/Unicode.cpp',
|
|
'folly/dynamic.cpp',
|
|
'folly/json.cpp'
|
|
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
|
|
# Pinning to the same version as React.podspec.
|
|
spec.platform = :ios, '8.0'
|
|
|
|
spec.subspec "detail" do |ss|
|
|
ss.header_dir = 'folly/detail'
|
|
ss.source_files = 'folly/detail/*.h',
|
|
'folly/detail/MallocImpl.cpp'
|
|
end
|
|
|
|
spec.subspec "portability" do |ss|
|
|
ss.header_dir = 'folly/portability'
|
|
ss.source_files = 'folly/portability/*.h',
|
|
'folly/portability/BitsFunctexcept.cpp'
|
|
end
|
|
|
|
end
|