@@ -21,7 +21,6 @@ folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
21
21
22
22
is_new_arch_enabled = ENV [ "RCT_NEW_ARCH_ENABLED" ] == "1"
23
23
use_hermes = ENV [ 'USE_HERMES' ] == nil || ENV [ 'USE_HERMES' ] == '1'
24
- use_frameworks = ENV [ 'USE_FRAMEWORKS' ] != nil
25
24
26
25
new_arch_enabled_flag = ( is_new_arch_enabled ? " -DRCT_NEW_ARCH_ENABLED" : "" )
27
26
is_fabric_enabled = is_new_arch_enabled || ENV [ "RCT_FABRIC_ENABLED" ]
@@ -43,21 +42,7 @@ header_search_paths = [
43
42
] . concat ( use_hermes ? [
44
43
"$(PODS_ROOT)/Headers/Public/React-hermes" ,
45
44
"$(PODS_ROOT)/Headers/Public/hermes-engine"
46
- ] : [ ] ) . concat ( use_frameworks ? [
47
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-Fabric/React_Fabric.framework/Headers/" ,
48
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx/" ,
49
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-graphics/React_graphics.framework/Headers/" ,
50
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios" ,
51
- "$(PODS_CONFIGURATION_BUILD_DIR)/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core" ,
52
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-NativeModulesApple/React_NativeModulesApple.framework/Headers" ,
53
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-RuntimeApple/React_RuntimeApple.framework/Headers" ,
54
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-RuntimeCore/React_RuntimeCore.framework/Headers" ,
55
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-RCTFabric/RCTFabric.framework/Headers/" ,
56
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-utils/React_utils.framework/Headers/" ,
57
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers/" ,
58
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-runtimescheduler/React_runtimescheduler.framework/Headers/" ,
59
- "$(PODS_CONFIGURATION_BUILD_DIR)/React-rendererdebug/React_rendererdebug.framework/Headers/" ,
60
- ] : [ ] ) . map { |p | "\" #{ p } \" " } . join ( " " )
45
+ ] : [ ] )
61
46
62
47
Pod ::Spec . new do |s |
63
48
s . name = "React-RCTAppDelegate"
@@ -87,18 +72,19 @@ Pod::Spec.new do |s|
87
72
s . dependency "RCT-Folly"
88
73
s . dependency "RCTRequired"
89
74
s . dependency "RCTTypeSafety"
90
- s . dependency "ReactCommon/turbomodule/core"
91
75
s . dependency "React-RCTNetwork"
92
76
s . dependency "React-RCTImage"
93
- s . dependency "React-NativeModulesApple"
94
77
s . dependency "React-CoreModules"
95
78
s . dependency "React-nativeconfig"
96
- s . dependency "React-runtimescheduler"
97
- s . dependency "React-RCTFabric"
79
+
80
+ add_dependency ( s , "ReactCommon" , :subspec => "turbomodule/core" , :additional_framework_paths => [ "react/nativemodule/core" ] )
81
+ add_dependency ( s , "React-NativeModulesApple" )
82
+ add_dependency ( s , "React-runtimescheduler" )
83
+ add_dependency ( s , "React-RCTFabric" , :framework_name => "RCTFabric" )
98
84
99
85
if is_new_arch_enabled
100
- s . dependency "React-RuntimeCore"
101
- s . dependency "React-RuntimeApple"
86
+ add_dependency ( s , "React-RuntimeCore" )
87
+ add_dependency ( s , "React-RuntimeApple" )
102
88
if use_hermes
103
89
s . dependency "React-RuntimeHermes"
104
90
end
@@ -111,11 +97,15 @@ Pod::Spec.new do |s|
111
97
end
112
98
113
99
if is_new_arch_enabled
114
- s . dependency "React-Fabric"
115
- s . dependency "React-graphics"
116
- s . dependency "React-utils"
117
- s . dependency "React-debug"
118
- s . dependency "React-rendererdebug"
100
+ add_dependency ( s , "React-Fabric" , :additional_framework_paths => [ "react/renderer/components/view/platform/cxx" ] )
101
+ add_dependency ( s , "React-graphics" , :additional_framework_paths => [ "react/renderer/graphics/platform/ios" ] )
102
+ add_dependency ( s , "React-utils" )
103
+ add_dependency ( s , "React-debug" )
104
+ add_dependency ( s , "React-rendererdebug" )
105
+
106
+ rel_path_from_pods_root_to_app = Pathname . new ( ENV [ 'APP_PATH' ] ) . relative_path_from ( Pod ::Config . instance . installation_root )
107
+ rel_path_from_pods_to_app = Pathname . new ( ENV [ 'APP_PATH' ] ) . relative_path_from ( File . join ( Pod ::Config . instance . installation_root , 'Pods' ) )
108
+
119
109
120
110
rel_path_from_pods_root_to_app = Pathname . new ( ENV [ 'APP_PATH' ] ) . relative_path_from ( Pod ::Config . instance . installation_root )
121
111
rel_path_from_pods_to_app = Pathname . new ( ENV [ 'APP_PATH' ] ) . relative_path_from ( File . join ( Pod ::Config . instance . installation_root , 'Pods' ) )
0 commit comments