@@ -372,6 +372,17 @@ def rct_cxx_language_standard()
372
372
return Helpers ::Constants . cxx_language_standard
373
373
end
374
374
375
+ def print_jsc_removal_message ( )
376
+ puts ''
377
+ puts '=============== JavaScriptCore is being moved ===============' . yellow
378
+ puts 'JavaScriptCore has been extracted from react-native core' . yellow
379
+ puts 'and will be removed in a future release. It can now be' . yellow
380
+ puts 'installed from `@react-native-community/javascriptcore`' . yellow
381
+ puts 'See: https://github.com/react-native-community/javascriptcore' . yellow
382
+ puts '=============================================================' . yellow
383
+ puts ''
384
+ end
385
+
375
386
def print_cocoapods_deprecation_message ( )
376
387
if ENV [ "RCT_IGNORE_PODS_DEPRECATION" ] == "1"
377
388
return
@@ -408,7 +419,6 @@ def react_native_post_install(
408
419
409
420
ReactNativePodsUtils . apply_mac_catalyst_patches ( installer ) if mac_catalyst_enabled
410
421
411
- fabric_enabled = ENV [ 'RCT_FABRIC_ENABLED' ] == '1'
412
422
hermes_enabled = ENV [ 'USE_HERMES' ] == '1'
413
423
privacy_file_aggregation_enabled = ENV [ 'RCT_AGGREGATE_PRIVACY_FILES' ] == '1'
414
424
@@ -441,6 +451,10 @@ def react_native_post_install(
441
451
NewArchitectureHelper . set_clang_cxx_language_standard_if_needed ( installer )
442
452
NewArchitectureHelper . modify_flags_for_new_architecture ( installer , NewArchitectureHelper . new_arch_enabled )
443
453
454
+ if ENV [ 'USE_HERMES' ] == '0' && ENV [ 'USE_THIRD_PARTY_JSC' ] != '1'
455
+ print_jsc_removal_message ( )
456
+ end
457
+
444
458
print_cocoapods_deprecation_message
445
459
Pod ::UI . puts "Pod install took #{ Time . now . to_i - $START_TIME} [s] to run" . green
446
460
end
0 commit comments