Skip to content

Commit 6c1c8ee

Browse files
committed
feat(apple): remove deprecated :turbomodule_enabled option
BREAKING CHANGE: Removed deprecated `:turbomodule_enabled` option
1 parent 2c7583d commit 6c1c8ee

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

ios/pod_helpers.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ def find_file(file_name, current_dir)
4747
def new_architecture_enabled?(options, react_native_version)
4848
return false unless supports_new_architecture?(react_native_version)
4949

50-
dependent_options_enabled = options[:fabric_enabled] || options[:turbomodule_enabled]
51-
ENV.fetch('RCT_NEW_ARCH_ENABLED', dependent_options_enabled ? '1' : '0') != '0'
50+
ENV.fetch('RCT_NEW_ARCH_ENABLED', options[:fabric_enabled] ? '1' : '0') != '0'
5251
end
5352

5453
def platform_config(key, project_root, target_platform)

test/test_pod_helpers.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ def test_new_architecture_enabled?
6161
refute(new_architecture_enabled?({ fabric_enabled: true }, v(0, 70, 999)))
6262
assert(new_architecture_enabled?({ fabric_enabled: true }, available_version))
6363

64-
# TODO: `:turbomodule_enabled` is scheduled for removal in 4.0
65-
refute(new_architecture_enabled?({ turbomodule_enabled: true }, v(0, 70, 999)))
66-
assert(new_architecture_enabled?({ turbomodule_enabled: true }, available_version))
67-
6864
# `RCT_NEW_ARCH_ENABLED` enables everything
6965
ENV['RCT_NEW_ARCH_ENABLED'] = '1'
7066

@@ -77,7 +73,6 @@ def test_new_architecture_enabled?
7773
refute(new_architecture_enabled?({}, v(0, 70, 999)))
7874
refute(new_architecture_enabled?({}, available_version))
7975
refute(new_architecture_enabled?({ fabric_enabled: true }, available_version))
80-
refute(new_architecture_enabled?({ turbomodule_enabled: true }, available_version))
8176

8277
ENV.delete('RCT_NEW_ARCH_ENABLED')
8378
end

0 commit comments

Comments
 (0)