mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f7e4c07c84
Summary: In this diff, it moves the codegen output location out of node_modules and to build/generated/ios folder. A temp pod spec will be created so that those files will be included in the Xcode project. Changelog: [Internal] Reviewed By: hramos, cortinico Differential Revision: D31809012 fbshipit-source-id: ba1c884c8024306ba0fd2102837b7dbebc6e18ac
40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
require "json"
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "../package.json")))
|
|
|
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
folly_version = '2021.06.28.00-v2'
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = "ScreenshotManager"
|
|
s.version = package["version"]
|
|
s.summary = package["description"]
|
|
s.description = "ScreenshotManager"
|
|
s.homepage = "https://github.com/facebook/react-native.git"
|
|
s.license = "MIT"
|
|
s.platforms = { :ios => "11.0", :tvos => "11.0" }
|
|
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
|
|
s.author = "Facebook, Inc. and its affiliates"
|
|
s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "#{s.version}" }
|
|
|
|
s.source_files = "**/*.{h,m,mm,swift}"
|
|
s.requires_arc = true
|
|
|
|
s.dependency "React"
|
|
s.dependency "RCT-Folly", folly_version
|
|
|
|
# s.dependency "..."
|
|
|
|
# Enable codegen for this library
|
|
use_react_native_codegen!(s, {
|
|
:react_native_path => "../../..",
|
|
:js_srcs_dir => "./",
|
|
:library_type => "modules",
|
|
})
|
|
end
|