diff --git a/android/react-native.gradle b/android/react-native.gradle index 6bd732a8e..5d807730e 100644 --- a/android/react-native.gradle +++ b/android/react-native.gradle @@ -36,13 +36,10 @@ ext.isFabricEnabled = { Project project -> } ext.isNewArchitectureEnabled = { Project project -> - def NEW_ARCH_ENABLED = "newArchEnabled" - def SCOPED_NEW_ARCH_ENABLED = "react.newArchEnabled" - - def newArchEnabled = project.findProperty(SCOPED_NEW_ARCH_ENABLED) - ?: project.findProperty(NEW_ARCH_ENABLED) - def version = getPackageVersionNumber("react-native", project.rootDir) + def newArchEnabled = project.findProperty("react.newArchEnabled") + ?: project.findProperty("newArchEnabled") if (newArchEnabled == "true") { + def version = getPackageVersionNumber("react-native", project.rootDir) def isSupported = version == 0 || version >= v(0, 71, 0) if (!isSupported) { throw new GradleException([ @@ -53,13 +50,5 @@ ext.isNewArchitectureEnabled = { Project project -> } return isSupported } - - if (version < v(0, 77, 0)) { - return false - } - - // As of 0.77, New Architecture is assumed on and doesn't build otherwise - project.ext[NEW_ARCH_ENABLED] = "true" - project.ext[SCOPED_NEW_ARCH_ENABLED] = "true" - return true + return false }