-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: proper usage of turbomodule (#1550)
* fix: proper usage of turbomodule * fix: wrong value passed * Bring podspec in line with https://reactnative.dev/docs/the-new-architecture/backward-compatibility-fabric-components * revert the RNVectorIconsManager changes * Update RNVectorIcons.podspec --------- Co-authored-by: John Ferlito <[email protected]> Co-authored-by: Joel Arvidsson <[email protected]>
- Loading branch information
1 parent
f2d1b73
commit f4e1c1e
Showing
2 changed files
with
31 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,22 @@ | ||
require 'json' | ||
version = JSON.parse(File.read('package.json'))["version"] | ||
|
||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' | ||
package = JSON.parse(File.read(File.join(__dir__, "package.json"))) | ||
|
||
Pod::Spec.new do |s| | ||
|
||
s.name = "RNVectorIcons" | ||
s.version = version | ||
s.summary = "Customizable Icons for React Native with support for NavBar/TabBar, image source and full styling." | ||
s.homepage = "https://github.com/oblador/react-native-vector-icons" | ||
s.license = "MIT" | ||
s.author = { "Joel Arvidsson" => "[email protected]" } | ||
s.platforms = { :ios => "9.0", :tvos => "9.0" } | ||
s.source = { :git => "https://github.com/oblador/react-native-vector-icons.git", :tag => "v#{s.version}" } | ||
s.source_files = 'RNVectorIconsManager/**/*.{h,m}' | ||
s.version = package["version"] | ||
s.summary = package["description"] | ||
s.description = package["description"] | ||
s.homepage = package["homepage"] | ||
s.license = package["license"] | ||
s.author = { package["author"]["name"] => package["author"]["email"] } | ||
s.platforms = { :ios => "12.0", :tvos => "9.0" } | ||
s.source = { :git => package["repository"]["url"], :tag => "v#{s.version}" } | ||
|
||
s.source_files = 'RNVectorIconsManager/**/*.{h,m,mm,swift}' | ||
s.resources = "Fonts/*.ttf" | ||
s.preserve_paths = "**/*.js" | ||
s.dependency 'React-Core' | ||
|
||
# This guard prevent to install the dependencies when we run `pod install` in the old architecture. | ||
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then | ||
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" | ||
s.pod_target_xcconfig = { | ||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" | ||
} | ||
|
||
s.dependency "React-Codegen" | ||
s.dependency "RCT-Folly" | ||
s.dependency "RCTRequired" | ||
s.dependency "RCTTypeSafety" | ||
s.dependency "ReactCommon/turbomodule/core" | ||
# React Native Core dependency | ||
if defined? install_modules_dependencies | ||
install_modules_dependencies(s) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters