File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,18 @@ def pods(options = {})
26
26
27
27
prefix_path = "../.."
28
28
29
- if ENV [ 'USE_CODEGEN_DISCOVERY' ] == '1'
30
- # Custom fabric component is only supported when using codegen discovery.
31
- pod 'MyNativeView' , :path => "NativeComponentExample"
32
- end
33
-
34
29
use_react_native! (
35
30
path : prefix_path ,
36
31
fabric_enabled : fabric_enabled ,
37
32
hermes_enabled : ENV [ 'USE_HERMES' ] == '1' ,
38
33
app_path : "#{ Dir . pwd } " ,
39
34
config_file_dir : "#{ Dir . pwd } /node_modules" ,
40
35
)
36
+
37
+ if ENV [ 'USE_CODEGEN_DISCOVERY' ] == '1'
38
+ # Custom fabric component is only supported when using codegen discovery.
39
+ pod 'MyNativeView' , :path => "NativeComponentExample"
40
+ end
41
41
pod 'ReactCommon/turbomodule/samples' , :path => "#{ prefix_path } /ReactCommon"
42
42
43
43
# Additional Pods which aren't included in the default Podfile
Original file line number Diff line number Diff line change 14
14
DEFAULT_OTHER_CPLUSPLUSFLAGS = '$(inherited)'
15
15
NEW_ARCH_OTHER_CPLUSPLUSFLAGS = '$(inherited) -DRCT_NEW_ARCH_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
16
16
17
+ # This function returns the min iOS version supported by React Native
18
+ # By using this function, you won't have to manually change your Podfile
19
+ # when we change the minimum version supported by the framework.
20
+ def min_ios_version_supported
21
+ return '12.0'
22
+ end
23
+
17
24
def use_react_native! ( options = { } )
18
25
# The prefix to react-native
19
26
prefix = options [ :path ] ||= "../node_modules/react-native"
@@ -363,7 +370,7 @@ def get_react_codegen_spec(options={})
363
370
'source' => { :git => '' } ,
364
371
'header_mappings_dir' => './' ,
365
372
'platforms' => {
366
- 'ios' => '11.0' ,
373
+ 'ios' => min_ios_version_supported ,
367
374
} ,
368
375
'source_files' => "**/*.{h,mm,cpp}" ,
369
376
'pod_target_xcconfig' => { "HEADER_SEARCH_PATHS" =>
You can’t perform that action at this time.
0 commit comments