Skip to content

Commit

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

Differential Revision: D31647300

fbshipit-source-id: b0374baa40ff01d3ef6174d348e1c7793cb7bcaf
  • Loading branch information
CodemodService FBSourceKtfmtLinterBot authored and facebook-github-bot committed Oct 14, 2021
1 parent 943f862 commit 689bfed
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,18 @@ abstract class ReactExtension @Inject constructor(project: Project) {
var enableHermesForVariant: (BaseVariant) -> Boolean = { enableHermes.get() }

/**
* Functional interface specify flags for Hermes on specific [BaseVariant] Default: will
* return [hermesFlagsRelease] for Release variants and [hermesFlagsDebug] for Debug variants.
* Functional interface specify flags for Hermes on specific [BaseVariant] Default: will return
* [hermesFlagsRelease] for Release variants and [hermesFlagsDebug] for Debug variants.
*/
var hermesFlagsForVariant: (BaseVariant) -> List<String> = {
variant -> if (variant.isRelease) hermesFlagsRelease.get() else hermesFlagsDebug.get()
var hermesFlagsForVariant: (BaseVariant) -> List<String> = { variant ->
if (variant.isRelease) hermesFlagsRelease.get() else hermesFlagsDebug.get()
}

/**
* Functional interface to delete debug files only on specific [BaseVariant] Default: will
* return True for Release variants and False for Debug variants.
* Functional interface to delete debug files only on specific [BaseVariant] Default: will return
* True for Release variants and False for Debug variants.
*/
var deleteDebugFilesForVariant: (BaseVariant) -> Boolean = {
variant -> variant.isRelease
}
var deleteDebugFilesForVariant: (BaseVariant) -> Boolean = { variant -> variant.isRelease }

/** Flags to pass to Hermes for Debug variants. Default: [] */
val hermesFlagsDebug: ListProperty<String> =
Expand Down

0 comments on commit 689bfed

Please sign in to comment.