mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Revert D31636434: Daily arc lint --take KTFMT
Differential Revision: D31636434 (https://github.com/facebook/react-native/commit/2bced60851ec668d3bc9c75c99803891aab772e3) Original commit changeset: 4632cdc1bfd3 fbshipit-source-id: 7810fcba547d091e5014d6a3f70af7779e9a2aa1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2bced60851
commit
943f86272d
+9
-7
@@ -138,18 +138,20 @@ 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> =
|
||||
|
||||
Reference in New Issue
Block a user