Commit 74ba411 1 parent 7d0a3d9 commit 74ba411 Copy full SHA for 74ba411
File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,6 @@ def pods(options = {}, use_flipper: false)
24
24
hermes_enabled = ENV [ 'USE_HERMES' ] == '1'
25
25
puts "Building RNTester with Fabric #{ fabric_enabled ? "enabled" : "disabled" } .#{ hermes_enabled ? " Using Hermes engine." : "" } "
26
26
27
- if ENV [ 'USE_CODEGEN_DISCOVERY' ] == '1'
28
- # Custom fabric component is only supported when using codegen discovery.
29
- pod 'MyNativeView' , :path => "NativeComponentExample"
30
- end
31
-
32
27
use_react_native! (
33
28
path : @prefix_path ,
34
29
fabric_enabled : fabric_enabled ,
@@ -37,6 +32,11 @@ def pods(options = {}, use_flipper: false)
37
32
app_path : "#{ Dir . pwd } " ,
38
33
config_file_dir : "#{ Dir . pwd } /node_modules" ,
39
34
)
35
+
36
+ if ENV [ 'USE_CODEGEN_DISCOVERY' ] == '1'
37
+ # Custom fabric component is only supported when using codegen discovery.
38
+ pod 'MyNativeView' , :path => "NativeComponentExample"
39
+ end
40
40
pod 'ReactCommon/turbomodule/samples' , :path => "#{ @prefix_path } /ReactCommon"
41
41
42
42
# Additional Pods which aren't included in the default Podfile
Original file line number Diff line number Diff line change 17
17
DEFAULT_OTHER_CPLUSPLUSFLAGS = '$(inherited)'
18
18
NEW_ARCH_OTHER_CPLUSPLUSFLAGS = '$(inherited) -DRCT_NEW_ARCH_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
19
19
20
+ # This function returns the min iOS version supported by React Native
21
+ # By using this function, you won't have to manually change your Podfile
22
+ # when we change the minimum version supported by the framework.
23
+ def min_ios_version_supported
24
+ return '12.4'
25
+ end
26
+
20
27
def use_react_native! ( options = { } )
21
28
# The prefix to react-native
22
29
prefix = options [ :path ] ||= "../node_modules/react-native"
@@ -420,7 +427,7 @@ def get_react_codegen_spec(options={})
420
427
'source' => { :git => '' } ,
421
428
'header_mappings_dir' => './' ,
422
429
'platforms' => {
423
- 'ios' => '11.0' ,
430
+ 'ios' => min_ios_version_supported ,
424
431
} ,
425
432
'source_files' => "**/*.{h,mm,cpp}" ,
426
433
'pod_target_xcconfig' => { "HEADER_SEARCH_PATHS" =>
You can’t perform that action at this time.
0 commit comments