Skip to content

Commit

Permalink
Daily arc lint --take KTFMT
Browse files Browse the repository at this point in the history
Reviewed By: 0x1eaf

Differential Revision: D50164739

fbshipit-source-id: a3a03735eaea41d3e7e04a73b210c6347ebd078e
  • Loading branch information
generatedunixname89002005325672 authored and facebook-github-bot committed Oct 11, 2023
1 parent c279db7 commit 3859eee
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ internal object ProjectUtils {
internal fun Project.isNewArchEnabled(extension: ReactExtension): Boolean {
return (project.hasProperty(NEW_ARCH_ENABLED) &&
project.property(NEW_ARCH_ENABLED).toString().toBoolean()) ||

(project.hasProperty(SCOPED_NEW_ARCH_ENABLED) &&
project.property(SCOPED_NEW_ARCH_ENABLED).toString().toBoolean()) ||
shouldEnableNewArchForReactNativeVersion(project.reactNativeDir(extension))

}

internal val Project.isHermesEnabled: Boolean
Expand Down Expand Up @@ -123,7 +121,6 @@ internal object ProjectUtils {
(this.hasPropertySetToFalse(NEW_ARCH_ENABLED)) ||
(this.hasPropertySetToFalse(SCOPED_NEW_ARCH_ENABLED))


val shouldEnableNewArch =
shouldEnableNewArchForReactNativeVersion(this.reactNativeDir(extension))

Expand All @@ -132,5 +129,4 @@ internal object ProjectUtils {

internal fun Project.hasPropertySetToFalse(property: String): Boolean =
this.hasProperty(property) && this.property(property).toString().toBoolean() == false

}

0 comments on commit 3859eee

Please sign in to comment.